Skip to content

Commit

Permalink
LSV: support 'changed' event; fixes #41362
Browse files Browse the repository at this point in the history
  • Loading branch information
weinand committed Nov 27, 2018
1 parent 2c531e2 commit ef2314e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/workbench/parts/debug/browser/loadedScriptsView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class BaseTreeItem {

setSource(session: IDebugSession, source: Source): void {
this._source = source;
this._children = {};
if (source.raw && source.raw.sources) {
for (const src of source.raw.sources) {
const s = new BaseTreeItem(this, src.name);
Expand Down Expand Up @@ -427,6 +428,7 @@ export class LoadedScriptsView extends TreeViewsViewletPanel {
let sessionRoot: SessionTreeItem;
switch (event.reason) {
case 'new':
case 'changed':
sessionRoot = root.add(session);
sessionRoot.addPath(event.source);
nextRefreshIsRecursive = true;
Expand Down

0 comments on commit ef2314e

Please sign in to comment.