Skip to content

Commit 01100e6

Browse files
committed
fix refresh functionality
1 parent 7f195df commit 01100e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/docs-markdown/src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ export async function activate(context: ExtensionContext) {
201201
}
202202
}
203203
});
204-
workspace.onDidChangeTextDocument(e => {
204+
205+
// Refresh when the active file is changed, including closing it.
206+
window.onDidChangeActiveTextEditor(e => {
205207
metadataTreeProvider.refresh();
206208
});
207209

0 commit comments

Comments
 (0)