Add language server for Terraform (#7657)
* Depends on: https://github.com/zed-industries/zed/pull/7449 * Closes: https://github.com/zed-industries/zed/issues/5098 --- This PR adds support for downloading and running the Terraform language server for `*.tf` and `*.tfvars` files. I've verified that the code works for `aarch64` and `x86_64` macOS. Downloading new language server versions on release also works as expected. Furthermore this PR adds: - A short docs page for Terraform - An icon for `*.tf` and `*.tfvars` files ## UX ### File Icons  ### Completion  ### Hover  ### Go to definition  ### Formatting  and more! ## Known issue(s) @fdionisi discovered that sometimes completion results are inserted with the wrong indentation. Or rather, if you look closely, they are inserted with the correct indentation and then something shifts the closing `}`. I don't think this is related to LSP support and can be addressed in a separate PR.  Release Notes: - Add language server support for Terraform ([#5098](https://github.com/zed-industries/zed/issues/5098)). --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
8536ba54c3
commit
bbc4ed9cab
5 changed files with 227 additions and 2 deletions
|
@ -36,6 +36,7 @@ mod ruby;
|
|||
mod rust;
|
||||
mod svelte;
|
||||
mod tailwind;
|
||||
mod terraform;
|
||||
mod toml;
|
||||
mod typescript;
|
||||
mod uiua;
|
||||
|
@ -312,8 +313,11 @@ pub fn init(
|
|||
);
|
||||
language("uiua", vec![Arc::new(uiua::UiuaLanguageServer {})]);
|
||||
language("proto", vec![]);
|
||||
language("terraform", vec![]);
|
||||
language("terraform-vars", vec![]);
|
||||
language("terraform", vec![Arc::new(terraform::TerraformLspAdapter)]);
|
||||
language(
|
||||
"terraform-vars",
|
||||
vec![Arc::new(terraform::TerraformLspAdapter)],
|
||||
);
|
||||
language("hcl", vec![]);
|
||||
language(
|
||||
"prisma",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue