This commit is contained in:
Alex Dima 2020-04-03 14:28:21 +02:00
parent b91e67b58c
commit d7f74ba6c5
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

6
src/vs/vscode.d.ts vendored
View file

@ -9605,6 +9605,12 @@ declare module 'vscode' {
/**
* Register a semantic tokens provider for a document range.
*
* *Note:* If a document has both a `DocumentSemanticTokensProvider` and a `DocumentRangeSemanticTokensProvider`,
* the range provider will be invoked only initially, for the time in which the full document provider takes
* to resolve the first request. Once the full document provider resolves the first request, the semantic tokens
* provided via the range provider will be discarded and from that point forward, only the document provider
* will be used.
*
* Multiple providers can be registered for a language. In that case providers are sorted
* by their [score](#languages.match) and the best-matching provider is used. Failure
* of the selected provider will cause a failure of the whole operation.