提交 966b87dd 编写于 作者: R Rob Lourens

Fix #71120 - incorrectly formatted uris in liveshare

上级 03bdc727
......@@ -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;
......
......@@ -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({
......@@ -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'),
];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册