提交 45826e94 编写于 作者: A Andre Weinand

do not suppress first loadedScripts event; fixes #59281

上级 f308bea3
......@@ -181,7 +181,7 @@ class BaseTreeItem {
}
private oneChild(): BaseTreeItem {
if (SMART && !this._source && !this._showedMoreThanOne && !(this instanceof RootFolderTreeItem)) {
if (SMART && !this._source && !this._showedMoreThanOne && !(this instanceof RootFolderTreeItem) && !(this instanceof SessionTreeItem)) {
const keys = Object.keys(this._children);
if (keys.length === 1) {
return this._children[keys[0]];
......
......@@ -454,7 +454,11 @@ export class DebugSession implements IDebugSession {
getLoadedSources(): TPromise<Source[]> {
if (this.raw) {
return this.raw.loadedSources({}).then(response => {
return response.body.sources.map(src => this.getSource(src));
if (response.body && response.body.sources) {
return response.body.sources.map(src => this.getSource(src));
} else {
return [];
}
}, () => {
return [];
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册