monacozen 0.3.0 → 0.5.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 +4 -0
- package/assets/{bat-T2vjbQzY.js → bat-CAz1OfAu.js} +1 -1
- package/assets/{clojure-BvXzD8Uz.js → clojure-BmcSQAck.js} +1 -1
- package/assets/{coffee-D_yet6sT.js → coffee-BjQKeqpj.js} +1 -1
- package/assets/{cpp-CsfEADPM.js → cpp-SbfDT5PL.js} +1 -1
- package/assets/{csharp-jw3fFksF.js → csharp-DIgVBsD4.js} +1 -1
- package/assets/{css-FsiUe-xI.js → css-CyL9hcFb.js} +1 -1
- package/assets/{css.worker-BSHdDU9y.js → css.worker-ZGAWMrD5.js} +1 -1
- package/assets/{cssMode-BLJVTAbR.js → cssMode-DruRQLIe.js} +5 -5
- package/assets/{cypher-B8DgU2PH.js → cypher-CFQunzEa.js} +1 -1
- package/assets/{dart-D1x60wEn.js → dart-DeIsDVRt.js} +1 -1
- package/assets/{dockerfile-DSHxsy4G.js → dockerfile-Yk3LuDQk.js} +1 -1
- package/assets/{editor.api-ZYFspLPt.js → editor.api-BzOtwRIu.js} +329 -329
- package/assets/{editorWebWorkerMain-DXr8-Jst.js → editorWebWorkerMain-5pwK50BL.js} +1 -1
- package/assets/{elixir-Cr7BtjRU.js → elixir-y_NY5k67.js} +1 -1
- package/assets/{fsharp-CeVKIr0d.js → fsharp-DdRbc-sH.js} +1 -1
- package/assets/{go-BL4_0srD.js → go-D7w79i6g.js} +1 -1
- package/assets/{graphql-mhWekwK0.js → graphql-BsDuKp-c.js} +1 -1
- package/assets/{handlebars-rQdtgZoQ.js → handlebars-CBxzRnT2.js} +2 -2
- package/assets/{hcl-CfyDj6z_.js → hcl-CXnaLDBx.js} +1 -1
- package/assets/{html-DIDrd2Z7.js → html-2O_gNlhN.js} +2 -2
- package/assets/{html.worker-BrBx6eB3.js → html.worker-CjDeE2MB.js} +1 -1
- package/assets/{htmlMode-C87jndIO.js → htmlMode-Fhr9uBMz.js} +4 -4
- package/assets/{ini-DhiXkl_g.js → ini-DAoNsTkV.js} +1 -1
- package/assets/{java-Ct9YHm5L.js → java-Cp0vrvO9.js} +1 -1
- package/assets/{javascript-By915NHa.js → javascript-b4MphFng.js} +2 -2
- package/assets/{json.worker-B0PzJ5jL.js → json.worker-C4u3dDHp.js} +1 -1
- package/assets/{jsonMode-DLDmNGq-.js → jsonMode-sWKd2TOR.js} +9 -9
- package/assets/{julia-BAYXm_pL.js → julia-CVutXSdh.js} +1 -1
- package/assets/{kotlin-JEujETri.js → kotlin-DYeWZuUb.js} +1 -1
- package/assets/{less-oHZXXDVD.js → less-INmgXeDn.js} +1 -1
- package/assets/{liquid-Cvs1eMgo.js → liquid-vTiq1Xyj.js} +2 -2
- package/assets/{lspLanguageFeatures-D6P77uh_.js → lspLanguageFeatures-bOiKIJ8R.js} +3 -3
- package/assets/{lua-B3ViXcD8.js → lua-COF3XwLj.js} +1 -1
- package/assets/{markdown-Ggb6Rgvc.js → markdown-CCGC2kAW.js} +1 -1
- package/assets/{mdx-Ce7sXDA4.js → mdx-CDmJWd6e.js} +2 -2
- package/assets/{mips-cYdfQChM.js → mips-ll8pdQLQ.js} +1 -1
- package/assets/{monaco-DEq8WAj8.js → monaco-CpRKBeoV.js} +8857 -8803
- package/assets/{mysql-nklBC2QL.js → mysql-CnCmYLcK.js} +1 -1
- package/assets/{objective-c-x5BzCYEv.js → objective-c-D-xZGaTr.js} +1 -1
- package/assets/{pascal-DWL5ya_C.js → pascal-CKVRL3bp.js} +1 -1
- package/assets/{perl-CbRoLks6.js → perl-DqL2sfnN.js} +1 -1
- package/assets/{pgsql-CVS-AsDB.js → pgsql-BpvbArh-.js} +1 -1
- package/assets/{php-6gZIubF1.js → php-BbqlrNqC.js} +1 -1
- package/assets/{powershell-DKgJI7BG.js → powershell-0oEoSDwW.js} +1 -1
- package/assets/{protobuf-N0VyW3k9.js → protobuf-DlOMtU4U.js} +1 -1
- package/assets/{pug-BIMEUctf.js → pug-CTxaaQKP.js} +1 -1
- package/assets/{python-BKt2Winm.js → python-H0euVUAi.js} +2 -2
- package/assets/{r-Cb2uCcX6.js → r-DF_g8_2l.js} +1 -1
- package/assets/{redis-D1CRAuQ1.js → redis-B09Z6nB5.js} +1 -1
- package/assets/{ruby-BzpgsYNr.js → ruby-CWBObvDC.js} +1 -1
- package/assets/{rust-CkIXqWDr.js → rust-DdLDSWVK.js} +1 -1
- package/assets/{scala-CnJ7htCu.js → scala-Bg3GaqPc.js} +1 -1
- package/assets/{scss-xP2eAFyY.js → scss-D-qk8UVY.js} +1 -1
- package/assets/{shell-JSjWPSrk.js → shell-CpVOERQd.js} +1 -1
- package/assets/{solidity-C8AFhoIi.js → solidity-CVmhJ22u.js} +1 -1
- package/assets/{sql-DqW-LmZI.js → sql-DHvzW7ba.js} +1 -1
- package/assets/{swift-BcHKQY-M.js → swift-DIkzszb_.js} +1 -1
- package/assets/{systemverilog-Dmu-Ht4V.js → systemverilog-T3rz_k7V.js} +1 -1
- package/assets/{ts.worker-BAchZA3W.js → ts.worker-BydNuElr.js} +1 -1
- package/assets/{tsMode-DdcTxg_i.js → tsMode-Ci9elq6o.js} +4 -4
- package/assets/{twig-Bj4rwioa.js → twig-CWOr6DII.js} +1 -1
- package/assets/{typescript-Djsb1cC9.js → typescript-DGfbroT9.js} +2 -2
- package/assets/{typespec-xwJ6QpRP.js → typespec-4ubJw-FV.js} +1 -1
- package/assets/{vb-CMxAjmFH.js → vb-SSAHHOVh.js} +1 -1
- package/assets/{wgsl-CTYGQRo2.js → wgsl-hf5cqFtC.js} +1 -1
- package/assets/{xml-D7cJD5hW.js → xml-Bz6VGB5E.js} +2 -2
- package/assets/{yaml-B8A0QdVf.js → yaml-D00PSO5v.js} +2 -2
- package/assets/yaml.worker-DfkUf8rM.js +474 -0
- package/assets/{yaml.worker-DZ36155v.js → yaml.worker-DlEkvGzq.js} +1 -1
- package/package.json +1 -1
- package/src/main.js +19 -19
- package/assets/yaml.worker-Crtsysk5.js +0 -474
package/README.md
CHANGED
|
@@ -115,6 +115,10 @@ const schema = {
|
|
|
115
115
|
|
|
116
116
|
The association follows the active Monaco model, including model and language changes, and is removed when `schema` is unset or the editor is disposed. This also works directly with JSON Schema objects generated by libraries such as Zod. Schema-aware completion, hover documentation and diagnostics are provided by the active language service.
|
|
117
117
|
|
|
118
|
+
With `schema`, scalar value completions (including enum entries) also appear as dimmed inline ghost text. Press **Tab** to accept the suggestion. For an enum containing `firstYear`, `renewal`, and `threeYears`, `sort: ` offers a value and `sort: th` shows only `reeYears`. Matching is prefix-based: unrelated values are not overwritten. JSON string quotes, nested properties, array items, and schema references are handled by the existing language service.
|
|
119
|
+
|
|
120
|
+
Inline suggestions are scoped to the editor model and cleared when its schema changes. The regular completion menu remains available with **Ctrl+Space**. Disable ghost text with `monaco={{inlineSuggest: {enabled: false}}}`.
|
|
121
|
+
|
|
118
122
|
YAML additionally includes Prettier formatting. Standard YAML language-server schema comments remain supported when no `schema` prop is supplied:
|
|
119
123
|
|
|
120
124
|
```tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules
|
|
1
|
+
//#region node_modules/monaco-editor/esm/vs/languages/definitions/coffee/coffee.js
|
|
2
2
|
var e = {
|
|
3
3
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
4
4
|
comments: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules
|
|
1
|
+
//#region node_modules/monaco-editor/esm/vs/languages/definitions/csharp/csharp.js
|
|
2
2
|
var e = {
|
|
3
3
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
4
4
|
comments: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules
|
|
1
|
+
//#region node_modules/monaco-editor/esm/vs/languages/definitions/css/css.js
|
|
2
2
|
var e = {
|
|
3
3
|
wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
|
|
4
4
|
comments: { blockComment: ["/*", "*/"] },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules
|
|
1
|
+
//#region node_modules/monaco-editor/esm/vs/languages/features/css/css.worker.js?worker
|
|
2
2
|
function e(e) {
|
|
3
3
|
return new Worker(new URL("css.worker-BIsSvM_Q.js", import.meta.url).href, { name: e?.name });
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as e } from "./editor.api-
|
|
2
|
-
import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v } from "./lspLanguageFeatures-
|
|
3
|
-
import { r as y } from "./monaco-
|
|
4
|
-
//#region node_modules
|
|
1
|
+
import { m as e } from "./editor.api-BzOtwRIu.js";
|
|
2
|
+
import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v } from "./lspLanguageFeatures-bOiKIJ8R.js";
|
|
3
|
+
import { r as y } from "./monaco-CpRKBeoV.js";
|
|
4
|
+
//#region node_modules/monaco-editor/esm/vs/languages/features/css/workerManager.js
|
|
5
5
|
var b = 12e4, x = class {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 3e4), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
|
@@ -40,7 +40,7 @@ var b = 12e4, x = class {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region node_modules
|
|
43
|
+
//#region node_modules/monaco-editor/esm/vs/languages/features/css/cssMode.js
|
|
44
44
|
function S(t) {
|
|
45
45
|
let o = [], s = [], h = new x(t);
|
|
46
46
|
o.push(h);
|