vscode-csharp: codeLens, go to definition and find references are not working
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.1
VS Code version: 1.10.2 C# Extension version: 1.8.1
Steps to reproduce
install vs code install c# extension install dotnet core sdk -> codeLens, go to definition and find references are working suddenly, codeLens, go to definition and find references are working
Expected behavior
codeLens, go to definition and find references should be working
Actual behavior
codeLens, go to definition and find references are not working (I can’t find related menus in context menu when I right click)
please help me : (
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (4 by maintainers)
Found out that this was caused by the .sln and .csproj files missing. Had to reimport the VSCode asset into unity and that fixed everything.
看不懂english
Hi! Sorry for not getting back to you sooner. Any chance you could provide your complete OmniSharp Log after opening this project? To display the log, select View->Output to display the Output pane and select “OmniSharp Log” from the drop-down in the top-right corner of the pane.
guess you should not exclude “Assembly-CSharp-Editor-firstpass.csproj”, see the example
settings.json
from https://code.visualstudio.com/docs/other/unity, that works for me