Skip to content

Commit

Permalink
fix(language-service): inaccurate behavior of semantic tokens range
Browse files Browse the repository at this point in the history
… parameter
  • Loading branch information
johnsoncodehk committed Feb 17, 2024
1 parent 293eed0 commit 82dc7a8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export function register(context: ServiceContext) {
() => range!,
function* (map) {

for (const mapped of map.getGeneratedRanges(range!, isSemanticTokensEnabled)) {
yield mapped;
return;
}

let result: {
start: number;
end: number;
Expand Down

0 comments on commit 82dc7a8

Please sign in to comment.