mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
Fix onDidDeleteMarkdownDocument not hooked up (#156913)
This commit is contained in:
@@ -63,7 +63,12 @@ export class VsCodeClientWorkspace implements md.IWorkspaceWithWatching {
|
||||
});
|
||||
|
||||
documents.onDidClose(e => {
|
||||
this._documentCache.delete(URI.parse(e.document.uri));
|
||||
const uri = URI.parse(e.document.uri);
|
||||
this._documentCache.delete(uri);
|
||||
|
||||
if (this.isRelevantMarkdownDocument(e.document)) {
|
||||
this._onDidDeleteMarkdownDocument.fire(uri);
|
||||
}
|
||||
});
|
||||
|
||||
connection.onDidChangeWatchedFiles(async ({ changes }) => {
|
||||
|
||||
Reference in New Issue
Block a user