-
Notifications
You must be signed in to change notification settings - Fork 91
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
Open active file in hex editor doesn't work when another custom editor is opened #239
Comments
This is because |
Yeah this is a long standing issue, VS Code currently doesn't have an API to get the URI for the active editor. It's heavily requested and I know @eamodio was working on it at one point but I don't know the current progress. This is a command I added for discoverability but it doesn't work from custom editor to custom editor. I guess we could surface a notification here, although I do like to avoid notifications :) |
I see there's a propose |
This one is probably caused by the same problem: When I open a binary file in VS Code, instead of a regular text editor, a message is shown stating that the file encoding is not supported. "Open active file in hex editor" does not work in this scenario, either. |
@lramos15 I hit this again the other day, how about in the failure case we just run the reopen editor with command as a workaround? That's a lot nicer and more convenient than just nothing happening. |
@Tyriar this is still blocked until the finalization of microsoft/vscode#133532 because we do not know the URI of the active tab and therefore cannot use the commands |
@lramos15 it's active, so you can just run the |
@lramos15 the API is done now, could this get put on the plan soon? |
Not sure if the repro is another custom editor or related to the file type.
Repro:
The text was updated successfully, but these errors were encountered: