diff --git a/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.ts b/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.ts index 48e7aaacaf84a..24c4a1698c5c2 100644 --- a/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.ts +++ b/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.ts @@ -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; }