LSP: Fix double use of `notebook.RelPath` (#246)

pull/249/head
bibor 2 years ago committed by GitHub
parent 61b9c0f5d7
commit ab1d8fd0bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -453,13 +453,8 @@ func NewServer(opts ServerOpts) *Server {
return nil, err
}
p, err := notebook.RelPath(target.Path)
if err != nil {
return nil, err
}
opts := core.NoteFindOpts{
LinkTo: &core.LinkFilter{Hrefs: []string{p}},
LinkTo: &core.LinkFilter{Hrefs: []string{target.Path}},
}
notes, err := notebook.FindNotes(opts)

Loading…
Cancel
Save