-
Notifications
You must be signed in to change notification settings - Fork 122
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
bug: extra ] gets added on attribute binding completion #2137
Comments
It happens for events too |
@eneajaho Setting The Angular extension should prevent developers from altering this behavior. but I don't have time to fix this now, but I think it's easy. Maybe @atscott can take a moment to look at this. https://code.visualstudio.com/updates/v1_51#_status-bar-for-suggestions |
The Angular Language Service does not return `InsertReplaceEdit`. There is no need to allow the developer to choose how to insert the completion. For example, `<button (c|) />`. ^^__________Insert edit ^^ ^________Replace edit If the LS returns the `InsertReplaceEdit` as shown above, selecting "Insert" by the developer results in `(click)="")`, and selecting "Replace" results in `(click)=""`. Now in the vscode, the default `editor.suggest.insertMode` value for HTML is `Replace`, for ts is `Insert`, So this leads to a bug in the ts file. Fixes angular#2137
🐞 bug report
Is this a regression?
No
Description
A clear and concise description of the problem...Produces -> <p [title]=""]>
Reproduction
CleanShot.2025-01-20.at.21.02.18.mp4
The text was updated successfully, but these errors were encountered: