Skip to content

Commit 4665ce6

Browse files
authored
quick search esc leads to closing edited files (microsoft#205917)
Fixes microsoft#205907
1 parent 006e4f9 commit 4665ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/browser/quickaccess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class EditorViewState {
8484
if (shouldCloseCurrEditor) {
8585
const activeEditorPane = this.editorService.activeEditorPane;
8686
const currEditor = activeEditorPane?.input;
87-
if (currEditor && currEditor !== this._editorViewState.editor) {
87+
if (currEditor && currEditor !== this._editorViewState.editor && activeEditorPane?.group.isPinned(currEditor) !== true) {
8888
await activeEditorPane.group.closeEditor(currEditor);
8989
}
9090
}

0 commit comments

Comments
 (0)