-
Notifications
You must be signed in to change notification settings - Fork 45
in VE use Positron's statementRangeProvider to execute statements
#825
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
base: main
Are you sure you want to change the base?
Changes from all commits
26098ab
3a513f0
8192468
f688c6f
f8347ed
e944e72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ export interface CodeViewActiveBlockContext { | |
| selectedText: string; | ||
| } | ||
|
|
||
| export type CodeViewSelectionAction = "nextline" | "nextblock" | "prevblock"; | ||
| export type CodeViewSelectionAction = "nextline" | "nextblock" | "prevblock" | { line: number, character: number }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if you want to add a field to that object that you can explicitly use as the tag for a tagged union. If you needed to expand the type today, then you've accepted that migrations are necessary. But you've now made migration a little bit harder in the case where a new value also has |
||
|
|
||
| export interface CodeViewCellContext { | ||
| filepath: string; | ||
|
|
||
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.
Instead of adding a new use of
hasHooks(), can we use the better support in thepositronnpm package, like this:quarto/apps/vscode/src/core/quarto.ts
Line 20 in 681e682
And then something like:
We don't need to do a wholesale refactor of the extension, but let's not add new uses of the old, worse approach.