mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-30 08:40:29 -04:00
Merge from vscode 1b314ab317fbff7d799b21754326b7d849889ceb
This commit is contained in:
@@ -58,6 +58,10 @@ class BaseTreeItem {
|
||||
this._showedMoreThanOne = false;
|
||||
}
|
||||
|
||||
updateLabel(label: string) {
|
||||
this._label = label;
|
||||
}
|
||||
|
||||
isLeaf(): boolean {
|
||||
return this._children.size === 0;
|
||||
}
|
||||
@@ -528,9 +532,11 @@ export class LoadedScriptsView extends ViewPane {
|
||||
|
||||
const registerSessionListeners = (session: IDebugSession) => {
|
||||
this._register(session.onDidChangeName(async () => {
|
||||
// Re-add session, this will trigger proper sorting and id recalculation.
|
||||
root.remove(session.getId());
|
||||
await addSourcePathsToSession(session);
|
||||
const sessionRoot = root.find(session);
|
||||
if (sessionRoot) {
|
||||
sessionRoot.updateLabel(session.getLabel());
|
||||
scheduleRefreshOnVisible();
|
||||
}
|
||||
}));
|
||||
this._register(session.onDidLoadedSource(async event => {
|
||||
let sessionRoot: SessionTreeItem;
|
||||
|
||||
Reference in New Issue
Block a user