Update extension.ts

Adopt latest API
This commit is contained in:
Alexandru Dima
2020-03-31 00:21:30 +02:00
committed by GitHub
parent b9a27518da
commit 694b0d8b17

View File

@ -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 {