Balancing parentheses, braces, brackets, and quotation marks for inline suggestions #58690
Unanswered
thephoeron
asked this question in
Copilot
Replies: 1 comment
-
Copilot often removes brackets that were already OK or adds unnecessary ones. It's a little annoying. It's weird though, I can't identify what causes it. Near-identical cases will sometimes cause bracket addition OR removal OR work fine. I can't put my finger on what the exact cause is. Maybe it's async timing? Like, the result depends on when the IDE adds its own bracket? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
Inline suggestions inconsistently insert and remove balancing parentheses, braces, brackets, and quotation marks on code completion, with the resulting completion not matching the ghost text displayed.
Alongside plugins such as Strict Paredit for VS Code, this can become a significant usability problem because the strict structural editing doesn't allow manual rebalancing of parentheses, braces, brackets, and quotation marks, as a feature.
It would be ideal if Copilot maintained awareness of code structure for its inline suggestions, for example using semantic tokens when possible, so that inline suggestions worked seamlessly with both strict and lax structural editing extensions and minimized the number of structural errors introduced by code completions.
Beta Was this translation helpful? Give feedback.
All reactions