Skip to content

Commit

Permalink
editors - fix context on EDITOR_CLOSE (microsoft#213223)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored and andremmsilva committed May 26, 2024
1 parent 7c45f70 commit f5fa48d
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 f5fa48d

Please sign in to comment.