Skip to content

Commit c615224

Browse files
committed
fix: disable menu item when server stopped
1 parent 77edecb commit c615224

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/CodingWithCalvin.MCPServer/Commands/ServerCommands.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public static async Task InitializeAsync(AsyncPackage package)
4747
// Show Available Tools command
4848
var showToolsCommandId = new CommandID(VSCommandTableVsct.guidMCPServerPackageCmdSet.Guid, VSCommandTableVsct.guidMCPServerPackageCmdSet.cmdidShowTools);
4949
var showToolsCommand = new OleMenuCommand(OnShowTools, showToolsCommandId);
50+
showToolsCommand.BeforeQueryStatus += OnBeforeQueryStatusStop;
5051
commandService.AddCommand(showToolsCommand);
5152
}
5253

0 commit comments

Comments
 (0)