-
Notifications
You must be signed in to change notification settings - Fork 126
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
Add support for class, class types and methods in DocumentSymbol #1487
Add support for class, class types and methods in DocumentSymbol #1487
Conversation
109e180
to
e317de2
Compare
~kind:Class | ||
~range:(Range.of_loc decl.pci_loc) | ||
~selectionRange:(Range.of_loc decl.pci_name.loc) | ||
~children:(visit_class_sig decl.pci_expr) |
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.
Since you don't rely on the iterator for nested symbols like it's done in other cases, isn't there a risk that we would miss some of these nested symbols ?
Like x
in class a = object method f = let x = 42 in x end
?
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 you want to return that x
, local value are usually not listed AFAICT (but don't take my word for it)
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.
That's a good question. From my (perhaps clumsy) point of view, I get the impression that we want to be able to navigate in all outlines, don't we?
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 tested it in vscode before writing my comment, and local values do show in the "outline",but maybe that's another request ?
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.
Pull Request Test Coverage Report for Build 4767Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 4771Details
💛 - Coveralls |
The PR is reviewable! |
Thanks Xavier, looks good to go. |
Should resolve #1449