This commit is contained in:
isidor 2021-07-01 19:59:24 +02:00
parent ee5faa50ed
commit 490d47a13b
No known key found for this signature in database
GPG key ID: F9280366A8370105

View file

@ -49,6 +49,7 @@ import { coalesce, insert } from 'vs/base/common/arrays';
import { ColorScheme } from 'vs/platform/theme/common/theme';
import { isSafari } from 'vs/base/browser/browser';
import { equals } from 'vs/base/common/objects';
import { EditorActivation } from 'vs/platform/editor/common/editor';
interface IEditorInputLabel {
name?: string;
@ -666,11 +667,8 @@ export class TabsTitleControl extends TitleControl {
// Open tabs editor
const input = this.group.getEditorByIndex(index);
if (input) {
this.group.openEditor(input, { preserveFocus });
if (preserveFocus) {
// Even if focus is preserved make sure to activate the group. If focus is passed group will auto activate.
this.editorGroupService.activateGroup(this.group);
}
// Even if focus is preserved make sure to activate the group.
this.group.openEditor(input, { preserveFocus, activation: EditorActivation.ACTIVATE });
}
return undefined;