mirror of
https://github.com/salexdv/bsl_console.git
synced 2025-02-19 19:10:09 +02:00
Опции для отключения стандартных подсказок #176
This commit is contained in:
parent
131c84f6e0
commit
20323694bf
@ -13,4 +13,10 @@ setOption("skipInsertSuggestionAcceptor", true);
|
||||
|
||||
## Список опциональных настроек
|
||||
* `skipInsertSuggestionAcceptor` - *boolean*, позволяет пропустить вставку символа, заданного функцией *setActiveSuggestionAcceptors* и вызвавшего выбор активного пункта подсказки
|
||||
* `skipAcceptionSelectedSuggestion` - *boolean*, позволяет пропустить вставку текста активного пункта подсказки при нажатии символа, заданного функцией *setActiveSuggestionAcceptors*
|
||||
* `skipAcceptionSelectedSuggestion` - *boolean*, позволяет пропустить вставку текста активного пункта подсказки при нажатии символа, заданного функцией *setActiveSuggestionAcceptors*
|
||||
|
||||
##### Управление подсказками
|
||||
Позволяет оставить только пользовательские подсказки
|
||||
* `disableNativeSuggestions` - *boolean*, отключает стандартные подсказки
|
||||
* `disableNativeSignatures` - *boolean*, отключает стандартные подсказки по вызову процедуры/функции
|
||||
* `disableNativeHovers` - *boolean*, отключает стандартные всплывающие подсказки при наведении курсора мыши на слово
|
@ -2250,7 +2250,7 @@ class bslHelper {
|
||||
|
||||
let suggestions = this.getCustomSuggestions(true);
|
||||
|
||||
if (!suggestions.length) {
|
||||
if (!suggestions.length && !editor.disableNativeSuggestions) {
|
||||
|
||||
if (!this.isItStringLiteral()) {
|
||||
suggestions = this.getCodeCompletition(context, token);
|
||||
@ -3492,7 +3492,7 @@ class bslHelper {
|
||||
|
||||
let suggestions = this.getCustomSuggestions(true);
|
||||
|
||||
if (!suggestions.length) {
|
||||
if (!suggestions.length && !editor.disableNativeSuggestions) {
|
||||
|
||||
if (!this.requireQueryValue()) {
|
||||
|
||||
@ -3546,7 +3546,7 @@ class bslHelper {
|
||||
|
||||
let suggestions = this.getCustomSuggestions(true);
|
||||
|
||||
if (!suggestions.length) {
|
||||
if (!suggestions.length && !editor.disableNativeSuggestions) {
|
||||
|
||||
if (!this.requireQueryValue()) {
|
||||
|
||||
@ -4052,20 +4052,24 @@ class bslHelper {
|
||||
|
||||
let helper = this.getCustomSigHelp(context);
|
||||
|
||||
if (!helper)
|
||||
helper = this.getRefSigHelp();
|
||||
if (!editor.disableNativeSignatures) {
|
||||
|
||||
if (!helper)
|
||||
helper = this.getMetadataSigHelp(bslMetadata);
|
||||
if (!helper)
|
||||
helper = this.getRefSigHelp();
|
||||
|
||||
if (!helper)
|
||||
helper = this.getClassSigHelp(bslGlobals.classes);
|
||||
if (!helper)
|
||||
helper = this.getMetadataSigHelp(bslMetadata);
|
||||
|
||||
if (!helper)
|
||||
helper = this.getCommonSigHelp(bslGlobals.globalfunctions);
|
||||
if (!helper)
|
||||
helper = this.getClassSigHelp(bslGlobals.classes);
|
||||
|
||||
if (!helper)
|
||||
helper = this.getCommonSigHelp(bslGlobals.customFunctions);
|
||||
if (!helper)
|
||||
helper = this.getCommonSigHelp(bslGlobals.globalfunctions);
|
||||
|
||||
if (!helper)
|
||||
helper = this.getCommonSigHelp(bslGlobals.customFunctions);
|
||||
|
||||
}
|
||||
|
||||
if (helper)
|
||||
return new SignatureHelpResult(helper);
|
||||
@ -4089,7 +4093,7 @@ class bslHelper {
|
||||
|
||||
let helper = this.getCustomSigHelp(context);
|
||||
|
||||
if (!helper) {
|
||||
if (!helper && !editor.disableNativeSignatures) {
|
||||
let functions = this.getQueryFunctions(bslQuery);
|
||||
helper = this.getCommonSigHelp(functions);
|
||||
}
|
||||
@ -4116,7 +4120,7 @@ class bslHelper {
|
||||
|
||||
let helper = this.getCustomSigHelp(context);
|
||||
|
||||
if (!helper) {
|
||||
if (!helper && !editor.disableNativeSignatures) {
|
||||
|
||||
let functions = this.getQueryFunctions(bslDCS);
|
||||
helper = this.getCommonSigHelp(functions);
|
||||
@ -4599,7 +4603,7 @@ class bslHelper {
|
||||
|
||||
let hover = this.getCustomHover();
|
||||
|
||||
if (!hover) {
|
||||
if (!hover && !editor.disableNativeHovers) {
|
||||
|
||||
for (const [key, value] of Object.entries(bslGlobals)) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user