Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdoker18 committed Apr 26, 2023
1 parent c09024d commit 54f1e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,15 +1080,15 @@ pub fn goto_implementation(cx: &mut Context) {
pub fn goto_reference(cx: &mut Context) {
let (view, doc) = current!(cx.editor);
let language_server = language_server!(cx.editor, doc);
let editor_cfg = cx.editor.config.load();
let config = cx.editor.config.load();
let offset_encoding = language_server.offset_encoding();

let pos = doc.position(view.id, offset_encoding);

let future = match language_server.goto_reference(
doc.identifier(),
pos,
editor_cfg.lsp.goto_reference_include_declaration,
config.lsp.goto_reference_include_declaration,
None,
) {
Some(future) => future,
Expand Down

0 comments on commit 54f1e8c

Please sign in to comment.