Skip to content

Commit 4c0b471

Browse files
authored
1 parent 6d0933c commit 4c0b471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ class Launch extends AbstractLaunch implements ILaunch {
675675

676676
async writeConfiguration(configuration: IConfig): Promise<void> {
677677
// note: we don't get the deduplicated config since we don't want that to 'leak' into the file
678-
const fullConfig: Partial<IGlobalConfig> = this.getConfig() || {};
678+
const fullConfig: Partial<IGlobalConfig> = { ...(this.getConfig() ?? {}) };
679679
fullConfig.configurations = [...fullConfig.configurations || [], configuration];
680680
await this.configurationService.updateValue('launch', fullConfig, { resource: this.workspace.uri }, ConfigurationTarget.WORKSPACE_FOLDER);
681681
}

0 commit comments

Comments
 (0)