fast check for autocomplete!
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 1m17s
Build-Test-Publish / build (linux/arm64) (push) Successful in 2m47s

This commit is contained in:
2025-09-30 13:56:47 +13:00
parent 0643d4e80f
commit 8bf5583818
8 changed files with 1394 additions and 67 deletions

View File

@@ -24,7 +24,7 @@ namespace dropshell
!service_info.user.empty();
}
std::vector<LocalServiceInfo> get_server_services_info(const std::string &server_name)
std::vector<LocalServiceInfo> get_server_services_info(const std::string &server_name, bool fast)
{
std::vector<LocalServiceInfo> services;
@@ -50,7 +50,7 @@ namespace dropshell
std::string dirname = entry.path().filename().string();
if (dirname.empty() || dirname[0] == '.' || dirname[0] == '_')
continue;
auto service = get_service_info(server_name, dirname);
auto service = get_service_info(server_name, dirname, fast);
if (!service.local_service_path.empty())
services.push_back(service);
else
@@ -73,7 +73,7 @@ namespace dropshell
return it->second == "true";
}
LocalServiceInfo get_service_info(const std::string &server_name, const std::string &service_name)
LocalServiceInfo get_service_info(const std::string &server_name, const std::string &service_name, bool fast)
{
LocalServiceInfo service;
@@ -111,7 +111,7 @@ namespace dropshell
service.template_name = it->second;
}
template_info tinfo = gTemplateManager().get_template_info(service.template_name);
template_info tinfo = gTemplateManager().get_template_info(service.template_name,fast);
if (!tinfo.is_set())
{
// Template not found - this means it's not available locally OR from registry