提交 effc0215 编写于 作者: I isidor

breakpoint event 'update' for backward compatibility

上级 4370c5ad
......@@ -381,7 +381,8 @@ export class DebugService implements debug.IDebugService {
}
// For compatibilty reasons check if wrong reason and source not present
if (event.body.reason === 'changed' || (event.body.reason === 'new' && !event.body.breakpoint.source)) {
// TODO@Isidor clean up these checks in October
if (event.body.reason === 'changed' || (event.body.reason === 'new' && !event.body.breakpoint.source) || event.body.reason === 'update') {
if (breakpoint) {
if (!breakpoint.column) {
event.body.breakpoint.column = undefined;
......@@ -1096,6 +1097,7 @@ export class DebugService implements debug.IDebugService {
const source = process.sources.get(modelUri.toString());
const rawSource = source ? source.raw : { path: paths.normalize(modelUri.fsPath, true), name: paths.basename(modelUri.fsPath) };
return session.setBreakpoints({
source: rawSource,
lines: breakpointsToSend.map(bp => bp.lineNumber),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册