Skip to content

Commit 12c06ee

Browse files
committed
fix: node's id doesn't change after renaming
1 parent 5b11ed3 commit 12c06ee

File tree

1 file changed

+2
-5
lines changed
  • fusion-studio-extension/src/browser

1 file changed

+2
-5
lines changed

fusion-studio-extension/src/browser/core.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,11 +1045,8 @@ export class FSCore {
10451045
const parent = (node.parent as FSCollectionNode);
10461046
const uri = parent.uri + TRAILING_SYMBOL + name;
10471047
const collection = await FSApi.newCollection(node.connectionNode.connection, uri);
1048-
node.nodeName = name;
1049-
node.collection = collection;
1050-
// (node as any)['id'] = this.itemID(parent.connectionNode.connection, collection),
1051-
node.link = FS_RESOURCE_SCHEME + ':' + collection.name,
1052-
node.uri = uri;
1048+
this.removeNode(node);
1049+
this.addCollection(parent, collection);
10531050
this.setRename();
10541051
node.isNew = false;
10551052
return true;

0 commit comments

Comments
 (0)