@pwrs/cem 0.3.0 → 0.4.1
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 +22 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -54,6 +54,27 @@ See the [Configuration Reference][configdocs] for more information.
|
|
|
54
54
|
|
|
55
55
|
---
|
|
56
56
|
|
|
57
|
+
### `cem lsp`
|
|
58
|
+
|
|
59
|
+
The `cem lsp` command starts a Language Server Protocol (LSP) server that provides intelligent IDE features for custom elements in HTML and TypeScript files. It offers contextual autocomplete, hover documentation, and other editor enhancements by analyzing your custom elements manifests.
|
|
60
|
+
|
|
61
|
+
**Features:**
|
|
62
|
+
- Tag name and attribute completion for custom elements
|
|
63
|
+
- Slot attribute value completion for direct children of slotted elements
|
|
64
|
+
- Hover documentation with type information
|
|
65
|
+
- **Error detection with autofixes** - Real-time validation with one-click corrections:
|
|
66
|
+
- Slot validation with smart suggestions
|
|
67
|
+
- Tag name validation with typo detection and missing import suggestions
|
|
68
|
+
- Attribute validation against HTML global attributes and custom element schemas
|
|
69
|
+
- Go-to-definition support for jumping to element source code
|
|
70
|
+
- Go-to-references to find all usages of custom elements across your workspace
|
|
71
|
+
- Support for HTML files and TypeScript template literals
|
|
72
|
+
- Automatic manifest discovery and live reloading
|
|
73
|
+
|
|
74
|
+
See more in the [LSP docs][lspdocs]
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
57
78
|
## Contributing
|
|
58
79
|
|
|
59
80
|
For information on building and testing, please see
|
|
@@ -78,4 +99,5 @@ the terms of the [GNU General Public License v3.0][gpl3].
|
|
|
78
99
|
[listdocs]: https://bennypowers.github.io/cem/commands/list/
|
|
79
100
|
[searchdocs]: https://bennypowers.github.io/cem/commands/search/
|
|
80
101
|
[validatedocs]: https://bennypowers.github.io/cem/commands/validate/
|
|
102
|
+
[lspdocs]: https://bennypowers.github.io/cem/docs/lsp/
|
|
81
103
|
[configdocs]: https://bennypowers.github.io/cem/configuration/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pwrs/cem",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "CLI tool for generating and working with Custom Elements Manifests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"postinstall": "node ./install-platform-binary.js"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@pwrs/cem-linux-x64": "0.
|
|
17
|
-
"@pwrs/cem-linux-arm64": "0.
|
|
18
|
-
"@pwrs/cem-darwin-x64": "0.
|
|
19
|
-
"@pwrs/cem-darwin-arm64": "0.
|
|
20
|
-
"@pwrs/cem-win32-x64": "0.
|
|
21
|
-
"@pwrs/cem-win32-arm64": "0.
|
|
16
|
+
"@pwrs/cem-linux-x64": "0.4.1",
|
|
17
|
+
"@pwrs/cem-linux-arm64": "0.4.1",
|
|
18
|
+
"@pwrs/cem-darwin-x64": "0.4.1",
|
|
19
|
+
"@pwrs/cem-darwin-arm64": "0.4.1",
|
|
20
|
+
"@pwrs/cem-win32-x64": "0.4.1",
|
|
21
|
+
"@pwrs/cem-win32-arm64": "0.4.1"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"bin/cem.js",
|