Skip to content

Commit 2fe0e23

Browse files
committed
Fix querybuilder tests
1 parent 56425ab commit 2fe0e23

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/vs/workbench/contrib/search/common/queryBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class QueryBuilder {
332332

333333
searchPath = normalizeSlashes(searchPath);
334334
if (strings.startsWith(searchPath, '../')) {
335-
const resolvedPath = path.resolve(workspaceUri.path, searchPath);
335+
const resolvedPath = path.posix.resolve(workspaceUri.path, searchPath);
336336
return [{
337337
searchPath: workspaceUri.with({ path: resolvedPath })
338338
}];

src/vs/workbench/contrib/search/test/common/queryBuilder.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -659,22 +659,22 @@ suite('QueryBuilder', () => {
659659
}]
660660
}
661661
],
662-
// [
663-
// '../',
664-
// {
665-
// searchPaths: [{
666-
// searchPath: getUri('/foo')
667-
// }]
668-
// }
669-
// ],
670-
// [
671-
// '..\\bar',
672-
// {
673-
// searchPaths: [{
674-
// searchPath: getUri('/foo/bar')
675-
// }]
676-
// }
677-
// ]
662+
[
663+
'../',
664+
{
665+
searchPaths: [{
666+
searchPath: getUri('/foo')
667+
}]
668+
}
669+
],
670+
[
671+
'..\\bar',
672+
{
673+
searchPaths: [{
674+
searchPath: getUri('/foo/bar')
675+
}]
676+
}
677+
]
678678
];
679679
cases.forEach(testIncludesDataItem);
680680
});

0 commit comments

Comments
 (0)