Skip to content

Commit b3e9288

Browse files
author
Benjamin Pasero
committed
Unable to open workspace settings if "workbench.settings.openDefaultSettings": false (fixes microsoft#11888)
1 parent a23e82d commit b3e9288

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/vs/workbench/browser/actions/openSettings.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ export class BaseOpenSettingsAction extends BaseTwoEditorsAction {
110110
return this.openTwoEditors(DefaultSettingsInput.getInstance(this.instantiationService, this.configurationService), settingsResource, emptySettingsContents);
111111
}
112112

113-
return this.editorService.openEditor({
113+
// Create as needed and open in editor
114+
return this.createIfNotExists(settingsResource, emptySettingsContents).then(() => this.editorService.openEditor({
114115
resource: settingsResource,
115116
options: { pinned: true }
116-
}).then(() => null);
117+
}).then(() => null));
117118
}
118119
}
119120

0 commit comments

Comments
 (0)