From 4494cbce916bf7b319e86bb0d24c0f956b841a7b Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 6 Nov 2025 09:31:56 -0800 Subject: [PATCH] Revert "use string.quoted for strings (for now) (until defunkt gets a new vscode theme)" This reverts commit 47c3fda4c860b692c5c70a754937e3edea5f523a. --- vscode-extension/server/src/semanticTokens.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/vscode-extension/server/src/semanticTokens.ts b/vscode-extension/server/src/semanticTokens.ts index 95f60fd..d8fc0ea 100644 --- a/vscode-extension/server/src/semanticTokens.ts +++ b/vscode-extension/server/src/semanticTokens.ts @@ -12,7 +12,7 @@ import { ScopeTracker } from './scopeTracker' export const TOKEN_TYPES = [ SemanticTokenTypes.function, SemanticTokenTypes.variable, - 'string.quoted', + SemanticTokenTypes.string, SemanticTokenTypes.number, SemanticTokenTypes.operator, SemanticTokenTypes.keyword, @@ -161,7 +161,7 @@ function getTokenType( // If not in scope, treat as string (like a Word) if (!scopeTracker.isInScope(identifierText, node)) { return { - type: TOKEN_TYPES.indexOf('string.quoted'), + type: TOKEN_TYPES.indexOf(SemanticTokenTypes.string), modifiers: 0, } } @@ -188,14 +188,9 @@ function getTokenType( case Terms.String: case Terms.StringFragment: - return { - type: TOKEN_TYPES.indexOf('string.quoted'), - modifiers: 0, - } - case Terms.Word: return { - type: TOKEN_TYPES.indexOf('string.quoted'), + type: TOKEN_TYPES.indexOf(SemanticTokenTypes.string), modifiers: 0, }