Merge pull request #135602 from rchiodo/dev/rchiodo/multiple_providers

Allow semantic tokens to be provided by more than one provider
This commit is contained in:
Alexandru Dima
2021-10-26 01:01:14 +02:00
committed by GitHub
5 changed files with 242 additions and 77 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;