-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language-service): two-way binding completion should not remove t…
…he trailing quote For two-way binding syntax, the Angular compiler will append the ` =$event` to the expression of `BoundEvent`. https://github.com/angular/angular/blob/e0ac61412137144a43dc5a2134b4cd620bb4c30f/packages/compiler/src/render3/r3_template_transform.ts#L493 For example, the `[(model)]="title.¦"`, the expression of `BoundEvent` will be converted to `title.¦ =$event`. ^------ this blank will be included in the `replacementSpan` of completion item. When the user selects an item, the trailing quote will be removed. Now the paths include `BoundAttribute` and `BoundEvent` for the two-way binding syntax. So the `BoundEvent` should be removed from the paths and use the `BoundAttribute` instead. Fixes angular/vscode-ng-language-service#1626
- Loading branch information
1 parent
e0ac614
commit bbfce2d
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters