Skip to content
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

New control flow missing command features #2075

Open
1 of 2 tasks
dariosko opened this issue Aug 2, 2024 · 0 comments
Open
1 of 2 tasks

New control flow missing command features #2075

dariosko opened this issue Aug 2, 2024 · 0 comments
Labels

Comments

@dariosko
Copy link

dariosko commented Aug 2, 2024

🐞 bug report

Is this a regression?

Description

I don't know if the issue is right here at all.
But since the new control flow syntax, three shortcuts/commands in the template are missing or not working properly.

  1. Go to Bracket -> Jumps to the corresponding bracket.
  • Behaviour still works with HTML tags. Unfortunately this does not work at all with the @if etc. brackets.
  1. Expand selection/Shrink selection -> SHIFT + ALT + Right/Left Arrow Key.
  • Unfortunately, the brackets/blocks are no longer respected as they were with HTML tags. Especially with nested if-conditions.
  1. Emmet Wrap with Abbreviation
  • No longer possible with the new syntax because they are not HTML tags. Is there an alternative?

Bug Type

What does this bug affect

  • Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:
First Command - Go to Bracket

  1. Go to an angular template with new control flow syntax
  2. Focus a @if or other new expression
  3. Use command Go to Bracket (CTRL+SHIFT+^)
  4. Nothing Happens
    Expected behavior
    Should jump to corresponding bracket.

Second command - Expand/Shrink Selection

  1. Go to an angular template with new control flow syntax
  2. Create a nested @if or other new expression.
  3. Use command Expand/Shrink selection (SHIFT+ALT+Right/Left arrow key)
    Expected behavior
    Should select block by block (bracket to bracket).

Third command - Emmet Wrap with Abbreviation

  1. Cannot wrap with new @if () {${selection}} syntax.

Logs

Screenshots

image
image

🌍 Your Environment

Angular Version:


Angular CLI: 18.1.1

Extension Version:


v18.1.2

VSCode Version:


v1.91.1

Operating System:


Microsoft Windows 10 Pro
Version	10.0.19045 Build 19045

Extension options:




Anything else relevant?

@dariosko dariosko added the bug label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant