Skip to content
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

Go to Definition in VSCode #90

Open
flepow opened this issue Jun 25, 2024 · 3 comments
Open

Go to Definition in VSCode #90

flepow opened this issue Jun 25, 2024 · 3 comments

Comments

@flepow
Copy link

flepow commented Jun 25, 2024

Please check that your issue is not already in the errata aka list of corrections and improvements. Please note that PRs will be ignored because code in the repo must match the print book already published. Please raise an issue instead so I can handle it appropriately. All issues will be entered into the errata once closed. They will also be fixed in the next book edition.

You can delete the note above after reading it. Please complete as much information below as possible so that I can understand and fix the issue quickly. Screenshots can be especially useful. You can drag and drop images into the box. Thank you!

Chapter: 1
Page Number: 37
Section Title: Getting definitions of types and her members
Step Number: 3
Problem to fix: No Definition Found in VSCode and C#12
Suggested solution:
Other useful information e.g. OS, coding tools, and so on:
Entering "omni" in the command palette says "no matching command" because OmniSharp has been disabled by C#12 in the latest update to VSCode. If OmniSharp is reinstalled, The C# Dev Kit must be disabled or OmniSharp will be ignored. If you disabled the C# Dev Kit "Go to Definition" is removed from the drop down if you right click the "int" keyword. None of the internet suggestions worked for me. What is your workaround in C#12 in VSCode? VS 2022 works fine.

@markjprice
Copy link
Owner

image

@markjprice
Copy link
Owner

An updated step-by-step is available in the .NET 8 book repo:
https://github.com/markjprice/cs12dotnet8/blob/main/docs/code-editors/vscode.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants