Unable to close specific tabs after using Markdown preview mode

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Sometimes I can’t close a document tab.

Steps to Reproduce

  1. Open a Markdown file.
  2. Switch to Preview view.
  3. Change some text and don’t save the change.
  4. Switch to Markdown view. It makes a new tab.
  5. Make a change and save the file. Close the markdown tab.
  6. Switch back to the Preview tab.
  7. Attempt to close the tab.

Expected Behavior

I should be able to close the tab.

Operating System

MacOS

Version Information

Version: 3.3.30 (Universal)
VSCode Version: 1.105.1
Commit: 3dc559280adc5f931ade8e25c7b85393842acf30

Additional Information

The only way I’ve found to fix it… close the program and re-open it.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report. I followed the steps and this is a known bug. It’s related to how the WYSIWYG markdown editor tracks the dirty state when switching between Preview and Source, and after that the tab can’t close correctly.

I reported it internally. A fix is in progress, but I can’t share an exact ETA yet. As a workaround, you can use your method and restart the window, or edit markdown only in Source view and don’t switch to Preview while you have unsaved changes.

If we have an update on the fix, we’ll post it here.

Hey @bishop_z, circling back with an update.

After an extra review, we deprioritized this specific bug with the Tab key in Markdown Preview, so there’s no fix planned right now. The workarounds from the previous message still apply: restart the window, or edit the Markdown in Source view without switching to Preview when you have unsaved changes.

If you hit this on a newer version of Cursor, please start a new thread with up-to-date details and we’ll take another look.