diff --git a/plugins/terminal/resources/META-INF/terminal.xml b/plugins/terminal/resources/META-INF/terminal.xml
index ff4855966e03..e0940ba546ce 100644
--- a/plugins/terminal/resources/META-INF/terminal.xml
+++ b/plugins/terminal/resources/META-INF/terminal.xml
@@ -100,17 +100,13 @@
order="first, before terminalPowerShell, after ml_context"/>
-
List? = { commandName ->
tracer.spanBuilder("terminal-completion-compute-completion-items").useWithScope {
completion.computeCompletionItems(commandName, commandArguments)
@@ -191,7 +193,7 @@ class TerminalCommandSpecCompletionContributorGen2 : CompletionContributor(), Du
}
// aliases generator does not requires actual typed prefix
val dummyRuntimeContext = context.runtimeContextProvider.getContext("")
- val aliases: Map = context.generatorsExecutor.execute(dummyRuntimeContext, aliasesGenerator())
+ val aliases: Map = context.generatorsExecutor.execute(dummyRuntimeContext, ShellEnvBasedGenerators.aliasesGenerator())
val expandedTokens = expandAliases(tokens, aliases, context)
return expandedTokens
}
@@ -224,9 +226,9 @@ class TerminalCommandSpecCompletionContributorGen2 : CompletionContributor(), Du
}
private fun ShellCompletionSuggestion.toLookupElement(shellType: ShellType): LookupElement {
- val actualIcon = icon ?: findIconForSuggestion(name, type)
+ val actualIcon = icon ?: TerminalCompletionUtil.findIconForSuggestion(name, type)
val realInsertValue = insertValue?.replace("{cursor}", "")
- val nextSuggestions = getNextSuggestionsString(this).takeIf { it.isNotEmpty() }
+ val nextSuggestions = TerminalCompletionUtil.getNextSuggestionsString(this).takeIf { it.isNotEmpty() }
val escapedInsertValue = StringUtil.escapeChar(realInsertValue ?: name, ' ')
// Remove path separator from insert value, so there will be an exact match
@@ -290,4 +292,4 @@ class TerminalCommandSpecCompletionContributorGen2 : CompletionContributor(), Du
get() = parameters.editor.project!!
}
-}
+}
\ No newline at end of file