scalameta/metals

Clean constructor parameters for `Indexer` and `ScalaCli`

開放

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

 (6 則留言) (0 個反應) (0 位負責人)Scala (421 個分叉)batch import
good first issueimprovementtech debt

倉庫指標

星標
 (2,300 顆星)
PR 合併指標
 (平均合併 3天 11小時) (30 天內合併 122 個 PR)

描述

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)

貢獻者指南