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

Merge 'main' into features/FirstClassSpan #74406

Merged
merged 528 commits into from
Jul 17, 2024

Conversation

jjonescz
Copy link
Member

@jjonescz jjonescz commented Jul 16, 2024

Mostly trivial conflicts and one test fixup. I will comment on them below.

Test plan: #73445

tmat and others added 30 commits July 8, 2024 20:42
Fix style binding failure in Document Outline
…not use expanded non-array `params` collection in Format/Create calls. (dotnet#74274)

Fixes dotnet#74163.
…solution-priority

* upstream/main: (184 commits)
  Disable BuildWithNetFrameworkHostedCompiler (dotnet#74299)
  Avoid using constants for large string literals (dotnet#74305)
  Adjust lowering of a string interpolation in an expression lambda to not use expanded non-array `params` collection in Format/Create calls. (dotnet#74274)
  Consolidate test Span sources (dotnet#74281)
  Allow Document.FilePath to be set to null (dotnet#74290)
  Update Directory.Build.rsp
  Remove fallback options from IdeAnalyzerOptions (dotnet#74235)
  Fix msbuild issue
  Improve parser recovery around nullable types in patterns (dotnet#72805)
  Syntax formatting options (dotnet#74223)
  Localized file check-in by OneLocBuild Task: Build definition ID 327: Build ID 2490585 (dotnet#74287)
  fix (dotnet#74276)
  Remove more
  fix (dotnet#74237)
  Fix scenario where lightbulbs weren't being displayed
  Reduce closures allocated during invocation of CapturedSymbolReplacement.Replacement (dotnet#74258)
  Reduce allocations in SymbolDeclaredCompilationEvent (dotnet#74250)
  remove type that now serves no purpose
  Remove uncalled method
  Remove more unused code
  ...
ToddGrun and others added 13 commits July 15, 2024 13:47
* Remove double array allocation in SemanticTokens

This code was calling ArrayBuilder.ToArray, which would always allocate a new array as a result. Additionally, the arraybuilder itself would end up being large enough that it wouldn't end up going back into the pool. Thus, two large array were allocated on many calls into this method.

There really is no need for this method to use ArrayBuilder, as the code that ends up owning the resultant array doesn't attempt to put it back into a pool.

This shows up as about 0.5% of allocation in devenv in the customer profile I'm looking at, half of which should be removed by this change.
…o-release/dev17.11

Merge release/dev17.10 to release/dev17.11
Allow services to use System.Text.Json for OOP comms in Razor
Also moved files needed for testing into a testing folder so we don't get them mixed up
Razor EA changes to allow better tests in Razor
…ickBack

Add the ResolveKeySource workround back
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 16, 2024
case MessageID.IDS_FeatureRefStructInterfaces:
case MessageID.IDS_FeatureFieldAndValueKeywords:
case MessageID.IDS_FeatureFirstClassSpan:
return LanguageVersion.Preview;
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved the feature here to stay in preview.

Copy link
Member Author

Choose a reason for hiding this comment

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

Resolved conflicts here to use the best of both branches for the span sources.

// (13,49): error CS8652: The feature 'params collections' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version.
// public static string Join(string separator, params ReadOnlySpan<string> values) => "span";
Diagnostic(ErrorCode.ERR_FeatureInPreview, "params ReadOnlySpan<string> values").WithArguments("params collections").WithLocation(13, 49));
Diagnostic(ErrorCode.ERR_AmbigCall, "Join").WithArguments("StringExtensions.Join(string, params string[])", "StringExtensions.Join(string, params System.ReadOnlySpan<string>)").WithLocation(7, 65));
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved to Regular13, removed the second error, and added a PROTOTYPE comment to move other tests to Regular13 as well in a follow up PR.

@jjonescz jjonescz marked this pull request as ready for review July 16, 2024 19:09
@jjonescz jjonescz requested review from a team as code owners July 16, 2024 19:09
@jjonescz jjonescz requested review from 333fred and cston July 16, 2024 19:09
@jjonescz jjonescz merged commit cd9cb9d into dotnet:features/FirstClassSpan Jul 17, 2024
25 of 28 checks passed
@jjonescz jjonescz deleted the FirstClassSpan-12-Main branch July 17, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure Feature - First-class Span Types untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.