Skip to content

Commit

Permalink
Fix breakpoint markers disappearing randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
romovs committed Dec 21, 2018
1 parent 7b23eac commit b58827c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/renderer/components/MonacoEditor/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b58827c

Please sign in to comment.