Skip to content

Commit

Permalink
fix: cannot display link for scope class names in template
Browse files Browse the repository at this point in the history
close #1960
  • Loading branch information
johnsoncodehk committed Oct 9, 2022
1 parent b11e7c0 commit 599b4a7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -49,6 +49,9 @@ export function register(context: LanguageServiceRuntimeContext) {
if (!mapped.data.displayWithLink)
continue;

if (mapped.sourceRange[0] === mapped.sourceRange[1])
continue;

result.push({
range: {
start: document.positionAt(mapped.sourceRange[0]),
Expand Down

0 comments on commit 599b4a7

Please sign in to comment.