mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Show /ide enable & /ide disable commands based on connection status (#6248)
Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
@@ -237,8 +237,8 @@ export const ideCommand = (config: Config | null): SlashCommand | null => {
|
||||
},
|
||||
};
|
||||
|
||||
const ideModeEnabled = config.getIdeMode();
|
||||
if (ideModeEnabled) {
|
||||
const connectionStatus = ideClient.getConnectionStatus().status;
|
||||
if (connectionStatus === IDEConnectionStatus.Connected) {
|
||||
ideSlashCommand.subCommands = [
|
||||
disableCommand,
|
||||
statusCommand,
|
||||
|
||||
Reference in New Issue
Block a user