@teipublisher/oddity-language-server 0.1.0 → 0.2.0
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 +10 -0
- package/dist/edit.js +898 -0
- package/dist/edit.js.map +4 -4
- package/dist/index.js +898 -0
- package/dist/index.js.map +4 -4
- package/dist/node.cjs +1038 -75
- package/dist/node.cjs.map +4 -4
- package/package.json +1 -1
- package/schema/README.md +4 -0
- package/schema/opm/opm.schema.json +402 -0
- package/src/core/opmToml.ts +432 -0
- package/src/core/tomlScan.ts +155 -0
- package/src/edit.ts +1 -0
- package/src/index.ts +1 -0
- package/src/server/server.ts +77 -3
package/README.md
CHANGED
|
@@ -24,6 +24,16 @@ An `<?xml-model?>` or `[editor] schema` naming one of these by its published URL
|
|
|
24
24
|
If no schema can be determined, the language server still supports
|
|
25
25
|
well-formedness checks, an outline and tag renaming.
|
|
26
26
|
|
|
27
|
+
## opm.toml
|
|
28
|
+
|
|
29
|
+
A document named `opm.toml` is checked against the JSON Schema that opm ships
|
|
30
|
+
(`schema/opm/opm.schema.json`, copied by `npm run schemas`): TOML syntax errors,
|
|
31
|
+
wrong types and values are errors, unknown keys and legacy top-level sections
|
|
32
|
+
warnings. Completion offers table names in headers, the keys a table may still
|
|
33
|
+
take, and values (enums, booleans, examples) after `=`; hover shows a key's
|
|
34
|
+
description. Clients have to send `opm.toml` to the server, e.g. a document
|
|
35
|
+
selector `{ pattern: '**/opm.toml' }`.
|
|
36
|
+
|
|
27
37
|
## Layout
|
|
28
38
|
|
|
29
39
|
- `src/core/`: editor-independent code (validation, completion, schema
|