debug: refactor updating of breakpoints

fixes #42200
This commit is contained in:
isidor
2018-02-06 22:03:39 +01:00
parent bc7b804fde
commit 15d8874eb8
6 changed files with 40 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import uri from 'vs/base/common/uri';
import { IDebugService, IConfig, IDebugConfigurationProvider, IBreakpoint, IFunctionBreakpoint, IRawBreakpoint } from 'vs/workbench/parts/debug/common/debug';
import { IDebugService, IConfig, IDebugConfigurationProvider, IBreakpoint, IFunctionBreakpoint, IBreakpointData } from 'vs/workbench/parts/debug/common/debug';
import { TPromise } from 'vs/base/common/winjs.base';
import { IWorkspaceContextService } from 'vs/platform/workspace/common/workspace';
import {
@@ -97,7 +97,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
for (let dto of DTOs) {
if (dto.type === 'sourceMulti') {
const rawbps = dto.lines.map(l =>
<IRawBreakpoint>{
<IBreakpointData>{
id: l.id,
enabled: l.enabled,
lineNumber: l.line + 1,