|
40 | 40 | import com.devonfw.tools.ide.common.SystemPath; |
41 | 41 | import com.devonfw.tools.ide.completion.CompletionCandidate; |
42 | 42 | import com.devonfw.tools.ide.completion.CompletionCandidateCollector; |
43 | | -import com.devonfw.tools.ide.completion.CompletionCandidateCollectorDefault; |
44 | 43 | import com.devonfw.tools.ide.environment.AbstractEnvironmentVariables; |
45 | 44 | import com.devonfw.tools.ide.environment.EnvironmentVariables; |
46 | 45 | import com.devonfw.tools.ide.environment.EnvironmentVariablesType; |
|
76 | 75 | import com.devonfw.tools.ide.tool.mvn.MvnRepository; |
77 | 76 | import com.devonfw.tools.ide.tool.npm.NpmRepository; |
78 | 77 | import com.devonfw.tools.ide.tool.pip.PipRepository; |
| 78 | +import com.devonfw.tools.ide.tool.python.PythonRepository; |
79 | 79 | import com.devonfw.tools.ide.tool.repository.DefaultToolRepository; |
80 | 80 | import com.devonfw.tools.ide.tool.repository.ToolRepository; |
81 | | -import com.devonfw.tools.ide.tool.python.PythonRepository; |
82 | 81 | import com.devonfw.tools.ide.tool.uv.UvRepository; |
83 | 82 | import com.devonfw.tools.ide.url.model.UrlMetadata; |
84 | 83 | import com.devonfw.tools.ide.util.DateTimeUtil; |
@@ -1543,9 +1542,8 @@ public void verifyIdeMinVersion(boolean throwException) { |
1543 | 1542 | * @param includeContextOptions to include the options of {@link ContextCommandlet}. |
1544 | 1543 | * @return the {@link List} of {@link CompletionCandidate}s to suggest. |
1545 | 1544 | */ |
1546 | | - public List<CompletionCandidate> complete(CliArguments arguments, boolean includeContextOptions) { |
| 1545 | + public List<CompletionCandidate> complete(CliArguments arguments, CompletionCandidateCollector collector, boolean includeContextOptions) { |
1547 | 1546 |
|
1548 | | - CompletionCandidateCollector collector = new CompletionCandidateCollectorDefault(this); |
1549 | 1547 | if (arguments.current().isStart()) { |
1550 | 1548 | arguments.next(); |
1551 | 1549 | } |
@@ -1595,6 +1593,7 @@ private Property<?> nextValueProperty(Iterator<Property<?>> valueIterator, CliAr |
1595 | 1593 | private void completeCommandlet(CliArguments arguments, Commandlet cmd, CompletionCandidateCollector collector) { |
1596 | 1594 |
|
1597 | 1595 | LOG.trace("Trying to match arguments for auto-completion for commandlet {}", cmd.getName()); |
| 1596 | + |
1598 | 1597 | Iterator<Property<?>> valueIterator = cmd.getValues().iterator(); |
1599 | 1598 | valueIterator.next(); // skip first property since this is the keyword property that already matched to find the commandlet |
1600 | 1599 | Property<?> currentValueProperty = nextValueProperty(valueIterator, arguments); |
|
0 commit comments