Skip to content

Commit

Permalink
Fix sematice tokens failed
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Jun 4, 2021
1 parent 3927d43 commit a76629e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/modes/script/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ export async function getJavascriptMode(
const { spans } = service.getEncodedSemanticClassifications(
fileFsPath,
textSpan,
tsModule.SemanticClassificationFormat.TwentyTwenty
tsModule.SemanticClassificationFormat?.TwentyTwenty
);

const data: SemanticTokenOffsetData[] = [];
Expand Down

0 comments on commit a76629e

Please sign in to comment.