Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Automatically open QMD files in visual/source editor if specified #577
Automatically open QMD files in visual/source editor if specified #577
Changes from 3 commits
8fbcbfc
ed97a28
cd181b4
66aaea2
d2d8bcd
5d88ec7
88c00c5
d9bea7d
6824712
9e27565
a80bf80
dad050a
0cf2ea6
d5ec9c9
d0a65d7
0660b46
fed009c
14673be
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like we don't have things quite right in this changing active text editor listener
Screen.Recording.2024-10-22.at.4.37.39.PM.mov
Screen.Recording.2024-10-22.at.4.37.57.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this could be replaced as
"*.qmd"
if we instead exposeupdateUserAssociations
from the Positron sideThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I wonder if we could expose
updateUserAssociations()
with the slightly better name ofsetEditorAssociations()
, but then expose it frompositron.d.ts
rather than as a command (either in the top level'positron'
namespace, or under a new'workbench'
sub namespace, mirroring what VS Code has. That would work like our existing'language'
and'runtime'
sub namespaces).That would probably be nice because it would force you to look at Quarto's
hasHooks()
andhooksApi()
helpers to determine whether or not you are in positron (we use that in a few other places too)(FWIW
saveAllTitled
had to be a command to be able to call it from R, but this feels more like an Extension API feature that can be a "real" function exported frompositron.d.ts
)