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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DOM element to source mappings for VS Code's Browser preview #10093

Open
auchenberg opened this issue Jun 1, 2019 · 1 comment
Open

Comments

@auchenberg
Copy link

What problem does this feature solve?

Hi 馃憢

I'm the author of https://github.com/auchenberg/vscode-browser-preview/, which is an extension for VS Code that allows users to preview web content inside the editor.

Browser Preview also supports "inspect component" which enables people to select a DOM element and go directly to the component source inside the editor.

ezgif com-optimize

Details: https://mobile.twitter.com/auchenberg/status/1133178573773164545

I'd love to be able to support Vuejs for this feature, and I'm wondering if Vue already exposes element to source mappings when running in development mode?

/k

What does the proposed API look like?

Browser Preview is using https://github.com/auchenberg/element-to-source to do the mapping.

@psimyn
Copy link

psimyn commented Jun 15, 2019

Dupe of #8034 ?

The outputSourceRange compiler option adds start/end tags to errors (added in #7127 mentioned on that issue)

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

No branches or pull requests

2 participants