fix line number display issue (#15368)

This commit is contained in:
Alan Ren
2021-05-07 18:57:22 -07:00
committed by GitHub
parent 9d8660749a
commit 7dca953660

View File

@@ -174,8 +174,9 @@ export default class QueryRunner extends Disposable {
this._messages = [];
if (isRangeOrUndefined(input)) {
// Update internal state to show that we're executing the query
this._resultLineOffset = input ? input.startLineNumber : 0;
this._resultColumnOffset = input ? input.startColumn : 0;
// startLineNumber/startColumn is 1 based, need to do a -1 to get the offset.
this._resultLineOffset = input ? (input.startLineNumber - 1) : 0;
this._resultColumnOffset = input ? (input.startColumn - 1) : 0;
this._isExecuting = true;
this._totalElapsedMilliseconds = 0;
// TODO issue #228 add statusview callbacks here