diff options
author | Aleksey Kladov <[email protected]> | 2019-01-20 18:01:11 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-20 18:01:11 +0000 |
commit | 171f6e6d00d1fc99395b7b92c8a40b47d6bd6962 (patch) | |
tree | 2e13e38ceea1605da1c6d0f0e2c493a04dec4bd3 /crates/ra_lsp_server/src/main_loop | |
parent | 1ec1bd8139251092e567d0b6034f96e3fdf33afb (diff) |
somewhat better name
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index b70d67b4d..5cd8abbb9 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -314,7 +314,7 @@ pub fn handle_completion( | |||
314 | let mut res = false; | 314 | let mut res = false; |
315 | if let Some(ctx) = params.context { | 315 | if let Some(ctx) = params.context { |
316 | if ctx.trigger_character.unwrap_or_default() == ":" { | 316 | if ctx.trigger_character.unwrap_or_default() == ":" { |
317 | let source_file = world.analysis().file_syntax(position.file_id); | 317 | let source_file = world.analysis().parse(position.file_id); |
318 | let syntax = source_file.syntax(); | 318 | let syntax = source_file.syntax(); |
319 | let text = syntax.text(); | 319 | let text = syntax.text(); |
320 | if let Some(next_char) = text.char_at(position.offset) { | 320 | if let Some(next_char) = text.char_at(position.offset) { |