mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Error while computing semantic tokens. Fixes #88366
This commit is contained in:
parent
60f27207df
commit
db581614ab
|
@ -20,7 +20,7 @@ export function getSemanticTokens(jsLanguageService: ts.LanguageService, current
|
|||
if (node.kind === ts.SyntaxKind.Identifier) {
|
||||
const symbol = typeChecker.getSymbolAtLocation(node);
|
||||
if (symbol) {
|
||||
const decl = symbol.valueDeclaration || symbol.declarations[0];
|
||||
const decl = symbol.valueDeclaration || symbol.declarations && symbol.declarations[0];
|
||||
if (decl) {
|
||||
let typeIdx = tokenFromDeclarationMapping[decl.kind];
|
||||
let modifierSet = 0;
|
||||
|
|
Loading…
Reference in a new issue