Skip to content

Commit

Permalink
Update packages/salesforcedx-visualforce-language-server/src/modes/ja…
Browse files Browse the repository at this point in the history
…vascriptMode.ts
  • Loading branch information
mingxuanzhangsfdx authored Dec 17, 2024
1 parent c9929f5 commit 3a34fe1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const getJavascriptMode = (documentRegions: LanguageModelCache<HTMLDocume
document.uri
]);

if (highlights && highlights.length > 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 {
Expand Down

0 comments on commit 3a34fe1

Please sign in to comment.