scalameta/metals

Clean constructor parameters for `Indexer` and `ScalaCli`

Open

#4,788 opened on Jan 1, 2023

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Scala (421 forks)batch import
good first issueimprovementtech debt

Repository metrics

Stars
 (2,300 stars)
PR merge metrics
 (Avg merge 3d 11h) (122 merged PRs in 30d)

Description

Another follow up after https://github.com/scalameta/metals/pull/4776.

There's need to pass every constructor argument as a function in scala.meta.internal.metals.Indexer and scala.meta.internals.ScalaCli

  • Usually, replacing () =>, should be straighforward change, but sometimes () => was used to capture mutable state.
  • probably Indexerand ScalaCli aren't the only ones which can be refactored. Person doing this task can browse other classes (optional)

Contributor guide