Skip to content

Fix command 'java.dashboard.refresh' not found - #4382

Closed
amritamishra01 wants to merge 3 commits into
redhat-developer:mainfrom
amritamishra01:fix/dashboard-refresh-command-4381
Closed

amritamishra01 wants to merge 3 commits into
redhat-developer:mainfrom
amritamishra01:fix/dashboard-refresh-command-4381

Conversation

@amritamishra01

Copy link
Copy Markdown
Contributor

Summary

Fixes the issue where running Java: Refresh from the command palette fails with:

command 'java.dashboard.refresh' not found

Root cause

The dashboard refresh command was registered only after the Java Dashboard panel was opened.

Fix

  • moved dashboard refresh command registration to initialization
  • ensured the dashboard is opened before refresh logic runs
  • preserved refresh behavior when the panel is already open

Validation

  • launched extension development host
  • ran Java: Refresh directly from command palette
  • verified dashboard opens successfully
  • reran refresh to confirm no duplicate tab and no command errors

Fixes #4381

@datho7561

Copy link
Copy Markdown
Contributor

Closing in favour of #4538 ; these commands were not meant to be exposed to the end user through the command palette, so hiding them was the right approach.

@datho7561 datho7561 closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

command 'java.dashboard.refresh' not found

2 participants