Commit graph

21 commits

Author SHA1 Message Date
Josh Johnson
157bafa5b9 Fix "xmlns" Identification
The previous code did not account for "xmlns=" in self-closing elements
(it only identified "xmlns:"). But the indent counter identified both,
which caused the odd nesting behavior.

Fixes #87
2017-06-20 23:30:54 -04:00
Josh Johnson
3f7ee2773b Improve Closing Tag Identification
The previous code would cause a self-closing tag to appear as the
opening tag if the following tag was a closing tag of the same name.

Fixes #90
2017-06-20 23:04:45 -04:00
Josh Johnson
fd5749a49a Fix Eager Line Break Stripping
This change ensures line breaks are not stripped outside of CDATA nodes
if the line break is not preceded or followed by another whitespace
character.

Fixes #92
2017-06-20 22:50:21 -04:00
Josh Johnson
3a89f737a5 Support Colon Start Character
Fixes #94
2017-06-20 22:29:17 -04:00
Josh Johnson
a9953b696d Re-Implement XML Tree View
Leverages the new "views" API in VS Code to show a tree view in the file
explorer sidebar. Clicking a tree node navigates the editor to the line
containing the source element/attribute. The tree can be navigates via
keyboard by using the UP/DOWN arrow keys to choose nodes and the
LEFT/RIGHT arrow keys to collapse/expand nodes.

Addresses the following issues:
#62
#66
#71
#72
#73
#83
#102
2017-06-15 23:55:04 -04:00
Maciej Zawiasa
1112f56801 handle scalar values 2016-11-25 21:34:31 +01:00
Josh Johnson
b55c314aa4 fix: correct line break minification
fixes #54
2016-05-17 22:36:14 -04:00
Josh Johnson
60110f8d97 fix(XmlFormatter): correct split namespace formatting
When namespaces are being split, do not keep the indent after a
self-closed element.

fixes #46
2016-03-15 14:38:39 -04:00
DotJoshJohnson
c44d9fcaeb Dynamic Font Color
#48 - Checks the storage.json file to set the XML Tree font color based
on the theme type. DEfaults to #AAAAAA otherwise.
2016-03-08 11:21:25 -05:00
Josh Johnson
6b83cc6563 Fix Node Clicks
Clicking nodes no longer causes the tree to disappear.
2016-02-20 12:42:09 -05:00
Josh Johnson
801fc5a352 Add XML Tree Feature
#32
2016-02-16 18:42:23 -05:00
Josh Johnson
bc4e7823bc Fix #21 2016-01-18 15:43:10 -05:00
Josh Johnson
1a5c3c56f0 Remove Debug Log Entry 2016-01-18 08:56:37 -05:00
Josh Johnson
c6efe2a2dd Fix #22 2016-01-18 08:53:42 -05:00
Josh Johnson
a49c22958a Switch to Gulp Task Runner 2016-01-13 18:01:51 -05:00
Josh Johnson
f88c1d4384 Fix #18 2016-01-09 12:27:35 -05:00
Josh Johnson
5e637bb185 Fix #16 2016-01-09 00:35:50 -05:00
Josh Johnson
98028898ac Add XQuery Execution 2016-01-08 12:35:50 -05:00
Josh Johnson
8738058d8c Port vscode-xquery to vscode-xml
I'll be consolidating the two extensions into one.
2016-01-08 10:44:46 -05:00
Josh Johnson
08c81f7d16 Make XMLNS Split Optional
New setting: xmlTools.slpitXmlnsOnFormat
2016-01-08 09:19:27 -05:00
Josh Johnson
eb43a467c8 vNext Rewrite
This commit cleans up and reorganizes the code base, as well as fixes some issues. The intent of the vNext branch is to make the extension more conducive to an open-source environment.
2016-01-06 15:55:11 -05:00