Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Auto-closing Should Understand Unbalanced Parenthesis #15

Description

@WalkerCodeRanger

In VSCode, typing a close parenthesis (or any other close of an auto-closing pair) when the cursor is to the left of that character always causes it to move the cursor to the right of the character without inserting a character. Instead, it should understand balancing and insert a parenthesis if there are more left parentheses than right. See examples below.

\\ The cursor is represented by '‸'
symbols.Add(new Symbol("fixed"+i+"."+(bitLength-i‸)); // Starting here, press ')'
symbols.Add(new Symbol("fixed"+i+"."+(bitLength-i)‸); // Results in this
symbols.Add(new Symbol("fixed"+i+"."+(bitLength-i)‸)); // Should result in this (VS does this)

symbols.Add(new Symbol("fixed"+i+"."+(bitLength-i‸))); // Starting here, press ')'
symbols.Add(new Symbol("fixed"+i+"."+(bitLength-i)‸)); // Currently and should continue to result in this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions