theia-ide / racket-language-server

Racket Language Server
45 stars 8 forks source link

fix symbol lookup feature #16

Closed JJPro closed 4 years ago

JJPro commented 4 years ago

Currently symbol lookup/document outline list every single word in the document, this is not the expected behavior for the protocol, and the server might crash for big files (too many - thousands of - tokens to pass around).

I think the expected behavior of the feature is to help user navigate around function/type definitions. This PR made it to only return function definitions ((define xxx)) and type definitions((define-type xxx)).

Now it is working as expected.

output2

dvc94ch commented 4 years ago

Thanks!