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

Метод для вызова предыдущей подсказки #161

This commit is contained in:
salexdv 2021-05-31 09:16:03 +03:00
parent e0dbbbd416
commit 7c17186f75
2 changed files with 14 additions and 0 deletions

View File

@ -3430,6 +3430,7 @@ class bslHelper {
if (customSuggestions.length) {
suggestions = customSuggestions.slice();
editor.previousCustomSuggestions = [...suggestions];
if (erase)
customSuggestions = [];

View File

@ -658,6 +658,19 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
}
showPreviousCustomSuggestions = function () {
if (editor.previousCustomSuggestions) {
customSuggestions = [...editor.previousCustomSuggestions];
triggerSuggestions();
return true;
}
else {
return false;
}
}
nextDiff = function() {
if (editor.navi)