This repository was archived by the owner on Jul 30, 2020. It is now read-only.
Commit 9ada854
Use textEdit for completions
Rather than just inserting text for completions, use textEdit to insert
text which replaces the entire identifier, including text after the
cursor. Does not remove insertText, so that LSP clients without textEdit
support can fall-back to the old behaviour -- otherwise, insertText
should be ignored.1 parent 5f56e5d commit 9ada854
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
405 | 412 | | |
406 | 413 | | |
407 | 414 | | |
| |||
0 commit comments