From aaca79152196cbef6a3d360458cf08c5d7cb8af1 Mon Sep 17 00:00:00 2001 From: salexdv Date: Thu, 6 Jul 2023 09:44:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B8=20#333?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/editor.js b/src/editor.js index 531769f..d1a85d8 100644 --- a/src/editor.js +++ b/src/editor.js @@ -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();