Skip to content

Commit 173e14a

Browse files
author
Alexander Chen
committed
added CodeLens support to XMLFeatures.md
1 parent 943a352 commit 173e14a

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

docs/CodeLens.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ Here is a demonstration of the above Code Lens:
5454
Here is a demonstration of the code lens for `xs:element`:
5555

5656
![An element root is declared that contains an element boot. Above the declaration of boot, there is a code lens that links to the reference in root.](./images/CodeLens/XSDElementCodeLens.gif)
57+
58+
### XML Features
59+
60+
CodeLens provides grammar binding for unbound XML documents, appearing above the root element, which will trigger the [XML Binding Wizard](BindingWithGrammar.md#the-xml-binding-wizard).

docs/Features/XMLFeatures.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ This also works for other portions of an XML document, such as attributes and th
144144

145145
![Selection Range](../images/Features/SelectionRange.gif)
146146

147+
## CodeLens
148+
149+
CodeLens is supported for `.xml` files for a number of different features.
150+
151+
### CodeLens 'Bind to grammar/schema...'
152+
153+
If the current XML document is not bound to an existing grammar/schema, a CodeLens will appear above the root element, which will trigger the [XML Binding Wizard](../BindingWithGrammar.md#the-xml-binding-wizard).
154+
155+
![CodeLens Bind](../images/Features/CodeLensBind.png)
156+
157+
For more information on CodeLens capabilities, see [CodeLens](../CodeLens.md#code-lens).
158+
147159
## Custom Feature Implementation
148160

149161
You can implement your own feature with a [Java extension](../Extensions.md).
5.32 KB
Loading

0 commit comments

Comments
 (0)