From 97f9c7a98c8e15a6ce3f16ef3a9de5ae25d544ef Mon Sep 17 00:00:00 2001 From: Anders Eknert Date: Wed, 8 May 2024 17:03:24 +0200 Subject: [PATCH] lsp: don't add "constant" to the document symbol description This is already reported by the document type, and constants aren't special enough to warrant extra description. Fixes #705 Signed-off-by: Anders Eknert --- internal/lsp/documentsymbol.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/lsp/documentsymbol.go b/internal/lsp/documentsymbol.go index 378e31bc..e3ac428b 100644 --- a/internal/lsp/documentsymbol.go +++ b/internal/lsp/documentsymbol.go @@ -191,8 +191,6 @@ func getRuleDetail(rule *ast.Rule) string { if rule.Head.Key != nil { detail += "map " - } else if isConstant(rule) { - detail += "constant " } detail += "rule"