-
Notifications
You must be signed in to change notification settings - Fork 17
Emit R6Class methods as workspace symbols #861
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
Changes from all commits
8f8f293
cba4960
3e705dd
8387de0
5ec2eed
2032df1
05b989b
95bf05d
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 |
---|---|---|
|
@@ -267,6 +267,7 @@ fn completions_from_workspace_arguments( | |
return Ok(None); | ||
}, | ||
indexer::IndexEntryData::Variable { .. } => return Ok(None), | ||
indexer::IndexEntryData::Method { .. } => return Ok(None), | ||
} | ||
|
||
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 it be worth trying to give these a unique name? Like, trying to sniff out the R6 class name to include as well? Imagine if I implemented two of three of these similar interfaces in the same file, then I'd have no way of telling them apart What does Rust do for something like this? https://github.com/DavisVaughan/almanac/blob/main/R/cache-rrule.R ![]() 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. Rust doesn't emit methods as Workspace symbols so this issue doesn't arise. I think the file name is good enough to disambiguate most of the time? But we could probably make your suggestion work like this: 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 think that would be kind of cool to also make it distinct as an R6 method? Maybe no parens, so |
||
// Only 1 call worth of arguments are added to the completion set. | ||
|
Uh oh!
There was an error while loading. Please reload this page.