ZIm/crates/language_tools/src
David Barsky 7ade7d8e45
lsp-config: Allow setting a server's environment variables (#27213)
Closes https://github.com/zed-industries/zed/issues/14334, allowing
users to set environment variables for a language server binary like:

```json
"lsp": {
  "rust-analyzer": {
    "binary": {
      "path": "/Users/dbarsky/.cargo/bin/rust-analyzer",
      "env": {
        "RA_PROFILE": "*>100"
      }
    },
  }
}
```

The newly introduced environment variables are merged with the shell
environment. Perhaps more controversially, I've _also_ removed the
trimming/`stderr:`-prefixing of language server logs. This because
rust-analyzer has some nice, tree-shaped profiling built-in, and it
prevents us from printing profiles like this:

<details>
<img width="1147" alt="Screenshot 2025-03-20 at 12 09 14 PM"
src="https://github.com/user-attachments/assets/b7066651-6394-492b-b745-906c66d3c7b2"
/>
</details>

Release Notes:

- Added the ability to set a language server's environment variables.
- Removed the `stderr`-prefix of a language server's stderr logs.
2025-03-21 09:15:41 +02:00
..
key_context_view.rs Display case-sensitive keybindings for vim commands (#24322) 2025-02-14 22:03:59 -07:00
language_tools.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
lsp_log.rs lsp-config: Allow setting a server's environment variables (#27213) 2025-03-21 09:15:41 +02:00
lsp_log_tests.rs Persist selections for editors (#25083) 2025-02-18 14:27:00 +00:00
syntax_tree_view.rs language_tools: Add background color to syntax tree view (#24524) 2025-02-09 15:54:14 +00:00