-
Notifications
You must be signed in to change notification settings - Fork 686
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
Consider auto-restore or no restore #1731
Comments
Auto-restore is fairly a large and tricky endeavor that I would not be able to get to any time soon. That said, you might just consider setting the |
I'll do that. W/o restore, will I still get intellisense for .NET Core types but just not NuGet dependencies? |
You will get IntelliSense for references that MSBuild is able to resolve. I expect that without an assets file, that would be nothing. |
Note: This is also related to #141, which might improve your experience quite a bit. That issue is about batching the restore prompts better so that you don't get individual prompts for each project. |
One final comment: performing a restore is about getting the correct references to the C# compilation in order to provide any IDE functionality at all. It's not just about IntelliSense. An un-restored project will have no navigational features (Go To Definition, Find All References), squiggles will appear everywhere, etc., etc. |
Makes sense. Yes, my comment about intellisense was way too narrow.
Yes, that would be a big step forward. |
Dotnet restore in the background is a very important feature. Given that VS2017 and Ionide support it, I think OmniSharp should do it in vscode as well. |
Yep, that's a crucial one. :) |
Will this be implemented? |
Closing as auto restore is supported. |
I frequently open up Code at a spot on disk that has multiple .NET Core projects. I imagine many people do this. When that happens, I see many requests to restore projects. It would be great if that didn't happen, particularly since restore is no longer important with the .NET Core 2.0 SDK.
I imagine that restore is required to provide intellisense. Is it possible to have a setting that auto restores, potentially not until first click into a .cs (or pick your lang) file within a given directory with a .NET Core msbuild file?
The C# plug-in downloads a pile of stuff to my machine for its own purposes automatically already, so it would be great if restore was the same.
The text was updated successfully, but these errors were encountered: