diff --git a/_extension/src/commands.ts b/_extension/src/commands.ts index d60192ff8e..18da6a3ca1 100644 --- a/_extension/src/commands.ts +++ b/_extension/src/commands.ts @@ -50,7 +50,7 @@ async function updateUseTsgoSetting(enable: boolean): Promise { useTsgo.globalValue !== undefined ? vscode.ConfigurationTarget.Global : undefined; } // Update the setting and restart the extension host (needed to change the state of the built-in TS extension) - await tsConfig.update("experimental.useTsgo", enable, target); + await tsConfig.update("experimental.useTsgo", enable, target ?? vscode.ConfigurationTarget.Global); await restartExtHostOnChangeIfNeeded(); }