提交 bea82d78 编写于 作者: I isidor

polish: get rid of extra filter call

上级 1ec7f039
......@@ -209,8 +209,10 @@ export class DebugEditorModelManager implements IWorkbenchContribution {
const data: IRawBreakpoint[] = [];
const lineToBreakpointDataMap = new Map<number, IBreakpoint>();
this.debugService.getModel().getBreakpoints().filter(bp => bp.uri.toString() === modelUrlStr).forEach(bp => {
lineToBreakpointDataMap.set(bp.lineNumber, bp);
this.debugService.getModel().getBreakpoints().forEach(bp => {
if (bp.uri.toString() === modelUrlStr) {
lineToBreakpointDataMap.set(bp.lineNumber, bp);
}
});
const modelUri = modelData.model.uri;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册