Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Jan 7, 2025
1 parent ea98da4 commit e5bec7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ class TreeSitterTokenizationSupport extends Disposable implements ITreeSitterTok

captureAtPosition(lineNumber: number, column: number, textModel: ITextModel): Parser.QueryCapture[] {
const tree = this._getTree(textModel);
const captures = this._captureAtRange(lineNumber, new ColumnRange(column, column), tree?.tree);
const captures = this._captureAtRange(lineNumber, new ColumnRange(column, column + 1), tree?.tree);
return captures;
}

captureAtPositionTree(lineNumber: number, column: number, tree: Parser.Tree): Parser.QueryCapture[] {
const captures = this._captureAtRange(lineNumber, new ColumnRange(column, column), tree);
const captures = this._captureAtRange(lineNumber, new ColumnRange(column, column + 1), tree);
return captures;
}

Expand Down

0 comments on commit e5bec7b

Please sign in to comment.