mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix onDidDeleteMarkdownDocument not hooked up (#156913)
This commit is contained in:
parent
1097f3e440
commit
e3267b75c6
|
@ -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 }) => {
|
||||
|
|
Loading…
Reference in a new issue