You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I modify a setting in Visual Studio that modifies the project file (<something>.csproj), that file is saved without a final newline, even though my .editorconfig contains insert_final_newline = true.
Since I occasionally edit the file outside of Visual Studio, my current workaround is to disable the final newline for the project file, but it would be nice to not have to do this.
The text was updated successfully, but these errors were encountered:
Project and solution files are not currently being processed. This is definitely a bug, but as yet I haven't found a solution.
For technical reasons unknown, .csproj and .sln items are in the IVsRunningDocumentTable table at save time, but do not have a text buffer associated with them, likely because they do not have an active open window (?). Thus the plugin sees that project and solution files are modified, but can't intercept the text buffer to apply editorconfig rules.
One way around this would be to listen to the OnAfterSave event and then modify the project/solution files straight from the disk. However the side-effect would be that VS would get 'project changed' notifications, so this is far from ideal.
When I modify a setting in Visual Studio that modifies the project file (
<something>.csproj
), that file is saved without a final newline, even though my.editorconfig
containsinsert_final_newline = true
.Since I occasionally edit the file outside of Visual Studio, my current workaround is to disable the final newline for the project file, but it would be nice to not have to do this.
The text was updated successfully, but these errors were encountered: