mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: editor gutter pin not working
This commit is contained in:
@ -320,11 +320,11 @@ onMounted(() => {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const row = e.getDocumentPosition().row;
|
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)
|
if (typeof breakpoints[row] === typeof undefined)
|
||||||
e.editor.value.session.setBreakpoint(row);
|
e.editor.session.setBreakpoint(row);
|
||||||
else
|
else
|
||||||
e.editor.value.session.clearBreakpoint(row);
|
e.editor.session.clearBreakpoint(row);
|
||||||
e.stop();
|
e.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user