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

Workspace setting to open files as read-only/non-editable via editor. #12227

Closed
rmchndrng opened this issue Sep 18, 2016 · 1 comment
Closed
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality

Comments

@rmchndrng
Copy link

  • VSCode Version:1.5.2
  • OS Version:Windows 10

Feature request: Option to allow certain files to be open in the editor only as Read-only.
A workspace settings similar to "files.exclude".

"files.readOnly": {       
         "client/src/app/common":true, //Folder
         "server/src/common":true,
         "common/**/*.ts":true //Globs,
         "client/src/app/test.ts":true //Specific file
}

With the above settings, a user will not be able to make any changes to the files specified via the editor.

A sample scenario is mentioned in the stack overflow question
http://stackoverflow.com/questions/39560184/open-certain-files-in-a-workspace-as-read-only-in-vs-code

@bpasero bpasero changed the title Feature Request: Workspace setting to open files as read-only/non-editable via editor. Workspace setting to open files as read-only/non-editable via editor. Sep 19, 2016
@bpasero bpasero added feature-request Request for new features or functionality editor labels Sep 19, 2016
@Bill-Stewart
Copy link

Duplicate of #4873 ?

@alexdima alexdima added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 23, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants