-
Notifications
You must be signed in to change notification settings - Fork 654
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
[BUG] Cannot accept override suggestion #6246
Comments
@Sanerins thanks for reporting! Would it be possible to get a minimal repro project from you? |
I am experiencing the same/similar issue. A little more detail from me: Fresh vscode install with C# and dotnet runtime install tool extensions only Fresh Godot project with a Node2D and CanvasItem2D sprite Script attached to base Node2D Scene Code complete works in some method call cases (see gif) Code suggestion works, but code complete doesn't work with creating a method override no matter using tab, click, enter (see gif) Code repo: https://github.com/xwlwx/CodeCompletionFailureDemo Code.Completion.Failure.Demo.mp4 |
@arkalyanms Sorry for a long wait, here is the exact project I showed in my gif https://github.com/Sanerins/vscode-bug-showcase |
@arkalyanms thank you for a gif, I reread my previous problem once again and noticed that I said that target file was |
@arkalyanms Thanks for a swift answer! I want to dig to the bottom of it, so I thought for a bit what might be causing all of this like a Sherlok and come to the conclusion that all of the complaints from all of the three people have one thing in common - files were created not in vscode itself, but rather via different program (Godot in @xwlwx and my case, Unity in NamelessPerson case). So I started to try to proof or deny my theory, and so far it seems like it might actually be the case. If I create new file, e.g There are also additional abnormality, that even if I delete the cs file created by external program and then create new file with vscode, it still won't work normally Here is a showcase of this very experience. Now I'm not sure whether it's a c# extention bug, since it's caused by third-party software, but on the other hand I'm not sure why creation of a file with Godot or Unity would result in such behaviour, considering that other ides e.g Rider seem not to have similar problems handling files created that way. 2023-09-05.22-47-05.mp4 |
From vscode-dotnettools created by NamelessPerson: microsoft/vscode-dotnettools#434
Describe the Issue
When typing "override" in a class, suggestions for methods to override appear but after accepting them, the code does not appear.
Steps To Reproduce
On windows with unity project with C# Dev Kit enabled.
Inside class that inherits from another class with an overideable method
Type "override"
Get suggestions for overideable methods
Accept suggestion
Expected Behavior
Accepted suggested fills in code
Environment Information
The text was updated successfully, but these errors were encountered: