mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 04:00:48 +01:00
fix: editor gutter pin not working
This commit is contained in:
parent
91d0735a5f
commit
cfd82c8f41
@ -320,11 +320,11 @@ onMounted(() => {
|
||||
return;
|
||||
|
||||
const row = e.getDocumentPosition().row;
|
||||
const breakpoints = e.editor.value.session.getBreakpoints(row, 0);
|
||||
const breakpoints = e.editor.session.getBreakpoints(row, 0);
|
||||
if (typeof breakpoints[row] === typeof undefined)
|
||||
e.editor.value.session.setBreakpoint(row);
|
||||
e.editor.session.setBreakpoint(row);
|
||||
else
|
||||
e.editor.value.session.clearBreakpoint(row);
|
||||
e.editor.session.clearBreakpoint(row);
|
||||
e.stop();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user