vscode
vscode copied to clipboard
[regression] Code completion of string in JSON file produces extra quote
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.94.2
- OS Version: Debian 11
Steps to Reproduce
- Create a file named
test.jsonwith the following content (^indicates the cursor location):{ "values": [ { "key": "value" }, { ^ } ] } - At the indicated cursor location (
^), type a double quote ("). Note that this causes vscode to auto-insert a second quote after the cursor. (This, in and of itself, is fine.) - Trigger code completion (if it's not triggerred automatically). Select
keywhich is offered as a result.
Actual results
The resulting file content is:
{
"values": [
{
"key": "value"
},
{
"key""
}
]
}
Not the extra quote after "key".
Expected results
The resulting file content is:
{
"values": [
{
"key": "value"
},
{
"key"
}
]
}
This is a regression in vscode 1.94 compared to 1.93.
related https://github.com/microsoft/vscode/issues/231224
I'm not able to reproduce. I suspect this is caused by https://github.com/microsoft/vscode/issues/231224
Closing as dup of https://github.com/microsoft/vscode/issues/231224
@aeschli the bug only appears after restarting vscode with the file open