Skip to content

Commit 079d4f8

Browse files
authored
Add static loc strings to package.nls.json (#6117)
1 parent 898249f commit 079d4f8

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4349,12 +4349,12 @@
43494349
"properties": {
43504350
"projectPath": {
43514351
"type": "string",
4352-
"description": "Path to the .csproj file.",
4352+
"description": "%debuggers.dotnet.launch.projectPath.description%",
43534353
"default": "${workspaceFolder}/<insert-project-name-here>.csproj"
43544354
},
43554355
"launchConfigurationId": {
43564356
"type": "string",
4357-
"description": "The launch configuration id to use. Empty string will use the current active configuration."
4357+
"description": "%debuggers.dotnet.launch.launchConfigurationId.description%"
43584358
}
43594359
}
43604360
}
@@ -4984,7 +4984,7 @@
49844984
"viewsWelcome": [
49854985
{
49864986
"view": "debug",
4987-
"contents": "[Generate C# Assets for Build and Debug](command:dotnet.generateAssets)\n\nTo learn more about launch.json, see [Configuring launch.json for C# debugging](https://aka.ms/VSCode-CS-LaunchJson).",
4987+
"contents": "%viewsWelcome.debug.contents%",
49884988
"when": "debugStartLanguage == csharp && !dotnet.debug.serviceBrokerAvailable"
49894989
}
49904990
]

package.nls.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"configuration.dotnet.defaultSolution.description": "The path of the default solution to be opened in the workspace, or set to 'disable' to skip it.",
3+
"debuggers.dotnet.launch.projectPath.description": "Path to the .csproj file.",
4+
"debuggers.dotnet.launch.launchConfigurationId.description": "The launch configuration id to use. Empty string will use the current active configuration.",
5+
"viewsWelcome.debug.contents": {
6+
"message": "[Generate C# Assets for Build and Debug](command:dotnet.generateAssets)\n\nTo learn more about launch.json, see [Configuring launch.json for C# debugging](https://aka.ms/VSCode-CS-LaunchJson).",
7+
"comments": [
8+
"Do not translate 'command:dotnet.generateAssets' and 'https://aka.ms/VSCode-CS-LaunchJson'"
9+
]
10+
},
311
"generateOptionsSchema.program.markdownDescription": {
412
"message": "Path to the application dll or .NET Core host executable to launch.\nThis property normally takes the form: `${workspaceFolder}/bin/Debug/(target-framework)/(project-name.dll)`\n\nExample: `${workspaceFolder}/bin/Debug/netcoreapp1.1/MyProject.dll`\n\nWhere:\n`(target-framework)` is the framework that the debugged project is being built for. This is normally found in the project file as the `TargetFramework` property.\n\n`(project-name.dll)` is the name of debugged project's build output dll. This is normally the same as the project file name but with a '.dll' extension.",
513
"comments": [

src/tools/generateOptionsSchema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,13 @@ export function GenerateOptionsSchema() {
303303
keyToLocString
304304
);
305305

306+
// Override existing package.nls.json key/values with ones from OptionsSchema.
307+
Object.assign(packageNlsJSON, keyToLocString);
308+
306309
writeToFile(packageNlsJSON, 'package.nls.json');
307310

308311
// #endregion
309312

310-
// Override existing package.nls.json key/values with ones from OptionsSchema.
311-
Object.assign(packageNlsJSON, keyToLocString);
312-
313313
// Hard Code adding in configurationAttributes launch and attach.
314314
// .NET Core
315315
packageJSON.contributes.debuggers[0].configurationAttributes.launch = schemaJSON.definitions.LaunchOptions;

0 commit comments

Comments
 (0)