Skip to content

Conversation

@runchen0919
Copy link
Collaborator

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

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 <[email protected]>
this.treeData = resp.data.map((cp) => {
const moduleBuildFile = getModuleBuildFile(cp.path);
const moduleBuildFilePath = getModuleBuildFile(cp.path);
const moduleBuildFileUri = Uri.file(moduleBuildFilePath);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unified parameter passing type

progress.report({ message: 'Updating classpath from BUILD file...' });

try {
await executeJavaLanguageServerCommand(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add a backend call to refresh the classpath from the built file to enable project-wide refresh functionality.

suiteSetup(async function () {
try {
await extensions.getExtension('sfdc-eng.bazel-java')?.activate();
await extensions.getExtension('COMP.java-bazel-extension')?.activate();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Update the unit test; the name here must match the plugin name.

@runchen0919 runchen0919 marked this pull request as ready for review February 12, 2026 09:41
Copy link
Owner

@zhirui1994 zhirui1994 left a comment

Choose a reason for hiding this comment

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

LGTM

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