Skip to content

Redact environment variables from language server spawn errors#44783

Merged
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
notpeter:redact_error_lsp_output
Dec 18, 2025
Merged

Redact environment variables from language server spawn errors#44783
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
notpeter:redact_error_lsp_output

Conversation

@notpeter
Copy link
Copy Markdown
Contributor

Redact environment variables from zed logs when lsp fails to spawn.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 13, 2025
@notpeter
Copy link
Copy Markdown
Contributor Author

Error observed:

Screenshot 2025-12-13 at 3 48 16 PM

Test with:

  "lsp": {
    "clangd": {
      "binary": {
        "path": "",
      },
    },
  },

CC: @SomeoneToIgnore

@MrSubidubi MrSubidubi changed the title Redact environment variables from lsp spawn errors Redact environment variables from language server spawn errors Dec 13, 2025
Copy link
Copy Markdown
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, it was a rough week (or two?).

I feel that overall, we need to do something better than matching arbitrary strings with regexes, but that's a start and since we do that on errors only, let's try and see how things work.

@SomeoneToIgnore SomeoneToIgnore merged commit 413f4ea into zed-industries:main Dec 18, 2025
25 checks passed
@notpeter
Copy link
Copy Markdown
Contributor Author

Thanks for merging. Yeah, I was definitely happy when the main redact implementation was not regex based and this is definitely a hack.

P.S. Congrats on shipping trust ed workspaces.

rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
Redact environment variables from zed logs when lsp fails to spawn.

Release Notes:

- N/A
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ndustries#44783)

Redact environment variables from zed logs when lsp fails to spawn.

Release Notes:

- N/A
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ndustries#44783)

Redact environment variables from zed logs when lsp fails to spawn.

Release Notes:

- N/A
Anthony-Eid pushed a commit that referenced this pull request Feb 25, 2026
Closes #50007

- Follow-up to: #44783

Release Notes:

- Improved redaction of sensitive environment variables from debugger
error logs.
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
Closes zed-industries#50007

- Follow-up to: zed-industries#44783

Release Notes:

- Improved redaction of sensitive environment variables from debugger
error logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants