Skip to content

ux: Expose rebuild workspace command #623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
},
{
"command": "java.project.build.workspace",
"title": "%contributes.commands.java.project.build.workspace%"
"title": "%contributes.commands.java.project.build.workspace%",
"icon": "$(tools)"
},
{
"command": "java.project.clean.workspace",
Expand Down Expand Up @@ -398,7 +399,7 @@
"group": "navigation@20"
},
{
"command": "java.view.package.refresh",
"command": "java.project.build.workspace",
"when": "view == javaProjectExplorer && java:serverMode == Standard && !java:noJavaProjects",
"group": "navigation@30"
},
Expand All @@ -423,14 +424,14 @@
"group": "overflow_10@20"
},
{
"command": "java.project.build.workspace",
"command": "java.project.clean.workspace",
"when": "view == javaProjectExplorer && java:serverMode == Standard && !java:noJavaProjects",
"group": "overflow_20@10"
},
{
"command": "java.project.clean.workspace",
"command": "java.view.package.refresh",
"when": "view == javaProjectExplorer && java:serverMode == Standard && !java:noJavaProjects",
"group": "overflow_20@20"
"group": "overflow_50@10"
}
],
"view/item/context": [
Expand Down
2 changes: 1 addition & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"contributes.commands.java.project.addLibraryFolders": "Add Library Folders to Project Classpath...",
"contributes.commands.java.project.removeLibrary": "Remove from Project Classpath",
"contributes.commands.java.view.package.refresh": "Refresh",
"contributes.commands.java.project.build.workspace": "Build Workspace",
"contributes.commands.java.project.build.workspace": "Rebuild Workspace",
"contributes.commands.java.project.clean.workspace": "Clean Workspace",
"contributes.commands.java.project.update": "Update Project",
"contributes.commands.java.view.package.revealInProjectExplorer": "Reveal in Java Project Explorer",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"contributes.commands.java.project.addLibraryFolders": "添加文件夹至项目 Classpath...",
"contributes.commands.java.project.removeLibrary": "从项目 Classpath 中移除",
"contributes.commands.java.view.package.refresh": "刷新",
"contributes.commands.java.project.build.workspace": "构建工作空间",
"contributes.commands.java.project.build.workspace": "重新构建工作空间",
"contributes.commands.java.project.clean.workspace": "清理工作空间",
"contributes.commands.java.project.update": "更新项目",
"contributes.commands.java.view.package.revealInProjectExplorer": "在 Java 项目视图中显示",
Expand Down
2 changes: 1 addition & 1 deletion src/views/dependencyDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class DependencyDataProvider implements TreeDataProvider<ExplorerNode> {
context.subscriptions.push(instrumentOperationAsVsCodeCommand(Commands.VIEW_PACKAGE_OUTLINE, (uri, range) =>
window.showTextDocument(Uri.parse(uri), { selection: range })));
context.subscriptions.push(instrumentOperationAsVsCodeCommand(Commands.JAVA_PROJECT_BUILD_WORKSPACE, () =>
commands.executeCommand(Commands.JAVA_BUILD_WORKSPACE)));
commands.executeCommand(Commands.JAVA_BUILD_WORKSPACE, true /*fullCompile*/)));
context.subscriptions.push(instrumentOperationAsVsCodeCommand(Commands.JAVA_PROJECT_CLEAN_WORKSPACE, () =>
commands.executeCommand(Commands.JAVA_CLEAN_WORKSPACE)));
context.subscriptions.push(instrumentOperationAsVsCodeCommand(Commands.JAVA_PROJECT_UPDATE, async (node: INodeData) => {
Expand Down