scalameta/metals

Clean constructor parameters for `Indexer` and `ScalaCli`

Open

#4,788 建立於 2023年1月1日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Scala (2,300 star) (421 fork)batch import
good first issueimprovementtech debt

描述

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)

貢獻者指南