Two preview buttons appear for `.rmd` files
Description
When you open a .rmd file in Positron, you will notice that the Editor Action Bar will show two preview buttons.
When you open a .qmd file, this is not the case:
System details:
Positron and OS details:
Dev latest. macOS latest.
Interpreter details:
- N/A
Describe the issue:
When you open a .rmd file in Positron, you will notice that the Editor Action Bar will show two preview buttons.
Steps to reproduce the issue:
- Open a
.qmdfile. - Review the buttons on the Editor Action Bar. Notice that Preview appears twice.
Expected or desired behavior:
There should be on Preview button on the Editor Action Bar.
Were there any error messages in the UI, Output panel, or Developer Tools console?
No.
QA Notes
See https://github.com/posit-dev/positron/pull/7853 for an e2e test work around. Once this is fixed, we should probably revert this and get rid of the .nth(0)
We need to update this to go on the left side now:
https://github.com/posit-dev/positron/blob/276cdf2c4f4b7c3584cfb7e3375a3d9494057254/extensions/positron-r/package.json#L636
The same PR should probably also bump the version of the Quarto extension so we for sure have the version with the preview button on the left.
It is also the case with .md file
I do not observe this in a regular .md file. Can you say more about that, @ntluong95?
It is the button next to the left of the button "Split Editor Right". It is the button coming from "Markdown" extension bundled by Vscode
Can you share a screenshot of what you observe for a regular .md file, @ntluong95? Here is what I see:
This is what I see from my computer
Looks like the icon set you are using happens to have the same icon for "Open Preview to the Side" and "Preview". In the default icon set, they are different.
You are right. I used the Atom Material Icons. So I think it should be my problem only then
Verified Fixed
Positron Version(s) : 2025.07.0-99
OS Version : OSX
Test scenario(s)
No longer seeing two preview buttons
Link(s) to TestRail test cases run or created: