fix(server): Improve aliases

Signed-off-by: Myzel394 <github.7a2op@simplelogin.co>
This commit is contained in:
Myzel394 2025-03-09 20:11:29 +01:00 committed by Myzel394
parent b94d987565
commit 0b2690910f
No known key found for this signature in database
GPG Key ID: B603E877F73D4ABB
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ func (s *aliasesParserListener) EnterValues(ctx *parser.ValuesContext) {
} }
} }
// === Value === // // === Name === //
func (s *aliasesParserListener) EnterUser(ctx *parser.UserContext) { func (s *aliasesParserListener) EnterUser(ctx *parser.UserContext) {
location := common.CharacterRangeFromCtx(ctx.BaseParserRuleContext) location := common.CharacterRangeFromCtx(ctx.BaseParserRuleContext)

View File

@ -51,7 +51,7 @@ func TextDocumentHover(
contents := []string{} contents := []string{}
contents = append(contents, handlers.GetAliasValueTypeInfo(value)...) contents = append(contents, handlers.GetAliasValueTypeInfo(value)...)
contents = append(contents, "") contents = append(contents, "")
contents = append(contents, "#### Value") contents = append(contents, "#### Name")
contents = append(contents, handlers.GetAliasValueHoverInfo(*document.Indexes, value)) contents = append(contents, handlers.GetAliasValueHoverInfo(*document.Indexes, value))
text := strings.Join(contents, "\n") text := strings.Join(contents, "\n")