Merge from vscode 1b314ab317fbff7d799b21754326b7d849889ceb

This commit is contained in:
ADS Merger
2020-07-15 23:51:18 +00:00
parent aae013d498
commit 9d3f12d0b7
554 changed files with 15159 additions and 8223 deletions

View File

@@ -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;