We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853332d commit 1043b77Copy full SHA for 1043b77
src/utils/documentIndex.ts
@@ -121,8 +121,13 @@ function generateDeleteFn(wsFolderUri: vscode.Uri): (doc: string) => void {
121
api.deleteDocs([...docs]).then((data) => {
122
let failed = 0;
123
for (const doc of data.result) {
124
- if (doc.status != "") {
125
- // The document was not deleted, so log the error
+ if (doc.status != "" && !doc.status.includes("#16005:")) {
+ // The document was not deleted, so log the error.
126
+ // Error 16005 means we tried to delete a document
127
+ // that didn't exist. Since the purpose of this
128
+ // call was to delete the document, and at the
129
+ // end the document isn't there, we should ignore
130
+ // this error so the user doesn't get confused.
131
failed++;
132
outputChannel.appendLine(`${failed == 1 ? "\n" : ""}${doc.status}`);
133
}
0 commit comments