SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
546 stars 36 forks source link

Default edit file permissions #355

Closed rishi-dhar closed 1 year ago

rishi-dhar commented 2 years ago

Noticed that when I edit a file on remote server via the extension the file permissions change from rw-r--r-- (644) to rw------- (600). How do I avoid that? Would like the file permissions to stay the same after an edit.

SchoofsKelvin commented 1 year ago

When editing a file, the extension first stat's the file to get its current permissions and reuses that. As a side note, in the Settings UI you can change the default file mode for new files, but this defaults to rw-rw-r-- so I'm not sure where your 600 comes from. If this is still an issue, could you reopen the issue with more information?