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

Update feature branch #10652

Merged
merged 207 commits into from
Jul 19, 2024
Merged

Update feature branch #10652

merged 207 commits into from
Jul 19, 2024

Commits on Apr 29, 2022

  1. Configuration menu
    Copy the full SHA
    9a307d7 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2022

  1. Merge remote-tracking branch 'upstream/main' into FormattingOptions

    # Conflicts:
    #	src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Formatting/CSharpFormatter.cs
    #	src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/Formatting/FormattingLanguageServerClient.cs
    #	src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/Formatting/FormattingTestBase.cs
    davidwengier committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    07e774e View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    4e25c1d View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    254d9de View commit details
    Browse the repository at this point in the history
  2. Unskip bound attribute test (#10580)

    Since we were talking in the working group meeting, thought I'd give it
    a go and see if it passes
    davidwengier authored Jul 4, 2024
    Configuration menu
    Copy the full SHA
    ca5327e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7731184 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    afb0362 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2024

  1. Merge remote-tracking branch 'upstream/main' into FormattingOptions

    # Conflicts:
    #	src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Formatting/CSharpFormatter.cs
    #	src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Formatting/CSharpOnTypeFormattingPass.cs
    #	src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/Formatting/FormattingLanguageServerClient.cs
    #	src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/Formatting/TestRazorFormattingService.cs
    davidwengier committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    abf6053 View commit details
    Browse the repository at this point in the history
  2. Updates after merge

    davidwengier committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    50a650a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e0e78bb View commit details
    Browse the repository at this point in the history
  4. Whitespace

    davidwengier committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    dbacc56 View commit details
    Browse the repository at this point in the history
  5. Make minimal

    davidwengier committed Jul 7, 2024
    Configuration menu
    Copy the full SHA
    c5de662 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    b17a0e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    63f6ad3 View commit details
    Browse the repository at this point in the history
  3. Removing unnecessary Razor Legacy Editor feature flag (#10591)

    * Removing unnecessary Razor Legacy Editor feature flag
    
    AFAIK it was introduced for new LSP editor rollout several years ago before we had Tools/Options/HTML Editor/Advanced/Use legacy Razor Editor option. Now that rollout is over, and there is a public non-preview mechanism for users to switch to the old editor if needed, the feature flag is no longer necessary and creates confusion (and extra code to test/maintain).
    
    * Fixing a unit test (test matrix)
    
    * Fixing spacing per CR suggestion
    
    Co-authored-by: David Wengier <[email protected]>
    
    ---------
    
    Co-authored-by: David Wengier <[email protected]>
    alexgav and davidwengier authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    f746561 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    9f9d250 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3707cb3 View commit details
    Browse the repository at this point in the history
  3. Cleanup

    davidwengier committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e14fff4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e8bb55e View commit details
    Browse the repository at this point in the history
  5. Missed a spot

    davidwengier committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    6e170ed View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dfdb314 View commit details
    Browse the repository at this point in the history
  7. Fix build

    davidwengier committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    ce9be80 View commit details
    Browse the repository at this point in the history
  8. Clean up code actions code (#10582)

    This PR is a style-only clean up of our code actions handlers and
    related code. Definitely could have gone further (more collection
    pooling, returning concrete types etc.) but I wanted to try to have it
    serve as an indication for what we consider our current idiomatic coding
    style* and to avoid conflicts with the extract to component work.
    
    
    
    <sub>* Current style is subject to change at any time, and are not well
    documented. To quote a great Australian film, [it's just the
    vibe](https://www.youtube.com/watch?v=nMuh33BMZYY).</sub>
    davidwengier authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    63e225d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e90920a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e037301 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    93b8b84 View commit details
    Browse the repository at this point in the history
  12. Minor fix

    davidwengier committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    b3711a8 View commit details
    Browse the repository at this point in the history
  13. Whitespace

    davidwengier committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    c467559 View commit details
    Browse the repository at this point in the history
  14. [main] Update dependencies from dotnet/arcade (#10590)

    * Update dependencies from https://github.com/dotnet/arcade build 20240702.2
    
    Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
     From Version 8.0.0-beta.24352.1 -> To Version 9.0.0-beta.24352.2
    
    * Install .NET 8 runtime
    
    * Update dependencies from https://github.com/dotnet/arcade build 20240702.2
    
    Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
     From Version 8.0.0-beta.24352.1 -> To Version 9.0.0-beta.24352.2
    
    * Disable BuildWithNetFrameworkHostedCompiler
    
    ---------
    
    Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
    Co-authored-by: Jan Jones <[email protected]>
    3 people authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    068df13 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e957bb2 View commit details
    Browse the repository at this point in the history
  16. Improve perf in generator cache cases (#10577)

    * Manually validate if additional files and metadata references have actually changed
    * Short circuit metadata ref comparer
    * Add tests
    chsienki authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    b24cd9c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7d38fdf View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    918e316 View commit details
    Browse the repository at this point in the history
  19. Prefer list pattern

    DustinCampbell committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    27feb66 View commit details
    Browse the repository at this point in the history
  20. Track tag helpers by assembly in TagHelperDirectiveVisitor

    We can avoid sifting through all tag helpers and performing string comparisons by storing tag helpers them in a dictionary keyed by assembly name.
    DustinCampbell committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    848286c View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    cec0f4e View commit details
    Browse the repository at this point in the history
  22. assert UI thread

    AmadeusW committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    36fea34 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. PR Feedback

    davidwengier committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    82d6cf6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b92a394 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a1d07e0 View commit details
    Browse the repository at this point in the history
  4. Add tests for the cohost linked editing range endpoint (#10596)

    Part of #9519
    
    Finally some cohosting tests! Some people would say that I'm being lazy
    in adding tests for the simplest endpoint we have. Those people have a
    point.
    
    The test infra here almost entirely avoids ServiceHub, and certainly
    avoids the Roslyn solution sync mechanism, but it _does_ use our real
    services and service factories, including the OOP services' separate MEF
    composition, so the services themselves are partying on a real Roslyn
    (test) solution and are using real implementations of all of their
    dependencies.
    
    Things not covered by this test infra yet:
    * OOP initialization
    * Adding generated C# files to the Roslyn solution (IDynamicFile does
    this in real life)
    * Dealing with Html documents in any way
    
    Future PRs to add tests for more endpoints should add these as needed.
    davidwengier authored Jul 10, 2024
    Configuration menu
    Copy the full SHA
    6af89f3 View commit details
    Browse the repository at this point in the history
  5. PR Feedback

    davidwengier committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    28ff338 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6b6696a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    86e57e5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    171f21c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5e62258 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7a3e1e5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6647eb0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0abee9c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9f10648 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    fda387e View commit details
    Browse the repository at this point in the history
  15. Fix unified settings (#10607)

    While self-hosting I noticed unified settings were no longer available and were defaulting back to the classic experience. Looks like they updated how some of the registration works and added a fix for f5 debugging them. Worked locally on my machine but I will not claim any expertise here.
    ryzngard authored Jul 10, 2024
    Configuration menu
    Copy the full SHA
    f8893e8 View commit details
    Browse the repository at this point in the history
  16. Add ImmutableArray extension methods for ordering

    This change introduces four sets of extension methods with overloads:
    
    - OrderAsArray(...)
    - OrderDescendingAsArray(...)
    - OrderByAsArray(...)
    - OrderByDescendingAsArray(...)
    
    Each of these operates on an `ImmutableArray<T>` and returns an `ImmutableArray<T>`.
    DustinCampbell committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    3b2da77 View commit details
    Browse the repository at this point in the history
  17. Avoid UI thread dependency in the constructor (#10593)

    ### Summary of the changes
    
    - The constructors of MEF parts must be free threaded
    - Get `IVsTextManager4` on demand, rather than in the constructor of
    `RazorLSPTextViewConnectionListener`
    - This removes UI thread dependency, and allows Razor to be loaded
    asynchronously on solution restore, reducing UI delay on startup.
    
    Fixes:
    #10592
    DustinCampbell authored Jul 10, 2024
    Configuration menu
    Copy the full SHA
    0fb08aa View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Use pooled objects in more locations (#10598)

    Cleaning up some places that are newing up Lists intead of using the object pool. I also moved a few things to ImmutableArray instead of List since they weren't mutated after initial collection
    ryzngard authored Jul 11, 2024
    Configuration menu
    Copy the full SHA
    7b511df View commit details
    Browse the repository at this point in the history
  2. Remove unused usings

    DustinCampbell committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    91113cc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e4cfab9 View commit details
    Browse the repository at this point in the history
  4. Improve perf of ImmutableArray Order* extension methods

    1. Don't sort if the array has zero or 1 element.
    2. Don't sort if the array or the keys are already ordered.
    3. Avoid creating an `IComparer<T>` until its time to actually sort
    
    Add tests for Comparison<T> overloads
    DustinCampbell committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4f19d2f View commit details
    Browse the repository at this point in the history
  5. Fix indentation

    DustinCampbell committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ca16fcb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9b1be71 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9e49c20 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a17a33a View commit details
    Browse the repository at this point in the history
  9. Add First/Last/Single extension methods for IReadOnlyList

    This change adds `First()`, `FirstOrDefault()`, `Last()`, `LastOrDefault()`, Single()`, and `SingleOrDefault()` extension methods for `IReadOnlyList<T>` along with a comprehensive set of overloads.
    
    In addition, I've added an `AsEnumerable()` that returns a struct that wraps `IReadOnlyList<T>` with a struct enumerator. This makes it easy to foreach over an `IReadOnlyList<T>` without allocating.
    DustinCampbell committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    50b66b8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1cfff80 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5deabb0 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0dc2455 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ff73a1d View commit details
    Browse the repository at this point in the history
  14. Logging

    davidwengier committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4e29f57 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    cbc5e4a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d408918 View commit details
    Browse the repository at this point in the history
  3. Whitespace

    davidwengier committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    5090e74 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c78deb4 View commit details
    Browse the repository at this point in the history
  5. Abstract IServiceBroker away so that we can test services without nee…

    …ding anything from service broker
    davidwengier committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    b1f89e0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    45a0821 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    66e4247 View commit details
    Browse the repository at this point in the history
  8. Cohosting test infrastructure v2 (#10612)

    I did a bad. Well a couple of bads.
    
    A few things this PR does/issues we (I 😛) had:
    
    * All of our OOP services are disposable, but the interfaces and type
    constraints didn't reflect that, so I missed disposing them in tests.
    This fixes that by disposing the services, but also:
    * We were using service factories to create our services, which meant
    some service broker types were involved that needed to be disposed. Now
    we create our services directly and no service broker types are needed
    * Logging in OOP uses a single TraceSource for all services, which is
    arguably dodgy but a limitation of our MEF based logger factory. In
    tests however, reusing the test output helper is a bad thing, so I've
    just removed the logging for tests for now.
    davidwengier authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    24c99ef View commit details
    Browse the repository at this point in the history
  9. Fix NRE when invoking completion in empty document (#10610)

    * Fix NRE when invoking completion in empty document
    
    In empty document completion context will have RazorDocumentSyntax as Owner. RazorDoucmentSyntax has null as the parent, which makes sense. However compiler thinks we can't have a null here, while obviously we do.
    
    I'm adding a null check and a test for this case. We would probably further discuss the implications here. I tried to track down how we get null in a non-nullable field, but it's a bit confusing since the class gets generated.
    
    * Move RazorDocumentSyntax special case inside switch per CR suggestion
    
    * Fixing build
    alexgav authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    6d563c3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    52debaf View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    ed5ddf0 View commit details
    Browse the repository at this point in the history
  2. Share some files

    davidwengier committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    96ba294 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d59d623 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2ff5ca0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7a7998f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a96e5f1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    66427f4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9c1c4f4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2ebe03e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    125fcd8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    12b2025 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    24e35a1 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    fcea6f7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    fe1c8ad View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    76bb925 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    da4bd7d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e32163c View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    8cf2152 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    41a0475 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    20e107f View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    37b6f94 View commit details
    Browse the repository at this point in the history
  22. Remove unused variable

    DustinCampbell committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    9e96c3b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    5579bc0 View commit details
    Browse the repository at this point in the history
  24. Add GetPooledArraySpan(...) extension method

    This change adds a new `GetPooledArraySpan(...)` extension method that returns a pooled array as a `Span<T>` with the expected length. This can help avoid bugs that can occur if a pooled array's `Length` is accidental used.
    DustinCampbell committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    28fbb59 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Fix project info reading (#10623)

    When reading RazorProjectInfo from a stream the array being used was a pooled array. The code was not correctly trimming that array for the deserializer which meant that unknown bytes were being attempted to be read and were likely wrong. This fixes the code to make sure and trim before deserializing and adds tests.
    
    Fixes AB#2137098
    ryzngard authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    a42dea4 View commit details
    Browse the repository at this point in the history
  2. Add ImmutableArray extension methods for ordering (#10608)

    This change introduces four sets of extension methods with overloads:
    
    - OrderAsArray(...)
    - OrderDescendingAsArray(...)
    - OrderByAsArray(...)
    - OrderByDescendingAsArray(...)
    
    Each of these operates on an `ImmutableArray<T>` and returns an
    `ImmutableArray<T>`.
    DustinCampbell authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    87b4727 View commit details
    Browse the repository at this point in the history
  3. Fix issue with cancelling AsyncBatchingWorkQueue

    This was simply a mistake on my part. We should not assume that code is unreachable when it is reached because an OperationCanceledException is caught.
    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    401f4f3 View commit details
    Browse the repository at this point in the history
  4. Don't force RazorActivityLog onto main thread

    IVsActivityLog is thread-safe so there's no need to switch to the main thread before using it.
    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d5a6775 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7e7c211 View commit details
    Browse the repository at this point in the history
  6. Add better mocking for IAsyncServiceProvider

    Importantly, this includes an implementation of `IAsyncServiceProvider3`, which allows Visual Studios's `IAsyncServiceProvider` extension methods to avoid calling into `ThreadHelper`.
    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d6b81be View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cbe071b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    734c8a5 View commit details
    Browse the repository at this point in the history
  9. Flesh out PooledArrayBuilder<T> a bit (#10606)

    This change adds `First`, `FirstOrDefault`, `Last`, `LastOrDefault`,
    `Single`, `SingleOrDefault`, `Any` and `All` LINQ-style APIs to
    `PooledArrayBuilder<T>`.
    DustinCampbell authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    9ff1e8b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9ad4466 View commit details
    Browse the repository at this point in the history
  11. Add XML doc comments

    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5288d76 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7213201 View commit details
    Browse the repository at this point in the history
  13. Improve performance of DefaultRazorTagHelperContextDiscoveryPhase (#…

    …10602)
    
    This is some follow-up work after a discussion with @ToddGrun.
    Previously, @ToddGrun made [a
    change](#10537) to use pooled lists
    within the `DirectiveVisistors` used by
    `DefaultRazorTagHelperContextDiscoveryPhase`. However, looking at
    further traces, there is still a ton of CPU-bound work. Notably, there
    are loads of string comparisons that happen over and over to compare
    strings for assembly names. To address this, I've made the following
    changes:
    
    1. Instead of using pooled lists, the `DirectiveVisitors` themselves are
    pooled and they own their data structures.
    2. `TagHelperDirectiveVisitor` has been updated to store a
    `Dictionary<string, List<TagHelperDescriptor>>` rather than a flat
    `List<TagHelperDescriptor>`. This is used to index tag helpers by
    assembly name, which greatly reduces the number of string comparisons.
    The `List<TagHelperDescriptor>` held stored in the dictionary are pooled
    to avoid extra allocations of tag helpers per assembly.
    DustinCampbell authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    8a97a5f View commit details
    Browse the repository at this point in the history
  14. Add overloads for string AsSpan(), AsMemory() and *OrDefault() variants

    - Add overloads for string.AsSpan() and string.AsMemory() that take Razor's Index and Range polyfill types.
    - Add overloads for string.AsSpanOrDefault() and string.AsMemoryOrDefault() that take start, start+length, and Razor Index and Range polyfill types.
    
    Note: If compiling for .NET, these forward to the relevant runtime methods.
    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    721308d View commit details
    Browse the repository at this point in the history
  15. Add overloads for string.Contains(), IndexOf, StartsWith, and EndsWith

    Add overloads for string.Contains(), IndexOf(), StartsWith, and EndsWith() extensions methods that exist on .NET Core but not on .NET Framework or .NET Standard 2.0
    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    2e994ba View commit details
    Browse the repository at this point in the history
  16. Pool CodeWriter ReadOnlyMemory<char> pages (#10585)

    * Pool CodeWriter ReadOnlyMemory<char> pages
    
    These allocations are present in a customer trace I'm looking at, accounting for 1.4% of allocations in the VS process (around 100 MB).
    
    The owner of the CodeWriter is already disposable, so making the CodeWriter disposable is trivial, and allows for all ReadOnlyMemory<char> pages added to _pages to be released back to a pool.
    ToddGrun authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    59362df View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    55aeabb View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    19f2f7f View commit details
    Browse the repository at this point in the history
  19. Remote DrainToImmutable() extension method

    Since moving to System.Collections.Immutable 8.0, this extension method is no longer needed.
    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    90cbe54 View commit details
    Browse the repository at this point in the history
  20. [FUSE] Component attribute nameof() (#10581)

    * Track the containing type of bound attributes for components
    * Write out the attribute name as a nameof when we have a containingtype.
    * Use the concrete containing type if we rewrote the parent component.
    * nameof support for type inferred components
    * Add line and source span mappings
      - Special case the synthesized bind entries that don't have a runtime representation
      - Update spanmapping writing to handle cases where identifiers are escaped
    * Add nameof test
      - Adds a test the demonstrates what happens if you declare a function called nameof in a component
    * Update baselines
    chsienki authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    fd837e1 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    d1d03fb View commit details
    Browse the repository at this point in the history
  22. Fix Visual Studio unit tests (#10626)

    It turns out that an old bug and some recent changes were causing
    `MS.VS.LanguageService.Razor.Test` unit tests to fail intermittently.
    
    1. I made a mistake when porting `AsyncBatchingWorkQueue` from Roslyn
    that would cause an exception to be thrown if an
    `OperationCanceledException` was thrown during batch processing.
    2. `RazorActivityLog` would switch to the main thread when processing a
    batch of messages. However, this is unnecessary, since `IVsActivityLog`
    is supposed to a be a thread-safe VS service.
    3. `RazorActivityLog` didn't check its cancellation token while
    processing a batch of messages. This is problematic because it would
    continue logging messages after `RazorActivityLog` was disposed.
    4. The `IAsyncServiceProvider` mock passed to `RazorActivityLog` didn't
    implement `IAsyncServiceProvider3`, which is super important. If that
    interface isn't implemented, Visual Studio's `GetServiceAsync<TService,
    TInterface>()` extension method will end up calling
    `ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync()`, which will
    fail in tests.
    
    Together, these issues could cause the test process or AppDomain to
    crash when the `LspEditorFeatureDetectorTest` tests were run. Since
    these unit tests run in parallel, the end result would be strange
    exceptions in other tests due to the test environment being torn down.
    DustinCampbell authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    12e4fbc View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    94a614e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    00a11a3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    323e74c View commit details
    Browse the repository at this point in the history
  26. Simplify co-hosting infrastructure and improve co-hosting test infras…

    …tructure (#10622)
    
    This change represents refactoring of the existing co-hosting
    infrastructure and some effort to make it a bit easier to test.
    DustinCampbell authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    a182da6 View commit details
    Browse the repository at this point in the history
  27. Merge remote-tracking branch 'upstream/main' into dev/dawengie/Cohost…

    …SemanticTokensTests
    
    # Conflicts:
    #	src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Initialization/RemoteClientInitializationService.cs
    #	src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Initialization/RemoteClientInitializationServiceFactory.cs
    #	src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/CohostTestBase.cs
    davidwengier committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    b2dae75 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    55fee1e View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    e67fab8 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    2edc201 View commit details
    Browse the repository at this point in the history
  31. Fix BackgroundDocumentGeneratorTest that was throwing exception

    The ProcessWorkAndRestart test was throwing an exception and swallowing it because a document was added to a project when the document's file path was outside of the project's.
    DustinCampbell committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    d96c004 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3138fb0 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    214d921 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Configuration menu
    Copy the full SHA
    59aa56d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d76c6d View commit details
    Browse the repository at this point in the history
  3. Fix issue with cancelling AsyncBatchingWorkQueue

    This was simply a mistake on my part. We should not assume that code is unreachable when it is reached because an OperationCanceledException is caught.
    DustinCampbell committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    b8f14d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0ded205 View commit details
    Browse the repository at this point in the history
  5. Cohosting semantic tokens tests (#10619)

    Part of #9519 and
    #10603
    
    This was fairly straight forward too, though adding MVC files to the mix
    found a bug in our test data, which is kind of humorous.
    
    I decided not to copy all of the semantic tokens tests we have, but
    rather just create something reasonably all-encompassing. The core
    engine is shared so both sets of tests exercise it anyway.
    davidwengier authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    c303117 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    93440cc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    096f1fb View commit details
    Browse the repository at this point in the history
  8. Rename base class

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    d636a6f View commit details
    Browse the repository at this point in the history
  9. Add some html coverage

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    e2549ad View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    78859c7 View commit details
    Browse the repository at this point in the history
  11. Remove statics

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    2b28abc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    98c6494 View commit details
    Browse the repository at this point in the history
  13. Respond to CLaSP changes

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    19f2329 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    43f12e8 View commit details
    Browse the repository at this point in the history
  15. Bump Roslyn

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    e1b7bc9 View commit details
    Browse the repository at this point in the history
  16. Fix after insertion

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    96b3fa3 View commit details
    Browse the repository at this point in the history
  17. Remove dispose method

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    bd398ca View commit details
    Browse the repository at this point in the history
  18. Merge remote-tracking branch 'upstream/main' into CohostSigHelp

    # Conflicts:
    #	eng/targets/Services.props
    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    57c32ad View commit details
    Browse the repository at this point in the history
  19. Updates after merge

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    c80b84a View commit details
    Browse the repository at this point in the history
  20. Bump Roslyn

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    bdf5796 View commit details
    Browse the repository at this point in the history
  21. Localized file check-in by OneLocBuild Task: Build definition ID 262:…

    … Build ID 2496558 (#10637)
    
    This is the pull request automatically created by the OneLocBuild task
    in the build process to check-in localized files generated based upon
    translation source files (.lcl files) handed-back from the downstream
    localization pipeline. If there are issues in translations, visit
    https://aka.ms/icxLocBug and log bugs for fixes. The OneLocBuild wiki is
    https://aka.ms/onelocbuild and the localization process in general is
    documented at https://aka.ms/AllAboutLoc.
    davidwengier authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    fa94d4c View commit details
    Browse the repository at this point in the history
  22. Missed another spot

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    12b6d0e View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    9489e41 View commit details
    Browse the repository at this point in the history
  24. Fix test

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    0884b79 View commit details
    Browse the repository at this point in the history
  25. Cohosting folding range tests (#10638)

    Part of #9519 and
    #10603
    
    This time I did copy the existing tests, because everything was inline
    so it was easier.
    davidwengier authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    850778b View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    d184cae View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    5cb9daf View commit details
    Browse the repository at this point in the history
  28. Updates after merge

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    5a0a0b0 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    0a42f3c View commit details
    Browse the repository at this point in the history
  30. Handle :get/:set in EditorRequired checking (#10628)

    * Add utility for verifying razor diagnostics
    
    * Handle `:get`/`:set` in `EditorRequired` checking
    
    * Simplify code
    jjonescz authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    c0b9aa2 View commit details
    Browse the repository at this point in the history
  31. Fix handful of unit test issues and the intermittent IndexOutOfRangeE…

    …xception failures (#10635)
    
    It's probably easiest to go through this commit-by-commit.
    
    The main fix here is the `IndexOutOfRangeException` in the
    `FilePathNormalizer`. The problem occurs when the array rented from the
    pool already contains a `\` or `/` immediately after the span that we
    care about. It was possible for
    `FilePathNormalizer.NormalizeAndDedupeSlashes(...)` to read past the end
    of the span, and if it found a `\` or `/` there, it would cause the
    incorrect length to be used later, causing an
    `IndexOutOfRangeException`. The reason the failure was intermittent is
    because it's dependent on the contents of the array pool.
    DustinCampbell authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    8e007c6 View commit details
    Browse the repository at this point in the history
  32. Expand string and span extension methods (#10629)

    This change covers several pieces of work on shared extension methods:
    
    1. Augment and document `AsSpan()`, `AsSpanOrDefault()`, `AsMemory()`,
    and `AsMemoryOrDefault()` extension methods targeting string.
    2. Augment and document `Contains()`, `IndexOf()`, `StartsWith()`, and
    `EndsWith()` extension methods targeting string.
    3. Add `AsSpan()` and `AsMemory()` extensions methods targeting array
    and Razor's polyfill `Index` and `Range` types.
    DustinCampbell authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    8b0fe3d View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    32fed2e View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    6f3fcc1 View commit details
    Browse the repository at this point in the history
  35. Remove binary test (#10639)

    Now that we're not writing to disk, we don't need to validate previously generated files.
    
    Fixes #10209
    ryzngard authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    281a652 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    8d9b438 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    aed8cfa View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    d0142ac View commit details
    Browse the repository at this point in the history
  39. Revert and comment

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    7fc8a12 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    f6bdc0b View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    5e63634 View commit details
    Browse the repository at this point in the history
  42. File header

    davidwengier committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    6faa9e9 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    cdae4fa View commit details
    Browse the repository at this point in the history
  44. Use different ILoggerProvider for integration tests and clean up

    While adding a new ILoggerProvider for integration tests that ignores messages sent after the output is invalid, I noticed a bunch of things to clean up. Importantly, Razor's ILoggerProvider no longer implements IDisposable as the MS.Extensions.Logging version does.
    DustinCampbell committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    c945faf View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Add GetPooledArraySpan(...) extension method (#10625)

    This change adds a new `GetPooledArraySpan(...)` extension method that
    returns a pooled array as a `Span<T>` with the expected length. This can
    help avoid bugs that can occur if a pooled array's `Length` is
    accidental used.
    DustinCampbell authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    6458bc3 View commit details
    Browse the repository at this point in the history
  2. Initial tests

    davidwengier committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    a546981 View commit details
    Browse the repository at this point in the history
  3. Moar tests!

    davidwengier committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    b01f6a7 View commit details
    Browse the repository at this point in the history
  4. Port AsyncBatchingWorkQueue fix to release/dev17.11 (#10636)

    This pull request cherry-picks b8f14d3
    to `release/dev17.11`
    phil-allen-msft authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    f07c7bb View commit details
    Browse the repository at this point in the history
  5. Merge release/dev17.11 to main (#10643)

    This is an automatically generated pull request from release/dev17.11
    into main.
    
    
    Once all conflicts are resolved and all the tests pass, you are free to
    merge the pull request. 🐯
    
    ## Troubleshooting conflicts
    
    ### Identify authors of changes which introduced merge conflicts
    Scroll to the bottom, then for each file containing conflicts copy its
    path into the following searches:
    - https://github.com/dotnet/razor/find/release/dev17.11
    - https://github.com/dotnet/razor/find/main
    
    Usually the most recent change to a file between the two branches is
    considered to have introduced the conflicts, but sometimes it will be
    necessary to look for the conflicting lines and check the blame in each
    branch. Generally the author whose change introduced the conflicts
    should pull down this PR, fix the conflicts locally, then push up a
    commit resolving the conflicts.
    
    ### Resolve merge conflicts using your local repo
    Sometimes merge conflicts may be present on GitHub but merging locally
    will work without conflicts. This is due to differences between the
    merge algorithm used in local git versus the one used by GitHub.
    ``` bash
    git fetch --all
    git checkout -t upstream/merges/release/dev17.11-to-main
    git reset --hard upstream/main
    git merge upstream/release/dev17.11
    # Fix merge conflicts
    git commit
    git push upstream merges/release/dev17.11-to-main --force
    ```
    dotnet-bot authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    5d75e5e View commit details
    Browse the repository at this point in the history
  6. Minor updates for Razor repo (#10576)

    * Update name away from now-former nation name
    
    * Update packages to modern versions
    
    * Change package version
    phil-allen-msft authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    8fd82a8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    54f3d27 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    590205b View commit details
    Browse the repository at this point in the history
  9. Use static lambda

    DustinCampbell committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    4002d45 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6fa6e78 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bdb1348 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3b480de View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9abb3a4 View commit details
    Browse the repository at this point in the history
  14. Update src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.T…

    …est/Cohost/CohostEndpointTestBase.cs
    
    Co-authored-by: Dustin Campbell <[email protected]>
    davidwengier and DustinCampbell authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    dab3950 View commit details
    Browse the repository at this point in the history
  15. PR Feedback

    davidwengier committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    ed31895 View commit details
    Browse the repository at this point in the history
  16. Minor cleanup

    davidwengier committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    2b48ebb View commit details
    Browse the repository at this point in the history
  17. Remove dodgy UpdateSolution method in cohosting tests (#10627)

    Part of #9519 and
    #10603
    Requires dotnet/roslyn#74402
    
    Removes a little more dodginess in the cohosting tests by actually using
    the `RazorPinnedSolutionInfoWrapper` for solution checksums, just like
    the real OOP services.
    davidwengier authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    d91189f View commit details
    Browse the repository at this point in the history
  18. Merge remote-tracking branch 'upstream/main' into CohostSigHelp

    # Conflicts:
    #	eng/Versions.props
    davidwengier committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    45798d4 View commit details
    Browse the repository at this point in the history
  19. Turn off trailing whitespace triming in strings (#10646)

    We have tests with baselines that have trailing whitespaces. Our `trimTrailingWhitespace` setting means that those will get modified automatically, breaking those tests. To fix that, I implemented a vscode feature to avoid triming inside regex and strings, so let's use that.
    333fred authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    f75ab60 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4670d3e View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. Tweak names

    davidwengier committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    3f524c0 View commit details
    Browse the repository at this point in the history
  2. Cohost: Support signature help (#10595)

    Requires dotnet/roslyn#74280, and won't even
    compile without it.
    Part of #9519
    
    This brings signature help to Cohosting. It's a pretty simply PR, for a
    pretty simple endpoint, as we just delegate, and there is no translation
    of delegated info. The interesting part here is that we use
    `System.Text.Json` for the remote signature help service, because it
    makes more sense to take advantage of the existing Json converters for
    the potential complexity of the `SignatureHelp` result type.
    davidwengier authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    07ae1eb View commit details
    Browse the repository at this point in the history
  3. Move BuildAnalyzers.sln to eng (#10647)

    Having two sln files in the root directory means that `dotnet` CLI commands get confused about what sln to use and need to have it specified. To fix, we just move this solution file into eng, since it's only used for full builds anyways.
    333fred authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    c79c968 View commit details
    Browse the repository at this point in the history
  4. Cohosting tests for Uri presentation (#10642)

    Part of #9519 and
    #10603
    
    After this, all cohost endpoints have test coverage 😁
    davidwengier authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    a12e07b View commit details
    Browse the repository at this point in the history
  5. Fix attribute parsing recovery (#10620)

    * Add tests
    
    * Fix attribute parsing recovery
    
    * Update new baselines
    
    * Fix expected missing source mapping
    
    * Update pre-existing baselines
    
    * Simplify code
    jjonescz authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    4af4e6f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    749ded8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fabbeeb View commit details
    Browse the repository at this point in the history
  8. Revisit Razor logging (#10641)

    I recommend reviewing this commit-by-commit.
    
    I took a look at logging to address an integration test issue where we
    should ignore any exceptions that occur during logging because xUnit's
    `ITestOutputHelper` is no longer available. Previously, we had swallowed
    these exceptions across all unit tests as well. However, in unit tests,
    these exceptions can be an early warning sign of other problems.
    
    While addressing integration tests, I ended up taking a more thorough
    look at logging and ended up re-implementing the log message formatting
    to reduce string allocations. In addition, I cleaned up a fair number of
    redundant "no-op" loggers and did an audit of all ILoggerProviders to
    determine which ones needed to implement IDisposable.
    DustinCampbell authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    abec894 View commit details
    Browse the repository at this point in the history