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 2022-01-30 15:28:05 +03:00
parent 3907b55710
commit 5ffeafe845

View File

@ -477,12 +477,17 @@ define([], function () {
languageDef: bsl_language,
completionProvider: {
triggerCharacters: ['.', '"', ' '],
provideCompletionItems: function (model, position, context, token) {
provideCompletionItems: function (model, position, context, token) {
resetSuggestWidgetDisplay();
let bsl = new bslHelper(model, position);
let completion = bsl.getCompletion(context, token);
bsl.onProvideCompletion(context, completion);
return completion;
},
resolveCompletionItem: function (model, position, item) {
let bsl = new bslHelper(model, position);
item = bsl.resolveCompletionItem(item);
return model;
}
},
foldingProvider: {