Add support for invoking multiple equal scored DocumentRangeSemanticTokensProviders

This commit is contained in:
Alex Dima
2021-10-25 23:39:10 +02:00
parent 3703c278ab
commit 21b22af19e
3 changed files with 83 additions and 71 deletions

View File

@@ -216,7 +216,7 @@ const newCommands: ApiCommand[] = [
),
new ApiCommand(
'vscode.provideDocumentRangeSemanticTokensLegend', '_provideDocumentRangeSemanticTokensLegend', 'Provide semantic tokens legend for a document range',
[ApiCommandArgument.Uri],
[ApiCommandArgument.Uri, ApiCommandArgument.Range.optional()],
new ApiCommandResult<modes.SemanticTokensLegend, types.SemanticTokensLegend | undefined>('A promise that resolves to SemanticTokensLegend.', value => {
if (!value) {
return undefined;