vscode-phpunit icon indicating copy to clipboard operation
vscode-phpunit copied to clipboard

Editor is read-only because the file system of the file is read-only

Open ennorehling opened this issue 2 years ago • 4 comments

I have a Laravel Sail project that I am developing with the source living inside WSL. VS Code runs on Windows, and opens the project files through a WSL Remote connection. I can run my PHPUnit tests from the Test Explorer, but when I click on the "Go To Test" icon next to a test, the editor opens the source in read-only mode, saying "Editor is read-only because the file system of the file is read-only" when I try to modify it. Opening the same file from my project folder in the normal Explorer view lets me edit it just fine. Why is this happening? Because that's a neat shortcut, and I want to use it.

image

Checking with a terminal, the file is owned by me and writable, and I can edit it when I open it through normal methods (via the Explorer in VS Code or in a terminal with vim).

ennorehling avatar Aug 17 '23 08:08 ennorehling