Skip to content

Commit

Permalink
honor that the internal search model is 0-offset based, #45000
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Mar 20, 2018
1 parent 73e3488 commit 8d8c233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/node/extHostFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {
const progress = {
report: (data: vscode.TextSearchResult) => {
this._proxy.$handleFindMatch(handle, session, [data.uri, {
lineNumber: 1 + data.range.start.line,
lineNumber: data.range.start.line,
preview: data.preview.leading + data.preview.matching + data.preview.trailing,
offsetAndLengths: [[data.preview.leading.length, data.preview.matching.length]]
}]);
Expand Down

0 comments on commit 8d8c233

Please sign in to comment.