vuejs/vetur

Expand Selection support

Open

#1350 aperta il 9 lug 2019

Vedi su GitHub
 (8 commenti) (13 reazioni) (0 assegnatari)TypeScript (594 fork)github user discovery
feature-requestgood first issuelsp:selectionRange

Metriche repository

Star
 (5752 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

  • I have searched through existing issues
  • I have read through docs
  • 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

Guida contributor