mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-03 06:00:49 +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:
parent
db347eeee8
commit
a84f749310
2 changed files with 8 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue