Skip to content

Commit 7da2a63

Browse files
committed
1 parent 015deac commit 7da2a63

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/vs/workbench/parts/debug/common/debugModel.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,12 @@ export class DebugModel implements IDebugModel {
10951095
}
10961096

10971097
public sourceIsNotAvailable(uri: uri): void {
1098-
this.sessions.forEach(p => p.getSourceForUri(uri).available = false);
1098+
this.sessions.forEach(s => {
1099+
const source = s.getSourceForUri(uri);
1100+
if (source) {
1101+
source.available = false;
1102+
}
1103+
});
10991104
this._onDidChangeCallStack.fire();
11001105
}
11011106

0 commit comments

Comments
 (0)