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 e6f240d commit d35f3ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/language-service/src/language_service.ts
Expand Up @@ -610,6 +610,7 @@ 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 d35f3ee

Please sign in to comment.