提交 dc3747c3 编写于 作者: R Rob Lourens

Fix #55593 - this code only operates on local paths, so use fsPath and Uri.file instead

上级 6f3f9edc
......@@ -20,8 +20,6 @@ export function anchorGlob(glob: string): string {
}
export function joinPath(resource: vscode.Uri, pathFragment: string): vscode.Uri {
const joinedPath = path.join(resource.path || '/', pathFragment);
return resource.with({
path: joinedPath
});
const joinedPath = path.join(resource.fsPath || '/', pathFragment);
return vscode.Uri.file(joinedPath);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册