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

add a folding provider

Open aeschli opened this issue 5 years ago • 7 comments

https://github.com/Microsoft/vscode/issues/46200 asks for syntax aware folding for XML.

It would be cool if vscode-xml could implement the foldingRangeProvider API.

aeschli avatar Sep 14 '18 07:09 aeschli

@aeschli please try https://github.com/angelozerr/lsp4xml/ which implements LSP folding https://github.com/angelozerr/lsp4xml/wiki/Features#folding

angelozerr avatar Sep 16 '18 20:09 angelozerr

Please try redhat.vscode-xml which provides this features:

image

angelozerr avatar Oct 01 '18 19:10 angelozerr

Are there options that don't require me to install Java? Why does that plugin require

Java JDK 8 or more recent Ensure Java path is set in either: java.home in VSCode preferences Environment variable JAVA_HOME or JDK_HOME

moody31415 avatar Oct 09 '18 18:10 moody31415

No, you need Java. redhat.vscode-xml consumes the lsp4xml language server which is written in Java. The main reason is that, lsp4xml is using Xerces Java which provides a very good XML Schema support which is used for completion and validation when XML files are linked to XML Schema.

angelozerr avatar Oct 09 '18 19:10 angelozerr

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 14 '18 16:12 stale[bot]

I think this would be a great asset.

gjsjohnmurray avatar Nov 18 '20 18:11 gjsjohnmurray

Are there options that don't require me to install Java? Why does that plugin require

Please note that vscode-xml 0.15.0 from Red Hat no longer require Java, so you will benefit from folding feature.

angelozerr avatar Feb 12 '21 14:02 angelozerr