Skip to content

Commit

Permalink
LSP: Fix Double Use of notebook.RelPath
Browse files Browse the repository at this point in the history
  • Loading branch information
bibor committed Jul 14, 2022
1 parent 61b9c0f commit df7cf39
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/adapter/lsp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df7cf39

Please sign in to comment.