mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-08 17:02:17 +00:00
Fixes #2034 Call hierarchy, Find Usages and rename widen a server's answer by opening project files that mention the symbol's name and asking again. For JDT LS those files are mostly sources it already analyses, so nearly every incoming-calls request ran a second, slow round before anything was shown. Widening now asks the server which candidates are already in its analysis scope (optional `openidea.workspace.coveredFiles` command, served by the bundled JDT extension using the live source search scope) and only opens the rest; a missing or failing answer keeps the previous behaviour. Covers call hierarchy, references and rename. Hierarchy on a multi-module Maven fixture: median 703 ms → 224 ms, one query round.
23 lines
1.0 KiB
XML
23 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<plugin>
|
|
<extension point="org.eclipse.jdt.ls.core.delegateCommandHandler">
|
|
<delegateCommandHandler class="ai.openidea.usages.CoveredFilesCommand">
|
|
<command id="openidea.workspace.coveredFiles"/>
|
|
</delegateCommandHandler>
|
|
<delegateCommandHandler class="ai.openidea.usages.UsagesCommand">
|
|
<command id="openidea.java.usages"/>
|
|
</delegateCommandHandler>
|
|
<delegateCommandHandler class="ai.openidea.configuration.ConfigurationCommand">
|
|
<command id="openidea.java.configuration"/>
|
|
<command id="openidea.java.configuration.warmup"/>
|
|
</delegateCommandHandler>
|
|
<delegateCommandHandler class="ai.openidea.implementations.ImplementationsCommand">
|
|
<command id="openidea.java.implementations"/>
|
|
</delegateCommandHandler>
|
|
<delegateCommandHandler class="ai.openidea.hierarchy.HierarchyCommand">
|
|
<command id="openidea.java.hierarchy.members"/>
|
|
<command id="openidea.java.hierarchy.refactor"/>
|
|
</delegateCommandHandler>
|
|
</extension>
|
|
</plugin>
|