1
0
mirror of https://github.com/salexdv/bsl_console.git synced 2024-11-24 08:33:29 +02:00

Функция для удаления строки #333

This commit is contained in:
salexdv 2023-07-06 09:44:30 +03:00
parent dfc719eca6
commit aaca791521

View File

@ -599,6 +599,15 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
}
deleteLine = function(lineNumber) {
editor.executeEdits('addLine', [{
range: new monaco.Range(lineNumber, 1, lineNumber + 1, 1),
text: null
}]);
}
getPositionOffset = function() {
let position = editor.getPosition();