Josh Johnson
a4366a5061
Add Configuration Service
2018-05-03 22:36:54 -04:00
Josh Johnson
907fa71394
Move Extension Context
2018-05-03 22:08:12 -04:00
Josh Johnson
7a5df9f387
Use Barrels
2018-05-03 22:01:29 -04:00
Josh Johnson
2d68ab4aeb
Propagate Parser Errors
...
Perhaps we can implement a full linter using a proper error handler at some point. For now, I just want it to be clear when the tree can't be rendered due to an invalid XML document.
2018-05-02 21:53:39 -04:00
Josh Johnson
08ef6c4365
Fix Unnecessary Newline
...
fixes #147
2018-05-02 20:30:42 -04:00
Josh Johnson
323c5c310c
Add Cursor Sync
...
#121
2018-04-29 00:47:12 -04:00
Josh Johnson
76fba19c0b
Add Child Node Counts
...
#117
2018-04-28 22:49:24 -04:00
Josh Johnson
3bd730355e
Display Attribute Values
...
#117
2018-04-28 22:32:41 -04:00
Josh Johnson
c0d1bb5486
Improve Typing
2018-04-28 22:27:54 -04:00
Josh Johnson
9e47281d91
Support LiveShare
...
Implements the changes from #154 .
Co-Authored-By: Jonathan Carter <joncart@microsoft.com>
2018-04-28 21:15:20 -04:00
Josh Johnson
29756e3f97
Add XQuery Execution
2018-04-28 20:36:58 -04:00
Josh Johnson
df45b80085
Consolidate Constants
2018-04-28 20:08:28 -04:00
Josh Johnson
bce1b3dd87
Remove Deprecated Method Call
2018-04-28 00:21:34 -04:00
Josh Johnson
06e6ace241
Satisfy Lint Error
2018-04-28 00:20:57 -04:00
Josh Johnson
1c083d15e3
Add XPath Evaluation
2018-04-28 00:10:51 -04:00
Josh Johnson
6f0bbe3ed7
Lint Fix
2018-04-27 23:15:05 -04:00
Josh Johnson
c37ac45e80
Add XML Tree View
2018-04-27 23:10:55 -04:00
Josh Johnson
645aa7d6ec
Add XQuery Completion Provider
2018-03-01 21:50:18 -05:00
Josh Johnson
5318909fcf
Add Minify XML Command
2018-03-01 21:31:14 -05:00
Josh Johnson
d37a8b70fd
Add Format As XML Command
2018-03-01 21:22:53 -05:00
Josh Johnson
867198590f
Fix Line Lengths
2018-02-13 23:30:01 -05:00
Josh Johnson
ace85c8841
Add XQuery Linting Feature
2018-02-13 23:25:07 -05:00
Josh Johnson
2c6a5ceaa0
Maintain Comment Formatting
...
#118
2018-02-13 22:52:19 -05:00
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