mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
don't hide secondary autocomplete values on select or fully typed
This commit is contained in:
parent
d75b30d51a
commit
7ebf23e9e6
@ -398,7 +398,7 @@ export class AutoComplete {
|
|||||||
,
|
,
|
||||||
);
|
);
|
||||||
this.result.push(option);
|
this.result.push(option);
|
||||||
} else if (this.result.length == 1 && this.effectiveParserResult && this.result[0].name == this.effectiveParserResult.name) {
|
} else if (this.result.length == 1 && this.effectiveParserResult && this.effectiveParserResult != this.secondaryParserResult && this.result[0].name == this.effectiveParserResult.name) {
|
||||||
// only one result that is exactly the current value? just show hint, no autocomplete
|
// only one result that is exactly the current value? just show hint, no autocomplete
|
||||||
this.isReplaceable = false;
|
this.isReplaceable = false;
|
||||||
this.isShowingDetails = false;
|
this.isShowingDetails = false;
|
||||||
|
@ -177,7 +177,7 @@ export class SlashCommandAutoCompleteNameResult extends AutoCompleteNameResult {
|
|||||||
);
|
);
|
||||||
const isCompleteValue = enumList.find(it=>it.value == value);
|
const isCompleteValue = enumList.find(it=>it.value == value);
|
||||||
const isSelectedValue = isSelect && isCompleteValue;
|
const isSelectedValue = isSelect && isCompleteValue;
|
||||||
result.isRequired = cmdArg.isRequired && !isSelectedValue && !isCompleteValue;
|
result.isRequired = cmdArg.isRequired && !isSelectedValue;
|
||||||
result.forceMatch = cmdArg.forceEnum;
|
result.forceMatch = cmdArg.forceEnum;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user