提交 6e31f4ad 编写于 作者: B Benjamin Pasero

Settings can be open more in more than one tab (fixes #36447)

上级 cf5ea023
......@@ -69,6 +69,15 @@ export class PreferencesContribution implements IWorkbenchContribution {
return;
}
// If the file resource was already opened before in the group, do not prevent
// the opening of that resource. Otherwise we would have the same settings
// opened twice (https://github.com/Microsoft/vscode/issues/36447)
const stacks = this.editorGroupService.getStacksModel();
const group = stacks.groupAt(event.position);
if (group && group.contains(event.input)) {
return;
}
// Global User Settings File
if (resource.fsPath === this.environmentService.appSettingsPath) {
return event.prevent(() => this.preferencesService.openGlobalSettings(event.options, event.position));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册