Skip to content

Commit

Permalink
Fix #71120 - incorrectly formatted uris in liveshare
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Mar 25, 2019
1 parent 03bdc72 commit 966b87d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/services/search/node/fileSearchManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ class FileSearchEngine {

if (results) {
results.forEach(result => {
const relativePath = path.relative(fq.folder.fsPath, result.fsPath);
const relativePath = path.posix.relative(fq.folder.path, result.path);

if (noSiblingsClauses) {
const basename = path.basename(result.fsPath);
const basename = path.basename(result.path);
this.matchFile(onResult, { base: fq.folder, relativePath, basename });

return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ suite('ExtHostSearch', () => {
const reportedResults = [
joinPath(rootFolderA, 'file1.ts'),
joinPath(rootFolderA, 'file2.ts'),
joinPath(rootFolderA, 'file3.ts')
joinPath(rootFolderA, 'subfolder/file3.ts')
];

await registerTestFileSearchProvider({
Expand Down Expand Up @@ -586,7 +586,7 @@ suite('ExtHostSearch', () => {
const reportedResults = [
joinPath(fancySchemeFolderA, 'file1.ts'),
joinPath(fancySchemeFolderA, 'file2.ts'),
joinPath(fancySchemeFolderA, 'file3.ts'),
joinPath(fancySchemeFolderA, 'subfolder/file3.ts'),

];

Expand Down

0 comments on commit 966b87d

Please sign in to comment.