Commit Graph

119 Commits

Author SHA1 Message Date
Josh Johnson ea5416b506 Preserve Line Breaks for Readability
#59
2018-02-01 20:46:01 -05:00
Josh Johnson 27433b47ce Add Tests for Fixed Issues
This commit also changes the "fix" for text-only lines. We should be adjusting the text content as little as possible. In this case, we are still adding spaces (or tabs) after the last line break, but that is necessary to indent the closing element. I'll continue to adjust this as needed based on feedback and possibly add a setting to gate this behavior.

#137
2018-01-30 17:25:49 -05:00
Josh Johnson 09fe37f04b Simplify Unit Tests
This change means we can't use the harness provided by VS Code, but that's fine for now. I only intend to test service classes that generally don't have concrete dependencies on VS Code anyway.
2018-01-30 16:55:44 -05:00
Josh Johnson b9b6aec528 Add First Test 2018-01-30 16:45:10 -05:00
Josh Johnson e1d41f6025 Add NewLine After Self-Closing Tags
#120
2018-01-28 12:17:06 -05:00
Josh Johnson 9941bafa74 Add Attribute Splitting
#116
2018-01-28 12:09:57 -05:00
Josh Johnson 8f0bf58462 Begin Implementing V2 Formatter 2018-01-28 01:19:06 -05:00
Josh Johnson 5526923772 Override Global Configuration
From PR #129

#128
2018-01-27 20:51:15 -05:00
Josh Johnson bedb878549 Implement Classic XML Formatting 2018-01-27 20:30:03 -05:00
Josh Johnson 988fbe22c0 TSLint 2018-01-27 18:01:04 -05:00
Josh Johnson 4bd8c9eddf Generate Extension Skeleton 2018-01-27 17:50:50 -05:00
Josh Johnson 01b580768b Out With the Old 2018-01-27 17:45:58 -05:00
Josh Johnson 93b3083bbf Switch to Double Quotes
Closes #108
2017-06-23 21:06:53 -04:00
Josh Johnson ce6a965959 Merge remote-tracking branch 'refs/remotes/origin/master' into techdebt 2017-06-23 20:50:59 -04:00
Josh Johnson ba248c4c8d Fix Formatter Regression
The changes made for #87 and #90 contributed to this regression. It
affected any element with one or more attributes and text content.

Fixes #109
2017-06-23 20:26:22 -04:00
Josh Johnson 846a128984 Remove "use strict"
Closes #107
2017-06-21 00:30:16 -04:00
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
Josh Johnson 802adea719 Add "Format As XML" Command
This command can be invoked from any document, regardless of what
language is selected. It supports selection-only formatting as well.

closes #97
2017-06-01 21:52:09 -04:00
Maciej Zawiasa 1112f56801 handle scalar values 2016-11-25 21:34:31 +01:00
Josh Johnson 51d14fcd1c feat: add xsl formatting support
fixes #55
2016-05-17 22:42:12 -04: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 04b11bea3b Correct Command Registration 2016-02-16 18:42:43 -05:00
Josh Johnson 801fc5a352 Add XML Tree Feature
#32
2016-02-16 18:42:23 -05:00
Josh Johnson ba54b8a83f Add $(project) Variable - Closes #30 2016-01-22 19:41:29 -05:00
Josh Johnson cc796ed26e Remove Format XML Command 2016-01-18 16:04:50 -05:00
Josh Johnson 41bf728061 Fix #23 2016-01-18 15:59:58 -05:00
Josh Johnson bc4e7823bc Fix #21 2016-01-18 15:43:10 -05:00
Josh Johnson 9953d5b66c Fix #20 2016-01-18 13:19:46 -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 f77bc88576 Mock xmldom Node Implementation 2016-01-13 18:01:17 -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 4dcac61936 Fix #15 2016-01-08 21:50:30 -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 721f50cc37 Add XPath History Cleanup 2016-01-07 11:19:29 -05:00
Josh Johnson b7e4fc8c15 Fix Output
* Only output line number, not column.
* Append a newline after first line.
2016-01-07 11:08:26 -05:00
Josh Johnson 3d916fc9b4 Add Line/Column to XPath Output 2016-01-07 11:06:08 -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
unknown 1b9caa3265 Remove Update Notifier 2016-01-05 15:52:06 -05:00
Rajko Winkler 955c971856 Clean up for feature #6 2016-01-04 17:07:36 +01:00
Rajko Winkler b668ab49c3 Adding to #6 - user setting to persist the last query 2015-12-21 14:40:43 +01:00
Rajko Winkler f3ea33a522 The last XPath query is being persisted and can be reused with the next query. 2015-12-16 15:54:48 +01:00
Rajko Winkler 112d99c30c Adds the last used query to the output 2015-12-09 12:03:49 +01:00
Josh Johnson 601fa1bfe4 Register Format XML Command 2015-12-02 12:48:48 -05:00
Josh Johnson 99c1a62655 Rewrite XML Formatter 2015-12-02 12:41:29 -05:00
Josh Johnson 3d9879c853 Add XML FormattingEditProviders 2015-12-02 11:28:07 -05:00
Josh Johnson e24a560066 Fix Manifest Reader 2015-11-24 18:48:26 -05:00
Josh Johnson a26f829399 Update Notifier Tweaks 2015-11-24 17:06:24 -05:00
Josh Johnson 238dd4a996 Improve Update Notifier 2015-11-24 16:48:40 -05:00
Josh Johnson 2275c834ff Use Strict 2015-11-24 16:44:20 -05:00
Josh Johnson 01fd1e68e3 Add Update Notifier 2015-11-24 16:42:17 -05:00
Josh Johnson 351608a718 Add ExtensionManifestReader 2015-11-24 13:59:42 -05:00
Josh Johnson 966ab047ef Spelling 2015-11-24 13:50:51 -05:00
Josh Johnson eb46dd3cf1 Add XPath Engine 2015-11-22 03:13:11 -05:00
Josh Johnson 4c1e6d05b9 Add Linearization 2015-11-22 02:37:00 -05:00
Josh Johnson 30e8222717 Debug Configs 2015-11-22 01:48:40 -05:00
Josh Johnson 704f6c9a36 Add XML Formatter 2015-11-22 01:45:50 -05:00
Josh Johnson 07f70e651a Add Extension Entry 2015-11-22 00:55:02 -05:00