vuejs/vetur

Expand Selection support

Open

#1,350 opened on Jul 9, 2019

View on GitHub
 (8 comments) (13 reactions) (0 assignees)TypeScript (594 forks)github user discovery
feature-requestgood first issuelsp:selectionRange

Repository metrics

Stars
 (5,752 stars)
PR merge metrics
 (PR metrics pending)

Description

  • 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

Contributor guide