From 14fcde21d6512fe5a8c38b0cf6595c7ef0898526 Mon Sep 17 00:00:00 2001 From: salexdv Date: Wed, 9 Dec 2020 13:49:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B8=20?= =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=BD?= =?UTF-8?q?=D0=BE=20=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B5=D0=B6=D0=B8?= =?UTF-8?q?=D0=BC=D0=B0=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions.js | 44 ++++++++++++++++++++++---------------------- src/snippets.js | 4 ++-- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/actions.js b/src/actions.js index 583fe87..33fccad 100644 --- a/src/actions.js +++ b/src/actions.js @@ -43,7 +43,29 @@ define(['vs/editor/editor.main'], function () { sendEvent('EVENT_QUERY_CONSTRUCT', queryMode ? getText() : getQuery()); return null; } + }; + + actions.comment_bsl = { + label: 'Добавить комментарий', + key: monaco.KeyMod.CtrlCmd | monaco.KeyCode.NUMPAD_DIVIDE, + cmd: monaco.KeyMod.chord(monaco.KeyMod.CtrlCmd | monaco.KeyCode.NUMPAD_DIVIDE), + order: 1.5, + callback: function (ed) { + addComment(); + return null; + } }; + + actions.uncomment_bsl = { + label: 'Удалить комментарий', + key: monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.NUMPAD_DIVIDE, + cmd: monaco.KeyMod.chord(monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.NUMPAD_DIVIDE), + order: 1.6, + callback: function (ed) { + removeComment(); + return null; + } + }; if (!queryMode) { @@ -58,28 +80,6 @@ define(['vs/editor/editor.main'], function () { } }; - actions.comment_bsl = { - label: 'Добавить комментарий', - key: monaco.KeyMod.CtrlCmd | monaco.KeyCode.NUMPAD_DIVIDE, - cmd: monaco.KeyMod.chord(monaco.KeyMod.CtrlCmd | monaco.KeyCode.NUMPAD_DIVIDE), - order: 1.5, - callback: function (ed) { - addComment(); - return null; - } - }; - - actions.uncomment_bsl = { - label: 'Удалить комментарий', - key: monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.NUMPAD_DIVIDE, - cmd: monaco.KeyMod.chord(monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.NUMPAD_DIVIDE), - order: 1.6, - callback: function (ed) { - removeComment(); - return null; - } - }; - actions.format_bsl = { label: 'Форматировать', key: monaco.KeyMod.Alt | monaco.KeyMod.Shift | monaco.KeyCode.KEY_F, diff --git a/src/snippets.js b/src/snippets.js index 10523bb..0450a0e 100644 --- a/src/snippets.js +++ b/src/snippets.js @@ -1100,9 +1100,9 @@ define([], function () { querySnippets = { "Выбор": { - "prefix": "Выбор", + "prefix": "ВЫБОР", "body": "ВЫБОР\n\tКОГДА ${1:Условие}\n\t\tТОГДА $2\n\tИНАЧЕ $0\nКОНЕЦ", - "description": "Выбор" + "description": "ВЫБОР" } }