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

Autocomplete removes last quote of html attribute #2146

Open
1 of 2 tasks
ejohnson-dotnet opened this issue Feb 19, 2025 · 0 comments
Open
1 of 2 tasks

Autocomplete removes last quote of html attribute #2146

ejohnson-dotnet opened this issue Feb 19, 2025 · 0 comments
Labels

Comments

@ejohnson-dotnet
Copy link

🐞 bug report

Is this a regression?

Not sure

Description

Using autocomplete with only this extension enabled eliminates the last quote of an HTML attribute.

Bug Type

What does this bug affect

  • Angular Language Service VSCode extension
  • Angular Language Service server

Reproduction

Steps to reproduce the behavior:

  1. Open an HTML file with some tags in it, for example <ul></ul>
  2. Inside the beginning tag after ul, type a space then type class=
  3. It will automatically enter two double quotes after the equal sign and the cursor will be in the middle of the two.
  4. Type in one more character like d then use the up/down arrow keys to select an autocompletion suggestion, then press [tab] to accept the autocompletion.

Many times, but not always the output will be <ul class="dropdown></ul> without an ending double quote character for the attribute.

If you disable this extension it always results in this <ul class="dropdown"></ul> with the double quote at then end.

Expected behavior

It should not delete the last double quote.

Logs

Log file gives us deep insight into the behavior and performance of the extension. If the issue is a performance
problem or an error occured, please provide the output of the log file below.

Set Angular Log level to verbose.





Screenshots

If applicable, add screenshots to help explain your problem.

Example Screenshot

🌍 Your Environment

Angular Version:




Angular CLI: 18.2.0
Node: 20.11.1
Package Manager: npm 10.2.4
OS: win32 x64

Extension Version:




v19.1.0

VSCode Version:




Version: 1.97.2

Operating System:




Windows 11 Pro 24H2

Extension options:





Anything else relevant?

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