diff --git a/Extension/src/LanguageServer/extension.ts b/Extension/src/LanguageServer/extension.ts index 67077b2ba0..bb30b4927a 100644 --- a/Extension/src/LanguageServer/extension.ts +++ b/Extension/src/LanguageServer/extension.ts @@ -375,7 +375,7 @@ function onInterval(): void { /** * registered commands */ -export function registerCommands(enabled: boolean, isRelatedFilesApiEnabled: boolean = false): void { +export function registerCommands(enabled: boolean, isRelatedFilesApiEnabled: boolean): void { commandDisposables.forEach(d => d.dispose()); commandDisposables.length = 0; commandDisposables.push(vscode.commands.registerCommand('C_Cpp.SwitchHeaderSource', enabled ? onSwitchHeaderSource : onDisabledCommand)); diff --git a/Extension/src/main.ts b/Extension/src/main.ts index 7379235277..fd6bacb89e 100644 --- a/Extension/src/main.ts +++ b/Extension/src/main.ts @@ -146,7 +146,8 @@ export async function activate(context: vscode.ExtensionContext): Promise