feat: add individual project refresh with progress notification#6
Merged
runchen0919 merged 1 commit intozhirui1994:devfrom Feb 15, 2026
Conversation
Enhance updateClasspaths to support refreshing individual projects with improved user feedback and BUILD file detection: - Add progress notification during classpath refresh - Support refreshing from specific BUILD file, active editor, or parent directories - Improve error handling with informative messages - Pass Uri objects instead of paths for better type safety - Add tests for updateClasspaths command registration - Update extension ID to COMP.java-bazel-extension Signed-off-by: runchen0919 <run.chen@compass.com>
runchen0919
commented
Feb 12, 2026
| this.treeData = resp.data.map((cp) => { | ||
| const moduleBuildFile = getModuleBuildFile(cp.path); | ||
| const moduleBuildFilePath = getModuleBuildFile(cp.path); | ||
| const moduleBuildFileUri = Uri.file(moduleBuildFilePath); |
Collaborator
Author
There was a problem hiding this comment.
Unified parameter passing type
runchen0919
commented
Feb 12, 2026
| progress.report({ message: 'Updating classpath from BUILD file...' }); | ||
|
|
||
| try { | ||
| await executeJavaLanguageServerCommand( |
Collaborator
Author
There was a problem hiding this comment.
Add a backend call to refresh the classpath from the built file to enable project-wide refresh functionality.
runchen0919
commented
Feb 12, 2026
| suiteSetup(async function () { | ||
| try { | ||
| await extensions.getExtension('sfdc-eng.bazel-java')?.activate(); | ||
| await extensions.getExtension('COMP.java-bazel-extension')?.activate(); |
Collaborator
Author
There was a problem hiding this comment.
Update the unit test; the name here must match the plugin name.
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.
Enhance updateClasspaths to support refreshing individual projects with improved user feedback and BUILD file detection: