mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
Adopt proposed CancellationError (#93686)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user