From 4c35801fef001a656706eaa786ed5d1bdbf942f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich-Matthias=20Sch=C3=A4fer?= Date: Mon, 24 Oct 2022 09:47:51 +0200 Subject: [PATCH] chore: replace Math.pow with (<<) for base 2 --- plugins/typescript/src/services/semanticTokens.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/typescript/src/services/semanticTokens.ts b/plugins/typescript/src/services/semanticTokens.ts index 03701c1c4..0e2983397 100644 --- a/plugins/typescript/src/services/semanticTokens.ts +++ b/plugins/typescript/src/services/semanticTokens.ts @@ -74,10 +74,10 @@ export function register( function tsTokenModifierToServerTokenModifier(input: number) { let m = 0; for (let i = 0; i < tokenModifiers.length; i++) { - if (input & Math.pow(2, i)) { + if (input & (1<= 0) { - m |= Math.pow(2, match); + m |= (1<