diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-10 14:07:46 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-10 14:07:46 +0100 |
commit | 0fac165052e7686af1e9cee509e049eb8f2ac5b4 (patch) | |
tree | b2ca628d8074e65f48e46f9978a3116308b3819c /crates/ide_completion/src | |
parent | e357b6bb36828ecf3404fcc382da09216eef0997 (diff) | |
parent | 8fa3011908e3b6cc74cfa4d7e896f5d329e4228c (diff) |
Merge #8410
8410: Use CompletionTextEdit::InsertAndReplace if supported by the client r=Veykril a=Veykril
Fixes #8404, Fixes #3130
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide_completion/src')
-rw-r--r-- | crates/ide_completion/src/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/item.rs b/crates/ide_completion/src/item.rs index cc4ac9ea2..16991b688 100644 --- a/crates/ide_completion/src/item.rs +++ b/crates/ide_completion/src/item.rs | |||
@@ -29,7 +29,7 @@ pub struct CompletionItem { | |||
29 | /// Range of identifier that is being completed. | 29 | /// Range of identifier that is being completed. |
30 | /// | 30 | /// |
31 | /// It should be used primarily for UI, but we also use this to convert | 31 | /// It should be used primarily for UI, but we also use this to convert |
32 | /// genetic TextEdit into LSP's completion edit (see conv.rs). | 32 | /// generic TextEdit into LSP's completion edit (see conv.rs). |
33 | /// | 33 | /// |
34 | /// `source_range` must contain the completion offset. `insert_text` should | 34 | /// `source_range` must contain the completion offset. `insert_text` should |
35 | /// start with what `source_range` points to, or VSCode will filter out the | 35 | /// start with what `source_range` points to, or VSCode will filter out the |