Commit bbcfac1
committed
fix(amazonq): add range field to indicate partial doc change
For the LSP's TextDocumentContentChangeEvent, if range is not specified, LSP would assume the contentChange is for the whole file and replace the file content with it, so if user is just making edits we need to specify range other wise file content will be replaced by this diff.1 parent 43906bc commit bbcfac1
File tree
1 file changed
+6
-0
lines changed1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
167 | 172 | | |
168 | 173 | | |
169 | 174 | | |
| |||
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
0 commit comments