Skip to content

Commit

Permalink
editors - fix context on EDITOR_CLOSE (#213223)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored May 22, 2024
1 parent 73036af commit d75d42f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/browser/parts/editor/editorGroupView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
groupActiveEditorStickyContext.set(this.model.activeEditor ? this.model.isSticky(this.model.activeEditor) : false);
break;
case GroupModelChangeKind.EDITOR_CLOSE:
groupActiveEditorPinnedContext.set(this.model.activeEditor ? this.model.isPinned(this.model.activeEditor) : false);
groupActiveEditorStickyContext.set(this.model.activeEditor ? this.model.isSticky(this.model.activeEditor) : false);
case GroupModelChangeKind.EDITOR_OPEN:
case GroupModelChangeKind.EDITOR_MOVE:
groupActiveEditorFirstContext.set(this.model.isFirst(this.model.activeEditor));
Expand Down

0 comments on commit d75d42f

Please sign in to comment.