提交 d0cee50f 编写于 作者: I isidor

fixes #75825

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