1
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user