mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-24 08:33:29 +02:00
Метод для вызова предыдущей подсказки #161
This commit is contained in:
parent
e0dbbbd416
commit
7c17186f75
@ -3430,6 +3430,7 @@ class bslHelper {
|
||||
if (customSuggestions.length) {
|
||||
|
||||
suggestions = customSuggestions.slice();
|
||||
editor.previousCustomSuggestions = [...suggestions];
|
||||
|
||||
if (erase)
|
||||
customSuggestions = [];
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user