提交 34912d28 编写于 作者: A André Weinand

avoid unnecessary work

上级 d384b85e
...@@ -1205,7 +1205,7 @@ export class DebugService implements debug.IDebugService { ...@@ -1205,7 +1205,7 @@ export class DebugService implements debug.IDebugService {
return TPromise.as(null); return TPromise.as(null);
} }
const breakpointsToSend = this.model.getBreakpoints().filter(bp => this.model.areBreakpointsActivated() && bp.enabled && bp.uri.toString() === modelUri.toString()); const breakpointsToSend = this.model.getActivatedBreakpointsForResource(modelUri).filter(bp => bp.enabled);
const source = process.getSourceForUri(modelUri); const source = process.getSourceForUri(modelUri);
let rawSource: DebugProtocol.Source; let rawSource: DebugProtocol.Source;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册