Skip to content

Commit 4e031b7

Browse files
committed
Localize configuration descriptions and titles
1 parent a18a0ac commit 4e031b7

File tree

2 files changed

+97
-43
lines changed

2 files changed

+97
-43
lines changed

package.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,19 +1366,19 @@
13661366
"coreclr",
13671367
"clr"
13681368
],
1369-
"description": "Type type of code to debug. Can be either 'coreclr' for .NET Core debugging, or 'clr' for Desktop .NET Framework. 'clr' only works on Windows as the Desktop framework is Windows-only.",
1369+
"markdownDescription": "%generateOptionsSchema.type.markdownDescription%",
13701370
"default": "coreclr"
13711371
},
13721372
"debugServer": {
13731373
"type": "number",
1374-
"description": "For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode",
1374+
"description": "%generateOptionsSchema.debugServer.description%",
13751375
"default": 4711
13761376
}
13771377
}
13781378
},
13791379
"dotnet.unitTests.runSettingsPath": {
13801380
"type": "string",
1381-
"description": "Path to the .runsettings file which should be used when running unit tests. (Previously `omnisharp.testRunSettings`)"
1381+
"markdownDescription": "%configuration.dotnet.unitTests.runSettingsPath.markdownDescription%"
13821382
}
13831383
}
13841384
},
@@ -1477,7 +1477,7 @@
14771477
"scope": "machine-overridable",
14781478
"type": "string",
14791479
"default": null,
1480-
"description": "Sets a path where MSBuild binary logs are written to when loading projects, to help diagnose loading errors."
1480+
"description": "%configuration.dotnet.projects.binaryLogPath%"
14811481
},
14821482
"dotnet.projects.enableAutomaticRestore": {
14831483
"type": "boolean",
@@ -1529,90 +1529,90 @@
15291529
"dotnet.server.useOmnisharp": {
15301530
"type": "boolean",
15311531
"default": false,
1532-
"description": "Switches to use the Omnisharp server for language features when enabled (requires restart). This option will not be honored with C# Dev Kit installed.",
1532+
"description": "%configuration.omnisharp.dotnet.server.useOmnisharp%",
15331533
"order": 0
15341534
},
15351535
"csharp.format.enable": {
15361536
"type": "boolean",
15371537
"default": true,
1538-
"description": "Enable/disable default C# formatter (requires restart)."
1538+
"description": "%configuration.omnisharp.csharp.format.enable%"
15391539
},
15401540
"csharp.suppressDotnetInstallWarning": {
15411541
"type": "boolean",
15421542
"default": false,
1543-
"description": "Suppress the warning that the .NET Core SDK is not on the path."
1543+
"description": "%configuration.omnisharp.csharp.suppressDotnetInstallWarning%"
15441544
},
15451545
"csharp.suppressDotnetRestoreNotification": {
15461546
"type": "boolean",
15471547
"default": false,
1548-
"description": "Suppress the notification window to perform a 'dotnet restore' when dependencies can't be resolved."
1548+
"description": "%configuration.omnisharp.csharp.suppressDotnetRestoreNotification%"
15491549
},
15501550
"csharp.suppressProjectJsonWarning": {
15511551
"type": "boolean",
15521552
"default": false,
1553-
"description": "Suppress the warning that project.json is no longer a supported project format for .NET Core applications"
1553+
"description": "%configuration.omnisharp.csharp.suppressProjectJsonWarning%"
15541554
},
15551555
"csharp.suppressBuildAssetsNotification": {
15561556
"type": "boolean",
15571557
"default": false,
1558-
"description": "Suppress the notification window to add missing assets to build or debug the application."
1558+
"description": "%configuration.omnisharp.csharp.suppressBuildAssetsNotification%"
15591559
},
15601560
"csharp.suppressHiddenDiagnostics": {
15611561
"type": "boolean",
15621562
"default": true,
1563-
"description": "Suppress 'hidden' diagnostics (such as 'unnecessary using directives') from appearing in the editor or the Problems pane."
1563+
"description": "%configuration.omnisharp.csharp.suppressHiddenDiagnostics%"
15641564
},
15651565
"csharp.referencesCodeLens.filteredSymbols": {
15661566
"type": "array",
15671567
"items": {
15681568
"type": "string"
15691569
},
15701570
"default": [],
1571-
"description": "Array of custom symbol names for which CodeLens should be disabled."
1571+
"description": "%configuration.omnisharp.csharp.referencesCodeLens.filteredSymbols%"
15721572
},
15731573
"csharp.maxProjectFileCountForDiagnosticAnalysis": {
15741574
"type": "number",
15751575
"default": 1000,
1576-
"description": "Specifies the maximum number of files for which diagnostics are reported for the whole workspace. If this limit is exceeded, diagnostics will be shown for currently opened files only. Specify 0 or less to disable the limit completely."
1576+
"description": "%configuration.omnisharp.csharp.maxProjectFileCountForDiagnosticAnalysis%"
15771577
},
15781578
"csharp.semanticHighlighting.enabled": {
15791579
"type": "boolean",
15801580
"default": true,
1581-
"description": "Enable/disable Semantic Highlighting for C# files (Razor files currently unsupported). Defaults to false. Close open files for changes to take effect.",
1581+
"description": "%configuration.omnisharp.csharp.semanticHighlighting.enabled%",
15821582
"scope": "window"
15831583
},
15841584
"csharp.showOmnisharpLogOnError": {
15851585
"type": "boolean",
15861586
"default": true,
1587-
"description": "Shows the OmniSharp log in the Output pane when OmniSharp reports an error."
1587+
"description": "%configuration.omnisharp.csharp.showOmnisharpLogOnError%"
15881588
},
15891589
"omnisharp.useModernNet": {
15901590
"type": "boolean",
15911591
"default": true,
15921592
"scope": "window",
1593-
"title": "Use .NET 6 build of OmniSharp",
1594-
"description": "Use OmniSharp build for .NET 6. This version _does not_ support non-SDK-style .NET Framework projects, including Unity. SDK-style Framework, .NET Core, and .NET 5+ projects should see significant performance improvements."
1593+
"title": "%configuration.omnisharp.useModernNet.title%",
1594+
"description": "%configuration.omnisharp.useModernNet.description%"
15951595
},
15961596
"omnisharp.sdkPath": {
15971597
"type": "string",
15981598
"scope": "window",
1599-
"description": "Specifies the path to a .NET SDK installation to use for project loading instead of the highest version installed. Applies when \"useModernNet\" is set to true. Example: /home/username/dotnet/sdks/6.0.300."
1599+
"description": "%configuration.omnisharp.sdkPath%"
16001600
},
16011601
"omnisharp.sdkVersion": {
16021602
"type": "string",
16031603
"scope": "window",
1604-
"description": "Specifies the version of the .NET SDK to use for project loading instead of the highest version installed. Applies when \"useModernNet\" is set to true. Example: 6.0.300."
1604+
"description": "%configuration.omnisharp.sdkVersion%"
16051605
},
16061606
"omnisharp.sdkIncludePrereleases": {
16071607
"type": "boolean",
16081608
"scope": "window",
16091609
"default": true,
1610-
"description": "Specifies whether to include preview versions of the .NET SDK when determining which version to use for project loading. Applies when \"useModernNet\" is set to true."
1610+
"description": "%configuration.omnisharp.sdkIncludePrereleases%"
16111611
},
16121612
"omnisharp.monoPath": {
16131613
"type": "string",
16141614
"scope": "machine",
1615-
"description": "Specifies the path to a mono installation to use when \"useModernNet\" is set to false, instead of the default system one. Example: \"/Library/Frameworks/Mono.framework/Versions/Current\""
1615+
"description": "%configuration.omnisharp.monoPath%"
16161616
},
16171617
"omnisharp.loggingLevel": {
16181618
"type": "string",
@@ -1625,114 +1625,114 @@
16251625
"error",
16261626
"critical"
16271627
],
1628-
"description": "Specifies the level of logging output from the OmniSharp server."
1628+
"description": "%configuration.omnisharp.loggingLevel%"
16291629
},
16301630
"omnisharp.autoStart": {
16311631
"type": "boolean",
16321632
"default": true,
1633-
"description": "Specifies whether the OmniSharp server will be automatically started or not. If false, OmniSharp can be started with the 'Restart OmniSharp' command"
1633+
"description": "%configuration.omnisharp.autoStart%"
16341634
},
16351635
"omnisharp.projectFilesExcludePattern": {
16361636
"type": "string",
16371637
"default": "**/node_modules/**,**/.git/**,**/bower_components/**",
1638-
"description": "The exclude pattern used by OmniSharp to find all project files."
1638+
"description": "%configuration.omnisharp.projectFilesExcludePattern%"
16391639
},
16401640
"omnisharp.projectLoadTimeout": {
16411641
"type": "number",
16421642
"default": 60,
1643-
"description": "The time Visual Studio Code will wait for the OmniSharp server to start. Time is expressed in seconds."
1643+
"description": "%configuration.omnisharp.projectLoadTimeout%"
16441644
},
16451645
"omnisharp.maxProjectResults": {
16461646
"type": "number",
16471647
"default": 250,
1648-
"description": "The maximum number of projects to be shown in the 'Select Project' dropdown (maximum 250)."
1648+
"description": "%configuration.omnisharp.maxProjectResults%"
16491649
},
16501650
"omnisharp.useEditorFormattingSettings": {
16511651
"type": "boolean",
16521652
"default": true,
1653-
"description": "Specifes whether OmniSharp should use VS Code editor settings for C# code formatting (use of tabs, indentation size)."
1653+
"description": "%configuration.omnisharp.useEditorFormattingSettings%"
16541654
},
16551655
"omnisharp.minFindSymbolsFilterLength": {
16561656
"type": "number",
16571657
"default": 0,
1658-
"description": "The minimum number of characters to enter before 'Go to Symbol in Workspace' operation shows any results."
1658+
"description": "%configuration.omnisharp.minFindSymbolsFilterLength%"
16591659
},
16601660
"omnisharp.maxFindSymbolsItems": {
16611661
"type": "number",
16621662
"default": 1000,
1663-
"description": "The maximum number of items that 'Go to Symbol in Workspace' operation can show. The limit is applied only when a positive number is specified here."
1663+
"description": "%configuration.omnisharp.maxFindSymbolsItems%"
16641664
},
16651665
"omnisharp.disableMSBuildDiagnosticWarning": {
16661666
"type": "boolean",
16671667
"default": false,
1668-
"description": "Specifies whether notifications should be shown if OmniSharp encounters warnings or errors loading a project. Note that these warnings/errors are always emitted to the OmniSharp log"
1668+
"description": "%configuration.omnisharp.disableMSBuildDiagnosticWarning%"
16691669
},
16701670
"omnisharp.enableMsBuildLoadProjectsOnDemand": {
16711671
"type": "boolean",
16721672
"default": false,
1673-
"description": "If true, MSBuild project system will only load projects for files that were opened in the editor. This setting is useful for big C# codebases and allows for faster initialization of code navigation features only for projects that are relevant to code that is being edited. With this setting enabled OmniSharp may load fewer projects and may thus display incomplete reference lists for symbols."
1673+
"description": "%configuration.omnisharp.enableMsBuildLoadProjectsOnDemand%"
16741674
},
16751675
"omnisharp.enableEditorConfigSupport": {
16761676
"type": "boolean",
16771677
"default": true,
1678-
"description": "Enables support for reading code style, naming convention and analyzer settings from .editorconfig."
1678+
"description": "%configuration.omnisharp.enableEditorConfigSupport%"
16791679
},
16801680
"omnisharp.enableDecompilationSupport": {
16811681
"type": "boolean",
16821682
"default": false,
16831683
"scope": "machine",
1684-
"description": "Enables support for decompiling external references instead of viewing metadata."
1684+
"description": "%configuration.omnisharp.enableDecompilationSupport%"
16851685
},
16861686
"omnisharp.enableLspDriver": {
16871687
"type": "boolean",
16881688
"default": false,
1689-
"description": "Enables support for the experimental language protocol based engine (requires reload to setup bindings correctly)"
1689+
"description": "%configuration.omnisharp.enableLspDriver%"
16901690
},
16911691
"omnisharp.organizeImportsOnFormat": {
16921692
"type": "boolean",
16931693
"default": false,
1694-
"description": "Specifies whether 'using' directives should be grouped and sorted during document formatting."
1694+
"description": "%configuration.omnisharp.organizeImportsOnFormat%"
16951695
},
16961696
"omnisharp.enableAsyncCompletion": {
16971697
"type": "boolean",
16981698
"default": false,
1699-
"description": "(EXPERIMENTAL) Enables support for resolving completion edits asynchronously. This can speed up time to show the completion list, particularly override and partial method completion lists, at the cost of slight delays after inserting a completion item. Most completion items will have no noticeable impact with this feature, but typing immediately after inserting an override or partial method completion, before the insert is completed, can have unpredictable results."
1699+
"description": "%configuration.omnisharp.enableAsyncCompletion%"
17001700
},
17011701
"omnisharp.dotNetCliPaths": {
17021702
"type": "array",
17031703
"items": {
17041704
"type": "string"
17051705
},
1706-
"description": "Paths to a local download of the .NET CLI to use for running any user code.",
1706+
"description": "%configuration.omnisharp.dotNetCliPaths%",
17071707
"uniqueItems": true
17081708
},
17091709
"razor.plugin.path": {
17101710
"type": "string",
17111711
"scope": "machine",
1712-
"description": "Overrides the path to the Razor plugin dll."
1712+
"description": "%configuration.omnisharp.razor.plugin.path%"
17131713
},
17141714
"razor.devmode": {
17151715
"type": "boolean",
17161716
"default": false,
1717-
"description": "Forces the omnisharp-vscode extension to run in a mode that enables local Razor.VSCode deving."
1717+
"description": "%configuration.omnisharp.razor.devmode%"
17181718
},
17191719
"razor.format.enable": {
17201720
"type": "boolean",
17211721
"scope": "window",
17221722
"default": true,
1723-
"description": "Enable/disable default Razor formatter."
1723+
"description": "%configuration.omnisharp.razor.format.enable%"
17241724
},
17251725
"razor.format.codeBlockBraceOnNextLine": {
17261726
"type": "boolean",
17271727
"scope": "window",
17281728
"default": false,
1729-
"description": "Forces the open brace after an @code or @functions directive to be on the following line."
1729+
"description": "%configuration.omnisharp.razor.format.codeBlockBraceOnNextLine%"
17301730
},
17311731
"razor.completion.commitElementsWithSpace": {
17321732
"type": "boolean",
17331733
"scope": "window",
17341734
"default": false,
1735-
"description": "Specifies whether to commit tag helper and component elements with a space."
1735+
"description": "%configuration.omnisharp.razor.completion.commitElementsWithSpace%"
17361736
}
17371737
}
17381738
}

0 commit comments

Comments
 (0)