提交 22d78300 编写于 作者: I isidor

debug: when constructiing source path take scheme into account

上级 0962b241
......@@ -1095,7 +1095,7 @@ export class DebugService implements debug.IDebugService {
const breakpointsToSend = this.model.getBreakpoints().filter(bp => this.model.areBreakpointsActivated() && bp.enabled && bp.uri.toString() === modelUri.toString());
const source = process.sources.get(modelUri.toString());
const rawSource = source ? source.raw : { path: paths.normalize(modelUri.fsPath, true), name: resources.basenameOrAuthority(modelUri) };
const rawSource = source ? source.raw : { path: modelUri.scheme === 'file' || modelUri.scheme === debug.DEBUG_SCHEME ? paths.normalize(modelUri.fsPath, true) : modelUri.toString(), name: resources.basenameOrAuthority(modelUri) };
if (breakpointsToSend.length) {
rawSource.adapterData = breakpointsToSend[0].adapterData;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册