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

Cleanup in VS generator UI code. #74448

Merged
merged 6 commits into from
Jul 19, 2024

Conversation

CyrusNajmabadi
Copy link
Member

Pulling out cleanup code from #74444

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner July 18, 2024 21:12
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 18, 2024
@@ -9,83 +9,73 @@
using Microsoft.VisualStudio.Imaging;
Copy link
Member Author

Choose a reason for hiding this comment

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

view with whitespace off.

@@ -9,83 +9,73 @@
using Microsoft.VisualStudio.Imaging;
using Microsoft.VisualStudio.Imaging.Interop;

namespace Microsoft.VisualStudio.LanguageServices.Implementation.SolutionExplorer
namespace Microsoft.VisualStudio.LanguageServices.Implementation.SolutionExplorer;
Copy link
Member Author

Choose a reason for hiding this comment

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

FSNs and primary constructors.

@@ -33,11 +33,11 @@ internal abstract class BaseItem :
{
public virtual event PropertyChangedEventHandler PropertyChanged { add { } remove { } }

private readonly string _name;
protected readonly string Name;
Copy link
Member Author

Choose a reason for hiding this comment

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

part of the equality contract the derived tuypes check.

@@ -123,7 +123,7 @@ private BulkObservableCollection<BaseItem> CreateDiagnosticAndGeneratorItems(Pro

collection.AddRange(
AnalyzerReference.GetGenerators(language)
.Select(g => new SourceGeneratorItem(projectId, g, AnalyzerReference)));
.Select(g => new SourceGeneratorItem(projectId, SourceGeneratorIdentity.Create(g, AnalyzerReference), AnalyzerReference.FullPath)));
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 SGItem to be pure data.


ruleSetDocument.Save(pathToRuleSet);
}
public override int GetHashCode()
Copy link
Member Author

Choose a reason for hiding this comment

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

equals/gethashcode are used in next PR as part of proper items in a observable-collectoin and virtualizing-tree-view.

Formatting

In progress

In progress

In progress

In progress

Host side'
git pus

Host side'
git pus

Host side'
git pus

Host side'
git pus

Host side

Remote side

Accessibility

Tests

Cast

In progress'

UI thread

Tests

Make private

Make private

Docs

Simplify

Clear the items

Docs

fix

Reversinos

Reversinos

revert

revert

revert

revert
Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@CyrusNajmabadi
Copy link
Member Author

ok. will ping once this goes in and i meerge this into the other pr.

@CyrusNajmabadi CyrusNajmabadi merged commit 377a990 into dotnet:main Jul 19, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 19, 2024
@CyrusNajmabadi CyrusNajmabadi deleted the generatorCleanup branch July 19, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE 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.

4 participants