-
Notifications
You must be signed in to change notification settings - Fork 676
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
Intellisense for C# does not work in multiproject environment #904
Comments
Which version of the C# extension do you have installed? |
I have version 1.4.1. ( Omnisharp C# extension) |
Here is further version information. If needed I can upload a video of the issue. I am just trying to make VS code better :-)
|
Thanks for the additional information. I suspect this is the same issue that was reported in #735 awhile back. This should be fixed in our latest beta release of the C# extension. Could you try the beta and see if it fixes your issue? You can do the following to install a beta release of the extension:
Let me know if this works any better for your scenario. |
I did all of the above steps. It did not resolve the issue. I am not getting intellisense both for core types as well as custom types. |
@PradeepLoganathan: Could you paste your OmniSharp log here for me?
Copy and paste the content here. |
This is fixed in OmniSharp now. Once we take a new build for the extension, we'll publish a beta that you can try. Otherwise, the fix will be available when we ship 1.6 of the extension in the coming weeks. |
I've created a v1.6-beta2 release of the C# extension that contains this fix, among others. See this page for information on installing beta releases |
@DustinCampbell I installed the beta and also updated VS code to the latest version (1.7.1 --> 1.7.2 ) and am happy to say it works great :-) thanks. 👍 |
@DustinCampbell I am not sure where the best place is to post this, either here or in a new issue... I am using VS Code 1.18.1 and have a very simple test workspace where intellisense does not work in C# when opening the multi-project workspace. It works if I open each project in their own VS Code process. Steps to reproduce:
If you open the workspace, intellisense no longer works from top to classlib. Any idea why? Is this on the roadmap to be something that should work? It seems like it should. It is killing our team having to have several VS Code instances up in order to get intellisense. Thanks! |
You might need to tell OmniSharp to launch on the correct project. Try this: open your workspace and open a C# file in the editor. At the bottom-right of VS Code, there should be a little OmniSharp "flame" icon in the status bar. Click on that and it should bring up a project launcher that allows you to select which folder in your workspace that OmniSharp is launched on. |
@imuni4fun : If my suggestion doesn't work, please file a different issue as your query is definitely not related to this closed issue (since it pre-dates multi-root workspaces in VS Code). |
Also, you might check out this issue where I gave the same solution: #1889. |
@DustinCampbell great, thanks! That did the trick. I also see # 909 (OmniSharp/omnisharp-roslyn#909) which tracks the intended end result where we won't have to choose which single root project omnisharp is aware of, which was my next question. Any idea when that might land? |
I don't have a date, but it's definitely on the backlog. There are several things it's stacked up behind however. |
This is still not working |
From @PradeepLoganathan on November 10, 2016 7:8
Steps to Reproduce:
Copied from original issue: microsoft/vscode#15282
The text was updated successfully, but these errors were encountered: