Skip to content

Remove unused ToolConfigurationContextMenuHandler - #478

Open
Lars Vogel (vogella) wants to merge 1 commit into
microsoft:mainfrom
vogellacompany:remove-tool-config-context-menu-handler
Open

Lars Vogel (vogella) wants to merge 1 commit into
microsoft:mainfrom
vogellacompany:remove-tool-config-context-menu-handler

Conversation

@vogella

Copy link
Copy Markdown
Contributor

ToolConfigurationContextMenuHandler is not referenced from any Java code, plugin.xml or manifest. The "Configure Tools..." entry it built for .agent.md editors is already contributed declaratively in plugin.xml, through a popup:#TextEditorContext menu contribution with a visibleWhen on *.agent.md, so removing the class drops 95 lines of dead code without changing the menu.

The Configure Tools entry for .agent.md editors is contributed declaratively in plugin.xml, and nothing references this class anymore.

Assisted-by: multiple AI agents and layers of automated tooling 🤖

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Repository-wide reference checks confirm the deleted class is unused and the menu remains declaratively registered.

0 open findings

What changed in this PR

Removes an unreferenced context-menu handler without changing the existing declarative menu contribution.

Changes:

  • Deletes 95 lines of dead context-menu code.
  • Retains the equivalent plugin.xml command contribution.
File Description
ToolConfigurationContextMenuHandler.java Removes the unused handler class.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants