mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Функции, возвращающие содержимое, номер и колонку для текущей строки
This commit is contained in:
parent
4414bacbe2
commit
888715299e
@ -333,6 +333,24 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
|
||||
|
||||
}
|
||||
|
||||
getCurrentLineContent = function() {
|
||||
|
||||
return getLineContent(editor.getPosition().lineNumber);
|
||||
|
||||
}
|
||||
|
||||
getCurrentLine = function() {
|
||||
|
||||
return editor.getPosition().lineNumber;
|
||||
|
||||
}
|
||||
|
||||
getCurrentColumn = function() {
|
||||
|
||||
return editor.getPosition().column;
|
||||
|
||||
}
|
||||
|
||||
setLineContent = function(lineNumber, text) {
|
||||
|
||||
if (lineNumber <= getLineCount()) {
|
||||
|
Loading…
Reference in New Issue
Block a user