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

Incorrect outline for templates in SFC #1531

Closed
zardoy opened this issue Jul 2, 2022 · 0 comments
Closed

Incorrect outline for templates in SFC #1531

zardoy opened this issue Jul 2, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@zardoy
Copy link
Contributor

zardoy commented Jul 2, 2022

I don't really know how long this regression exists, but some version introduced two bugs:

Files

To reproduce: create any file with the following content:

<template>
    <div>
        <div />
    </div>
</template>

Expected:
Screenshot 2022-07-02 at 21 03 50

Actual:
Screenshot 2022-07-02 at 21 03 06

This breaks breadcrumbs feature

Untitled

  1. Create untitled file with the content from above

Expected:
Screenshot 2022-07-02 at 21 03 50

Actual:
Screenshot 2022-07-02 at 21 04 39

Note: to check outline for untitled files, use View: Focus on Outline View

More complicated outline to check
<template>
    <div :style="{ width: '200px', height: '200px', background: 'red' }">
        <SomeComponent />
        <input />
    </div>
</template>
@johnsoncodehk johnsoncodehk added the bug Something isn't working label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants