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

Support directive tokenization #10979

Merged
merged 16 commits into from
Oct 11, 2024

Conversation

333fred
Copy link
Member

@333fred 333fred commented Oct 7, 2024

Adds support for tokenizing directives. I don't recommend commit-by-commit for this PR; just review it as one chunk.

…o directives

* upstream/features/roslyn-tokenizer: (271 commits)
  Reimplement IDispoasable in test clases.
  Fix after merge
  PR Feedback
  Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20240905.1
  Fix auto insert service after merge from main
  PR Feedback
  Use ImmutableArray in SourceTextDiffer too
  Create a helper method and revert change to shared code, just in case
  Convert HtmlFormatter to ImmutableArray<TextChange>
  IEnumarable to ImmutableArray
  Remove some more usage of LSP types, and simplify ranges to line numbers
  Use pooled collections in a few more spots
  Extract common code to helper method
  Rename some methods to Try... pattern
  Rename some variables etc.
  Fix broken tests
  Get all consuming code compiling again
  Convert TextEdit to TextChange
  Remove flaky test
  OnAutoInsert Cohosting Tests (dotnet#10829)
  ...
@333fred 333fred marked this pull request as ready for review October 8, 2024 01:26
@333fred 333fred requested review from a team as code owners October 8, 2024 01:26
@333fred
Copy link
Member Author

333fred commented Oct 8, 2024

@dotnet/razor-compiler for review.

@333fred
Copy link
Member Author

333fred commented Oct 9, 2024

@jjonescz for another look. @dotnet/razor-compiler for a second review.

Copy link
Contributor

@chsienki chsienki left a comment

Choose a reason for hiding this comment

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

LGTM. Excellent to get some better test coverage as part of this too.

@333fred 333fred merged commit 07b168a into dotnet:features/roslyn-tokenizer Oct 11, 2024
12 checks passed
@333fred 333fred deleted the directives branch October 11, 2024 19:27
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.

3 participants