Add per-tool suppression for unknown tool name notifications (#560)#563
Open
Add per-tool suppression for unknown tool name notifications (#560)#563
Conversation
Closes #560 Users can now suppress individual tool names from the 'Unknown Tools Found' section in the Usage Analysis dashboard. This is useful when testing a new MCP server that does not yet have a friendly display name, without losing visibility into other unrecognised tools. Changes: - Added new VS Code setting copilotTokenTracker.suppressedUnknownTools (string array, default []) in package.json - extension.ts: passes suppressedUnknownTools from settings into the __INITIAL_USAGE__ initial data payload; handles the new suppressUnknownTool webview message, updating the setting and refreshing the panel - webview/usage/main.ts: extends UsageAnalysisStats type with the field; getUnknownMcpTools() filters out suppressed names; each tool chip now renders a mute (🔇) button that posts suppressUnknownTool to the host Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #560
Summary
Users can now suppress individual tool names from the Unknown Tools Found section in the Usage Analysis dashboard. This is useful when testing a new MCP server that doesn't yet have a friendly display name, without losing visibility into other unrecognised tools.
Changes
vscode-extension/package.jsoncopilotTokenTracker.suppressedUnknownTools(array of strings, default[]) with a clear description.vscode-extension/src/extension.tsgetUsageAnalysisHtml()— readssuppressedUnknownToolsfrom VS Code settings and injects it into__INITIAL_USAGE__.showUsageAnalysis()— handles the newsuppressUnknownToolwebview message: appends the tool name to the setting (global scope) and refreshes the panel.vscode-extension/src/webview/usage/main.tsUsageAnalysisStats— extended with optionalsuppressedUnknownTools?: string[].getUnknownMcpTools()— filters out suppressed tool names before returning the list.data-suppress-toolattribute); event delegation inbootstrap()postssuppressUnknownToolto the extension host.How it works
copilotTokenTracker.suppressedUnknownToolsin VS Code global settings and refreshes the dashboard.