mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 19:54:26 +08:00
Add complete flog category
This commit is contained in:
parent
246882b52d
commit
483018222d
@ -913,7 +913,7 @@ bool completer_t::complete_param(const wcstring &cmd_orig, const wcstring &popt,
|
||||
// This prevents errors caused during the execution of completion providers for
|
||||
// tools that do not exist. Applies to both manual completions ("cm<TAB>", "cmd <TAB>")
|
||||
// and automatic completions ("gi" autosuggestion provider -> git)
|
||||
debug(4, "Skipping completions for non-existent head\n");
|
||||
FLOG(complete, "Skipping completions for non-existent head");
|
||||
} else {
|
||||
run_on_main_thread([&]() { complete_load(cmd); });
|
||||
}
|
||||
@ -1134,7 +1134,7 @@ void completer_t::complete_param_expand(const wcstring &str, bool do_file,
|
||||
const wcstring sep_string = wcstring(str, sep_index + 1);
|
||||
completion_list_t local_completions;
|
||||
if (expand_string(sep_string, &local_completions, flags, ctx) == expand_result_t::error) {
|
||||
debug(3, L"Error while expanding string '%ls'", sep_string.c_str());
|
||||
FLOGF(complete, L"Error while expanding string '%ls'", sep_string.c_str());
|
||||
}
|
||||
|
||||
// Any COMPLETE_REPLACES_TOKEN will also stomp the separator. We need to "repair" them by
|
||||
@ -1153,7 +1153,7 @@ void completer_t::complete_param_expand(const wcstring &str, bool do_file,
|
||||
if (string_prefixes_string(L"-", str)) flags.clear(expand_flag::fuzzy_match);
|
||||
|
||||
if (expand_string(str, &this->completions, flags, ctx) == expand_result_t::error) {
|
||||
debug(3, L"Error while expanding string '%ls'", str.c_str());
|
||||
FLOGF(complete, L"Error while expanding string '%ls'", str.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -95,6 +95,7 @@ class category_list_t {
|
||||
category_t term_support{L"term-support", L"Terminal feature detection"};
|
||||
|
||||
category_t reader{L"reader", L"The interactive reader/input system"};
|
||||
category_t complete{L"complete", L"The completion system"};
|
||||
};
|
||||
|
||||
/// The class responsible for logging.
|
||||
|
Loading…
x
Reference in New Issue
Block a user