Cancel encodedSemanticClassifications-full on resource change

For #102161
This commit is contained in:
Matt Bierner
2020-11-12 14:39:10 -08:00
parent c833899a84
commit 59428623f9

View File

@@ -75,7 +75,9 @@ class DocumentSemanticTokensProvider implements vscode.DocumentSemanticTokensPro
let versionBeforeRequest = document.version;
const response = await (this.client as ExperimentalProtocol.IExtendedTypeScriptServiceClient).execute('encodedSemanticClassifications-full', requestArg, token);
const response = await (this.client as ExperimentalProtocol.IExtendedTypeScriptServiceClient).execute('encodedSemanticClassifications-full', requestArg, token, {
cancelOnResourceChange: document.uri
});
if (response.type !== 'response' || !response.body) {
return null;
}