forked from scalameta/metals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set rangeHoverProvider under experimental capabilities
A workaround for microsoft/language-server-protocol#377 until it is resolved this would allow LSP clients to explicitly know that they can send a range with textDocument/hover instead of a position
- Loading branch information
1 parent
07a66ff
commit f3192aa
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
metals/src/main/scala/scala/meta/internal/metals/MetalsExperimental.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package scala.meta.internal.metals | ||
|
||
/** | ||
* Language Server Protocol extensions that are declared as "server | ||
* capabilities" in the initialize response. | ||
*/ | ||
|
||
object MetalsExperimental { | ||
// A workaround for https://github.com/microsoft/language-server-protocol/issues/377 until it is resolved | ||
val rangeHoverProvider: java.lang.Boolean = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters