Skip to content

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