mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
honor that the internal search model is 0-offset based, #45000
This commit is contained in:
@@ -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]]
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user