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