Skip to content

Commit

Permalink
Thank you tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Feb 20, 2025
1 parent 9e35e0a commit 05bb11a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ export class TreeSitterTokenizationSupport extends Disposable implements ITreeSi
if (position !== undefined) {
let oldBracket = endOffsetsAndScopes[position].bracket;
// Check that the previous token ends at the same point that the current token starts
if ((position > 0) && (endOffsetsAndScopes[position - 1].endOffset !== startOffset)) {
const prevEndOffset = position > 0 ? endOffsetsAndScopes[position - 1].endOffset : 0;
if (prevEndOffset !== startOffset) {
let preInsertBracket: number[] | undefined = undefined;
if (oldBracket && oldBracket.length > 0) {
preInsertBracket = [];
Expand Down

0 comments on commit 05bb11a

Please sign in to comment.