fixes #127773
This commit is contained in:
parent
ee5faa50ed
commit
490d47a13b
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue