davsclaus opened a new pull request, #27146:
URL: https://github.com/apache/camel/pull/27146

   _Claude Code on behalf of davsclaus_
   
   [CAMEL-25198](https://issues.apache.org/jira/browse/CAMEL-25198). Builds on 
#27144 (XML jump links) and targets its branch; it moves to `main` when #27144 
is merged.
   
   The route jump links of the TUI Source tab (YAML, Java since CAMEL-25192, 
XML since CAMEL-25196) only indexed the routes of the folder being viewed. In a 
Java project the route builders are often in several packages, so a route 
sending to a route of another package got no link, and `g` (go to route) only 
listed one folder.
   
   - The index covers the YAML, XML and Java files under the source directory 
of the integration. It leaves out build output (`target`, `build`, ...), hidden 
folders and `src/test`, and reads at most 2000 files.
   - It is cached per file by its modification time, as it is rebuilt when a 
folder is opened. Java files are read again when any Java file of the project 
changes, as a route may take a constant of another class; Java routes resolve 
constants from all the project's Java sources.
   - A jump to a route in another folder shows that folder with the file 
selected.
   - Without a source directory (no running integration), the folder shown is 
indexed as before.
   
   ### Tests
   
   - `SourceTabJumpLinksTest.routesOfEveryFolderOfTheProject`: two packages 
linked both ways, a test source and a build copy left out.
   - camel-jbang-plugin-tui: 1438 tests.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to