Ivy native LS: Find references of $event
returns a result with a text span of the entire event handler in the template.
#40157
Labels
area: language-service
Issues related to Angular's VS Code language service
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
Given the template
<div (click)="doSomething($event)"></div>
If you request references for the
$event
, the results include both$event
and(click)="doSomething($event)"
.This happens because in the TCB,
$event
is passed to thesubscribe
/addEventListener
function as an argument. So when we ask typescript to give us the references, we get the result from the usage in the subscribe body as well as the one passed in as an argument.The text was updated successfully, but these errors were encountered: