Skip to content
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

Respect editor.autoClosingBrackets and editor.autoClosingQuotes when deleting a bracket/quote #3941

Merged
merged 2 commits into from
Aug 28, 2019
Merged

Respect editor.autoClosingBrackets and editor.autoClosingQuotes when deleting a bracket/quote #3941

merged 2 commits into from
Aug 28, 2019

Conversation

J-Fields
Copy link
Member

@J-Fields J-Fields commented Aug 3, 2019

What this PR does / why we need it:
When we delete a "pairable" character like (, we look to the right to see if there's the matching ) and delete it is well. We should not do that if auto-matching is disabled in settings. This behavior regressed because the type of editor.autoClosingBrackets was changed from a bool to a more fine-grained enum. There's also editor.autoClosingQuotes now, so we should respect that too.

Which issue(s) this PR fixes
Fixes #3936

Special notes for your reviewer:
No tests yet

@J-Fields J-Fields merged commit dca512c into VSCodeVim:master Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Annoying brackets autoremoving
1 participant