-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
change to camelCase for Default, Enabled, Disabled #9862
Changes from all commits
14f2cc2
66b0dbb
feae362
320d355
98bfb54
f0ecdd4
a8694b5
c2ca699
28762c4
304a336
65fcb15
3ee2640
518ea5b
46944da
f611df2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1625,16 +1625,16 @@ | |
"enum": [ | ||
"clangFormat", | ||
"vcFormat", | ||
"Default", | ||
"Disabled" | ||
"default", | ||
"disabled" | ||
], | ||
"markdownEnumDescriptions": [ | ||
"%c_cpp.configuration.formatting.clangFormat.markdownDescription%", | ||
"%c_cpp.configuration.formatting.vcFormat.markdownDescription%", | ||
"%c_cpp.configuration.formatting.Default.markdownDescription%", | ||
"%c_cpp.configuration.formatting.Disabled.markdownDescription%" | ||
], | ||
"default": "Default", | ||
"default": "default", | ||
"description": "%c_cpp.configuration.formatting.description%", | ||
"scope": "resource" | ||
}, | ||
|
@@ -2158,11 +2158,11 @@ | |
"C_Cpp.intelliSenseEngine": { | ||
"type": "string", | ||
"enum": [ | ||
"Default", | ||
"default", | ||
"Tag Parser", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about the "Tag Parser" enum? That seems inconsistent now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should it be "tagParser"? The C++ side might need updating. |
||
"Disabled" | ||
"disabled" | ||
], | ||
"default": "Default", | ||
"default": "default", | ||
"description": "%c_cpp.configuration.intelliSenseEngine.description%", | ||
"enumDescriptions": [ | ||
"%c_cpp.configuration.intelliSenseEngine.default.description%", | ||
|
@@ -2174,20 +2174,20 @@ | |
"C_Cpp.intelliSenseEngineFallback": { | ||
"type": "string", | ||
"enum": [ | ||
"Enabled", | ||
"Disabled" | ||
"enabled", | ||
"disabled" | ||
], | ||
"default": "Disabled", | ||
"default": "disabled", | ||
"markdownDescription": "%c_cpp.configuration.intelliSenseEngineFallback.markdownDescription%", | ||
"scope": "resource" | ||
}, | ||
"C_Cpp.autocomplete": { | ||
"type": "string", | ||
"enum": [ | ||
"Default", | ||
"Disabled" | ||
"default", | ||
"disabled" | ||
], | ||
"default": "Default", | ||
"default": "default", | ||
"markdownDescription": "%c_cpp.configuration.autocomplete.markdownDescription%", | ||
"enumDescriptions": [ | ||
"%c_cpp.configuration.autocomplete.default.description%", | ||
|
@@ -2198,11 +2198,11 @@ | |
"C_Cpp.errorSquiggles": { | ||
"type": "string", | ||
"enum": [ | ||
"Enabled", | ||
"Disabled", | ||
"EnabledIfIncludesResolve" | ||
"enabled", | ||
"disabled", | ||
"enabledIfIncludesResolve" | ||
], | ||
"default": "EnabledIfIncludesResolve", | ||
"default": "enabledIfIncludesResolve", | ||
"description": "%c_cpp.configuration.errorSquiggles.description%", | ||
"scope": "resource" | ||
}, | ||
|
@@ -2393,10 +2393,10 @@ | |
"C_Cpp.configurationWarnings": { | ||
"type": "string", | ||
"enum": [ | ||
"Enabled", | ||
"Disabled" | ||
"enabled", | ||
"disabled" | ||
], | ||
"default": "Enabled", | ||
"default": "enabled", | ||
"description": "%c_cpp.configuration.configurationWarnings.description%", | ||
"scope": "resource" | ||
}, | ||
|
@@ -2649,10 +2649,10 @@ | |
"C_Cpp.experimentalFeatures": { | ||
"type": "string", | ||
"enum": [ | ||
"Enabled", | ||
"Disabled" | ||
"enabled", | ||
"disabled" | ||
], | ||
"default": "Disabled", | ||
"default": "disabled", | ||
"description": "%c_cpp.configuration.experimentalFeatures.description%", | ||
"scope": "window" | ||
}, | ||
|
@@ -2675,10 +2675,10 @@ | |
"C_Cpp.enhancedColorization": { | ||
"type": "string", | ||
"enum": [ | ||
"Enabled", | ||
"Disabled" | ||
"enabled", | ||
"disabled" | ||
], | ||
"default": "Enabled", | ||
"default": "enabled", | ||
"markdownDescription": "%c_cpp.configuration.enhancedColorization.markdownDescription%", | ||
"scope": "window" | ||
}, | ||
|
@@ -2709,10 +2709,10 @@ | |
"C_Cpp.codeFolding": { | ||
"type": "string", | ||
"enum": [ | ||
"Enabled", | ||
"Disabled" | ||
"enabled", | ||
"disabled" | ||
], | ||
"default": "Enabled", | ||
"default": "enabled", | ||
"description": "%c_cpp.configuration.codeFolding.description%", | ||
"scope": "window" | ||
}, | ||
|
@@ -5103,27 +5103,27 @@ | |
"editor/context": [ | ||
{ | ||
"command": "C_Cpp.SwitchHeaderSource", | ||
"when": "config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'", | ||
"when": "config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'", | ||
"group": "custom1@1" | ||
}, | ||
{ | ||
"command": "workbench.action.gotoSymbol", | ||
"when": "config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'", | ||
"when": "config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'", | ||
"group": "custom1@2" | ||
}, | ||
{ | ||
"command": "workbench.action.showAllSymbols", | ||
"when": "config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'", | ||
"when": "config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine != 'disabled' && config.C_Cpp.intelliSenseEngine != 'Disabled' && editorLangId == 'cuda-cpp'", | ||
"group": "custom1@3" | ||
}, | ||
{ | ||
"command": "C_Cpp.RunCodeAnalysisOnActiveFile", | ||
"when": "config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cuda-cpp'", | ||
"when": "config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cuda-cpp' || config.C_Cpp.intelliSenseEngine == 'default' && editorLangId == 'cuda-cpp'", | ||
"group": "custom2@1" | ||
}, | ||
{ | ||
"command": "C_Cpp.RestartIntelliSenseForFile", | ||
"when": "config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cuda-cpp'", | ||
"when": "config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'default' && editorLangId == 'c' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'default' && editorLangId == 'cpp' || config.C_Cpp.intelliSenseEngine == 'Default' && editorLangId == 'cuda-cpp' || config.C_Cpp.intelliSenseEngine == 'default' && editorLangId == 'cuda-cpp'", | ||
"group": "custom2@2" | ||
}, | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,7 @@ export class CustomConfigurationProviderCollection { | |
} | ||
|
||
public add(provider: CustomConfigurationProvider, version: Version): boolean { | ||
if (new CppSettings(ext.getActiveClient().RootUri).intelliSenseEngine === "Disabled") { | ||
if (new CppSettings(ext.getActiveClient().RootUri).intelliSenseEngine === "disabled") { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't this need to be compared against in a case insensitive way? Perhaps there is a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alternatively, you could lower case these in the getters in Also, for setters that are simply enabled/disabled, it would be most efficient if they were converted into bools by the getters in |
||
console.warn("Language service is disabled. Provider will not be registered."); | ||
return false; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe these string for the enum descriptions should be updated too?