-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add UI for editorconfig files #51069
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: typo
src/EditorFeatures/Core/SettingsData/Analyzers/AnalyzerSettingInfo.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/Analyzers/AnalyzerSettingInfo.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/Analyzers/AnalyzerSettingInfo.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/Analyzers/AnalyzerSettingInfo.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/Analyzers/AnalyzerSettingInfo.cs
Outdated
Show resolved
Hide resolved
@jmarolf Do you have UI screenshots? |
src/EditorFeatures/Core/SettingsData/Analyzers/AnalyzerSettingsUpdaterService.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/CodeStyle/CodeStyleSetting.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/CodeStyle/CodeStyleSetting.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/Whitespace/WhitespaceSetting.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/SettingsData/Whitespace/WhitespaceSetting.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Def/SettingsEditor/Analyzers/ColumnDefinitions/EnabledColumnDefinition.cs
Outdated
Show resolved
Hide resolved
.../Def/SettingsEditor/Analyzers/ViewModel/AnalyzerSettingsViewModel.SettingsEntriesSnapshot.cs
Outdated
Show resolved
Hide resolved
.../Def/SettingsEditor/Analyzers/ViewModel/AnalyzerSettingsViewModel.SettingsEntriesSnapshot.cs
Outdated
Show resolved
Hide resolved
.../Def/SettingsEditor/Analyzers/ViewModel/AnalyzerSettingsViewModel.SettingsSnapshotFactory.cs
Outdated
Show resolved
Hide resolved
.../Def/SettingsEditor/Analyzers/ViewModel/AnalyzerSettingsViewModel.SettingsSnapshotFactory.cs
Outdated
Show resolved
Hide resolved
.../Def/SettingsEditor/Analyzers/ViewModel/AnalyzerSettingsViewModel.SettingsSnapshotFactory.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Def/SettingsEditor/Analyzers/ViewModel/AnalyzerSettingsViewModel.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Def/SettingsEditor/CodeStyle/CodeStyleSettingsViewModel.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Def/SettingsEditor/Helpers/TableKeyNames.cs
Outdated
Show resolved
Hide resolved
Pictures plz @jmarolf . |
1 similar comment
Pictures plz @jmarolf . |
@CyrusNajmabadi I pictured. Still working to update some things. |
4b8b633
to
a76c077
Compare
@CyrusNajmabadi would appreciate your opinion here. I believe I will be able to unify on |
62d56db
to
1780576
Compare
990de50
to
0f65913
Compare
One thing that would be useful is a checkbox for disabling all rules in a group. One use case is when disabling all StyleCop documentation rules in a test project. |
@jmarolf Yay!! Looking forward to shipping this. 🎉🎉 |
I would expect it to be a single line disabling the category when possible, like with this StyleCop example. |
|
||
namespace Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Updater | ||
{ | ||
internal static partial class SettingsUpdateHelper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmarolf This file should not have been added. It duplicates a lot of functionality from ConfigurationUpdater used in Configure Severity
lightbulb action, and leads to many inconsistencies between how editorconfig is updated under the covers from Editorconfig UX versus Configure Severity
lightbulb action (#52720). Latter also handles updating category
based severities, which I believe is a feature request for Editorconfig UX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me file a bug to explicitly track this. The intention was that I would send a cleanup PR to unify these implementations. As an aside: are there any tests for ConfigurationUpdater
? I couldn't find any.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, thank you
This is the new UI that will appear when a developer opens an editorconfig file (note a user can still get to the old file view via "Open With..")
Feature walkthrough:
Formatting Tab
Code Style Tab
Analyzers Tab
TODO:
//TODO(jmarolf)
comments