提交 d0cee50f 编写于 作者: I isidor

fixes #75825

上级 d9c8d85a
......@@ -898,8 +898,10 @@ export const renameHandler = (accessor: ServicesAccessor) => {
if (success) {
const parentResource = stat.parent!.resource;
const targetResource = resources.joinPath(parentResource, value);
if (stat.resource.toString() !== targetResource.toString()) {
textFileService.move(stat.resource, targetResource).then(() => refreshIfSeparator(value, explorerService), onUnexpectedError);
}
}
explorerService.setEditable(stat, null);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册