Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix key duplication/handle camel case names#645

Merged
josefpihrt merged 1 commit into
dotnet:masterfrom
AdrianWilczynski:DuplicateKeyFix
Feb 16, 2020
Merged

Fix key duplication/handle camel case names#645
josefpihrt merged 1 commit into
dotnet:masterfrom
AdrianWilczynski:DuplicateKeyFix

Conversation

@AdrianWilczynski

Copy link
Copy Markdown
Contributor

This should fix #629 - duplication of properties when non-pascal case name is used.

I go through existing properties with Object.keys() and look for a matching key regardless of its casing. If I can find one, I use it. If there isn't one, I default to using pascal case name.

Sorry again that it took so long 😓

@josefpihrt josefpihrt closed this Feb 10, 2020
@josefpihrt josefpihrt reopened this Feb 10, 2020
@josefpihrt

Copy link
Copy Markdown
Collaborator

Hi, thanks for the fix.

I merged 2019 into master and deleted 2019. Could you please change base branch of this PR to master?

@AdrianWilczynski AdrianWilczynski changed the base branch from 2019 to master February 10, 2020 11:19
@AdrianWilczynski

Copy link
Copy Markdown
Contributor Author

Sorry for the mix-up. It should be set to master now.

@josefpihrt josefpihrt merged commit 4575489 into dotnet:master Feb 16, 2020
@josefpihrt

Copy link
Copy Markdown
Collaborator

Thanks again for the contribution!

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.

System.FormatException: A duplicate key 'RoslynExtensionsOptions:EnableAnalyzersSupport' was found.

2 participants