From 0235a7ec64576c5d788884aa3fbb4c4bfb474901 Mon Sep 17 00:00:00 2001 From: salexdv Date: Thu, 18 Feb 2021 19:02:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D1=82=D0=BE=D0=B4=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D0=B0=20=D0=BD=D0=BE?= =?UTF-8?q?=D0=BC=D0=B5=D1=80=D0=BE=D0=B2=20=D1=81=D1=82=D1=80=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/editor.js b/src/editor.js index c4130ab..97a7600 100644 --- a/src/editor.js +++ b/src/editor.js @@ -536,7 +536,13 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit hideLineNumbers = function() { - editor.updateOptions({ lineNumbers: false, lineDecorationsWidth: 0 }) + editor.updateOptions({ lineNumbers: false, lineDecorationsWidth: 0 }); + + } + + showLineNumbers = function() { + + editor.updateOptions({ lineNumbers: true, lineDecorationsWidth: 10 }); }