-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files without a project #207
Comments
Heh... nice to hear you talk about VSCode on here :) We should be able to support this scenario already, by specifying the folder to the cs file. We do this in other editors already. |
@nosami This doesn't work right now AFAIK because the project systems (asp.net 5 and msbuild) try to find projects in the folder (sln and project.json respectively) and if they don't find any projects, they just exit without populating workspace with anything. scriptcs project system is the only one that discovers loose files and adds them to workspace but it's |
Ah, ok. I was getting confused with the old server which does work this way.
|
@filipw - and you go with mscorlib which comes with desktop clr/mono right? So no happy path for core clr users? wondering if we could funnel in some default lib for this case... |
yeah right now it just uses desktop/mono mscorlib. I have started a separate repo so that all the same information could be retrieved from CSX files when omnisharp itself runs on coreclr https://github.com/filipw/scriptcs-dnx this is very rough outline now, but this approach should be replacing the embedded scriptcs dlls in the future btw, one more thing, at the moment roslyn scripting doesn't support core clr, in fact it doesn't even work on mono, so scriptcs uses roslyn binaries on windows and mono.csharp on mono but going back to the original topic, I think orphan |
Agreed - orphan |
@filipw @jrieken I have been trying to add a OrphanProjectSystem for the orphan files. But the main problem I am running into is how to identify whether a particular document is an orphan document or has a project associated with it. I tried to invoke the GetDocument on the workspace and if a null is returned, then assuming that this is a orphan file. However, the problem with this approach is that the ProjectUpdate runs asynchronously for MSBuild Project system, hence the initialization of the orphan system is running before the projects have been added to the workspace, so even the files associated with a project are being treated as orphan files. Here is the branch : master...akshita31:orphan_system .Any suggestions ? |
Hi, I still experience the formatting issue when opening a standalone .cs file: |
In VSCode we encounter solo
cs
-files which don't belong to a project. While we OmniSharp cannot provide semantic features (IntelliSense, type check, etc) we could enable syntactical features which require a parse tree only (Formatting, outline, etc)The text was updated successfully, but these errors were encountered: