mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Use CompletionTextEdit::InsertAndReplace if supported by the client
This commit is contained in:
parent
3191a93185
commit
8fa3011908
5 changed files with 50 additions and 20 deletions
|
@ -29,7 +29,7 @@ pub struct CompletionItem {
|
|||
/// Range of identifier that is being completed.
|
||||
///
|
||||
/// It should be used primarily for UI, but we also use this to convert
|
||||
/// genetic TextEdit into LSP's completion edit (see conv.rs).
|
||||
/// generic TextEdit into LSP's completion edit (see conv.rs).
|
||||
///
|
||||
/// `source_range` must contain the completion offset. `insert_text` should
|
||||
/// start with what `source_range` points to, or VSCode will filter out the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue