Skip to content

Commit 9a0e347

Browse files
authored
Merge pull request #6136 from Cosifne/dev/shech/localizeConfiguration1
Localize Roslyn options
2 parents 29620d9 + 83b0207 commit 9a0e347

File tree

2 files changed

+84
-42
lines changed

2 files changed

+84
-42
lines changed

package.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,18 +1116,18 @@
11161116
"dotnet.dotnetPath": {
11171117
"type": "string",
11181118
"scope": "machine-overridable",
1119-
"description": "Specified the path to a dotnet installation to use instead of the default system one. This only influences the dotnet installation to use for hosting the language server itself. Example: \"/home/username/mycustomdotnetdirectory\"."
1119+
"description": "%configuration.dotnet.dotnetPath%"
11201120
},
11211121
"dotnet.server.path": {
11221122
"type": "string",
11231123
"scope": "machine-overridable",
1124-
"description": "Specifies the absolute path to the server (LSP or O#) executable. When left empty the version pinned to the C# Extension is used."
1124+
"description": "%configuration.dotnet.server.path%"
11251125
},
11261126
"dotnet.server.waitForDebugger": {
11271127
"type": "boolean",
11281128
"scope": "machine-overridable",
11291129
"default": false,
1130-
"description": "Passes the --debug flag when launching the server to allow a debugger to be attached."
1130+
"description": "%configuration.dotnet.server.waitForDebugger%"
11311131
},
11321132
"dotnet.server.trace": {
11331133
"scope": "window",
@@ -1142,7 +1142,7 @@
11421142
"None"
11431143
],
11441144
"default": "Information",
1145-
"description": "Sets the logging level for the language server"
1145+
"description": "%configuration.dotnet.server.trace%"
11461146
},
11471147
"dotnet.server.extensionPaths": {
11481148
"scope": "machine-overridable",
@@ -1154,7 +1154,7 @@
11541154
"type": "string"
11551155
},
11561156
"default": null,
1157-
"description": "Override for path to langauge server --extension arguments."
1157+
"description": "%configuration.dotnet.server.extensionPaths%"
11581158
},
11591159
"dotnet.implementType.insertionBehavior": {
11601160
"type": "string",
@@ -1164,10 +1164,10 @@
11641164
],
11651165
"default": "withOtherMembersOfTheSameKind",
11661166
"enumDescriptions": [
1167-
"Place them with other members of the same kind.",
1168-
"Place them at the end."
1167+
"%configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind%",
1168+
"%configuration.dotnet.implementType.insertionBehavior.atTheEnd%"
11691169
],
1170-
"description": "The insertion location of properties, events, and methods When implement interface or abstract class.",
1170+
"description": "%configuration.dotnet.implementType.insertionBehavior%",
11711171
"order": 10
11721172
},
11731173
"dotnet.implementType.propertyGenerationBehavior": {
@@ -1178,38 +1178,38 @@
11781178
],
11791179
"default": "preferThrowingProperties",
11801180
"enumDescriptions": [
1181-
"Prefer throwing properties.",
1182-
"Prefer auto properties."
1181+
"%configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties%",
1182+
"%configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties%"
11831183
],
1184-
"description": "Generation behavior of properties when implement interface or abstract class.",
1184+
"description": "%configuration.dotnet.implementType.propertyGenerationBehavior%",
11851185
"order": 10
11861186
},
11871187
"dotnet.codeLens.enableReferencesCodeLens": {
11881188
"type": "boolean",
11891189
"default": true,
1190-
"description": "Specifies whether the references CodeLens should be shown."
1190+
"description": "%configuration.dotnet.codeLens.enableReferencesCodeLens%"
11911191
},
11921192
"dotnet.codeLens.enableTestsCodeLens": {
11931193
"type": "boolean",
11941194
"default": true,
1195-
"description": "Specifies whether the run and debug test CodeLens should be shown."
1195+
"description": "%configuration.dotnet.codeLens.enableTestsCodeLens%"
11961196
},
11971197
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": {
11981198
"type": "boolean",
11991199
"default": true,
1200-
"description": "Enables support for showing unimported types and unimported extension methods in completion lists. When committed, the appropriate using directive will be added at the top of the current file.",
1200+
"description": "%configuration.dotnet.completion.showCompletionItemsFromUnimportedNamespaces%",
12011201
"order": 20
12021202
},
12031203
"dotnet.completion.showNameCompletionSuggestions": {
12041204
"type": "boolean",
12051205
"default": "true",
1206-
"description": "Perform automatic object name completion for the members that you have recently selected.",
1206+
"description": "%configuration.dotnet.completion.showNameCompletionSuggestions%",
12071207
"order": 20
12081208
},
12091209
"dotnet.completion.provideRegexCompletions": {
12101210
"type": "boolean",
12111211
"default": "true",
1212-
"description": "Show regular expressions in completion list.",
1212+
"description": "%configuration.dotnet.completion.provideRegexCompletions%",
12131213
"order": 20
12141214
},
12151215
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": {
@@ -1221,11 +1221,11 @@
12211221
],
12221222
"default": "openFiles",
12231223
"enumDescriptions": [
1224-
"Open documents",
1225-
"Entire solution",
1226-
"None"
1224+
"%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.openFiles%",
1225+
"%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.fullSolution%",
1226+
"%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.none%"
12271227
],
1228-
"description": "Run background code analysis for:",
1228+
"description": "%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope%",
12291229
"order": 30
12301230
},
12311231
"dotnet.backgroundAnalysis.compilerDiagnosticsScope": {
@@ -1237,118 +1237,118 @@
12371237
],
12381238
"default": "openFiles",
12391239
"enumDescriptions": [
1240-
"Open documents",
1241-
"Entire solution",
1242-
"None"
1240+
"%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.openFiles%",
1241+
"%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.fullSolution%",
1242+
"%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.none%"
12431243
],
1244-
"description": "Show compiler errors and warnings for:",
1244+
"description": "%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope%",
12451245
"order": 30
12461246
},
12471247
"dotnet.highlighting.highlightRelatedRegexComponents": {
12481248
"type": "boolean",
12491249
"default": "true",
1250-
"description": "Highlight related regular expression components under cursor.",
1250+
"description": "%configuration.dotnet.highlighting.highlightRelatedRegexComponents%",
12511251
"order": 40
12521252
},
12531253
"dotnet.highlighting.highlightRelatedJsonComponents": {
12541254
"type": "boolean",
12551255
"default": "true",
1256-
"description": "Highlight related JSON components under cursor.",
1256+
"description": "%configuration.dotnet.highlighting.highlightRelatedJsonComponents%",
12571257
"order": 40
12581258
},
12591259
"csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": {
12601260
"type": "boolean",
12611261
"default": false,
1262-
"description": "Show hints for implicit object creation",
1262+
"description": "%configuration.csharp.inlayHints.enableInlayHintsForImplicitObjectCreation%",
12631263
"order": 50
12641264
},
12651265
"csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": {
12661266
"type": "boolean",
12671267
"default": false,
1268-
"description": "Show hints for variables with inferred types",
1268+
"description": "%configuration.csharp.inlayHints.enableInlayHintsForImplicitVariableTypes%",
12691269
"order": 50
12701270
},
12711271
"csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": {
12721272
"type": "boolean",
12731273
"default": false,
1274-
"description": "Show hints for lambda parameter types",
1274+
"description": "%configuration.csharp.inlayHints.enableInlayHintsForLambdaParameterTypes%",
12751275
"order": 50
12761276
},
12771277
"csharp.inlayHints.enableInlayHintsForTypes": {
12781278
"type": "boolean",
12791279
"default": false,
1280-
"description": "Display inline type hints",
1280+
"description": "%configuration.csharp.inlayHints.enableInlayHintsForTypes%",
12811281
"order": 50
12821282
},
12831283
"dotnet.inlayHints.enableInlayHintsForIndexerParameters": {
12841284
"type": "boolean",
12851285
"default": false,
1286-
"description": "Show hints for indexers",
1286+
"description": "%configuration.csharp.inlayHints.enableInlayHintsForIndexerParameters%",
12871287
"order": 50
12881288
},
12891289
"dotnet.inlayHints.enableInlayHintsForLiteralParameters": {
12901290
"type": "boolean",
12911291
"default": false,
1292-
"description": "Show hints for literals",
1292+
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters%",
12931293
"order": 50
12941294
},
12951295
"dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": {
12961296
"type": "boolean",
12971297
"default": false,
1298-
"description": "Show hints for 'new' expressions",
1298+
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters%",
12991299
"order": 50
13001300
},
13011301
"dotnet.inlayHints.enableInlayHintsForOtherParameters": {
13021302
"type": "boolean",
13031303
"default": false,
1304-
"description": "Show hints for everything else",
1304+
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters%",
13051305
"order": 50
13061306
},
13071307
"dotnet.inlayHints.enableInlayHintsForParameters": {
13081308
"type": "boolean",
13091309
"default": false,
1310-
"description": "Display inline parameter name hints",
1310+
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForParameters%",
13111311
"order": 50
13121312
},
13131313
"dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix": {
13141314
"type": "boolean",
13151315
"default": false,
1316-
"description": "Suppress hints when parameter names differ only by suffix",
1316+
"description": "%configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix%",
13171317
"order": 50
13181318
},
13191319
"dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName": {
13201320
"type": "boolean",
13211321
"default": false,
1322-
"description": "Suppress hints when argument matches parameter name",
1322+
"description": "%configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName%",
13231323
"order": 50
13241324
},
13251325
"dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent": {
13261326
"type": "boolean",
13271327
"default": false,
1328-
"description": "Suppress hints when parameter name matches the method's intent",
1328+
"description": "%configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent%",
13291329
"order": 50
13301330
},
13311331
"dotnet.navigation.navigateToDecompiledSources": {
13321332
"type": "boolean",
13331333
"default": "true",
1334-
"description": "Enable navigation to decomplied sources.",
1334+
"description": "%configuration.dotnet.navigation.navigateToDecompiledSources%",
13351335
"order": 60
13361336
},
13371337
"dotnet.quickInfo.showRemarksInQuickInfo": {
13381338
"type": "boolean",
13391339
"default": "true",
1340-
"description": "Show remarks information when display symbol.",
1340+
"description": "%configuration.dotnet.quickInfo.showRemarksInQuickInfo%",
13411341
"order": 70
13421342
},
13431343
"dotnet.symbolSearch.searchReferenceAssemblies": {
13441344
"type": "boolean",
13451345
"default": true,
1346-
"description": "Search symbols in reference assemblies. It affects features requires symbol searching, such as add imports.",
1346+
"description": "%configuration.dotnet.symbolSearch.searchReferenceAssemblies%",
13471347
"order": 80
13481348
},
13491349
"dotnet.unitTestDebuggingOptions": {
13501350
"type": "object",
1351-
"description": "Options to use with the debugger when launching for unit test debugging.",
1351+
"description": "%configuration.dotnet.unitTestDebuggingOptions%",
13521352
"default": {},
13531353
"properties": {
13541354
"sourceFileMap": {

package.nls.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
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+
"configuration.dotnet.dotnetPath": "Specified the path to a dotnet installation to use instead of the default system one. This only influences the dotnet installation to use for hosting the language server itself. Example: \"/home/username/mycustomdotnetdirectory\".",
4+
"configuration.dotnet.server.path": "Specifies the absolute path to the server (LSP or O#) executable. When left empty the version pinned to the C# Extension is used.",
5+
"configuration.dotnet.server.waitForDebugger": "Passes the --debug flag when launching the server to allow a debugger to be attached.",
6+
"configuration.dotnet.server.trace": "Sets the logging level for the language server",
7+
"configuration.dotnet.server.extensionPaths": "Override for path to language server --extension arguments",
8+
"configuration.dotnet.implementType.insertionBehavior": "The insertion location of properties, events, and methods When implement interface or abstract class.",
9+
"configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Place them with other members of the same kind.",
10+
"configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Place them at the end.",
11+
"configuration.dotnet.implementType.propertyGenerationBehavior": "Generation behavior of properties when implement interface or abstract class.",
12+
"configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Prefer throwing properties.",
13+
"configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Prefer auto properties.",
14+
"configuration.dotnet.codeLens.enableReferencesCodeLens": "Specifies whether the references CodeLens should be shown.",
15+
"configuration.dotnet.codeLens.enableTestsCodeLens": "Specifies whether the run and debug test CodeLens should be shown.",
16+
"configuration.dotnet.completion.showCompletionItemsFromUnimportedNamespaces": "Enables support for showing unimported types and unimported extension methods in completion lists. When committed, the appropriate using directive will be added at the top of the current file.",
17+
"configuration.dotnet.completion.showNameCompletionSuggestions": "Perform automatic object name completion for the members that you have recently selected.",
18+
"configuration.dotnet.completion.provideRegexCompletions": "Show regular expressions in completion list.",
19+
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope": "Run background code analysis for:",
20+
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.openFiles": "Open documents",
21+
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.fullSolution": "Entire solution",
22+
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.none": "None",
23+
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope": "Show compiler errors and warnings for:",
24+
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.openFiles": "Open documents",
25+
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.fullSolution": "Entire solution",
26+
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.none": "None",
27+
"configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Highlight related regular expression components under cursor.",
28+
"configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Highlight related JSON components under cursor.",
29+
"configuration.csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": "Show hints for implicit object creation",
30+
"configuration.csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": "Show hints for variables with inferred types",
31+
"configuration.csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": "Show hints for lambda parameter types",
32+
"configuration.csharp.inlayHints.enableInlayHintsForTypes": "Display inline type hints",
33+
"configuration.csharp.inlayHints.enableInlayHintsForIndexerParameters": "Show hints for indexers",
34+
"configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Show hints for literals",
35+
"configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Show hints for 'new' expressions",
36+
"configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Show hints for everything else",
37+
"configuration.dotnet.inlayHints.enableInlayHintsForParameters": "Display inline parameter name hints",
38+
"configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix": "Suppress hints when parameter names differ only by suffix",
39+
"configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName": "Suppress hints when argument matches parameter name",
40+
"configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent": "Suppress hints when parameter name matches the method's intent",
41+
"configuration.dotnet.navigation.navigateToDecompiledSources": "Enable navigation to decomplied sources.",
42+
"configuration.dotnet.quickInfo.showRemarksInQuickInfo": "Show remarks information when display symbol.",
43+
"configuration.dotnet.symbolSearch.searchReferenceAssemblies": "Search symbols in reference assemblies. It affects features requires symbol searching, such as add imports.",
44+
"configuration.dotnet.unitTestDebuggingOptions": "Options to use with the debugger when launching for unit test debugging.",
345
"debuggers.dotnet.launch.projectPath.description": "Path to the .csproj file.",
446
"debuggers.dotnet.launch.launchConfigurationId.description": "The launch configuration id to use. Empty string will use the current active configuration.",
547
"viewsWelcome.debug.contents": {

0 commit comments

Comments
 (0)