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:
Shreya Keshive
2025-08-15 00:22:32 +00:00
committed by GitHub
parent db347eeee8
commit a84f749310
2 changed files with 8 additions and 3 deletions

View File

@@ -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,