scalameta / metals-sublime

Sublime Text package for Metals, a language server for Scala
https://packagecontrol.io/packages/LSP-metals
Apache License 2.0
16 stars 10 forks source link

Handle doctor new format and versions #93

Closed ninth-dev closed 2 years ago

ninth-dev commented 2 years ago

What

Inspiration from nvim-metals to handle different versions. Thanks @ayoub-benali for the referring this.

Cross checked against DoctorResult to confirm the format.

Why

Addresses #86.

How

  1. checks the version of metals doctor
  2. defaults the version to 0 if it doesn't exist
  3. for version > 3 - use new header fields
  4. for version > 0 - use new target labels else fallback to old ones
    • for each label check if it exists - this should also handle the field from v2.