brighterscript-xml-plugin 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/dist/index.js +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
# brighterscript-xml-plugin
|
|
2
|
+
|
|
2
3
|
## BrighterScript plugin for SceneGraph XML completions
|
|
3
4
|
|
|
4
5
|
### It Does:
|
|
6
|
+
|
|
5
7
|
- suggest components
|
|
6
8
|
- suggest component fields
|
|
9
|
+
- validate field values
|
|
10
|
+
- validate field names
|
|
11
|
+
- validate child components
|
|
7
12
|
|
|
8
13
|
### It Does Not:
|
|
9
|
-
|
|
14
|
+
|
|
10
15
|
- suggest interface elements like `field` and `function`
|
|
11
16
|
|
|
12
17
|
### Installation
|
|
18
|
+
|
|
13
19
|
```
|
|
14
20
|
npm i brighterscript-xml-plugin
|
|
15
21
|
```
|
|
22
|
+
|
|
16
23
|
`bsconfig.json`
|
|
24
|
+
|
|
17
25
|
```
|
|
18
26
|
{
|
|
19
27
|
...
|
|
@@ -24,12 +32,13 @@ npm i brighterscript-xml-plugin
|
|
|
24
32
|
```
|
|
25
33
|
|
|
26
34
|
### Usage
|
|
35
|
+
|
|
27
36
|
SceneGraph Component completions
|
|
28
37
|

|
|
29
38
|
|
|
30
|
-
|
|
39
|
+
- validates children components
|
|
31
40
|
- provides both built-in Roku SceneGraph components and custom project components
|
|
32
41
|
- provides built-in fields and custom fields
|
|
33
42
|
- auto suggestions for fields when typing inside an element tag
|
|
34
43
|
- use completions shortcut to trigger manually
|
|
35
|
-
- component completions on `<` do not fill automatically, pretty sure this is something that needs to be configured at the vscode extension level.
|
|
44
|
+
- component completions on `<` do not fill automatically, pretty sure this is something that needs to be configured at the vscode extension level.
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,6 @@ class BscXmlPlugin {
|
|
|
37
37
|
provideCompletions(event) {
|
|
38
38
|
console.log('provideCompletions', event.file.constructor.name);
|
|
39
39
|
if ((0, brighterscript_1.isXmlFile)(event.file)) {
|
|
40
|
-
console.log(event.completions);
|
|
41
40
|
this.getProvider(event.program).process(event);
|
|
42
41
|
}
|
|
43
42
|
}
|