From b58827c389b9dc3bf0220654982dc0cab808f2d3 Mon Sep 17 00:00:00 2001 From: romovs Date: Fri, 21 Dec 2018 21:56:19 +0300 Subject: [PATCH] Fix breakpoint markers disappearing randomly --- app/renderer/components/MonacoEditor/helpers.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/renderer/components/MonacoEditor/helpers.js b/app/renderer/components/MonacoEditor/helpers.js index d2a9dc07..2a9b3760 100644 --- a/app/renderer/components/MonacoEditor/helpers.js +++ b/app/renderer/components/MonacoEditor/helpers.js @@ -39,7 +39,7 @@ export function addBreakpointMarker(editor, line) { const columnNum = editor.getModel().getLineFirstNonWhitespaceColumn(line); const newset = editor.deltaDecorations( [], [{ - range: new monaco.Range(line, columnNum, line, columnNum + 1), + range: new monaco.Range(line, columnNum, line, columnNum), options: { isWholeLine: true, className: 'myContentClass', @@ -104,8 +104,7 @@ export function updateActiveLine(editor, line) { options: { isWholeLine: true, className: 'myContentClass', - linesDecorationsClassName: 'currentLineDecoratorStyle', - someCustomProp: true, + linesDecorationsClassName: 'currentLineDecoratorStyle' } } : null; // build new decorators array, excluding the previous active line marker and including the new one with the update line number