-
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
EditorConfig UI enhancements #53171
Comments
I'll investigate 7 today |
For reference, here are the steps I've done (I didn't have VS Preview on the machine I was working on - so I used
|
What specific items were not saved? or did literally nothing work? |
@jmarolf What I have tried was changing a few severities from code style tab. Haven't tried something else. |
Can you list the exact repo steps please? That would help a lot. |
Is #53171 (comment) missing anything? |
Which options? What did you set them to? how did you view the results? Did the editor mark the file as dirty or did nothing happen? |
@jmarolf I believe I have tried lots of options from code style tab with different values (so you could say it wasn't working at all for me when I tried). After modifying from UI, I attempted to save (while I could see there was no asterisk next to editorconfig file name - which means that no unsaved changes exists). Then, I did a I'll check tomorrow if I could reproduce again. Anything I can do if I was able to reproduce? |
Looking into this today, it appears that a sequence of changes can cause the editor and the file buffer to get "out of sync". Unclear what the root cause is yet |
I just ran into item 7 today. Fresh install of VS 2022, new project, new .editorconfig. I tried changing the "Namespace declarations" settings to "File scoped" and the underlying .editorconfig file was not changed. |
Yes, I ran into the item 7 too, fresh install of VS 2022, new project, new .editorconfig. |
@jmarolf @jinujoseph Can this be prioritized? |
I had the same issue the other day when I tried using the UI. Actually I could swear that in my case it not only not save the settings correctly, but it also kept resetting them back to some other values, seemingly at random. I just gave up and started editing the |
Ran into #7 with a fresh VS2022 install as well 🙂 |
Ran into point 7 too I was changing values in the Code Analyzers tab. |
I am also experiencing point 7 (editorconfig UI doesn't update the .editorconfig file). Here's the current commit I'm working with: https://github.com/rhythmagency/formulate/tree/48aa47296ad72477fef64f45899a3633054c1899 Here's the solution you can open: https://github.com/rhythmagency/formulate/blob/48aa47296ad72477fef64f45899a3633054c1899/src/Formulate.sln Here's the editor config file: https://github.com/rhythmagency/formulate/blob/48aa47296ad72477fef64f45899a3633054c1899/src/.editorconfig Here's a screenshot that shows the two items I attempted to change: I tried CTRL+S, File Save, File Save As, and File Save All. None of them caused the file to be updated. Note also that it shows the location as "Visual Studio Settings". At one point, that changed to list the path to the actual .editorconfig file in the solution, but I haven't been able to reproduce that again. I'm using Visual Studio Professional 2022 64-bit version 17.0.4. I do not have Visual Studio 2019 installed (this is a pretty new machine). I'm using Windows 11. I think .Net 6 is installed and that .Net 5 is not installed. At least, I think when creating new projects in Visual Studio I'm only given .Net 6 as an option. I was able to confirm that manually editing the .editorconfig file shows the file as updated in my Git GUI tool (SmartGit). |
closing this in favor of tracking individual bugs |
1. Font currently feels too large compared with other UI elements (e.g, solution explorer). Opened Update EditorConfig UI font size to be consistent with VS environment settings #54599 to fix that.
2. New line preferences has a typo (Carrage return should be Carriage return) and probably no need to have double
\
beforer
orn
. Being fixed in Fix typo: Carrage -> Carriage #533273. The grid columns should by default be expanded to fit the content if there is a space.
4. "RemoveUnnecessaryImportsFixable" shouldn't probably exist on UI since it has "NotConfigurable" custom tag. (applies to IDE0005_gen as well)
Proposed fix is to add
GetConfigurableDiagnosticDescriptors
similar toGetNonCompilationEndDiagnosticDescriptors
and call it here. (Disable severity combobox for non-configurable rules #53175)5. CA2016 is duplicated for some reason:
6. I'm not sure if the Category column is necessary, since the category is apparent from the parent node anyway. I also see that RS1023 is duplicated, so it seems like the previous point is general, wasn't specific to CA2016.
7. For some reason, I don't see any changes I make in UI in the actual .editorconfig text
Note: I was using Roslyn.sln while experimenting.
The text was updated successfully, but these errors were encountered: