Skip to content
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

Workspace symbols refactor #1050

Merged
merged 11 commits into from
Jan 8, 2024
Merged

Conversation

lukaszsamson
Copy link
Collaborator

This PR introduces many improvements to workspace symbols provider

  • make it consider only symbols from the project. Previously all available symbols were scanned
  • return results on empty query. Previously no results were returned due to perf problems
  • reimplemented search engine using elixir_sense Matcher similar to complete
  • deduplication of functions with default args added
  • return containerName
  • return deprecated tag if supported
  • return distinct symbol kind on macros, behaviours, structs

- make it consider only symbols from the project. Previously all available symbols were scanned
- return results on empty query. Previously no results were returned due to perf problems
- reimplemented search engine using elixir_sense Matcher similar to complete
- deduplication of functions with default args added
- return containerName
- return deprecated tag if supported
- return distinct symbol kind on macros, behaviours, structs
…pace symbols

this adds visual distinction between functions and macros in completions (at least in VSCode)
fixes an issue when workspace symbols would not see a newly added module due to app controller keeping old module list
Workaround for elixir-lang/elixir#13001
@lukaszsamson lukaszsamson merged commit 39dc9d5 into master Jan 8, 2024
29 checks passed
@lukaszsamson lukaszsamson deleted the workspace-symbols-refactor-2 branch January 8, 2024 23:11
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.

1 participant