Change SearchProvider to be URI-based, not string-based. #50788

This commit is contained in:
Rob Lourens
2018-07-02 19:23:45 -07:00
parent e0e9c3d455
commit 0ef1c31b06
10 changed files with 154 additions and 172 deletions

View File

@@ -399,7 +399,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape {
lineMatch.offsetAndLengths.forEach(offsetAndLength => {
const range = new Range(lineMatch.lineNumber, offsetAndLength[0], lineMatch.lineNumber, offsetAndLength[0] + offsetAndLength[1]);
callback({
path: URI.revive(p.resource).fsPath,
uri: URI.revive(p.resource),
preview: { text: lineMatch.preview, match: range },
range
});