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)

贡献者指南