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

Additional #773 / #881 refactoring based on Roslyn #813

Merged
merged 6 commits into from
Jul 5, 2020
Merged

Additional #773 / #881 refactoring based on Roslyn #813

merged 6 commits into from
Jul 5, 2020

Conversation

unquietwiki
Copy link
Contributor

@d2phap

Okay, so I went over things and the Rosyln checkers I have in VS 2019 found some additional things. It allowed for some of the C# 8.x stuff (mainly using & switch changes); Sharpen still says there's more to do. I also flagged a number of things that aren't warnings or informative messages; particularly, there were 2-3 suggestions, that if used would make toolbar items disappear on use.

One issue I did find... at least on my system, the thumbnails feature crashes the program. But one, I've been with local thumbnails on my own system due to some computer issues; and two, the crash happens in the ImageListView component we're not presently modifying. Otherwise, I mentioned before on #811 that there was some confusion in the software attempting to use the wrong XML file for the default theme.

Hope this helps!

@d2phap
Copy link
Owner

d2phap commented Jul 4, 2020

there was some confusion in the software attempting to use the wrong XML file for the default theme.

I updated the name of config.xml to igtheme.xml in /Setup/Assets/DefaultTheme/ folder of develop branch

@unquietwiki
Copy link
Contributor Author

@d2phap Hey there. Per your suggestion on editorconfig, I was able to bring in an updated copy of that, and align it to the code style you've been expressing on here. You prefer "K&R" style for the functions; I do as well, but it was defaulting to "Allman" style. Also, the editorconfig was targeting VB.NET code; so I'm not sure it was working right. I hope this helps us both out; I learned a few things.

@unquietwiki
Copy link
Contributor Author

Okay... I thought I was done, and then realized I hadn't had https://github.com/JosefPihrt/Roslynator installed during this process. That caught a lot of the multi-blank lines, trailing spaces, and potential performance issues.

@unquietwiki
Copy link
Contributor Author

Last change of the night. When I was going over stuff, there was a recommendation by some devs to use https://github.com/Microsoft/vs-threading/blob/master/doc/analyzers/index.md . I was able to implement some of its suggestions; others will need further work later on.

@d2phap
Copy link
Owner

d2phap commented Jul 5, 2020

Thanks @unquietwiki
I just reverted the refactored code of ImageListView component, only kept the clean-up.
The async-await caused thumbnail problem as you mentioned.

@d2phap d2phap merged commit 3fa81b0 into d2phap:develop Jul 5, 2020
@unquietwiki
Copy link
Contributor Author

@d2phap Thanks! Sorry about that refactoring error; I think it was an accident on my part going through the different projects.

@unquietwiki unquietwiki deleted the develop branch July 5, 2020 21:00
@d2phap
Copy link
Owner

d2phap commented Jul 6, 2020

@unquietwiki no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants