Adopt proposed CancellationError (#93686)

This commit is contained in:
Alexandru Dima
2021-01-11 17:31:01 +01:00
parent 5c1543b556
commit 3d500ebd8b
3 changed files with 12 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ class DocumentSemanticTokensProvider implements vscode.DocumentSemanticTokensPro
// as the new request will come in right after our response, we first wait for the document activity to stop
await waitForDocumentChangesToEnd(document);
throw new Error('busy');
throw new vscode.CancellationError();
}
const tokenSpan = response.body.spans;