-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
SmartSelect doesn't work in html section of Vue SFC #92936
Comments
This is not extension related. Running vs code with extensions disabled I see the same issue. The problem relates to the inbuilt smartselect functionality. Please reopen - thanks. |
This functionality can only be implemented by extensions, not by core. |
I don't understand. Smartselect works in all languages with no extensions installed. It only goofs up in the html section of vue sfc's? |
VS Code includes support for HTML/CSS/JS but not Vue files. |
A vue file is just a collection of html, script and css. Admittedly, the html is a templating language (with directives, @attributes etc) but does conform to standards for markup. In any case, smartselect fails even when the html is just plain html. If I paste exactly the same into a file with another extension, it works. So this seems to be an issue with code. |
Steps to Reproduce:
.vue
file of the following format:Place cursor anywhere inside the HTML
or outer<template>
section and attempt to use SmartSelect expand/grow feature to select theDoing so selects the whole file instead of expanding the selection to HTML
Other notes:
<script>
section.<template>
section into a blank file set to language mode HTML, SmartSelect works as expected.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: