Skip to content

Commit 14b1971

Browse files
authored
Make semantic token setting hover text localizable (#8464)
1 parent 7403096 commit 14b1971

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

Extension/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3864,72 +3864,72 @@
38643864
{
38653865
"id": "referenceType",
38663866
"superType": "class",
3867-
"description": "A C++/CLI reference type."
3867+
"description": "%c_cpp.semanticTokenTypes.referenceType.description%"
38683868
},
38693869
{
38703870
"id": "cliProperty",
38713871
"superType": "property",
3872-
"description": "A C++/CLI property."
3872+
"description": "%c_cpp.semanticTokenTypes.cliProperty.description%"
38733873
},
38743874
{
38753875
"id": "genericType",
38763876
"superType": "class",
3877-
"description": "A C++/CLI generic type."
3877+
"description": "%c_cpp.semanticTokenTypes.genericType.description%"
38783878
},
38793879
{
38803880
"id": "valueType",
38813881
"superType": "class",
3882-
"description": "A C++/CLI value type."
3882+
"description": "%c_cpp.semanticTokenTypes.valueType.description%"
38833883
},
38843884
{
38853885
"id": "templateFunction",
38863886
"superType": "function",
3887-
"description": "A template function."
3887+
"description": "%c_cpp.semanticTokenTypes.templateFunction.description%"
38883888
},
38893889
{
38903890
"id": "templateType",
38913891
"superType": "class",
3892-
"description": "A template type."
3892+
"description": "%c_cpp.semanticTokenTypes.templateType.description%"
38933893
},
38943894
{
38953895
"id": "operatorOverload",
38963896
"superType": "operator",
3897-
"description": "An overloaded operator."
3897+
"description": "%c_cpp.semanticTokenTypes.operatorOverload.description%"
38983898
},
38993899
{
39003900
"id": "memberOperatorOverload",
39013901
"superType": "operator",
3902-
"description": "An overloaded operator member function."
3902+
"description": "%c_cpp.semanticTokenTypes.memberOperatorOverload.description%"
39033903
},
39043904
{
39053905
"id": "newOperator",
39063906
"superType": "operator",
3907-
"description": "A C++ new or delete operator."
3907+
"description": "%c_cpp.semanticTokenTypes.newOperator.description%"
39083908
},
39093909
{
39103910
"id": "customLiteral",
39113911
"superType": "number",
3912-
"description": "A user-defined literal."
3912+
"description": "%c_cpp.semanticTokenTypes.customLiteral.description%"
39133913
},
39143914
{
39153915
"id": "numberLiteral",
39163916
"superType": "number",
3917-
"description": "A user-defined literal number."
3917+
"description": "%c_cpp.semanticTokenTypes.numberLiteral.description%"
39183918
},
39193919
{
39203920
"id": "stringLiteral",
39213921
"superType": "string",
3922-
"description": "A user-defined literal string."
3922+
"description": "%c_cpp.semanticTokenTypes.stringLiteral.description%"
39233923
}
39243924
],
39253925
"semanticTokenModifiers": [
39263926
{
39273927
"id": "global",
3928-
"description": "Annotates a symbol that is declared in global scope."
3928+
"description": "%c_cpp.semanticTokenModifiers.global.description%"
39293929
},
39303930
{
39313931
"id": "local",
3932-
"description": "Annotates a symbol that is declared in local scope."
3932+
"description": "%c_cpp.semanticTokenModifiers.local.description%"
39333933
}
39343934
],
39353935
"semanticTokenScopes": [

Extension/package.nls.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,5 +300,19 @@
300300
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.mode.loadOnlyIncluded.enumDescriptions": "Do not attempt to load symbols for ANY module unless it is in the 'includedModules' array, or it is included through the 'includeSymbolsNextToModules' setting.",
301301
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.excludedModules.description": "Array of modules that the debugger should NOT load symbols for. Wildcards (example: MyCompany.*.dll) are supported.\n\nThis property is ignored unless 'mode' is set to 'loadAllButExcluded'.",
302302
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.includedModules.description": "Array of modules that the debugger should load symbols for. Wildcards (example: MyCompany.*.dll) are supported.\n\nThis property is ignored unless 'mode' is set to 'loadOnlyIncluded'.",
303-
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.includeSymbolsNextToModules.description": "If true, for any module NOT in the 'includedModules' array, the debugger will still check next to the module itself and the launching executable, but it will not check paths on the symbol search list. This option defaults to 'true'.\n\nThis property is ignored unless 'mode' is set to 'loadOnlyIncluded'."
303+
"c_cpp.debuggers.VSSymbolOptionsModuleFilter.includeSymbolsNextToModules.description": "If true, for any module NOT in the 'includedModules' array, the debugger will still check next to the module itself and the launching executable, but it will not check paths on the symbol search list. This option defaults to 'true'.\n\nThis property is ignored unless 'mode' is set to 'loadOnlyIncluded'.",
304+
"c_cpp.semanticTokenTypes.referenceType.description": "Style for C++/CLI reference types.",
305+
"c_cpp.semanticTokenTypes.cliProperty.description": "Style for C++/CLI properties.",
306+
"c_cpp.semanticTokenTypes.genericType.description": "Style for C++/CLI generic types.",
307+
"c_cpp.semanticTokenTypes.valueType.description": "Style for C++/CLI value types.",
308+
"c_cpp.semanticTokenTypes.templateFunction.description": "Style for C++ template functions.",
309+
"c_cpp.semanticTokenTypes.templateType.description": "Style for C++ template types.",
310+
"c_cpp.semanticTokenTypes.operatorOverload.description": "Style for C++ overloaded operators.",
311+
"c_cpp.semanticTokenTypes.memberOperatorOverload.description": "Style for C++ overloaded operator member functions.",
312+
"c_cpp.semanticTokenTypes.newOperator.description": "Style for C++ new or delete operators.",
313+
"c_cpp.semanticTokenTypes.customLiteral.description": "Style for C++ user-defined literals.",
314+
"c_cpp.semanticTokenTypes.numberLiteral.description": "Style for C++ user-defined literal numbers.",
315+
"c_cpp.semanticTokenTypes.stringLiteral.description": "Style for C++ user-defined literal strings.",
316+
"c_cpp.semanticTokenModifiers.global.description": "Style to use for symbols that are global.",
317+
"c_cpp.semanticTokenModifiers.local.description": "Style to use for symbols that are local."
304318
}

0 commit comments

Comments
 (0)