This is the support for Apache Camel K functionality for Visual Studio Code
From version 0.0.32 we provide Language Support for Java(TM) by Red Hat and Debugger for Java as dependencies.
With Language Support for Java, you will benefit from Java Language completion on standalone files. An invisible project is created with a default classpath.
The command Refresh local Java classpath for Camel K standalone file based on the current editor
refreshes specific dependencies for the classpath of the opened Integration, such as dependencies declared as part of the modeline of the file. When using a modeline to configure such dependencies, you gain a CodeLens link (Refresh classpath dependencies
) at the top of the editor to trigger the refresh more easily.
Be aware of the following limitations:
jbang
to be available on system command-line.Debugger for Java is provided to benefit from Java debug on standalone files. To leverage it, you need to start an integration, then there are 2 solutions:
Start Java debugger on Camel K integration
.camel-k-debug
VS Code tasks and then to launch a java
attach in debug VS Code tasks.