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

Позиционирование на строке с ошибкой

This commit is contained in:
salexdv 2020-07-30 09:36:03 +03:00
parent 054d5cc0c2
commit dfe421a529

View File

@ -92,7 +92,7 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
} }
markError = function (line) { markError = function (line, column) {
let count = 12; let count = 12;
let tid = setInterval(function() { let tid = setInterval(function() {
let newDecor = []; let newDecor = [];
@ -109,6 +109,7 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
} }
}, 300); }, 300);
editor.revealLineInCenter(line); editor.revealLineInCenter(line);
editor.setPosition(new monaco.Position(line, column));
} }
findText = function (string) { findText = function (string) {