提交 69a95b69 编写于 作者: M Martin Aeschlimann

fix explorerModelTest on linux

上级 ac26c467
...@@ -18,7 +18,12 @@ function createStat(path: string, name: string, isFolder: boolean, hasChildren: ...@@ -18,7 +18,12 @@ function createStat(path: string, name: string, isFolder: boolean, hasChildren:
} }
function toResource(path) { function toResource(path) {
return URI.file(join('C:\\', path)); if (isWindows) {
return URI.file(join('C:\\', path));
} else {
return URI.file(join('/home/john', path));
}
} }
suite('Files - View Model', () => { suite('Files - View Model', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册