Skip to content

Commit

Permalink
Fixes #305 - Servers view stealing focus on hot code replace
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
robstryker committed Dec 10, 2024
1 parent 344b4c4 commit 1074006
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/serverExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ export class ServerExplorer implements TreeDataProvider<RSPState | ServerStateNo

public selectNode(data: RSPState | ServerStateNode): void {
this.nodeSelected = data;
const tmpViewer = this.viewer;
tmpViewer.reveal(data, { focus: false, select: true });
}

private changeViewer(_e: TreeViewVisibilityChangeEvent) {
Expand Down Expand Up @@ -950,13 +948,9 @@ export class ServerExplorer implements TreeDataProvider<RSPState | ServerStateNo
return Array.from(this.RSPServersStatus.values()).map(rsp => rsp.state);
} else if (this.isRSPElement(element) && (element as RSPState).serverStates !== undefined) {
// rsp parent -> return servers
const zzz = 33;
const abc = zzz+212;
const qqq = abc+3;
console.log(qqq);
const tmp = (element as RSPState).serverStates;
const cloned = [...tmp];
cloned.sort((a,b) => (a.server.id.localeCompare(b.server.id)));
cloned.sort((a,b) => a.server.id.localeCompare(b.server.id));
return cloned;
} else if (this.isServerElement(element) && (element as ServerStateNode).deployableStates !== undefined) {
// server parent -> return deployables
Expand Down

0 comments on commit 1074006

Please sign in to comment.