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

Brace matching for angle brackets gives wrong match #13295

Closed
ghost opened this issue Oct 6, 2016 · 2 comments
Closed

Brace matching for angle brackets gives wrong match #13295

ghost opened this issue Oct 6, 2016 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug languages-basic Basic language support issues typescript Typescript support issues verified Verification succeeded
Milestone

Comments

@ghost
Copy link

ghost commented Oct 6, 2016

  • VSCode Version: 1.5.3
  • OS Version: Windows 10 Enterprise version 1607

Steps to Reproduce:

  1. Open a new file.
  2. Set the language to TypeScript (in the lower-right corner).
  3. Type const x: Array<() => void> = [].
  4. Place your cursor at the end of Array.
  5. The > at the end of => is highlighted. I would expect the > at the end of void>.

This does not appear to be a problem with the TypeScript language service; see microsoft/TypeScript#11389.

@Tyriar Tyriar added typescript Typescript support issues languages-basic Basic language support issues bug Issue identified by VS Code Team member as probable bug labels Oct 6, 2016
@Tyriar
Copy link
Member

Tyriar commented Oct 6, 2016

image

@ghost ghost changed the title Brace matching for angle brackets is gives wrong match Brace matching for angle brackets gives wrong match Oct 6, 2016
@aeschli aeschli assigned alexdima and unassigned aeschli Oct 10, 2016
@m-podlesny
Copy link

Similar here - steps to reproduce:

  1. Type this code in new Sass file:
b { font-weight: 600; }  
li {
    hr{ border: 0; }
    > a {
            display: block;
            color: #666;
        }
}
i { font-weight: 300; }

2 . Place the cursor right after border:
3. Press keys [shift]+[alt]+[right_arrow] for code selection a few times and observe unexpected matching (the problem is with > character included between { and }.

@alexdima alexdima added this to the October 2016 milestone Oct 27, 2016
@joaomoreno joaomoreno added the verified Verification succeeded label Oct 28, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug languages-basic Basic language support issues typescript Typescript support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants