Skip to content

Commit 718e5ad

Browse files
authored
chore: Deprecate document of askUser (#575)
1 parent 2f66bb1 commit 718e5ad

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ You can tell that the glob pattern is supported. And here's more - you can incl
6969
| `java.dependency.autoRefresh` | Specify whether to automatically sync the change from editor to the Java Projects explorer. | `true` |
7070
| `java.dependency.refreshDelay` | The delay time (ms) the auto refresh is invoked when changes are detected. | `2000ms` |
7171
| `java.dependency.packagePresentation` | Specify how to display the package. Supported values are: `flat`, `hierarchical`.| `flat` |
72-
| `java.project.exportJar.targetPath` | The output path of export jar. When this setting is **empty** or equals `askUser`, a file explorer will pop up to let the user select the output location.| `${workspaceFolder}/${workspaceFolderBasename}.jar` |
72+
| `java.project.exportJar.targetPath` | The output path of export jar. When this setting is **empty** , a file explorer will pop up to let the user select the output location.| `${workspaceFolder}/${workspaceFolderBasename}.jar` |
7373

7474
## Contribution
7575

package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,16 @@
210210
{
211211
"enum": [
212212
"${workspaceFolder}/${workspaceFolderBasename}.jar",
213-
"askUser",
214213
""
215214
],
216215
"enumDescriptions": [
217216
"%configuration.java.project.exportJar.targetPath.workspaceFolder%",
218-
"%configuration.java.project.exportJar.targetPath.askUser%",
219-
"%configuration.java.project.exportJar.targetPath.askUser%"
217+
"%configuration.java.project.exportJar.targetPath.select%"
220218
]
221219
},
222220
"string"
223221
],
224-
"markdownDescription": "%configuration.java.project.exportJar.targetPath%",
222+
"markdownDescription": "%configuration.java.project.exportJar.targetPath.customization%",
225223
"default": "${workspaceFolder}/${workspaceFolderBasename}.jar"
226224
}
227225
}
@@ -561,7 +559,22 @@
561559
},
562560
"targetPath": {
563561
"type": "string",
564-
"description": "%taskDefinitions.java.project.exportJar.targetPath%"
562+
"anyOf": [
563+
{
564+
"type": "string"
565+
},
566+
{
567+
"enum": [
568+
"${workspaceFolder}/${workspaceFolderBasename}.jar",
569+
""
570+
],
571+
"enumDescriptions": [
572+
"%configuration.java.project.exportJar.targetPath.workspaceFolder%",
573+
"%configuration.java.project.exportJar.targetPath.select%"
574+
]
575+
}
576+
],
577+
"description": "%configuration.java.project.exportJar.targetPath.customization%"
565578
},
566579
"elements": {
567580
"type": "array",

package.nls.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@
2626
"configuration.java.dependency.autoRefresh": "Synchronize Java Projects explorer with changes",
2727
"configuration.java.dependency.refreshDelay": "The delay time (ms) the auto refresh is invoked when changes are detected",
2828
"configuration.java.dependency.packagePresentation": "Package presentation mode: flat or hierarchical",
29-
"configuration.java.project.exportJar.targetPath": "Specifies the output path of export jar. The default value is `${workspaceFolder}/${workspaceFolderBasename}.jar`. To select the output location manually each time exporting the jar file, simply leave it empty or set it to `askUser`.",
29+
"configuration.java.project.exportJar.targetPath.customization": "The output path of the exported jar. Leave it empty if you want to manually pick the output location.",
3030
"configuration.java.project.exportJar.targetPath.workspaceFolder": "Export the jar file into the workspace folder. Its name is the same as the folder's.",
31-
"configuration.java.project.exportJar.targetPath.askUser": "You will select the output location manually each time exporting the jar file.",
31+
"configuration.java.project.exportJar.targetPath.select": "Select output location manually when exporting the jar file.",
3232
"taskDefinitions.java.project.exportJar.label": "The label of export jar task.",
3333
"taskDefinitions.java.project.exportJar.elements": "The content list of the exported jar.",
3434
"taskDefinitions.java.project.exportJar.mainClass": "The main class in the manifest of the exported jar.",
35-
"taskDefinitions.java.project.exportJar.targetPath": "The output path of the exported jar. This will override configuration.java.project.exportJar.targetPath.",
3635
"taskDefinitions.java.project.exportJar.compileOutput": "The folders containing output class files in the runtime scope.",
3736
"taskDefinitions.java.project.exportJar.testCompileOutput": "The folders containing output class files in the test scope.",
3837
"taskDefinitions.java.project.exportJar.dependencies": "The artifact dependencies in the runtime scope.",

package.nls.zh.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@
2626
"configuration.java.dependency.autoRefresh": "在 Java 项目管理器中自动同步修改",
2727
"configuration.java.dependency.refreshDelay": "控制 Java 项目管理器刷新的延迟时间 (毫秒)",
2828
"configuration.java.dependency.packagePresentation": "Java 包显示方式: 平行显示或者分层显示",
29-
"configuration.java.project.exportJar.targetPath": "导出 Jar 文件的默认路径,默认值为 `${workspaceFolder}/${workspaceFolderBasename}.jar` 。您也可以将此选项置为空串或 `askUser` 来手动选择 jar 文件的导出目录",
29+
"configuration.java.project.exportJar.targetPath.customization": "导出 Jar 文件的路径。您可以将此选项置为空串来手动选择 jar 文件的导出路径",
3030
"configuration.java.project.exportJar.targetPath.workspaceFolder": "导出 Jar 文件到工作空间文件夹下。Jar 文件的名称和工作空间文件夹的名称相同。",
31-
"configuration.java.project.exportJar.targetPath.askUser": "您将在每次导出 jar 文件时手动选择输出目录。",
31+
"configuration.java.project.exportJar.targetPath.select": "在导出 Jar 文件时手动选择输出目录。",
3232
"taskDefinitions.java.project.exportJar.label": "导出 Jar 任务的名称。",
3333
"taskDefinitions.java.project.exportJar.elements": "导出 Jar 文件的内容列表。",
3434
"taskDefinitions.java.project.exportJar.mainClass": "导出 Jar 文件的 main 函数所在的类。",
35-
"taskDefinitions.java.project.exportJar.targetPath": "导出 Jar 文件的输出路径。将会覆盖配置项: configuration.java.project.exportJar.targetPath 的值。",
3635
"taskDefinitions.java.project.exportJar.compileOutput": "在 runtime scope 内包含输出的 class 文件的文件夹。",
3736
"taskDefinitions.java.project.exportJar.testCompileOutput": "在 test scope 内包含输出的 class 文件的文件夹。",
3837
"taskDefinitions.java.project.exportJar.dependencies": "在 runtime scope 内的依赖。",

0 commit comments

Comments
 (0)