Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix:comments
  • Loading branch information
wenytang-ms committed Apr 28, 2026
commit 83ce062c539d6c8f4e0eb2dfd4043520b8dc265e
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@
},
{
"command": "java.project.build.project",
"title": "%contributes.commands.java.project.build.project%"
"title": "%contributes.commands.java.project.build.project%",
"category": "Java"
},
{
"command": "java.project.clean.workspace",
Expand All @@ -187,7 +188,8 @@
},
{
"command": "java.project.rebuild",
"title": "%contributes.commands.java.project.rebuild%"
"title": "%contributes.commands.java.project.rebuild%",
"category": "Java"
},
{
"command": "java.view.package.revealInProjectExplorer",
Expand Down
4 changes: 2 additions & 2 deletions src/views/dependencyDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ export class DependencyDataProvider implements TreeDataProvider<ExplorerNode> {
window.showErrorMessage("The URI of the project is not available, you can try to trigger the command 'Java: Build Project' from Command Palette.");
Comment thread
wenytang-ms marked this conversation as resolved.
return;
}
commands.executeCommand(Commands.BUILD_PROJECT, Uri.parse(node.uri), false /*isFullBuild*/);
return commands.executeCommand(Commands.BUILD_PROJECT, Uri.parse(node.uri), false /*isFullBuild*/);
}));
Comment thread
wenytang-ms marked this conversation as resolved.
context.subscriptions.push(instrumentOperationAsVsCodeCommand(Commands.JAVA_PROJECT_REBUILD, async (node: INodeData) => {
if (!node.uri) {
sendError(new Error("Uri not available when rebuilding project"));
window.showErrorMessage("The URI of the project is not available, you can try to trigger the command 'Java: Rebuild Project' from Command Palette.");
Comment thread
wenytang-ms marked this conversation as resolved.
return;
}
commands.executeCommand(Commands.BUILD_PROJECT, Uri.parse(node.uri), true /*isFullBuild*/);
return commands.executeCommand(Commands.BUILD_PROJECT, Uri.parse(node.uri), true /*isFullBuild*/);
}));

this.setRefreshDebounceFunc();
Expand Down
12 changes: 12 additions & 0 deletions test/suite/buildTask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ suite("Build Task Tests", () => {
assert.strictEqual(exportJarTask.definition.isFullBuild, false);
});

test("test resolving build task defaults to incremental build", async function() {
const task: Task = new Task({
type: BuildTaskProvider.type,
paths: [ BuildTaskProvider.workspace ],
}, TaskScope.Workspace, BuildTaskProvider.defaultTaskName, BuildTaskProvider.type);

const resolvedTask: Task | undefined = await new BuildTaskProvider().resolveTask(task);

assert.ok(resolvedTask !== undefined);
assert.strictEqual(resolvedTask.definition.isFullBuild, false);
});

test("test categorizePaths()", async function() {
const [includes, excludes, invalid] = categorizePaths([
BuildTaskProvider.workspace,
Expand Down
Loading