Skip to content

Merge main to features/required-members#58411

Merged
dotnet-bot merged 203 commits intofeatures/required-membersfrom
merges/main-to-features/required-members
Dec 19, 2021
Merged

Merge main to features/required-members#58411
dotnet-bot merged 203 commits intofeatures/required-membersfrom
merges/main-to-features/required-members

Conversation

@dotnet-bot
Copy link
Copy Markdown
Collaborator

This is an automatically generated pull request from main into features/required-members.

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:

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.

git fetch --all
git checkout -t upstream/merges/main-to-features/required-members
git reset --hard upstream/features/required-members
git merge upstream/main
# Fix merge conflicts
git commit
git push upstream merges/main-to-features/required-members --force

fayrose and others added 30 commits May 30, 2019 13:31
…o merges/master-to-features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…o merges/master-to-features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
…-nullchecking

Merge master to features/param-nullchecking
tmat and others added 20 commits December 16, 2021 14:02
…to-release/dev17.1

Merge release/dev17.0-vs-deps to release/dev17.1
…edit/1450689)

This regression was introduced with async lightbulb performance improvement PR: #56959. With that PR, we now optimize/reduce the number of analyzers to execute in the "Normal" priority bucket for async light bulb. We earlier executed all analyzers in this bucket, but now only try to execute analyzers which report at least one diagnostic ID which has a corresponding code fix provider that can fix that diagnostic ID.

To identify this reduced set of analyzers, we execute this newly added perf optimization to skip analyzers that don't have a code fix: https://github.com/dotnet/roslyn/blob/88f829939583d49d9e08104a71a7645d712bcfbc/src/Features/Core/Portable/Diagnostics/EngineV2/DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs#L151-L155

`_owner.DiagnosticAnalyzerInfoCache.GetDiagnosticDescriptors` call in this code is problematic for TS analyzers, because these are not regular DiagnosticAnalyzer sub-types, but instead derive from our internal DocumentDiagnosticAnalyzer and ProjectDiagnosticAnalyzer types, and this analyzer lies to us and returns 0 supported diagnostic descriptors: https://github.com/dotnet/roslyn/blob/315c2e149ba7889b0937d872274c33fcbfe9af5f/src/Features/Core/Portable/ExternalAccess/VSTypeScript/VSTypeScriptDocumentDiagnosticAnalyzer.cs#L16 and https://github.com/dotnet/roslyn/blob/315c2e149ba7889b0937d872274c33fcbfe9af5f/src/Features/Core/Portable/ExternalAccess/VSTypeScript/VSTypeScriptProjectDiagnosticAnalyzer.cs#L16. So, we skip TS analyzers for "Normal" priority bucket.

This PR implements a short term fix to update the newly added code to special case DocumentDiagnosticAnalyzers and skip the newly added perf optimization for these analyzers. Note that ProjectDiagnosticAnalyzers are never executed in lightbulb/code fix path.

I will create a separate issue to track designing a better long term solution for TS analyzers to avoid such breaking changes in future.
Fix TS lightbulb regression
[main] Update dependencies from dotnet/source-build
Acquire component model with standard pattern
…actPackage.cs

Co-authored-by: Sam Harwell <sam@tunnelvisionlabs.com>
Move component model code to common location for all AbstractPackages
Remove weakref that telemetry indicates has no impact at all.
Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@dotnet-bot dotnet-bot merged commit ce663db into features/required-members Dec 19, 2021
@333fred 333fred deleted the merges/main-to-features/required-members branch December 21, 2021 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.