Skip to content

Commit 3ba1c23

Browse files
appdensam-mccall
authored andcommitted
Fix cpptools disabled check to be case-insensitive
1 parent df56a9a commit 3ba1c23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function activate(context: vscode.ExtensionContext) {
3636
const cppToolsConfiguration =
3737
vscode.workspace.getConfiguration('C_Cpp');
3838
const cppToolsEnabled = cppToolsConfiguration.get('intelliSenseEngine');
39-
if (cppToolsEnabled !== 'Disabled') {
39+
if (cppToolsEnabled?.toLowerCase() !== 'disabled') {
4040
vscode.window
4141
.showWarningMessage(
4242
'You have both the Microsoft C++ (cpptools) extension and ' +
@@ -46,7 +46,7 @@ export async function activate(context: vscode.ExtensionContext) {
4646
.then(selection => {
4747
if (selection == 'Disable IntelliSense') {
4848
cppToolsConfiguration.update(
49-
'intelliSenseEngine', 'Disabled',
49+
'intelliSenseEngine', 'disabled',
5050
vscode.ConfigurationTarget.Global);
5151
} else if (selection == 'Never show this warning') {
5252
vscode.workspace.getConfiguration('clangd').update(

0 commit comments

Comments
 (0)