Skip to content

Conversation

alexgav
Copy link
Contributor

@alexgav alexgav commented May 27, 2025

When we have @ symbol in front of existing = symbol in an attribute, we weren't getting directive attributes in the completion. We are adding one more case to check to AdjustSyntaxNodeForWordBoundary to fix this.

### Summary of the changes

-This is another case where replacing Locate with FindInnermostNode caused an issue in one of the edge cases. If you already have an existing @="" attribute and you tried typing after @, you didn't get any of the directive attributes, e.g. @OnClick. This PR adds anothe adjustment to account for this case.

Fixes:
#11890

When we have @ symbol in front of existing = symbol in an attribute, we weren't getting directive attributes in the completion. We are adding one more case to check to AdjustSyntaxNodeForWordBoundary to fix this.
@alexgav alexgav requested a review from a team as a code owner May 27, 2025 06:21
@alexgav alexgav merged commit fb06b2b into main May 28, 2025
11 checks passed
@alexgav alexgav deleted the dev/alexgav/FixDirectiveAttributeCompletion branch May 28, 2025 20:56
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 28, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants