VS Code Language support for Apache Camel 0.0.20 release
During the past months, several noticeable new features have been added to improve the developer experience of application based on Apache Camel. These updates are available in the 0.0.20 release of Visual Studio (VS) Code extension.
Before going into the list of updates in detail, I want to note that I mentioned in the title the VS Code Extension release because VS Code extension is covering the broader set of new features. Don’t worry if you are using another IDE, though, most features are also available in all other IDEs that support the Camel Language Server (Eclipse Desktop, Eclipse Che, and more).
Camel 3 inside
Camel 3 was released a few weeks ago, and the Camel Language Server is already relying on it internally. What does that mean for the end user? It means that the default catalog is now using Camel 3.
If you are still based on Camel 2.x, no problem; check out the following awesome feature.
Camel catalog version options
A parameter is now available to choose the Camel catalog version that you want. This can be specified in File -> Preferences -> Settings -> Apache Camel Tooling -> Camel catalog version.
Diagnostics with quick fixes and more precise range
Diagnostics are really useful to pinpoint issues in our code. In previous versions, the diagnostic range error was provided on the full Camel URI. Now, for invalid component parameter keys and invalid component parameter enum values, the range is more precise and is pointing to the exact incriminated key or value.
For unknown component parameter keys, there is also a quick fix provided if a component parameter key relatively similar exists. It is very useful in case of small typos.
Additional Camel components
If you are using Camel components that are not part of Camel core catalog, it is now possible to provide the Camel component definition to have it fully supported by the tooling. The Camel component definition is defined as JSON. The JSON file can be found in the jar of the Camel component. The preference can be specified through File -> Preferences -> Settings -> Apache Camel Tooling -> Extra-components -> Edit in settings.json.
Properties file support
Camel allows you to configure general component properties using a Properties file (see here for an example). Completion is available for component ids and component property keys.
This is very opened for the future. There will surely be improvements directed to Apache Camel K support. The Fuse Tooling team is awaiting your feedback on JIRA, on one of the Camel Tooling GitHub repository. or whatever channel you prefer. it will help drive the future roadmap.