This commit is contained in:
LZX committed 2026-09-18 20:40:36 +08:00
1 parent 3df0cbc7c0
commit 4614825b7f
30 files changed
+3226 -158

No files matched your search

@@ -105,12 +105,12 @@ class _CodeCompletionManagementViewState
final l10n = AppLocalizations.of(context);
if (l10n == null) return;
final hasPkg = newConfig.package.trim().isNotEmpty;
final hasPkg = newConfig.package.trim().isNotEmpty || (newConfig.installCommand?.trim().isNotEmpty ?? false);
if (hasPkg) {
final success = await DialogUtils.showSyncLoadingDialog<bool>(
context,
message: l10n.installingComponent(newConfig.package),
task: () => InternalEngineService.instance.installPackage(newConfig.package),
message: l10n.installingComponent(newConfig.name),
task: () => InternalEngineService.instance.installLspConfig(newConfig),
);
if (!mounted) return;