SchoofsKelvin / vscode-sshfs

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

Interaction with other extentions (PHP Intelephense, Bookmarks) #275

Closed ASMag closed 3 years ago

ASMag commented 3 years ago

Thanks for writing extention SSH FS!

Situation: I would like to use SSH FS to open php files from a server directly without indirection by WinSCP or doing a local copy of the files.

Issue: Othe VSC extentions like PHP Intelephense oder Boomarks do not work properly with files, which are opened by SSH FS. Bookmark extention: Context menue is available. But the blue bookmark symbol left beside the line number is not showed immediately after bookmarking a line. It is showed after switching back from another opened file. PHP Intelephense extention: "Keine Symbole im Dokument" (German for "no symbols in document"). So no information like names of variables, functions, classes are available in the left bottom corner.

Image shows the described issue: SSH FS interaction with Bookmark, PHP Intelephense

Does SSH FS use another kind of viewing files in VSC?

SchoofsKelvin commented 3 years ago

Duplicate of #27, #31, #42, #45, #106, #157, #272, ...

Basically, extensions need to use the FileSystemProvider system (what this extension uses to provide files inside VS Code), but most extensions only work with files on the local system. Extensions need to be updated to use this new extension API, which not a lot of extensions do. This is especially difficult for intellisense (language-server) extensions that execute a binary (which cna only access local files) which the extension communicates with.

In such cases, using VS Code's Remote SSH feature is better.