1
0
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:
salexdv 2021-05-06 22:06:12 +03:00
parent c64b0cd7f5
commit ce951f08e4

View File

@ -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;
}
},