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

Небольшая задержка при установке опциональных настроек closes #182

This commit is contained in:
salexdv 2022-08-08 08:52:55 +03:00
parent 03dce0c7d2
commit 801b96d367

View File

@ -1105,20 +1105,24 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
setOption = function (optionName, optionValue) {
editor[optionName] = optionValue;
editor_options[optionName] = optionValue;
setTimeout(() => {
if (optionName == 'generateBeforeSignatureEvent')
startStopSignatureObserver();
editor[optionName] = optionValue;
editor_options[optionName] = optionValue;
if (optionName == 'generateSelectSuggestEvent')
startStopSuggestSelectionObserver();
if (optionName == 'generateBeforeSignatureEvent')
startStopSignatureObserver();
if (optionName == 'disableDefinitionMessage')
startStopDefinitionMessegeObserver();
if (optionName == 'generateSelectSuggestEvent')
startStopSuggestSelectionObserver();
if (optionName == 'generateSuggestActivationEvent')
startStopSuggestActivationObserver();
if (optionName == 'disableDefinitionMessage')
startStopDefinitionMessegeObserver();
if (optionName == 'generateSuggestActivationEvent')
startStopSuggestActivationObserver();
}, 10);
}