Skip to content

Commit

Permalink
fixes #50026
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed May 30, 2018
1 parent e1df00d commit a5b667d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -195,7 +195,9 @@ export class DebugEditorContribution implements IDebugEditorContribution {
const breakpoints = this.debugService.getModel().getBreakpoints({ uri, lineNumber });

if (breakpoints.length) {
if (breakpoints.some(bp => !!bp.condition || !!bp.logMessage || !!bp.hitCondition)) {
// Show the dialog if there is a potential condition to be accidently lost.
// Do not show dialog on linux due to electron issue freezing the mouse #50026
if (!env.isLinux && breakpoints.some(bp => !!bp.condition || !!bp.logMessage || !!bp.hitCondition)) {
const logPoint = breakpoints.every(bp => !!bp.logMessage);
const breakpointType = logPoint ? nls.localize('logPoint', "Logpoint") : nls.localize('breakpoint', "Breakpoint");
this.dialogService.show(severity.Info, nls.localize('breakpointHasCondition', "This {0} has a {1} that will get lost on remove. Consider disabling the {0} instead.",
Expand Down

0 comments on commit a5b667d

Please sign in to comment.