File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,13 @@ function generateDeleteFn(wsFolderUri: vscode.Uri): (doc: string) => void {
121
121
api . deleteDocs ( [ ...docs ] ) . then ( ( data ) => {
122
122
let failed = 0 ;
123
123
for ( const doc of data . result ) {
124
- if ( doc . status != "" ) {
125
- // The document was not deleted, so log the error
124
+ if ( doc . status != "" && ! doc . status . includes ( "#16005:" ) ) {
125
+ // 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.
126
131
failed ++ ;
127
132
outputChannel . appendLine ( `${ failed == 1 ? "\n" : "" } ${ doc . status } ` ) ;
128
133
}
You can’t perform that action at this time.
0 commit comments