Skip to content

Commit

Permalink
fix(hover): fix hover markdown syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
joyme123 committed Oct 20, 2024
1 parent cbe1341 commit 0ae7acf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lsp/hover.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (s *Server) hover(ctx context.Context, params *protocol.HoverParams) (*prot
return &protocol.Hover{
Contents: protocol.MarkupContent{
Kind: protocol.Markdown,
Value: "```thrift\n" + content + "```",
Value: "```thrift\n" + content + "\n```",
},
}, nil
}
4 changes: 4 additions & 0 deletions tests/evernote-thrift/src/test.thrift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
struct A {}
struct B {
1: A str
}

0 comments on commit 0ae7acf

Please sign in to comment.