Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize Roslyn options #6136

Merged
merged 3 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1116,18 +1116,18 @@
"dotnet.dotnetPath": {
"type": "string",
"scope": "machine-overridable",
"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\"."
"description": "%configuration.dotnet.dotnetPath%"
},
"dotnet.server.path": {
"type": "string",
"scope": "machine-overridable",
"description": "Specifies the absolute path to the server (LSP or O#) executable. When left empty the version pinned to the C# Extension is used."
"description": "%configuration.dotnet.server.path%"
},
"dotnet.server.waitForDebugger": {
"type": "boolean",
"scope": "machine-overridable",
"default": false,
"description": "Passes the --debug flag when launching the server to allow a debugger to be attached."
"description": "%configuration.dotnet.server.waitForDebugger%"
},
"dotnet.server.trace": {
"scope": "window",
Expand All @@ -1142,7 +1142,7 @@
"None"
],
"default": "Information",
"description": "Sets the logging level for the language server"
"description": "%configuration.dotnet.server.trace%"
},
"dotnet.server.extensionPaths": {
"scope": "machine-overridable",
Expand All @@ -1154,7 +1154,7 @@
"type": "string"
},
"default": null,
"description": "Override for path to langauge server --extension arguments."
"description": "%configuration.dotnet.server.extensionPaths%"
},
"dotnet.implementType.insertionBehavior": {
"type": "string",
Expand All @@ -1164,10 +1164,10 @@
],
"default": "withOtherMembersOfTheSameKind",
"enumDescriptions": [
"Place them with other members of the same kind.",
"Place them at the end."
"%configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind%",
"%configuration.dotnet.implementType.insertionBehavior.atTheEnd%"
],
"description": "The insertion location of properties, events, and methods When implement interface or abstract class.",
"description": "%configuration.dotnet.implementType.insertionBehavior%",
"order": 10
},
"dotnet.implementType.propertyGenerationBehavior": {
Expand All @@ -1178,38 +1178,38 @@
],
"default": "preferThrowingProperties",
"enumDescriptions": [
"Prefer throwing properties.",
"Prefer auto properties."
"%configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties%",
"%configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties%"
],
"description": "Generation behavior of properties when implement interface or abstract class.",
"description": "%configuration.dotnet.implementType.propertyGenerationBehavior%",
"order": 10
},
"dotnet.codeLens.enableReferencesCodeLens": {
"type": "boolean",
"default": true,
"description": "Specifies whether the references CodeLens should be shown."
"description": "%configuration.dotnet.codeLens.enableReferencesCodeLens%"
},
"dotnet.codeLens.enableTestsCodeLens": {
"type": "boolean",
"default": true,
"description": "Specifies whether the run and debug test CodeLens should be shown."
"description": "%configuration.dotnet.codeLens.enableTestsCodeLens%"
},
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": {
"type": "boolean",
"default": true,
"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.",
"description": "%configuration.dotnet.completion.showCompletionItemsFromUnimportedNamespaces%",
"order": 20
},
"dotnet.completion.showNameCompletionSuggestions": {
"type": "boolean",
"default": "true",
"description": "Perform automatic object name completion for the members that you have recently selected.",
"description": "%configuration.dotnet.completion.showNameCompletionSuggestions%",
"order": 20
},
"dotnet.completion.provideRegexCompletions": {
"type": "boolean",
"default": "true",
"description": "Show regular expressions in completion list.",
"description": "%configuration.dotnet.completion.provideRegexCompletions%",
"order": 20
},
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": {
Expand All @@ -1221,11 +1221,11 @@
],
"default": "openFiles",
"enumDescriptions": [
"Open documents",
"Entire solution",
"None"
"%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.openFiles%",
"%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.fullSolution%",
"%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.none%"
],
"description": "Run background code analysis for:",
"description": "%configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope%",
"order": 30
},
"dotnet.backgroundAnalysis.compilerDiagnosticsScope": {
Expand All @@ -1237,118 +1237,118 @@
],
"default": "openFiles",
"enumDescriptions": [
"Open documents",
"Entire solution",
"None"
"%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.openFiles%",
"%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.fullSolution%",
"%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.none%"
],
"description": "Show compiler errors and warnings for:",
"description": "%configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope%",
"order": 30
},
"dotnet.highlighting.highlightRelatedRegexComponents": {
"type": "boolean",
"default": "true",
"description": "Highlight related regular expression components under cursor.",
"description": "%configuration.dotnet.highlighting.highlightRelatedRegexComponents%",
"order": 40
},
"dotnet.highlighting.highlightRelatedJsonComponents": {
"type": "boolean",
"default": "true",
"description": "Highlight related JSON components under cursor.",
"description": "%configuration.dotnet.highlighting.highlightRelatedJsonComponents%",
"order": 40
},
"csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": {
"type": "boolean",
"default": false,
"description": "Show hints for implicit object creation",
"description": "%configuration.csharp.inlayHints.enableInlayHintsForImplicitObjectCreation%",
"order": 50
},
"csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": {
"type": "boolean",
"default": false,
"description": "Show hints for variables with inferred types",
"description": "%configuration.csharp.inlayHints.enableInlayHintsForImplicitVariableTypes%",
"order": 50
},
"csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": {
"type": "boolean",
"default": false,
"description": "Show hints for lambda parameter types",
"description": "%configuration.csharp.inlayHints.enableInlayHintsForLambdaParameterTypes%",
"order": 50
},
"csharp.inlayHints.enableInlayHintsForTypes": {
"type": "boolean",
"default": false,
"description": "Display inline type hints",
"description": "%configuration.csharp.inlayHints.enableInlayHintsForTypes%",
"order": 50
},
"dotnet.inlayHints.enableInlayHintsForIndexerParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for indexers",
"description": "%configuration.csharp.inlayHints.enableInlayHintsForIndexerParameters%",
"order": 50
},
"dotnet.inlayHints.enableInlayHintsForLiteralParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for literals",
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters%",
"order": 50
},
"dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for 'new' expressions",
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters%",
"order": 50
},
"dotnet.inlayHints.enableInlayHintsForOtherParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for everything else",
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters%",
"order": 50
},
"dotnet.inlayHints.enableInlayHintsForParameters": {
"type": "boolean",
"default": false,
"description": "Display inline parameter name hints",
"description": "%configuration.dotnet.inlayHints.enableInlayHintsForParameters%",
"order": 50
},
"dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix": {
"type": "boolean",
"default": false,
"description": "Suppress hints when parameter names differ only by suffix",
"description": "%configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix%",
"order": 50
},
"dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName": {
"type": "boolean",
"default": false,
"description": "Suppress hints when argument matches parameter name",
"description": "%configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName%",
"order": 50
},
"dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent": {
"type": "boolean",
"default": false,
"description": "Suppress hints when parameter name matches the method's intent",
"description": "%configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent%",
"order": 50
},
"dotnet.navigation.navigateToDecompiledSources": {
"type": "boolean",
"default": "true",
"description": "Enable navigation to decomplied sources.",
"description": "%configuration.dotnet.navigation.navigateToDecompiledSources%",
"order": 60
},
"dotnet.quickInfo.showRemarksInQuickInfo": {
"type": "boolean",
"default": "true",
"description": "Show remarks information when display symbol.",
"description": "%configuration.dotnet.quickInfo.showRemarksInQuickInfo%",
"order": 70
},
"dotnet.symbolSearch.searchReferenceAssemblies": {
"type": "boolean",
"default": true,
"description": "Search symbols in reference assemblies. It affects features requires symbol searching, such as add imports.",
"description": "%configuration.dotnet.symbolSearch.searchReferenceAssemblies%",
"order": 80
},
"dotnet.unitTestDebuggingOptions": {
"type": "object",
"description": "Options to use with the debugger when launching for unit test debugging.",
"description": "%configuration.debuggers.dotnet.launch.projectPath.description%",
"default": {},
"properties": {
"sourceFileMap": {
Expand Down
43 changes: 43 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
{
"configuration.dotnet.defaultSolution.description": "The path of the default solution to be opened in the workspace, or set to 'disable' to skip it.",
"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\".",
"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.",
"configuration.dotnet.server.waitForDebugger": "Passes the --debug flag when launching the server to allow a debugger to be attached.",
"configuration.dotnet.server.trace": "Sets the logging level for the language server",
"configuration.dotnet.server.extensionPaths": "Override for path to language server --extension arguments",
"configuration.dotnet.implementType.insertionBehavior": "The insertion location of properties, events, and methods When implement interface or abstract class.",
"configuration.dotnet.implementType.insertionBehavior.withOtherMembersOfTheSameKind": "Place them with other members of the same kind.",
"configuration.dotnet.implementType.insertionBehavior.atTheEnd": "Place them at the end.",
"configuration.dotnet.implementType.propertyGenerationBehavior": "Generation behavior of properties when implement interface or abstract class.",
"configuration.dotnet.implementType.propertyGenerationBehavior.preferThrowingProperties": "Prefer throwing properties.",
"configuration.dotnet.implementType.propertyGenerationBehavior.preferAutoProperties": "Prefer auto properties.",
"configuration.dotnet.codeLens.enableReferencesCodeLens": "Specifies whether the references CodeLens should be shown.",
"configuration.dotnet.codeLens.enableTestsCodeLens": "Specifies whether the run and debug test CodeLens should be shown.",
"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.",
"configuration.dotnet.completion.showNameCompletionSuggestions": "Perform automatic object name completion for the members that you have recently selected.",
"configuration.dotnet.completion.provideRegexCompletions": "Show regular expressions in completion list.",
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope": "Run background code analysis for:",
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.openFiles": "Open documents",
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.fullSolution": "Entire solution",
"configuration.dotnet.backgroundAnalysis.analyzerDiagnosticsScope.none": "None",
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope": "Show compiler errors and warnings for:",
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.openFiles": "Open documents",
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.fullSolution": "Entire solution",
"configuration.dotnet.backgroundAnalysis.compilerDiagnosticsScope.none": "None",
"configuration.dotnet.highlighting.highlightRelatedRegexComponents": "Highlight related regular expression components under cursor.",
"configuration.dotnet.highlighting.highlightRelatedJsonComponents": "Highlight related JSON components under cursor.",
"configuration.csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": "Show hints for implicit object creation",
"configuration.csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": "Show hints for variables with inferred types",
"configuration.csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": "Show hints for lambda parameter types",
"configuration.csharp.inlayHints.enableInlayHintsForTypes": "Display inline type hints",
"configuration.csharp.inlayHints.enableInlayHintsForIndexerParameters": "Show hints for indexers",
"configuration.dotnet.inlayHints.enableInlayHintsForLiteralParameters": "Show hints for literals",
"configuration.dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": "Show hints for 'new' expressions",
"configuration.dotnet.inlayHints.enableInlayHintsForOtherParameters": "Show hints for everything else",
"configuration.dotnet.inlayHints.enableInlayHintsForParameters": "Display inline parameter name hints",
"configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix": "Suppress hints when parameter names differ only by suffix",
"configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName": "Suppress hints when argument matches parameter name",
"configuration.dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent": "Suppress hints when parameter name matches the method's intent",
"configuration.dotnet.navigation.navigateToDecompiledSources": "Enable navigation to decomplied sources.",
"configuration.dotnet.quickInfo.showRemarksInQuickInfo": "Show remarks information when display symbol.",
"configuration.dotnet.symbolSearch.searchReferenceAssemblies": "Search symbols in reference assemblies. It affects features requires symbol searching, such as add imports.",
"configuration.dotnet.unitTestDebuggingOptions": "Search symbols in reference assemblies. It affects features requires symbol searching, such as add imports.",
"configuration.debuggers.dotnet.launch.projectPath.description": "Options to use with the debugger when launching for unit test debugging.",
"debuggers.dotnet.launch.projectPath.description": "Path to the .csproj file.",
"debuggers.dotnet.launch.launchConfigurationId.description": "The launch configuration id to use. Empty string will use the current active configuration.",
"viewsWelcome.debug.contents": {
Expand Down