Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build workspace commands in trusted workspace only #1415

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

abeatrix
Copy link
Contributor

RE: https://sourcegraph.slack.com/archives/C052G9Y5Y8H/p1697536651010599?thread_ts=1697536557.499619&cid=C052G9Y5Y8H

fix: check workspace isTrusted before building workspace prompts

Only build workspace commands if the workspace is trusted by checking vscode.workspace.isTrusted.

This prevents building custom commands from an untrusted workspace.

Test plan

  • Check if workspace commands are showing up when you are working in an untrusted workspace
  • user custom-commands are not affected by this change

@abeatrix abeatrix requested review from evict and a team October 17, 2023 14:15
@abeatrix abeatrix merged commit 3483a95 into main Oct 17, 2023
14 of 15 checks passed
@abeatrix abeatrix deleted the bee/trusted-workspace branch October 17, 2023 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants