Merge pull request #6011 from adpi2/fix-bsp-semanticdb-warning

Fix #5977: Fix semanticdb warning
This commit is contained in:
eugene yokota 2020-10-22 12:14:45 -04:00 committed by GitHub
commit 7a3ca0d9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)"