From a76629e0cd48414d9d710d4490deb21502b5b7a3 Mon Sep 17 00:00:00 2001 From: yoyo930021 Date: Fri, 4 Jun 2021 17:41:26 +0800 Subject: [PATCH] Fix sematice tokens failed --- server/src/modes/script/javascript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/modes/script/javascript.ts b/server/src/modes/script/javascript.ts index 9f46023a20..0cf1f3be19 100644 --- a/server/src/modes/script/javascript.ts +++ b/server/src/modes/script/javascript.ts @@ -833,7 +833,7 @@ export async function getJavascriptMode( const { spans } = service.getEncodedSemanticClassifications( fileFsPath, textSpan, - tsModule.SemanticClassificationFormat.TwentyTwenty + tsModule.SemanticClassificationFormat?.TwentyTwenty ); const data: SemanticTokenOffsetData[] = [];