From 3a34fe1a89057589dca001dd486707f63acca6a8 Mon Sep 17 00:00:00 2001 From: Mingxuan Zhang <132491513+mingxuanzhangsfdx@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:31:23 -0800 Subject: [PATCH] Update packages/salesforcedx-visualforce-language-server/src/modes/javascriptMode.ts --- .../src/modes/javascriptMode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/salesforcedx-visualforce-language-server/src/modes/javascriptMode.ts b/packages/salesforcedx-visualforce-language-server/src/modes/javascriptMode.ts index 87c2d7c737..02a16312e1 100644 --- a/packages/salesforcedx-visualforce-language-server/src/modes/javascriptMode.ts +++ b/packages/salesforcedx-visualforce-language-server/src/modes/javascriptMode.ts @@ -238,7 +238,7 @@ export const getJavascriptMode = (documentRegions: LanguageModelCache 0) { + if (highlights?.length > 0) { // Only one file to search above so there should only be one result return highlights[0].highlightSpans.map(entry => { return {