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

Установка стиля по умолчанию

This commit is contained in:
salexdv 2022-08-17 12:09:28 +03:00
parent 801b96d367
commit a7597cac4a

View File

@ -669,6 +669,7 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
editor.getOriginalEditor().onDidChangeCursorPosition(e => diffEditorOnDidChangeCursorPosition(e));
editor.getModifiedEditor().onDidLayoutChange(e => diffEditorOnDidLayoutChange(e));
editor.getOriginalEditor().onDidLayoutChange(e => diffEditorOnDidLayoutChange(e));
setDefaultStyle();
}
else
{
@ -940,6 +941,12 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
}
setLetterSpacing = function(letterSpacing) {
editor.updateOptions({letterSpacing: letterSpacing});
}
renderWhitespace = function(enabled) {
let mode = enabled ? 'all' : 'none';
@ -1384,6 +1391,15 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
}
setDefaultStyle = function() {
setFontFamily("Courier New");
setFontSize(14);
setLineHeight(16);
setLetterSpacing(0);
}
generateEventWithSuggestData = function(eventName, trigger, row, suggestRows = []) {
let bsl = new bslHelper(editor.getModel(), editor.getPosition());
@ -1460,6 +1476,8 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
changeCommandKeybinding('editor.action.deleteLines', monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_L);
changeCommandKeybinding('editor.action.selectToBracket', monaco.KeyMod.Shift | monaco.KeyMod.Alt | monaco.KeyCode.KEY_B);
setDefaultStyle();
}
function registerCodeLensProviders() {