Home

Awesome

Camel LSP client for Sublime

The idea is to leverage the Sublime LSP package.

Download Sublime

Download from SublimeText 4 page

Camel Language Server Support Demo for XML

For instance, code completion for Camel XML.

Demo

Camel Language Server Support Demo for JAVA

For instance, code completion for Camel JAVA. Demo

Install LSP plugin

Configure LSP plugin for Camel

{

	"clients":
	{
		"Camel":
		{
			"command":
			[
				"java",
				"-jar",
				"PATH/TO/camel-lsp-server-1.6.0.jar"
			],
			"enabled": true,
			"languages": [
				{
					"selector": "text.xml",
					"priority_selector": "text.xml",
				},
				{
					"selector": "source.java",
					"priority_selector": "source.java",
				}
			],
		},
	},
}

Follow these steps to automatically download the latest Apache Camel language server jar and create required LSP configurations.

Download and install a recent Java Development Kit

Java must be added to the system path

git clone https://github.com/camel-tooling/camel-lsp-client-sublime.git ~/.config/sublime-text/Packages/LSP-camel

Enjoy the Completion of Camel URI in Sublime.