提交 9c047b31 编写于 作者: I isidor

debug: when new raw source comes update the original reference

fixes #42139
上级 5223e41e
......@@ -560,6 +560,7 @@ export class Process implements IProcess {
let source = new Source(raw, this.getId());
if (this.sources.has(source.uri.toString())) {
source = this.sources.get(source.uri.toString());
source.raw = raw;
} else {
this.sources.set(source.uri.toString(), source);
}
......
......@@ -19,7 +19,7 @@ export class Source {
public readonly uri: uri;
public available: boolean;
constructor(public readonly raw: DebugProtocol.Source, sessionId: string) {
constructor(public raw: DebugProtocol.Source, sessionId: string) {
if (!raw) {
this.raw = { name: UNKNOWN_SOURCE_LABEL };
}
......@@ -110,4 +110,4 @@ export class Source {
processId
};
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册