Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: code actions - document edits #478

Merged
merged 18 commits into from
Jul 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(term): use current macro instead Context::context
  • Loading branch information
gbaranski committed Jul 21, 2021
commit 3a7b92111a9b358f47460dc6d7594043b6632415
6 changes: 3 additions & 3 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ fn symbol_picker(cx: &mut Context) {
}

pub fn workspace_symbol_picker(cx: &mut Context) {
let (view, doc) = cx.current();
let (view, doc) = current!(cx.editor);

let language_server = match doc.language_server() {
Some(language_server) => language_server,
Expand All @@ -2113,7 +2113,7 @@ pub fn workspace_symbol_picker(cx: &mut Context) {
|symbol| (&symbol.name).into(),
move |editor: &mut Editor, symbol, _action| {
push_jump(editor);
let (view, doc) = editor.current();
let (view, doc) = current!(editor);

// if let Some(range) =
// lsp_range_to_range(doc.text(), symbol.location.range, offset_encoding)
Expand All @@ -2130,7 +2130,7 @@ pub fn workspace_symbol_picker(cx: &mut Context) {
}

pub fn code_action(cx: &mut Context) {
let (view, doc) = cx.current();
let (view, doc) = current!(cx.editor);

let language_server = match doc.language_server() {
Some(language_server) => language_server,
Expand Down