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

Доработка сниппетов в showCustomSuggestions #200

This commit is contained in:
salexdv 2021-09-08 08:52:00 +03:00
parent 720ada889b
commit 2aed74a618

View File

@ -3765,8 +3765,19 @@ class bslHelper {
if (erase)
customSuggestions = [];
if (editor.showSnippetsOnCustomSuggestions)
this.getSnippets(suggestions, snippets, true);
if (editor.showSnippetsOnCustomSuggestions) {
let snippents_collection = snippets;
if (queryMode)
snippents_collection = querySnippets;
if (queryMode)
snippents_collection = DCSSnippets;
this.getSnippets(suggestions, snippents_collection, true);
}
}