1
0
mirror of https://github.com/salexdv/bsl_console.git synced 2024-11-28 08:48:48 +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 tid = setInterval(function() {
let newDecor = [];
@ -109,6 +109,7 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
}
}, 300);
editor.revealLineInCenter(line);
editor.setPosition(new monaco.Position(line, column));
}
findText = function (string) {