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

Restrict available menus on readonly editors #3704

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fbricon
Copy link
Contributor

@fbricon fbricon commented Jan 13, 2025

Description

On VS Code, do not display menus that will cause file changes on read-only editors. Fixes #3677

Checklist

  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screenshots

Screenshot 2025-01-13 at 12 05 50

Testing instructions

  • open a file
  • open Command Palette > Toggle Active Editor Read-Only in Session
  • select some text, right-click and open the Continue menu. Only "Add highlighted code to context" should be visible

Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 4181a59
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/6784f4b00971b800088dcd8a

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.

Read-only files should only show read-only actions in the Continue contextual menu
1 participant