提交 58f27454 编写于 作者: A Andre Weinand

avoid double slashes; fixes #56450

上级 2a31304f
......@@ -286,9 +286,6 @@ class SessionTreeItem extends BaseTreeItem {
let x: BaseTreeItem = this;
path.split(/[\/\\]/).forEach((segment, i) => {
if (segment.length === 0) { // macOS or unix path
segment = '/';
}
if (i === 0 && folder) {
x = x.createIfNeeded(folder.name, parent => new RootFolderTreeItem(parent, folder));
} else if (i === 0 && url) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册