-
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
Show Fixes -> Generate type in new file creates an empty file #2112
Comments
When I click on "Generate Class" (in the same text file), it works fine. |
I installed the current version on VS Code Insider, and on previous VS Code versions but I still had the same issue. So it looks like this issue is not coming from VS Code but more of this extension itself. I installed v1.13.1 (https://github.com/OmniSharp/omnisharp-vscode/releases) and the issue was gone. I can generate a new type in a new file. The version v1.14.0 appears to have introduced this issue. I did not test with other versions. I tested with Auto Extension Update disabled. This feature is so important to me and it looks like I will have to stay with v1.13.1 for now. |
For a future note to myself and for anyone trying to reproduce: To disable auto updating extensions: To install a specific version of Extension: Click on the "Install from VXIS" from the above screenshot, or
|
This issue is not fixed in the most updated beta version v1.15.0-beta3 |
Thanks for the added detail @brokenbacon! @rchande, could this have been broken with some of your code action changes in 1.14? |
This should be fixed now. |
Environment data
dotnet --info
output:VS Code version:
C# Extension version:
1.14.0
Steps to reproduce
Startup.cs
.Ctrl + .
MyClass.cs
Although the screenshots show I'm using some extensions, I removed all the other extensions from VS Code when I was testing this. Plus I tested on two different machines.
Expected behavior
The generated class or interface file should have namespace and class name defined from templates.
Actual behavior
The generated file has no content.
This is bothering me so much. Any helps will be appreciated!
The text was updated successfully, but these errors were encountered: