vetur icon indicating copy to clipboard operation
vetur copied to clipboard

Expand Selection support

Open mrhammadasif opened this issue 5 years ago • 8 comments

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Any
  • Vetur version: 0.21.1
  • VS Code version: 1.36

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

mrhammadasif avatar Jul 09 '19 08:07 mrhammadasif

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

octref avatar Aug 06 '19 17:08 octref

Hi!

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

robsonsobral avatar Mar 08 '20 12:03 robsonsobral

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

qgates avatar Feb 12 '21 17:02 qgates

Any updates on this issue?

Andrei-Zhulid avatar Jun 03 '21 12:06 Andrei-Zhulid

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

yzpTsubasa avatar Jan 07 '22 04:01 yzpTsubasa

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

eduardohilariodev avatar Dec 15 '22 14:12 eduardohilariodev

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

RayPS avatar Apr 04 '24 15:04 RayPS

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

tommyopeters avatar Apr 12 '24 09:04 tommyopeters