mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Update extension.ts
Adopt latest API
This commit is contained in:
@ -39,7 +39,7 @@ class DocumentSemanticTokensProvider implements vscode.DocumentSemanticTokensPro
|
||||
allTokens.forEach((token) => {
|
||||
builder.push(token.line, token.startCharacter, token.length, this._encodeTokenType(token.tokenType), this._encodeTokenModifiers(token.tokenModifiers));
|
||||
});
|
||||
return new vscode.SemanticTokens(builder.build());
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
private _encodeTokenType(tokenType: string): number {
|
||||
|
||||
Reference in New Issue
Block a user