提交 41389ef1 编写于 作者: I isidor

paths.join should use .path not .fspath

fixes #35680
上级 9c89921a
......@@ -1047,14 +1047,14 @@ export class DuplicateFileAction extends BaseFileAction {
private findTarget(): URI {
let name = this.element.name;
let candidate = this.target.resource.with({ path: paths.join(this.target.resource.fsPath, name) });
let candidate = this.target.resource.with({ path: paths.join(this.target.resource.path, name) });
while (true) {
if (!this.element.root.find(candidate)) {
break;
}
name = this.toCopyName(name, this.element.isDirectory);
candidate = this.target.resource.with({ path: paths.join(this.target.resource.fsPath, name) });
candidate = this.target.resource.with({ path: paths.join(this.target.resource.path, name) });
}
return candidate;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册