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

Activate plugin in Java files #79

Closed jvican closed 2 years ago

jvican commented 2 years ago

As suggested by https://scalameta.org/metals/blog/2022/01/12/aluminium#basic-java-support, Metals 0.11 adds support for Java build targets. I think it would be great if we could activate Metals for Java plugins, as currently that's not the case and one cannot find and run any of the Metals commands in Java files. Looks related to https://github.com/scalameta/metals-sublime/issues/77 but only superficially.

ayoub-benali commented 2 years ago

I would need to ping @rwols @rchl for this one. Could multiple values be set here? https://github.com/scalameta/metals-sublime/blob/master/LSP-metals.sublime-settings#L9

rchl commented 2 years ago
"selector": "source.scala, source.foo"
jvican commented 2 years ago

Thanks, this is awesome :sparkles: