Skip to content

Commit

Permalink
fixup! feat(language-service): Enable go to definition of styleUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
atscott committed Sep 15, 2023
1 parent 3d7e45f commit 31bdc42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/language-service/src/language_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ function isInAngularContext(program: ts.Program, fileName: string, position: num

const assignment = getPropertyAssignmentFromValue(node, 'template') ??
getPropertyAssignmentFromValue(node, 'templateUrl') ??
// `node.parent` is used because the string is a child of an array element and we want to get
// the property name
getPropertyAssignmentFromValue(node.parent, 'styleUrls') ??
getPropertyAssignmentFromValue(node, 'styleUrl');
return assignment !== null && getClassDeclFromDecoratorProp(assignment) !== null;
Expand Down

0 comments on commit 31bdc42

Please sign in to comment.