dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.86k stars 671 forks source link

vscode FileSystem Extensions (is supported?) #2940

Open chswin opened 5 years ago

chswin commented 5 years ago

Is this supposed to support .sln and .csproj files on remote file filesystems (filesystem extensions)?

akshita31 commented 5 years ago

@chswin Omnisharp supports running and debugging for projects that have either sln or csproj. I am not sure I understand what do you mean by support on remote file systems. Can you elaborate a bit ?

chswin commented 5 years ago

I have a webapi that allows the users to author controllers at runtime. I use roslyn for compilation and currently have a self authored winform based IDE. I have written a remote filesystem provider for VS Code -> https://github.com/Microsoft/vscode-extension-samples/tree/master/fsprovider-sample .

It works well and was simple to author as it wired up nicely to my existing management controllers. The provider exposes the all the code as .cs files, dynamically creates .sln and *.csproj files on the fly accordingly. But it seems the omnisharp/vscode plugin does not acknowledge it... it is as if it only can handle local "stuff".

filipw commented 5 years ago

OmniSharp doesn't use VS Code abstractions to talk to the filesystem, it accesses the file system directly, so at the moment the in-memory VS Code filesystem would not work with OmniSharp.