Skip to content

Commit dc2e53c

Browse files
committed
Cleanup
Signed-off-by: BoykoAlex <[email protected]>
1 parent a4132d7 commit dc2e53c

File tree

1 file changed

+1
-28
lines changed
  • vscode-extensions/vscode-spring-boot/lib/explorer

1 file changed

+1
-28
lines changed

vscode-extensions/vscode-spring-boot/lib/explorer/nodes.ts

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,7 @@ export class StereotypedNode extends SpringNode {
7373
}
7474

7575
getNodeId(): string {
76-
// Create a unique identifier based on node attributes, excluding icon
77-
// Include parent path in the computation for better uniqueness
78-
const textId = this.n.attributes.text || '';
79-
const locationId = this.n.attributes.location ?
80-
`${this.n.attributes.location.uri}:${this.n.attributes.location.range.start.line}:${this.n.attributes.location.range.start.character}` : '';
81-
const referenceId = this.n.attributes.reference ? String(this.n.attributes.reference) : '';
82-
83-
// Build the node-specific part of the ID (without icon)
84-
const nodeSpecificId = `${textId}|${locationId}|${referenceId}`.replace(/\|+$/, ''); // Remove trailing separators
85-
86-
// Include parent path for better uniqueness
87-
const parentPath = this.getParentPath();
88-
return parentPath ? `${parentPath}/${nodeSpecificId}` : nodeSpecificId;
76+
return this.n.attributes.nodeId || this.n.attributes.text;
8977
}
9078

9179
protected getNodeText(): string {
@@ -98,21 +86,6 @@ export class StereotypedNode extends SpringNode {
9886

9987
computeIcon() {
10088
return new ThemeIcon(this.n.attributes.icon);
101-
/* switch (this.n.attributes.icon) {
102-
retur
103-
case "fa-named-interface": // specify the case
104-
return new ThemeIcon("symbol-interface");
105-
case "fa-package":
106-
return new ThemeIcon("symbol-constant");
107-
case "fa-stereotype":
108-
return new ThemeIcon("mention");
109-
case "fa-application":
110-
return new ThemeIcon("folder");
111-
case "fa-method":
112-
return new ThemeIcon("symbol-method");
113-
default:
114-
return new ThemeIcon("symbol-class");
115-
} */
11689
}
11790

11891
}

0 commit comments

Comments
 (0)