ZIm/crates/project/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
..
debugger debugger: Fix shutdown issues (#27071) 2025-03-20 18:32:37 +00:00
git_store Migrate most callers of git-related worktree APIs to use the GitStore (#27225) 2025-03-21 00:10:17 -04:00
lsp_command Remove language::markdown (#25136) 2025-02-19 08:55:36 -07:00
lsp_store Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
project_tree cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
buffer_store.rs Migrate most callers of git-related worktree APIs to use the GitStore (#27225) 2025-03-21 00:10:17 -04:00
color_extractor.rs Simplify static expression to a constant (#23193) 2025-01-15 19:31:21 +00:00
connection_manager.rs Migrate most callers of git-related worktree APIs to use the GitStore (#27225) 2025-03-21 00:10:17 -04:00
debounced_delay.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
debugger.rs Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00
direnv.rs Environment loading fixes (#19144) 2024-10-16 12:14:40 +02:00
environment.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
git_store.rs Migrate most callers of git-related worktree APIs to use the GitStore (#27225) 2025-03-21 00:10:17 -04:00
image_store.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
lsp_command.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
lsp_store.rs lsp-config: Allow setting a server's environment variables (#27213) 2025-03-21 09:15:41 +02:00
prettier_store.rs Fix code action formatters creating separate transaction (#26311) 2025-03-19 20:59:43 -05:00
project.rs Migrate most callers of git-related worktree APIs to use the GitStore (#27225) 2025-03-21 00:10:17 -04:00
project_settings.rs lsp-config: Allow setting a server's environment variables (#27213) 2025-03-21 09:15:41 +02:00
project_tests.rs debugger: Ensure both debug and regular global tasks are correctly merged (#27184) 2025-03-20 12:51:26 +00:00
project_tree.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
search.rs Revert "Use multi-line regex for '\s'" (#25926) 2025-03-03 10:32:49 -05:00
search_history.rs project search: Persist search history across session (#9932) 2024-04-02 11:13:18 +02:00
task_inventory.rs Notify about broken task file contents (#27185) 2025-03-20 13:06:10 +00:00
task_store.rs Notify about broken task file contents (#27185) 2025-03-20 13:06:10 +00:00
terminals.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
toolchain_store.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
worktree_store.rs Migrate most callers of git-related worktree APIs to use the GitStore (#27225) 2025-03-21 00:10:17 -04:00
yarn.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00