Skip to content

Commit f866687

Browse files
authored
Rename 'Update Project' to 'Reload Project' (#2527)
Signed-off-by: Sheng Chen <[email protected]>
1 parent cf8b8bc commit f866687

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Available commands
9191
==========================
9292
The following commands are available:
9393
- `Switch to Standard Mode`: switches the Java Language Server to `Standard` mode. This command is only available when the Java Language Server is in `LightWeight` mode.
94-
- `Java: Update Project` (`Shift+Alt+U`): is available when the editor is focused on a Maven pom.xml or a Gradle file. It forces project configuration / classpath updates (eg. dependency changes or Java compilation level), according to the project build descriptor.
94+
- `Java: Reload Project` (`Shift+Alt+U`): It forces project configuration / classpath updates (eg. dependency changes or Java compilation level), according to the project build descriptor.
9595
- `Java: Import Java Projects into Workspace`: detects and imports all the Java projects into the Java Language Server workspace.
9696
- `Java: Open Java Language Server Log File`: opens the Java Language Server log file, useful for troubleshooting problems.
9797
- `Java: Open Java Extension Log File`: opens the Java extension log file, useful for troubleshooting problems.

document/_java.notCoveredExecution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Some Maven projects use 3rd party Maven plugins to generate sources or resources
4242

4343
For example, add [a processing instruction in the pom.xml](https://www.eclipse.org/m2e/documentation/release-notes-17.html#new-syntax-for-specifying-lifecycle-mapping-metadata) like `<?m2e execute onConfiguration?>` to execute it on every project configuration update.
4444

45-
You can use quick fixes to generate the inline lifecycle mapping in pom.xml, or manually configure it in pom.xml. If it's yourself that manually configure it, you have to let VS Code update the project configuration as well. The command is `"Java: Update Project"`.
45+
You can use quick fixes to generate the inline lifecycle mapping in pom.xml, or manually configure it in pom.xml. If it's yourself that manually configure it, you have to let VS Code update the project configuration as well. The command is `"Java: Reload Project"`.
4646

4747
```xml
4848
<project>

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"java.server.mode.switch": "Switch to Standard Mode",
3-
"java.projectConfiguration.update": "Update Project",
3+
"java.projectConfiguration.update": "Reload Project",
44
"java.project.import": "Import Java Projects into Workspace",
55
"java.open.serverLog": "Open Java Language Server Log File",
66
"java.open.serverStdoutLog": "Open Java Language Server Output Log File",

package.nls.zh.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"java.server.mode.switch": "切换到标准模式",
3-
"java.projectConfiguration.update": "更新项目",
3+
"java.projectConfiguration.update": "重新加载项目",
44
"java.project.import": "将 Java 项目导入工作区",
55
"java.open.serverLog": "打开 Java 语言服务器日志文件",
66
"java.open.serverStdoutLog": "打开 Java 语言服务器输出日志文件",

src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export namespace Commands {
4040
export const MARKDOWN_API_RENDER = 'markdown.api.render';
4141

4242
/**
43-
* Update project configuration
43+
* Reload project
4444
*/
4545
export const CONFIGURATION_UPDATE = 'java.projectConfiguration.update';
4646

src/pom/pomCodeActionProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export class PomCodeActionProvider implements CodeActionProvider<CodeAction> {
2626
if (diagnostic.message?.startsWith("Plugin execution not covered by lifecycle configuration")) {
2727
const indentation = this.getNewTextIndentation(document, diagnostic);
2828
const saveAndUpdateConfigCommand: Command = {
29-
title: "Save and update project configuration",
29+
title: "Save and reload project",
3030
command: "_java.projectConfiguration.saveAndUpdate",
31-
arguments: [ document.uri ],
31+
arguments: [document.uri],
3232
};
3333

3434
const action1 = new CodeAction("Enable this execution in project configuration phase", CodeActionKind.QuickFix.append("pom"));

0 commit comments

Comments
 (0)