Skip to content

Commit

Permalink
fix(buffer): sync layout on doc closed (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyaowong committed Dec 15, 2023
1 parent 0aa3152 commit 81951e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/buffer_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ export class BufferManager implements Disposable {
this.disposables.push(
window.onDidChangeVisibleTextEditors(this.onEditorLayoutChanged),
window.onDidChangeActiveTextEditor(this.onEditorLayoutChanged),
workspace.onDidCloseTextDocument(this.onEditorLayoutChanged),
workspace.onDidCloseNotebookDocument(this.onEditorLayoutChanged),
window.onDidChangeTextEditorOptions((e) => this.onDidChangeEditorOptions(e.textEditor)),
workspace.registerTextDocumentContentProvider(BUFFER_SCHEME, this.bufferProvider),
eventBus.on("redraw", this.handleRedraw, this),
Expand Down

0 comments on commit 81951e7

Please sign in to comment.