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

Read only files are not properly marked in the editor #69476

Closed
miguelsolorio opened this issue Feb 26, 2019 · 5 comments
Closed

Read only files are not properly marked in the editor #69476

miguelsolorio opened this issue Feb 26, 2019 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) file-explorer Explorer widget issues
Milestone

Comments

@miguelsolorio
Copy link
Contributor

Issue Type: Bug

I've got a file set to Read only but am not seeing this properly marked in the editor like #53022. Did this change?

image

image

VS Code version: Code - Insiders 1.32.0-insider (003521e, 2019-02-15T06:14:19.935Z)
OS version: Darwin x64 18.0.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 16.00GB (1.69GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (5)
Extension Author (truncated) Version
svgo 100 0.11.0
vscode-svgo ajh 0.1.0
gitlens eam 9.5.1
svgpreview kis 0.2.0
python ms- 2019.1.0

(6 theme extensions excluded)

@isidorn
Copy link
Contributor

isidorn commented Feb 27, 2019

The issue is probably that the file system provider does not mark the item as read only resulting in us not showing it as readonly in the explorer.

@isidorn isidorn added file-explorer Explorer widget issues bug Issue identified by VS Code Team member as probable bug labels Feb 27, 2019
@isidorn isidorn added this to the Backlog milestone Feb 27, 2019
@gjsjohnmurray
Copy link
Contributor

@isidorn - How does a file system provider mark an individual item as read only? I've been searching for this ability. I know that an extension implementing a FileSystemProvider can set isReadonly: true when it registers, thanks to #52330 (see also #51585). But what you wrote above implies it can decide on a per-file basis whether to make a file readonly or not.

@isidorn
Copy link
Contributor

isidorn commented Mar 1, 2019

@gjsjohnmurray I was not correct in my comment from above. A FileSystemProvider can not mark a single item as readonly. It is a you say that it can only mark isReadonly when it registers.

@isidorn isidorn added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 8, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 8, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@isidorn
Copy link
Contributor

isidorn commented Oct 8, 2019

Dup of #69651

@jrieken jrieken closed this as completed Oct 8, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests

4 participants