DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
322 stars 86 forks source link

Can't collapse correctlly #290

Closed royoan closed 4 years ago

royoan commented 4 years ago

Description

What seems to be the problem?

if a xml file like this:

    <dependency >
      <fileName>httpclient-4.5.6.jar</fileName>
      <filePath>/BOOT-INF/lib/httpclient-4.5.6.jar</filePath>
      <md5>877aca56579fea38c6358d06408976ba</md5>
      <sha1>1afe5621985efe90a92d0fbc9be86271efbe796f</sha1>  
      <description>
   Apache HttpComponents Client
      </description>
   </dependency>

It can't collapse correctlly, show as below:

Formatter Implementation

Which XML Formatter implementation are you using (the value of your xmlTools.xmlFormatterImplementation setting). v2

XML Tools Version

What version of XML Tools are you using? v2.5.0

VS Code Version

What version of VS Code are you using? 1.39.2

Operating System

What OS (and version) are you using? win10

nils-a commented 4 years ago

Hi, I'm guessing you meant the collapsing of line 8 into line 7?

So, form image to image

What you're seeing here is the default collapsing of vs-code - it depends on indentation of the content.

DotJoshJohnson commented 4 years ago

Indeed, this extension doesn’t provide the folding feature for XML - VS Code does that.