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

event binding and property binding user experience #521

Closed
doggy8088 opened this issue Dec 19, 2019 · 10 comments
Closed

event binding and property binding user experience #521

doggy8088 opened this issue Dec 19, 2019 · 10 comments
Assignees
Labels
discussion lib Relates to an issue in the @angular/language-service library user XP Issue related to user experience

Comments

@doggy8088
Copy link

Describe the bug

Related to #474

The developing experience for event binding and property binding user experience is changed in this new version 0.900.3.

To Reproduce

Steps to reproduce the behavior:

  1. find a tag
  2. add a (click)="" event binding or [accessKey]="" property binding

Expected behavior

When you type (cli then hit Tab should appear (click)="<CURSOR_HERE>".

Logs
N/A
Screenshots

0.900.3 Video
https://youtu.be/JB23F7vflL8

0.802.3 Video
https://youtu.be/i1XoRvyibjo

The original (0.802.3) DX is a bit nicer. Please change it back to the original behavior.

Additional context

Hope to get the same or better developer experience (DX) of the code snippet feature.

@doggy8088 doggy8088 added the bug label Dec 19, 2019
@ayazhafiz
Copy link
Member

ayazhafiz commented Dec 19, 2019

@kyliau we can probably extend the replacement span to include the closing parantheses in these cases, since we now know the kind of binding we're in before providing a completion. What do you think?

For reference: relevant change was angular/angular#34445

@kyliau kyliau added discussion and removed bug labels Dec 20, 2019
@ayazhafiz ayazhafiz added user XP Issue related to user experience lib Relates to an issue in the @angular/language-service library labels Feb 21, 2020
@ayazhafiz
Copy link
Member

@doggy8088 does this remain a strong pain point for you?

@doggy8088
Copy link
Author

@ayazhafiz I'm using the latest version (0.900.15). The UX issue still there. Let me give you an example.

  1. Pick any tag, add an event binding syntax such as (click)=""

  2. Enter (, enter cli, then hit Tab to complete. The current version will produce:

    (click|)
    ------

    I expected to get the following result:

    (click)="|"
    ---------

@ayazhafiz ayazhafiz self-assigned this Mar 4, 2020
@ayazhafiz
Copy link
Member

Okay, we will take a look at what can be done here :)

@doggy8088

This comment has been minimized.

@nlynzaad

This comment has been minimized.

@doggy8088
Copy link
Author

@ayazhafiz The event binding's IntelliSense is still broken in 12.2.0.

@ivanwonder
Copy link
Contributor

I think we can pick the PR #820 up, move the code into @angular/language-service, and this feature can be opt-out via the config includeCompletionsWithSnippetText.
@atscott

ivanwonder added a commit to ivanwonder/angular that referenced this issue Sep 25, 2021
Support snippet completions for dom attribute whose value
is empty. For Example `<div (my¦) />`, the `insertText`
will return `(myOutput)="$0"`.

Fixes angular/vscode-ng-language-service#521
ivanwonder added a commit to ivanwonder/angular that referenced this issue Sep 25, 2021
Support snippet completions for dom attribute whose value
is empty. For Example `<div (my¦) />`, the `insertText`
will return `(myOutput)="$0"`.

Fixes angular/vscode-ng-language-service#521
ivanwonder added a commit to ivanwonder/angular that referenced this issue Oct 2, 2021
Support snippet completions for dom attribute whose value
is empty. For Example `<div (my¦) />`, the `insertText`
will return `(myOutput)="$0"`.

Fixes angular/vscode-ng-language-service#521
@atscott atscott reopened this Oct 7, 2021
@atscott
Copy link
Collaborator

atscott commented Oct 14, 2021

Closing. This option will be available in the v13 release. Thanks @ivanwonder!

@atscott atscott closed this as completed Oct 14, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion lib Relates to an issue in the @angular/language-service library user XP Issue related to user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants