SchoofsKelvin / vscode-sshfs

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

Run VS Code with admin privileges so the changes can be applied. #131

Closed fakhamatia closed 5 years ago

fakhamatia commented 5 years ago

Every time i use ssh extension VSCode show this

"Run VS Code with admin privileges so the changes can be applied."

Its OK? because extension work OK but i cant remove file or folder but i can rename

SchoofsKelvin commented 5 years ago

That's weird. The extension doesn't require any admin privileges, nor does it request any. What OS and VSCode/extension version are you on?

fakhamatia commented 5 years ago

VSCode > 1.33.1 Extension > 1.16.1 Ubuntu 18.04 > Client Ubuntu 16.04 > Server Remote Folder /var/www/html

Screenshot from 2019-04-23 17-02-44

SchoofsKelvin commented 5 years ago

A quick google search indicates it is probably another extension:

Try disabling other extensions and see if that message still appears.

fakhamatia commented 5 years ago

I disable vscode-custom-css and message didn't show. That is weird, before i use ssh extension message didn't show , but when click connect error will appear. whats the connection?

SchoofsKelvin commented 5 years ago

When you remote your ssh fs, it opens ssh://sharif-camera/ as WorkspaceFolder. The extension probably assumes every WorkspaceFolder is on the local drive, and tries to access /sharif-camera (or something like /sharif-camera/some-css-extension-file.ext). That directory doesn't exist, so the OS throws a Permission Denied error or something, which is what the extension thinks is the problem.

Since the problem isn't caused by this extension, I'll be closing this issue. You should probably report this issue to the developers of the vscode-custom-css extension if you want this to get fixed.