mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user