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

Preserve Whitespace in fsproj file. #1328

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

goswinr
Copy link
Contributor

@goswinr goswinr commented Dec 10, 2024

Sometimes I add whitespace / empty lines to my .fsproj files to structure it.
They get lost when using the ionide tools to change the fsproj file.
This PR tries to presreve this whitespace by setting:

xDoc.PreserveWhitespace <- true

I am not sure how to test this though.

see https://learn.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.preservewhitespace?view=net-9.0#system-xml-xmldocument-preservewhitespace

Copy link
Contributor

@baronfel baronfel left a comment

Choose a reason for hiding this comment

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

Great catch! Thanks for the investigation and fix

@TheAngryByrd TheAngryByrd merged commit 31c289d into ionide:main Jan 15, 2025
14 checks passed
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.

3 participants