microsoft / vscode-hexeditor

VS Code Hex Editor
https://marketplace.visualstudio.com/items?itemName=ms-vscode.hexeditor
MIT License
523 stars 84 forks source link

Switching tabs and back after saving a paste messes the editor. #511

Closed tomilho closed 4 months ago

tomilho commented 4 months ago
  1. Open a file in a text editor and in the hex editor, so you have two tabs open.
  2. Paste some bytes on insert mode in the hex editor and save it.
  3. Switch to the text editor and back to the hex editor.
  4. You'll see what you pasted twice.

bug

Note: Replacing works fine. This only happens when inserting and switching tabs in a way that hides the hex editor.

I attempted to fix this issue but couldn't figure out anything. For some reason, the debugger stops working with all files under ./editor after switching tabs.

Any help would be greatly appreciated.