vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 594 forks source link

Expand Selection support #1350

Open mrhammadasif opened 5 years ago

mrhammadasif commented 5 years ago

Info

Problem

Command "Expand Selection" does not work properly in Vue files. It behaves Vue files as JavaScript file. It should work in Template as HTML and in Script section as JS

Reproducible Case

<div class="some random classes">
  <p>Some random paragraph</p>
</div>
  1. Take the above html example, move your cursor to the any of the given class of div
  2. Ctrl + Shft + P
  3. Expand Selection
  4. Consecutively doing Steps 2,3 should work select in these order

a. random b. some random classes c. class="some random classes" d: \<div class="some random classes"> e: whole div

octref commented 5 years ago

Depends on https://github.com/Microsoft/vscode-languageserver-node#3150-protocol-530-client--530-server and https://github.com/microsoft/language-server-protocol/issues/613

robsonsobral commented 4 years ago

Hi!

microsoft/language-server-protocol#613 is closed already.

qgates commented 3 years ago

This is still an issue at vscode 1.53.2, and the above dependent issues are closed. Is a fix in the pipeline?

Andrei-Zhulid commented 3 years ago

Any updates on this issue?

yzpTsubasa commented 2 years ago

Same issue. Command editor.action.smartSelect.grow doesn't work well with Vue

eduardohilariodev commented 1 year ago

Has someone addressed this yet? I've been facing this issue constantly.

RayPS commented 8 months ago

In my case it works in <template> and <style> but not in <script>

tommyopeters commented 7 months ago

@RayPS Same with me. And having it work in <script> is actually pretty important to me