We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6139a4 commit c68420aCopy full SHA for c68420a
src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.ts
@@ -239,9 +239,11 @@ class TreeSitterTokenizationSupport extends Disposable implements ITreeSitterTok
239
}
240
241
242
+ // Account for uncaptured characters at the end of the line
243
if (captures[captures.length - 1].node.endPosition.column + 1 < lineLength) {
244
increaseSizeOfTokensByOneToken();
- endOffsetsAndScopes[tokenIndex].endOffset = lineLength;
245
+ endOffsetsAndScopes[tokenIndex].endOffset = lineLength - 1;
246
+ tokenIndex++;
247
248
249
const tokens: Uint32Array = new Uint32Array((tokenIndex) * 2);
0 commit comments