scalameta / coc-metals

Deprecated in favor of scalameta/nvim-metals
http://scalameta.org/metals/
Apache License 2.0
167 stars 24 forks source link

Add support for `findTextInDependencyJars`. #433

Open ckipp01 opened 2 years ago

ckipp01 commented 2 years ago

Describe the feature

This was recently added in Metals as a way to search through dependency jars for values in configurations values. This is useful for example if you want to see some default Akka timeout values or something set in a dep.

Potential ways to implement?

You can see the way I implemented this here in nvim-metals: https://github.com/scalameta/nvim-metals/pull/247/files

The general flow would be:

  1. User triggers this
  2. User gets prompt for file mask
  3. User gets prompt for search
  4. Search goes in and returns results
  5. Display results just like you'd do for references

Additional context

This was added in https://github.com/scalameta/metals/pull/3093