Open Gil80 opened 8 years ago
Hi @Gil80,
I'm gonna need some more info though so we can figure this out:
And last but not least:
In case the file is too large to post as a comment, a gist will do.
Thanks! 😉
Hi @FabianLauer and thanks for replying back.
It's important to stress that the same XML is handled without issues in Sublime and the XML structure is valid.
I know it's not much of a help when I cannot provide the actual XML file. Sorry about that. I do hope that at least some of the information I provided is helpful.
In any case, thank you very much!
From your screenshot I would assume that you're not using this extension, but rather @DotJoshJohnson's XML Tools (repository over here). You should file an issue there.
Anyway, thanks for the info! 😄
Hi,
I got the screenshot wrong. This screenshot was taken after I tried Josh's plugin. But the issue I described was when I used your plugin :)
However, having tested it more with Josh's plugin, it seems that there's an issue with VScode. But it also seems that this issue can only be resolved by plugins and that VScode developers won't fix it.
Sorry about the confusion.
...it seems that there's an issue with VScode. But it also seems that this issue can only be resolved by plugins and that VScode developers won't fix it.
Okay — can you please describe the issue? Or maybe there's a bug report in VS Code that tracks it, if so a link to that would be great, if not, please open an issue for the problem at their repo over here. Thanks!
They have removed Format Code from VScode, therefore I hardly believe they'll do anything about it. See here: https://github.com/Microsoft/vscode/issues/71 "XML formatting has been removed as it was based on the HTML formatter and had lot of bugs. We hope that an extension can provide a high quality XML formatter."
And your comment is right below that :)
So what VScode really do when I open a large XML file:
The Format Code doesn't even show.
I've attached the file. copy it's contents and past it to a new untitled document in vscode. Change it to xml and format it.
Hmm. First off, thanks for the file!
I can't seem to reproduce the problem, though. I use this plugin on Mac and Windows in VS Code 1.5.3 and haven't had issues yet. I'll try to reproduce it and I'll come up with a fix if I can find something.
The one thing you could try if you have the time is re-open VS Code, then open the developer tools (Help Menu -> Toggle Developer Tools), change the language mode to XML and check whether there's any errors in the developer console.
Thanks for your help, very much appreciated 👍
Please see video capture:
Let me know if you can't access the file. In the video, I used the same XML I sent you. Notice how I change it to XML and that I don't have Format Code option. The extension panel is open so you can view what I've got installed.
After all, this may not be a bug with your extension, but with VScode.
Thanks!
Reopening... still not able to reproduce the issue, but there's been some more similar reports over at the marketplace for 1.5.2 and 1.6.1 😕
confirmed with a 100mb xml file. each line is not more then 200 char.
Long XML files are not formatted. Steps:
The option doesn't even show. The same XML can be formatted in Sublime.