-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better handling of closing delimiters in strict-mode #501
Comments
This is also frustrating with |
This build addresses the deletion of unbalanced brackets: https://3366-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.72-fix-delete-unbalanced-501-d089928b.vsix I like the other suggestion, but would rather have it as a separate issue, in order to not block the bug fix. |
I've also found it unintuitive that typing the second double quote does not break out of the string, but instead adds an extra, unbalanced |
Current behavior:
)
,]
or}
anywhere except before itself. Alternatively, try inserting the character literal\(
which incorrectly triggers an auto-closing)
Expected behavior:
Backspace / delete of a delimiter should always be allowed when it is known to be unbalanced (highlighted red)
Do not insert unbalanced delimiters so easily in the first place - typing
]
etc. should be a no-op or jump the cursor to the nearest closing delimiter.An exception could be when there is an unbalanced opening (eg. from partially commented form or pasted text) and the user is trying to manually close it.
The text was updated successfully, but these errors were encountered: