mirror of https://github.com/sbt/sbt.git
Fix BSP warning about semanticdb
This commit is contained in:
parent
d1ff067d54
commit
22e5308381
|
|
@ -330,7 +330,7 @@ object BuildServerProtocol {
|
|||
// try parse metadata as MetalsMetadata
|
||||
metalsMetadata <- Converter.fromJson[MetalsMetadata](data).toOption
|
||||
} {
|
||||
if (!semanticdbEnabled) {
|
||||
if (metalsMetadata.semanticdbVersion.nonEmpty && !semanticdbEnabled) {
|
||||
log.warn(s"${params.displayName} requires the semanticdb compiler plugin")
|
||||
log.warn(
|
||||
s"consider setting 'Global / semanticdbEnabled := true' in your global sbt settings ($$HOME/.sbt/1.0)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue