Skip to content

Commit d75d42f

Browse files
authored
editors - fix context on EDITOR_CLOSE (#213223)
1 parent 73036af commit d75d42f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/browser/parts/editor/editorGroupView.ts

+2
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
334334
groupActiveEditorStickyContext.set(this.model.activeEditor ? this.model.isSticky(this.model.activeEditor) : false);
335335
break;
336336
case GroupModelChangeKind.EDITOR_CLOSE:
337+
groupActiveEditorPinnedContext.set(this.model.activeEditor ? this.model.isPinned(this.model.activeEditor) : false);
338+
groupActiveEditorStickyContext.set(this.model.activeEditor ? this.model.isSticky(this.model.activeEditor) : false);
337339
case GroupModelChangeKind.EDITOR_OPEN:
338340
case GroupModelChangeKind.EDITOR_MOVE:
339341
groupActiveEditorFirstContext.set(this.model.isFirst(this.model.activeEditor));

0 commit comments

Comments
 (0)