-
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
Support for top level statements is broken #4706
Comments
Please include your omnisharp logs. It's worked for me with top level statements since they were introduced, so there's something else going on. |
@333fred The logs are following: Omnisharp logStarting OmniSharp server at 8/19/2021, 3:50:40 PM OmniSharp server started. Starting OmniSharp on MacOS 11.5.1 (x64) Attempted to update project that is not loaded: /Users/[redacted]/Documents/code/csharp/_tests/WhenAny/WhenAny.csproj But I'm sure the SDK is installed.
|
UpdateThe solution is to restart the computer. Brutal but effective. It does turn out to be something else. @333fred thanks for the help!!! |
Glad to hear it, thanks. |
Environment data
dotnet --info
output:VS Code version: 1.59.0
C# Extension version: v1.23.14
OmniSharp log
Steps to reproduce
Create the three files.
File
WhenAny.csproj
File
Program.cs
Program.cs
File
TaskBuilder.cs
TaskBuilder.cs
Finally
Restart the Omnisharp to rule out the irrelevant factors.
Expected behavior
launch.json
andtasks.json
files.Program.cs
.using WhenAny;
, Omnisharp should notice that something is go wrong.Actual behavior
launch.json
andtasks.json
files.Program.cs
.using WhenAny;
, Omnisharp does not notice that something is go wrong.The text was updated successfully, but these errors were encountered: