IDE extension

Language Server

qianmoQqianmoQ· 更新于 2026-10-09· 阅读 4 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Language Server

Warning

The Apache Hamilton Language Server is an experimental feature under active development. Edge cases, evolving features, and partial documentation are to be expected. Please open a GitHub issue or reach out on Slack for troubleshooting!

The Apache Hamilton Language Server is an implementation of the Language Server Protocol (LSP). It is designed to power the Apache Hamilton VSCode extension which can be installed directly from the VSCode marketplace.

Language servers power IDE features like completion suggestion, go to definition, collect document symbols, etc. The LSP standard was established to make servers portable across IDE frontends (e.g., VSCode, PyCharm, Emacs). Learn more.

Installation

If you’re using the Apache Hamilton VSCode extension, you will prompted to install the language server if it’s not found. Simply click the button and it will install it in your current Python interpreter.

You can also manually install the language server in your Python environment via

pip install "apache-hamilton[lsp]"

Developers

If you want to dig in the internals of the language server and integrate it with another IDE, you can find the source code in the dev tools/ section of the Apache Hamilton GitHub repository. It is also directly available on PyPi at apache-hamilton-lsp.

Note that the package name is hamilton_lsp when used directly via Python code.

评论

登录后参与评论

正在加载评论…