mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
fix(server): Improve aliases
Signed-off-by: Myzel394 <github.7a2op@simplelogin.co>
This commit is contained in:
parent
b94d987565
commit
0b2690910f
@ -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)
|
||||||
|
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user