-
Notifications
You must be signed in to change notification settings - Fork 675
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
Rename file code fix doesn't work #1195
Comments
Thanks for the report @jchannon |
I can imagine why this would fail. Essentially, the service in omnisharp-roslyn gathers up all of the text changes and sends them back to the editor host (in this case, C# for VS Code) to apply. However, in this case, there aren't any text changes, just a file rename. This is something we'll need to handle in omnisharp-roslyn. |
This should be fixed as of #1805 |
Unless we've added code to tell VS Code to apply a file rename, I wouldn't expect this to be fixed. |
@rchande : Please check the repro. This is about the Rename File code fix, which still does not work. |
@DustinCampbell You're right, this is a different bug. Thanks for noticing :) |
The error message it gives me in a toaster is
It's a pretty weird error, since the |
I am having this exact same issue. |
This is very strange. I decided I wanted to fix this issue, I started by reproducing with the current release version which I was able to do easily. Next I got the code running on my machine, however when I try to reproduce the bug it doesn't happen even if I do a prod build with the current release version v1.24.4 checked out. I'm not really sure how to properly debug the production version of the extension so idk what's going on. I did see this error in the dev tools console.
this shows up a few seconds after vscode tries to open the file |
Unable to reproduce in the current release. |
Environment data
dotnet --info
output:VS Code version:1.9.0
C# Extension version:1.7.0-beta4
Steps to reproduce
Have a file called Foo.cs and a class declaration inside called Bar. In the context menu choose
Rename file to Bar.cs
Expected behavior
The file is renamed
Actual behavior
Nothing happens. Omnisharp logs contains the below but no file is renamed.
The text was updated successfully, but these errors were encountered: