mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Обогащение подсказки при первой активации в списке
This commit is contained in:
parent
3907b55710
commit
5ffeafe845
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user