Restricted mode like in VSCode #21218
Labels
cli
Command-line interface feedback
enhancement
[core label]
security & privacy
Data privacy issue, security vulnerabilities, etc
workspace
Feedback for workspace management, layout, interactions, etc
Check for existing issues
Describe the feature
In the discussion in python-lsp/pylsp-mypy#95, I found that blindly running LSP configurations that may designate random executable paths in the local system can be a critical security issue.
This is why there is the restricted mode in VSCode: https://code.visualstudio.com/docs/editor/workspace-trust
I think this addition would be great to ensure safety of the Zed users when browsing random code repositories cloned from the web.
Potential design ideas:
.zed/settings.json
) if included in the version control (with an explicit warning visible to the user). They should be local, private configurations and.gitignore
should exclude them from the source tree. This would be relatively simpler to implement.Related issues:
direnv
environment #4977$PATH
#4978If I could customize the PATH environment variable used by the LSP servers spawned by Zed (both locally and remotely) in per-project basis, I could workaround python-lsp/pylsp-mypy#95.
Environment
Applies to all Zed versions available now.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: