未验证 提交 8fb29586 编写于 作者: A Alex Ross 提交者: GitHub

Update the drag into terminal path used to be the fsPath (#58460)

上级 9849693b
......@@ -275,7 +275,7 @@ export class TerminalPanel extends Panel {
let path: string;
const resources = e.dataTransfer.getData(DataTransfers.RESOURCES);
if (resources) {
path = URI.parse(JSON.parse(resources)[0]).path;
path = URI.parse(JSON.parse(resources)[0]).fsPath;
} else if (e.dataTransfer.files.length > 0) {
// Check if the file was dragged from the filesystem
path = URI.file(e.dataTransfer.files[0].path).fsPath;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册