vscode-csproj icon indicating copy to clipboard operation
vscode-csproj copied to clipboard

Empty newlines get inserted on multiline properties

Open chpoit opened this issue 4 years ago • 0 comments

Reproduction: Have the following, or similar, in a csproj file

<PropertyGroup>
    <CopyAllFilesToSingleFolderForPackageDependsOn>
      CustomCollectFiles;
      $(CopyAllFilesToSingleFolderForPackageDependsOn);
    </CopyAllFilesToSingleFolderForPackageDependsOn>
</PropertyGroup>

You will end up with :

<PropertyGroup>
    <CopyAllFilesToSingleFolderForPackageDependsOn>
      CustomCollectFiles;

      $(CopyAllFilesToSingleFolderForPackageDependsOn);

    </CopyAllFilesToSingleFolderForPackageDependsOn>
</PropertyGroup>

New lines are added every time the csproj is edited.

chpoit avatar Sep 01 '21 15:09 chpoit