提交 2fe0e23d 编写于 作者: R Rob Lourens

Fix querybuilder tests

上级 56425abc
......@@ -332,7 +332,7 @@ export class QueryBuilder {
searchPath = normalizeSlashes(searchPath);
if (strings.startsWith(searchPath, '../')) {
const resolvedPath = path.resolve(workspaceUri.path, searchPath);
const resolvedPath = path.posix.resolve(workspaceUri.path, searchPath);
return [{
searchPath: workspaceUri.with({ path: resolvedPath })
}];
......
......@@ -659,22 +659,22 @@ suite('QueryBuilder', () => {
}]
}
],
// [
// '../',
// {
// searchPaths: [{
// searchPath: getUri('/foo')
// }]
// }
// ],
// [
// '..\\bar',
// {
// searchPaths: [{
// searchPath: getUri('/foo/bar')
// }]
// }
// ]
[
'../',
{
searchPaths: [{
searchPath: getUri('/foo')
}]
}
],
[
'..\\bar',
{
searchPaths: [{
searchPath: getUri('/foo/bar')
}]
}
]
];
cases.forEach(testIncludesDataItem);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册