Skip to content

Commit d6e441a

Browse files
committed
Don't try to aggressively remove deleted files
1 parent a4fa795 commit d6e441a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/razor/src/Document/RazorDocumentManager.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ export class RazorDocumentManager implements IRazorDocumentManager {
115115
const watcher = vscode.workspace.createFileSystemWatcher(RazorLanguage.globbingPattern);
116116
const didCreateRegistration = watcher.onDidCreate(
117117
async (uri: vscode.Uri) => this.addDocument(uri));
118-
const didDeleteRegistration = watcher.onDidDelete(
119-
async (uri: vscode.Uri) => this.removeDocument(uri));
120118
const didOpenRegistration = vscode.workspace.onDidOpenTextDocument(async document => {
121119
if (document.languageId !== RazorLanguage.id) {
122120
return;
@@ -142,7 +140,6 @@ export class RazorDocumentManager implements IRazorDocumentManager {
142140
return vscode.Disposable.from(
143141
watcher,
144142
didCreateRegistration,
145-
didDeleteRegistration,
146143
didOpenRegistration,
147144
didCloseRegistration);
148145
}

0 commit comments

Comments
 (0)