mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Исправил ошибку с появлением подсказки по вызову для несуществующей функции fixes #94
This commit is contained in:
parent
c64b0cd7f5
commit
ce951f08e4
@ -424,13 +424,6 @@ define([], function () {
|
||||
|
||||
let bsl = new bslHelper(model, position);
|
||||
|
||||
let widget = document.querySelector('.parameter-hints-widget');
|
||||
|
||||
if (widget) {
|
||||
widget.style.display = '';
|
||||
widget.style.visibility = '';
|
||||
}
|
||||
|
||||
if (generateBeforeSignatureEvent) {
|
||||
let activeSignature = context.activeSignatureHelp ? context.activeSignatureHelp.activeSignature : 0;
|
||||
let params = {
|
||||
@ -444,7 +437,20 @@ define([], function () {
|
||||
sendEvent('EVENT_BEFORE_SIGNATURE', params);
|
||||
}
|
||||
|
||||
return bsl.getSigHelp(context);
|
||||
let helper = bsl.getSigHelp(context);
|
||||
|
||||
if (helper) {
|
||||
|
||||
let widget = document.querySelector('.parameter-hints-widget');
|
||||
|
||||
if (widget) {
|
||||
widget.style.display = '';
|
||||
widget.style.visibility = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return helper;
|
||||
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user