-
Notifications
You must be signed in to change notification settings - Fork 15
Allow extensions to contribute to F1
show help topic
#785
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
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 |
---|---|---|
|
@@ -25,6 +25,9 @@ ark_methods_table$ark_positron_variable_get_children <- new.env( | |
ark_methods_table$ark_positron_variable_has_viewer <- new.env( | ||
parent = emptyenv() | ||
) | ||
ark_methods_table$ark_positron_help_get_handler <- new.env( | ||
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. Would this be a good place to document the expected behaviour for these handlers? E.g. TRUE/FALSE/NULL return values, expected side effect when This should be documented somewhere else if not here. |
||
parent = emptyenv() | ||
) | ||
lockEnvironment(ark_methods_table, TRUE) | ||
|
||
ark_methods_allowed_packages <- c("torch", "reticulate", "duckplyr") | ||
|
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'm not sure about this. This has the potential to cause side effects. I think we should be as careful as for completions. For instance for
foo$bar
: From the Rust side, inspectfoo
and bail if active or unevaluated promise. Iffoo
is an environment, do the same forbar
.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.
You will probably want to access
RMain::debug_env()
. IfNone
, it means R is not idle and you decline to handle. IfSome
, you inspect that environment. This will have two benefits: