Works for record
s, template
s and env.ref()
For more features check out the [wiki].
shell
cargo install --git https://github.com/Desdaemon/odoo-lsp
Nightly binaries are also available for some platforms, please check [Releases] for the latest downloads.
For usage instructions please check the [wiki] (work in progress).
odoo-lsp is available from the Visual Studio Marketplace and the Open VSX Registry. Alternatively, you can grab the latest nightly builds from [Releases].
odoo-lsp
on your path (or define the SERVER_PATH environment variable pointing to one)~/.config/helix/
on Linuxlanguages.toml
in your Helix runtime folder (create one if none exists) to include these lines:```toml [language-server]
odoo-lsp.command = "odoo-lsp"
[[language]] name = "xml" language-servers = ["odoo-lsp"]
[[language]] name = "python"
language-servers = [ "odoo-lsp", # add the default language servers here "pylsp", # and any you need ] ```
$ROOT/.helix/languages.toml
where $ROOT
is your Odoo modules root to include the above lines.pnpm i
cargo build
Launch Client
Note If encountered errors like
Cannot find module '/xxx/xxx/dist/extension.js'
please try run commandtsc -b
manually, you could refer https://github.com/IWANABETHATGUY/tower-lsp-boilerplate/issues/6 for more details