Skip to content

Fix document symbols for function-like objects#990

Merged
pfitzseb merged 2 commits intojulia-vscode:masterfrom
BenPH:callable-object-document-symbols
Nov 4, 2021
Merged

Fix document symbols for function-like objects#990
pfitzseb merged 2 commits intojulia-vscode:masterfrom
BenPH:callable-object-document-symbols

Conversation

@BenPH
Copy link
Copy Markdown
Contributor

@BenPH BenPH commented Nov 4, 2021

Fixes julia-vscode/julia-vscode#2303

Function-like objects were being rejected as valid bindings by is_valid_binding_name and so all symbols in their scope were escaping.

I don't know if it's the most intuitive but right now I have on ::TheType for the name given to callable object symbols.

image

@pfitzseb
Copy link
Copy Markdown
Member

pfitzseb commented Nov 4, 2021

Cool, thanks for the fix! Would you mind adding a test hereabouts for this?

@pfitzseb pfitzseb merged commit 24ebd22 into julia-vscode:master Nov 4, 2021
@pfitzseb
Copy link
Copy Markdown
Member

pfitzseb commented Nov 4, 2021

Added a test in 915c462.

@BenPH BenPH deleted the callable-object-document-symbols branch January 24, 2023 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function object (functor) not parsed correctly

2 participants