mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
fix bogus breakpoint position; fixes #39665
This commit is contained in:
@@ -111,10 +111,8 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
|
||||
condition: sbp.condition,
|
||||
hitCondition: bp.hitCondition,
|
||||
sourceUriStr: sbp.uri.toString(),
|
||||
location: {
|
||||
line: sbp.lineNumber,
|
||||
character: sbp.column
|
||||
}
|
||||
line: sbp.lineNumber > 0 ? sbp.lineNumber - 1 : 0,
|
||||
character: (typeof sbp.column === 'number' && sbp.column > 0) ? sbp.column - 1 : 0
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user