-
Notifications
You must be signed in to change notification settings - Fork 43
[Rust-analyzer] Some Magic Completions not working as expected #161
Comments
This looks like a rust-analyzer issue to me. Steps to reproduceRust code: fn main() {
let foo = true;
foo.n
} ctrl-space after {
"additionalTextEdits": [{
"newText": "",
"range": {
"end": {
"character": 8,
"line": 3
},
"start": {
"character": 4,
"line": 3
}
}
}],
"deprecated": false,
"detail": "!expr",
"filterText": "not",
"insertTextFormat": 2,
"label": "not",
"textEdit": {
"newText": "!foo",
"range": {
"end": {
"character": 9,
"line": 3
},
"start": {
"character": 8,
"line": 3
}
}
}
} So it's asking the replace character 8-9 with |
Do you know how can I get this json from VSCode, I opened the issue cause it's working fine with VSCode Also, the VSCode package have a option that sets this posfix Magic Completions, maybe it's passing something extra for the RA? |
It'll be either the server sending something wrong, or the client not dealing with it properly. Looking again, maybe it's the |
It was. Fixed by #165. Upstream: atom/atom-languageclient#284 |
This is another issue that I noticed before RA became official
It has a feature that is called Magic Completions, but some of them doesn't work as expected on Atom
For example:
expr.not<TAB|ENTER>
=>!expr
But as right now on 74dba4c the following will happen:
expr.not<TAB|ENTER>
=>expr.!expr
The text was updated successfully, but these errors were encountered: