Skip to content
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

Make "Reopen editor with" have a higher priority than the "editor.defaultBinaryEditor" setting. #234461

Open
shutaozhenzhen opened this issue Nov 23, 2024 · 0 comments
Assignees

Comments

@shutaozhenzhen
Copy link

I set editor.defaultBinaryEditor setting to an editor provide by an extension(Hex Editor), but I think the problem do not come from the extension.

I'm viewing a log file capture from a serial port. This log file mostly contains readable text content, but some non-text content is also written to the file when the device restarts, which is why I believe VSCode detects this file as a binary file (I have pinpointed the issue to a file segment that includes a \0 terminator). Therefore, VSCode opens this file using the defaultBinaryEditor, which is not a problem for me. I am just trying to use the "Reopen editor with" feature to reopen the file in the default text editor.

However, VSCode consistently detects this file as a binary file and attempts to redirect it to the defaultBinaryEditor.

I know I can clear the defaultBinaryEditor or set the default text editor, but this would require me to reselect the hexeditor every time I open a binary file.

I feel that when a binary file is detected, the "Reopen editor with" feature should have a higher priority than the defaultBinaryEditor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants