Skip to content

enhancement: refresh test unit treeview with specific path#1842

Merged
wenytang-ms merged 2 commits intomainfrom
wenyt/refresh
Mar 2, 2026
Merged

enhancement: refresh test unit treeview with specific path#1842
wenytang-ms merged 2 commits intomainfrom
wenyt/refresh

Conversation

@wenytang-ms
Copy link
Contributor

@wenytang-ms wenytang-ms commented Mar 2, 2026

#1837

support refresh with URI for specific path unit test case

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Java Test Explorer refresh behavior to refresh only the affected project subtree on classpath changes (instead of refreshing the entire tree), and improves root project synchronization when workspace projects change.

Changes:

  • Add refreshProject(Uri) and invoke it on classpath updates to refresh only the matching project subtree.
  • Adjust refreshExplorer() to perform an incremental refresh without clearing all root nodes.
  • Remove test explorer root projects that no longer exist during loadJavaProjects().

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/extension.ts Switch classpath-update handling from full refresh to per-project refresh via refreshProject(uri).
src/controller/utils.ts Prune removed projects from the test controller’s root items during project loading.
src/commands/testExplorerCommands.ts Introduce targeted project refresh and adjust refresh flows/telemetry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wenytang-ms wenytang-ms merged commit 3418b76 into main Mar 2, 2026
4 checks passed
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.

3 participants