We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 127b5cf + a4d6c67 commit 7e2f848Copy full SHA for 7e2f848
1 file changed
src/main/scala/viper/server/frontends/lsp/ast/ParseAstLsp.scala
@@ -35,7 +35,7 @@ object HasHoverHints {
35
case n: PExp => PLspExp.getHoverHints(n)
36
case n: PDeclaration => PLspDeclaration.getHoverHints(n)
37
case n: PReserved[_] => PLspReserved.getHoverHints(n)
38
- }).flatten
+ }).flatten.distinctBy(h => (h.bound.rangePositions.headOption.map(rp => (rp.start.line, rp.start.column)), h.hint))
39
}
40
41
object HasGotoDefinitions {
@@ -67,7 +67,7 @@ object HasInlayHints {
67
def apply(p: PProgram): Seq[InlayHint] = p.deepCollect({
68
case n: PCall => PLspCall.getInlayHints(n)
69
case n: PLet => PLspLet.getInlayHints(n)
70
+ }).flatten.distinctBy(h => (h.position, h.label.map(_.value)))
71
72
73
object HasSemanticHighlights {
0 commit comments