Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add using directive support. #9982

Merged
merged 8 commits into from
Mar 1, 2024
Merged

Conversation

alexgav
Copy link
Contributor

@alexgav alexgav commented Feb 24, 2024

Summary of the changes

  • Adding "using" directive keyword
  • Adding "using" directive snippet
  • Changing directive snippet labels to say " directive", e.g. "using directive"
  • Adding SnippetResponseRewriter to modify C# using snippet label to "using statement"
  • Fixing up tests

Fixes:
#9330
#9331

@alexgav alexgav requested review from a team as code owners February 24, 2024 00:18
@alexgav alexgav force-pushed the dev/alexgav/AddUsingDirectiveSupport branch from 6ed9b0a to 128b068 Compare February 24, 2024 00:57
Copy link
Member

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Be sure to get a @dotnet/razor-compiler review for the compiler changes before merging.

alexgav and others added 4 commits February 26, 2024 12:09
Adding space after "using" in the C# snippet sort text so that it's sorted after Razor "using" keyword and snippet instead of taking a substring with (length - 1) of directive name as Razor directive sort text.
@alexgav
Copy link
Contributor Author

alexgav commented Feb 27, 2024

@dotnet/razor-compiler - could someone take a quick peek at trivial changes to 2 files under compiler? Thanks!

Copy link
Member

@jjonescz jjonescz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler LGTM

@alexgav alexgav merged commit d4c396a into main Mar 1, 2024
12 checks passed
@alexgav alexgav deleted the dev/alexgav/AddUsingDirectiveSupport branch March 1, 2024 21:26
@phil-allen-msft phil-allen-msft added this to the Next milestone Mar 4, 2024
@RikkiGibson RikkiGibson modified the milestones: Next, 17.10 P3 Mar 25, 2024
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.

7 participants