mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
deploy: c3ba46abc7
This commit is contained in:
parent
a0eed4888d
commit
3498c6e9be
5208 changed files with 179980 additions and 80849 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
node_modules/monaco-editor/dev
|
||||
node_modules/monaco-editor/esm
|
||||
2
1000.js
Normal file
2
1000.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1e3],{1e3:(e,i,t)=>{t.r(i),t.d(i,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=1000.js.map
|
||||
1
1000.js.map
Normal file
1
1000.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1000.js","mappings":"4IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/inlay-hints-provider-example/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
1111.js
Normal file
2
1111.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1111],{1111:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=1111.js.map
|
||||
1
1111.js.map
Normal file
1
1111.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1111.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/customizing-the-line-numbers/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
1142.js
Normal file
2
1142.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1142],{1142:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=1142.js.map
|
||||
1
1142.js.map
Normal file
1
1142.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1142.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/semantic-tokens-provider-example/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
1187.js
Normal file
2
1187.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1187],{1187:(t,n,e)=>{e.r(n),e.d(n,{default:()=>o});const o='monaco.languages.register({\n\tid: "foldLanguage",\n});\n\nvar value = `1. Hit F1 to bring up the Command Palette\n2. Type \'fold\'\n3. Choose \'Fold All Block Comments\' or \'Fold All Regions\'\n\n5. comment1\n6. comment1\n7. comment1\n\n9. unfoldable text\n10. unfoldable text\n11. unfoldable text\n\n13. comment2\n14. comment2\n15. comment2\n16. comment2\n17. comment2\n\n19. foldable text\n20. foldable text\n21. foldable text\n\n23. region1\n24. region1\n25. region1\n\n27. region2\n28. region2\n29. region2`;\n\nmonaco.editor.create(document.getElementById("container"), {\n\tvalue: value,\n\tlanguage: "foldLanguage",\n});\n\nmonaco.languages.registerFoldingRangeProvider("foldLanguage", {\n\tprovideFoldingRanges: function (model, context, token) {\n\t\treturn [\n\t\t\t// comment1\n\t\t\t{\n\t\t\t\tstart: 5,\n\t\t\t\tend: 7,\n\t\t\t\tkind: monaco.languages.FoldingRangeKind.Comment,\n\t\t\t},\n\t\t\t// comment2\n\t\t\t{\n\t\t\t\tstart: 13,\n\t\t\t\tend: 17,\n\t\t\t\tkind: monaco.languages.FoldingRangeKind.Comment,\n\t\t\t},\n\t\t\t// foldable text\n\t\t\t{\n\t\t\t\tstart: 19,\n\t\t\t\tend: 21,\n\t\t\t},\n\t\t\t// region1\n\t\t\t{\n\t\t\t\tstart: 23,\n\t\t\t\tend: 25,\n\t\t\t\tkind: monaco.languages.FoldingRangeKind.Region,\n\t\t\t},\n\t\t\t// region2\n\t\t\t{\n\t\t\t\tstart: 27,\n\t\t\t\tend: 29,\n\t\t\t\tkind: monaco.languages.FoldingRangeKind.Region,\n\t\t\t},\n\t\t];\n\t},\n});\n'}}]);
|
||||
//# sourceMappingURL=1187.js.map
|
||||
1
1187.js.map
Normal file
1
1187.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1187.js","mappings":"8IAAA,o4C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/folding-provider-example/sample.js"],"sourcesContent":["export default \"monaco.languages.register({\\n\\tid: \\\"foldLanguage\\\",\\n});\\n\\nvar value = `1. Hit F1 to bring up the Command Palette\\n2. Type 'fold'\\n3. Choose 'Fold All Block Comments' or 'Fold All Regions'\\n\\n5. comment1\\n6. comment1\\n7. comment1\\n\\n9. unfoldable text\\n10. unfoldable text\\n11. unfoldable text\\n\\n13. comment2\\n14. comment2\\n15. comment2\\n16. comment2\\n17. comment2\\n\\n19. foldable text\\n20. foldable text\\n21. foldable text\\n\\n23. region1\\n24. region1\\n25. region1\\n\\n27. region2\\n28. region2\\n29. region2`;\\n\\nmonaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: value,\\n\\tlanguage: \\\"foldLanguage\\\",\\n});\\n\\nmonaco.languages.registerFoldingRangeProvider(\\\"foldLanguage\\\", {\\n\\tprovideFoldingRanges: function (model, context, token) {\\n\\t\\treturn [\\n\\t\\t\\t// comment1\\n\\t\\t\\t{\\n\\t\\t\\t\\tstart: 5,\\n\\t\\t\\t\\tend: 7,\\n\\t\\t\\t\\tkind: monaco.languages.FoldingRangeKind.Comment,\\n\\t\\t\\t},\\n\\t\\t\\t// comment2\\n\\t\\t\\t{\\n\\t\\t\\t\\tstart: 13,\\n\\t\\t\\t\\tend: 17,\\n\\t\\t\\t\\tkind: monaco.languages.FoldingRangeKind.Comment,\\n\\t\\t\\t},\\n\\t\\t\\t// foldable text\\n\\t\\t\\t{\\n\\t\\t\\t\\tstart: 19,\\n\\t\\t\\t\\tend: 21,\\n\\t\\t\\t},\\n\\t\\t\\t// region1\\n\\t\\t\\t{\\n\\t\\t\\t\\tstart: 23,\\n\\t\\t\\t\\tend: 25,\\n\\t\\t\\t\\tkind: monaco.languages.FoldingRangeKind.Region,\\n\\t\\t\\t},\\n\\t\\t\\t// region2\\n\\t\\t\\t{\\n\\t\\t\\t\\tstart: 27,\\n\\t\\t\\t\\tend: 29,\\n\\t\\t\\t\\tkind: monaco.languages.FoldingRangeKind.Region,\\n\\t\\t\\t},\\n\\t\\t];\\n\\t},\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
1222.js
Normal file
2
1222.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1222],{1222:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=1222.js.map
|
||||
1
1222.js.map
Normal file
1
1222.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1222.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/configure-javascript-defaults/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
1238.js
Normal file
2
1238.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1238],{1238:(n,e,o)=>{o.r(e),o.d(e,{default:()=>t});const t='var editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: "function hello() {\\n\\talert(\'Hello world!\');\\n}",\n\tlanguage: "javascript",\n});\n\nvar myBinding = editor.addCommand(monaco.KeyCode.F9, function () {\n\talert("F9 pressed!");\n});\n\n// You can\'t dispose `addCommand`\n// If you need to dispose it you might use `addAction` or `registerCommand`\n'}}]);
|
||||
//# sourceMappingURL=1238.js.map
|
||||
1
1238.js.map
Normal file
1
1238.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1238.js","mappings":"8IAAA,8Y","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-key-events/sample.js"],"sourcesContent":["export default \"var editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: \\\"function hello() {\\\\n\\\\talert('Hello world!');\\\\n}\\\",\\n\\tlanguage: \\\"javascript\\\",\\n});\\n\\nvar myBinding = editor.addCommand(monaco.KeyCode.F9, function () {\\n\\talert(\\\"F9 pressed!\\\");\\n});\\n\\n// You can't dispose `addCommand`\\n// If you need to dispose it you might use `addAction` or `registerCommand`\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
1261.js
Normal file
2
1261.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1261],{1261:(t,n,e)=>{e.r(n),e.d(n,{default:()=>r});const r='function validate(model) {\n\tconst markers = [];\n\t// lines start at 1\n\tfor (let i = 1; i < model.getLineCount() + 1; i++) {\n\t\tconst range = {\n\t\t\tstartLineNumber: i,\n\t\t\tstartColumn: 1,\n\t\t\tendLineNumber: i,\n\t\t\tendColumn: model.getLineLength(i) + 1,\n\t\t};\n\t\tconst content = model.getValueInRange(range).trim();\n\t\tconst number = Number(content);\n\t\tif (Number.isNaN(number)) {\n\t\t\tmarkers.push({\n\t\t\t\tmessage: "not a number",\n\t\t\t\tseverity: monaco.MarkerSeverity.Error,\n\t\t\t\tstartLineNumber: range.startLineNumber,\n\t\t\t\tstartColumn: range.startColumn,\n\t\t\t\tendLineNumber: range.endLineNumber,\n\t\t\t\tendColumn: range.endColumn,\n\t\t\t});\n\t\t} else if (!Number.isInteger(number)) {\n\t\t\tmarkers.push({\n\t\t\t\tmessage: "not an integer",\n\t\t\t\tseverity: monaco.MarkerSeverity.Warning,\n\t\t\t\tstartLineNumber: range.startLineNumber,\n\t\t\t\tstartColumn: range.startColumn,\n\t\t\t\tendLineNumber: range.endLineNumber,\n\t\t\t\tendColumn: range.endColumn,\n\t\t\t});\n\t\t}\n\t}\n\tmonaco.editor.setModelMarkers(model, "owner", markers);\n}\n\nconst value = `12345\nabcd\n234.56\n12345\nabcd\n234.56`;\nconst uri = monaco.Uri.parse("inmemory://test");\nconst model = monaco.editor.createModel(value, "demoLanguage", uri);\neditor = monaco.editor.create(document.getElementById("container"), { model });\nvalidate(model);\nmodel.onDidChangeContent(() => {\n\tvalidate(model);\n});\n'}}]);
|
||||
//# sourceMappingURL=1261.js.map
|
||||
1
1261.js.map
Normal file
1
1261.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1261.js","mappings":"8IAAA,86C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.js"],"sourcesContent":["export default \"function validate(model) {\\n\\tconst markers = [];\\n\\t// lines start at 1\\n\\tfor (let i = 1; i < model.getLineCount() + 1; i++) {\\n\\t\\tconst range = {\\n\\t\\t\\tstartLineNumber: i,\\n\\t\\t\\tstartColumn: 1,\\n\\t\\t\\tendLineNumber: i,\\n\\t\\t\\tendColumn: model.getLineLength(i) + 1,\\n\\t\\t};\\n\\t\\tconst content = model.getValueInRange(range).trim();\\n\\t\\tconst number = Number(content);\\n\\t\\tif (Number.isNaN(number)) {\\n\\t\\t\\tmarkers.push({\\n\\t\\t\\t\\tmessage: \\\"not a number\\\",\\n\\t\\t\\t\\tseverity: monaco.MarkerSeverity.Error,\\n\\t\\t\\t\\tstartLineNumber: range.startLineNumber,\\n\\t\\t\\t\\tstartColumn: range.startColumn,\\n\\t\\t\\t\\tendLineNumber: range.endLineNumber,\\n\\t\\t\\t\\tendColumn: range.endColumn,\\n\\t\\t\\t});\\n\\t\\t} else if (!Number.isInteger(number)) {\\n\\t\\t\\tmarkers.push({\\n\\t\\t\\t\\tmessage: \\\"not an integer\\\",\\n\\t\\t\\t\\tseverity: monaco.MarkerSeverity.Warning,\\n\\t\\t\\t\\tstartLineNumber: range.startLineNumber,\\n\\t\\t\\t\\tstartColumn: range.startColumn,\\n\\t\\t\\t\\tendLineNumber: range.endLineNumber,\\n\\t\\t\\t\\tendColumn: range.endColumn,\\n\\t\\t\\t});\\n\\t\\t}\\n\\t}\\n\\tmonaco.editor.setModelMarkers(model, \\\"owner\\\", markers);\\n}\\n\\nconst value = `12345\\nabcd\\n234.56\\n12345\\nabcd\\n234.56`;\\nconst uri = monaco.Uri.parse(\\\"inmemory://test\\\");\\nconst model = monaco.editor.createModel(value, \\\"demoLanguage\\\", uri);\\neditor = monaco.editor.create(document.getElementById(\\\"container\\\"), { model });\\nvalidate(model);\\nmodel.onDidChangeContent(() => {\\n\\tvalidate(model);\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
152.js
Normal file
2
152.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[152],{152:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});const t='// The Monaco Editor can be easily created, given an\n// empty container and an options literal.\n// Two members of the literal are "value" and "language".\n// The editor takes the full size of its container.\n\nmonaco.editor.create(document.getElementById("container"), {\n\tvalue: "function hello() {\\n\\talert(\'Hello world!\');\\n}",\n\tlanguage: "javascript",\n});\n'}}]);
|
||||
//# sourceMappingURL=152.js.map
|
||||
1
152.js.map
Normal file
1
152.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"152.js","mappings":"4IAAA,8X","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-editor/hello-world/sample.js"],"sourcesContent":["export default \"// The Monaco Editor can be easily created, given an\\n// empty container and an options literal.\\n// Two members of the literal are \\\"value\\\" and \\\"language\\\".\\n// The editor takes the full size of its container.\\n\\nmonaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: \\\"function hello() {\\\\n\\\\talert('Hello world!');\\\\n}\\\",\\n\\tlanguage: \\\"javascript\\\",\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
157.js
Normal file
2
157.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[157],{157:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=157.js.map
|
||||
1
157.js.map
Normal file
1
157.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"157.js","mappings":"4IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-diffeditor/navigating-a-diff/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
1664.js
Normal file
2
1664.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1664],{1664:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=1664.js.map
|
||||
1
1664.js.map
Normal file
1
1664.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1664.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/adding-an-action-to-an-editor-instance/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
1913.js
Normal file
2
1913.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[1913],{1913:(t,n,e)=>{e.r(n),e.d(n,{default:()=>r});const r='monaco.languages.register({ id: "mySpecialLanguage" });\n\nmonaco.languages.registerHoverProvider("mySpecialLanguage", {\n\tprovideHover: function (model, position) {\n\t\treturn xhr("../playground.html").then(function (res) {\n\t\t\treturn {\n\t\t\t\trange: new monaco.Range(\n\t\t\t\t\t1,\n\t\t\t\t\t1,\n\t\t\t\t\tmodel.getLineCount(),\n\t\t\t\t\tmodel.getLineMaxColumn(model.getLineCount())\n\t\t\t\t),\n\t\t\t\tcontents: [\n\t\t\t\t\t{ value: "**SOURCE**" },\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue:\n\t\t\t\t\t\t\t"```html\\n" +\n\t\t\t\t\t\t\tres.responseText.substring(0, 200) +\n\t\t\t\t\t\t\t"\\n```",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t};\n\t\t});\n\t},\n});\n\nmonaco.editor.create(document.getElementById("container"), {\n\tvalue: "\\n\\nHover over this text",\n\tlanguage: "mySpecialLanguage",\n});\n\nfunction xhr(url) {\n\tvar req = null;\n\treturn new Promise(\n\t\tfunction (c, e) {\n\t\t\treq = new XMLHttpRequest();\n\t\t\treq.onreadystatechange = function () {\n\t\t\t\tif (req._canceled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (req.readyState === 4) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t(req.status >= 200 && req.status < 300) ||\n\t\t\t\t\t\treq.status === 1223\n\t\t\t\t\t) {\n\t\t\t\t\t\tc(req);\n\t\t\t\t\t} else {\n\t\t\t\t\t\te(req);\n\t\t\t\t\t}\n\t\t\t\t\treq.onreadystatechange = function () {};\n\t\t\t\t}\n\t\t\t};\n\n\t\t\treq.open("GET", url, true);\n\t\t\treq.responseType = "";\n\n\t\t\treq.send(null);\n\t\t},\n\t\tfunction () {\n\t\t\treq._canceled = true;\n\t\t\treq.abort();\n\t\t}\n\t);\n}\n'}}]);
|
||||
//# sourceMappingURL=1913.js.map
|
||||
1
1913.js.map
Normal file
1
1913.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"1913.js","mappings":"8IAAA,6/C","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/hover-provider-example/sample.js"],"sourcesContent":["export default \"monaco.languages.register({ id: \\\"mySpecialLanguage\\\" });\\n\\nmonaco.languages.registerHoverProvider(\\\"mySpecialLanguage\\\", {\\n\\tprovideHover: function (model, position) {\\n\\t\\treturn xhr(\\\"../playground.html\\\").then(function (res) {\\n\\t\\t\\treturn {\\n\\t\\t\\t\\trange: new monaco.Range(\\n\\t\\t\\t\\t\\t1,\\n\\t\\t\\t\\t\\t1,\\n\\t\\t\\t\\t\\tmodel.getLineCount(),\\n\\t\\t\\t\\t\\tmodel.getLineMaxColumn(model.getLineCount())\\n\\t\\t\\t\\t),\\n\\t\\t\\t\\tcontents: [\\n\\t\\t\\t\\t\\t{ value: \\\"**SOURCE**\\\" },\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\tvalue:\\n\\t\\t\\t\\t\\t\\t\\t\\\"```html\\\\n\\\" +\\n\\t\\t\\t\\t\\t\\t\\tres.responseText.substring(0, 200) +\\n\\t\\t\\t\\t\\t\\t\\t\\\"\\\\n```\\\",\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t],\\n\\t\\t\\t};\\n\\t\\t});\\n\\t},\\n});\\n\\nmonaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: \\\"\\\\n\\\\nHover over this text\\\",\\n\\tlanguage: \\\"mySpecialLanguage\\\",\\n});\\n\\nfunction xhr(url) {\\n\\tvar req = null;\\n\\treturn new Promise(\\n\\t\\tfunction (c, e) {\\n\\t\\t\\treq = new XMLHttpRequest();\\n\\t\\t\\treq.onreadystatechange = function () {\\n\\t\\t\\t\\tif (req._canceled) {\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tif (req.readyState === 4) {\\n\\t\\t\\t\\t\\tif (\\n\\t\\t\\t\\t\\t\\t(req.status >= 200 && req.status < 300) ||\\n\\t\\t\\t\\t\\t\\treq.status === 1223\\n\\t\\t\\t\\t\\t) {\\n\\t\\t\\t\\t\\t\\tc(req);\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\te(req);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\treq.onreadystatechange = function () {};\\n\\t\\t\\t\\t}\\n\\t\\t\\t};\\n\\n\\t\\t\\treq.open(\\\"GET\\\", url, true);\\n\\t\\t\\treq.responseType = \\\"\\\";\\n\\n\\t\\t\\treq.send(null);\\n\\t\\t},\\n\\t\\tfunction () {\\n\\t\\t\\treq._canceled = true;\\n\\t\\t\\treq.abort();\\n\\t\\t}\\n\\t);\\n}\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
2350.js
Normal file
2
2350.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2350],{2350:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=2350.js.map
|
||||
1
2350.js.map
Normal file
1
2350.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"2350.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-editor/hello-world/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
2507.js
Normal file
2
2507.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2507],{2507:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=2507.js.map
|
||||
1
2507.js.map
Normal file
1
2507.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"2507.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/revealing-a-position/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
264.js
Normal file
2
264.js
Normal file
File diff suppressed because one or more lines are too long
1
264.js.map
Normal file
1
264.js.map
Normal file
File diff suppressed because one or more lines are too long
2
2694.js
Normal file
2
2694.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2694],{2694:(t,n,e)=>{e.r(n),e.d(n,{default:()=>o});const o='var jsCode = [\n\t\'"use strict";\',\n\t"function Person(age) {",\n\t"\tif (age) {",\n\t"\t\tthis.age = age;",\n\t"\t}",\n\t"}",\n\t"Person.prototype.getAge = function () {",\n\t"\treturn this.age;",\n\t"};",\n].join("\\n");\n\nvar editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: jsCode,\n\tlanguage: "javascript",\n\tglyphMargin: true,\n\tcontextmenu: false,\n});\n\nvar decorations = editor.deltaDecorations(\n\t[],\n\t[\n\t\t{\n\t\t\trange: new monaco.Range(3, 1, 3, 1),\n\t\t\toptions: {\n\t\t\t\tisWholeLine: true,\n\t\t\t\tclassName: "myContentClass",\n\t\t\t\tglyphMarginClassName: "myGlyphMarginClass",\n\t\t\t},\n\t\t},\n\t]\n);\n\n// Add a zone to make hit testing more interesting\nvar viewZoneId = null;\neditor.changeViewZones(function (changeAccessor) {\n\tvar domNode = document.createElement("div");\n\tdomNode.style.background = "lightgreen";\n\tviewZoneId = changeAccessor.addZone({\n\t\tafterLineNumber: 3,\n\t\theightInLines: 3,\n\t\tdomNode: domNode,\n\t});\n});\n\n// Add a content widget (scrolls inline with text)\nvar contentWidget = {\n\tdomNode: null,\n\tgetId: function () {\n\t\treturn "my.content.widget";\n\t},\n\tgetDomNode: function () {\n\t\tif (!this.domNode) {\n\t\t\tthis.domNode = document.createElement("div");\n\t\t\tthis.domNode.innerHTML = "My content widget";\n\t\t\tthis.domNode.style.background = "grey";\n\t\t}\n\t\treturn this.domNode;\n\t},\n\tgetPosition: function () {\n\t\treturn {\n\t\t\tposition: {\n\t\t\t\tlineNumber: 7,\n\t\t\t\tcolumn: 8,\n\t\t\t},\n\t\t\tpreference: [\n\t\t\t\tmonaco.editor.ContentWidgetPositionPreference.ABOVE,\n\t\t\t\tmonaco.editor.ContentWidgetPositionPreference.BELOW,\n\t\t\t],\n\t\t};\n\t},\n};\neditor.addContentWidget(contentWidget);\n\n// Add an overlay widget\nvar overlayWidget = {\n\tdomNode: null,\n\tgetId: function () {\n\t\treturn "my.overlay.widget";\n\t},\n\tgetDomNode: function () {\n\t\tif (!this.domNode) {\n\t\t\tthis.domNode = document.createElement("div");\n\t\t\tthis.domNode.innerHTML = "My overlay widget";\n\t\t\tthis.domNode.style.background = "grey";\n\t\t\tthis.domNode.style.right = "30px";\n\t\t\tthis.domNode.style.top = "50px";\n\t\t}\n\t\treturn this.domNode;\n\t},\n\tgetPosition: function () {\n\t\treturn null;\n\t},\n};\neditor.addOverlayWidget(overlayWidget);\n\nvar output = document.getElementById("output");\nfunction showEvent(str) {\n\twhile (output.childNodes.length > 6) {\n\t\toutput.removeChild(output.firstChild.nextSibling.nextSibling);\n\t}\n\toutput.appendChild(document.createTextNode(str));\n\toutput.appendChild(document.createElement("br"));\n}\n\neditor.onMouseMove(function (e) {\n\tshowEvent("mousemove - " + e.target.toString());\n});\neditor.onMouseDown(function (e) {\n\tshowEvent("mousedown - " + e.target.toString());\n});\neditor.onContextMenu(function (e) {\n\tshowEvent("contextmenu - " + e.target.toString());\n});\neditor.onMouseLeave(function (e) {\n\tshowEvent("mouseleave");\n});\n'}}]);
|
||||
//# sourceMappingURL=2694.js.map
|
||||
1
2694.js.map
Normal file
1
2694.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"2694.js","mappings":"8IAAA,g6F","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.js"],"sourcesContent":["export default \"var jsCode = [\\n\\t'\\\"use strict\\\";',\\n\\t\\\"function Person(age) {\\\",\\n\\t\\\"\\tif (age) {\\\",\\n\\t\\\"\\t\\tthis.age = age;\\\",\\n\\t\\\"\\t}\\\",\\n\\t\\\"}\\\",\\n\\t\\\"Person.prototype.getAge = function () {\\\",\\n\\t\\\"\\treturn this.age;\\\",\\n\\t\\\"};\\\",\\n].join(\\\"\\\\n\\\");\\n\\nvar editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: jsCode,\\n\\tlanguage: \\\"javascript\\\",\\n\\tglyphMargin: true,\\n\\tcontextmenu: false,\\n});\\n\\nvar decorations = editor.deltaDecorations(\\n\\t[],\\n\\t[\\n\\t\\t{\\n\\t\\t\\trange: new monaco.Range(3, 1, 3, 1),\\n\\t\\t\\toptions: {\\n\\t\\t\\t\\tisWholeLine: true,\\n\\t\\t\\t\\tclassName: \\\"myContentClass\\\",\\n\\t\\t\\t\\tglyphMarginClassName: \\\"myGlyphMarginClass\\\",\\n\\t\\t\\t},\\n\\t\\t},\\n\\t]\\n);\\n\\n// Add a zone to make hit testing more interesting\\nvar viewZoneId = null;\\neditor.changeViewZones(function (changeAccessor) {\\n\\tvar domNode = document.createElement(\\\"div\\\");\\n\\tdomNode.style.background = \\\"lightgreen\\\";\\n\\tviewZoneId = changeAccessor.addZone({\\n\\t\\tafterLineNumber: 3,\\n\\t\\theightInLines: 3,\\n\\t\\tdomNode: domNode,\\n\\t});\\n});\\n\\n// Add a content widget (scrolls inline with text)\\nvar contentWidget = {\\n\\tdomNode: null,\\n\\tgetId: function () {\\n\\t\\treturn \\\"my.content.widget\\\";\\n\\t},\\n\\tgetDomNode: function () {\\n\\t\\tif (!this.domNode) {\\n\\t\\t\\tthis.domNode = document.createElement(\\\"div\\\");\\n\\t\\t\\tthis.domNode.innerHTML = \\\"My content widget\\\";\\n\\t\\t\\tthis.domNode.style.background = \\\"grey\\\";\\n\\t\\t}\\n\\t\\treturn this.domNode;\\n\\t},\\n\\tgetPosition: function () {\\n\\t\\treturn {\\n\\t\\t\\tposition: {\\n\\t\\t\\t\\tlineNumber: 7,\\n\\t\\t\\t\\tcolumn: 8,\\n\\t\\t\\t},\\n\\t\\t\\tpreference: [\\n\\t\\t\\t\\tmonaco.editor.ContentWidgetPositionPreference.ABOVE,\\n\\t\\t\\t\\tmonaco.editor.ContentWidgetPositionPreference.BELOW,\\n\\t\\t\\t],\\n\\t\\t};\\n\\t},\\n};\\neditor.addContentWidget(contentWidget);\\n\\n// Add an overlay widget\\nvar overlayWidget = {\\n\\tdomNode: null,\\n\\tgetId: function () {\\n\\t\\treturn \\\"my.overlay.widget\\\";\\n\\t},\\n\\tgetDomNode: function () {\\n\\t\\tif (!this.domNode) {\\n\\t\\t\\tthis.domNode = document.createElement(\\\"div\\\");\\n\\t\\t\\tthis.domNode.innerHTML = \\\"My overlay widget\\\";\\n\\t\\t\\tthis.domNode.style.background = \\\"grey\\\";\\n\\t\\t\\tthis.domNode.style.right = \\\"30px\\\";\\n\\t\\t\\tthis.domNode.style.top = \\\"50px\\\";\\n\\t\\t}\\n\\t\\treturn this.domNode;\\n\\t},\\n\\tgetPosition: function () {\\n\\t\\treturn null;\\n\\t},\\n};\\neditor.addOverlayWidget(overlayWidget);\\n\\nvar output = document.getElementById(\\\"output\\\");\\nfunction showEvent(str) {\\n\\twhile (output.childNodes.length > 6) {\\n\\t\\toutput.removeChild(output.firstChild.nextSibling.nextSibling);\\n\\t}\\n\\toutput.appendChild(document.createTextNode(str));\\n\\toutput.appendChild(document.createElement(\\\"br\\\"));\\n}\\n\\neditor.onMouseMove(function (e) {\\n\\tshowEvent(\\\"mousemove - \\\" + e.target.toString());\\n});\\neditor.onMouseDown(function (e) {\\n\\tshowEvent(\\\"mousedown - \\\" + e.target.toString());\\n});\\neditor.onContextMenu(function (e) {\\n\\tshowEvent(\\\"contextmenu - \\\" + e.target.toString());\\n});\\neditor.onMouseLeave(function (e) {\\n\\tshowEvent(\\\"mouseleave\\\");\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
297.js
Normal file
2
297.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[297],{297:(e,o,i)=>{i.r(o),i.d(o,{default:()=>n});const n='var originalModel = monaco.editor.createModel("heLLo world!", "text/plain");\nvar modifiedModel = monaco.editor.createModel("hello orlando!", "text/plain");\n\nvar diffEditor = monaco.editor.createDiffEditor(\n\tdocument.getElementById("container")\n);\ndiffEditor.setModel({\n\toriginal: originalModel,\n\tmodified: modifiedModel,\n});\n'}}]);
|
||||
//# sourceMappingURL=297.js.map
|
||||
1
297.js.map
Normal file
1
297.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"297.js","mappings":"4IAAA,4V","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-diffeditor/hello-diff-world/sample.js"],"sourcesContent":["export default \"var originalModel = monaco.editor.createModel(\\\"heLLo world!\\\", \\\"text/plain\\\");\\nvar modifiedModel = monaco.editor.createModel(\\\"hello orlando!\\\", \\\"text/plain\\\");\\n\\nvar diffEditor = monaco.editor.createDiffEditor(\\n\\tdocument.getElementById(\\\"container\\\")\\n);\\ndiffEditor.setModel({\\n\\toriginal: originalModel,\\n\\tmodified: modifiedModel,\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
2992.js
Normal file
2
2992.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[2992],{2992:(n,t,e)=>{e.r(t),e.d(t,{default:()=>i});const i='function lineNumbersFunc(originalLineNumber) {\n\tvar map = [\n\t\t"O",\n\t\t"I",\n\t\t"II",\n\t\t"III",\n\t\t"IV",\n\t\t"V",\n\t\t"VI",\n\t\t"VII",\n\t\t"VIII",\n\t\t"IX",\n\t\t"X",\n\t];\n\tif (originalLineNumber < map.length) {\n\t\treturn map[originalLineNumber];\n\t}\n\treturn originalLineNumber;\n}\n\nvar jsCode = [\n\t\'"use strict";\',\n\t"function Person(age) {",\n\t"\tif (age) {",\n\t"\t\tthis.age = age;",\n\t"\t}",\n\t"}",\n\t"Person.prototype.getAge = function () {",\n\t"\treturn this.age;",\n\t"};",\n].join("\\n");\n\nvar editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: jsCode,\n\tlanguage: "javascript",\n\tlineNumbers: lineNumbersFunc,\n});\n'}}]);
|
||||
//# sourceMappingURL=2992.js.map
|
||||
1
2992.js.map
Normal file
1
2992.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"2992.js","mappings":"8IAAA,isB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/customizing-the-line-numbers/sample.js"],"sourcesContent":["export default \"function lineNumbersFunc(originalLineNumber) {\\n\\tvar map = [\\n\\t\\t\\\"O\\\",\\n\\t\\t\\\"I\\\",\\n\\t\\t\\\"II\\\",\\n\\t\\t\\\"III\\\",\\n\\t\\t\\\"IV\\\",\\n\\t\\t\\\"V\\\",\\n\\t\\t\\\"VI\\\",\\n\\t\\t\\\"VII\\\",\\n\\t\\t\\\"VIII\\\",\\n\\t\\t\\\"IX\\\",\\n\\t\\t\\\"X\\\",\\n\\t];\\n\\tif (originalLineNumber < map.length) {\\n\\t\\treturn map[originalLineNumber];\\n\\t}\\n\\treturn originalLineNumber;\\n}\\n\\nvar jsCode = [\\n\\t'\\\"use strict\\\";',\\n\\t\\\"function Person(age) {\\\",\\n\\t\\\"\\tif (age) {\\\",\\n\\t\\\"\\t\\tthis.age = age;\\\",\\n\\t\\\"\\t}\\\",\\n\\t\\\"}\\\",\\n\\t\\\"Person.prototype.getAge = function () {\\\",\\n\\t\\\"\\treturn this.age;\\\",\\n\\t\\\"};\\\",\\n].join(\\\"\\\\n\\\");\\n\\nvar editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: jsCode,\\n\\tlanguage: \\\"javascript\\\",\\n\\tlineNumbers: lineNumbersFunc,\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3021.js
Normal file
2
3021.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3021],{3021:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=3021.js.map
|
||||
1
3021.js.map
Normal file
1
3021.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3021.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3080.js
Normal file
2
3080.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3080],{3080:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=3080.js.map
|
||||
1
3080.js.map
Normal file
1
3080.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3080.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/folding-provider-example/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
3153.js
Normal file
2
3153.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3153],{3153:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=3153.js.map
|
||||
1
3153.js.map
Normal file
1
3153.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3153.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/revealing-a-position/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
3180.js
Normal file
2
3180.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3180],{3180:(t,n,e)=>{e.r(n),e.d(n,{default:()=>a});const a='const value = `\nconst f = (a, b) => a + b;\n\nconst result = f(2, 5);\n`;\n\nconst editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue,\n\tlanguage: "javascript",\n});\n\nmonaco.languages.registerInlayHintsProvider("javascript", {\n\tprovideInlayHints(model, range, token) {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: monaco.languages.InlayHintKind.Type,\n\t\t\t\tposition: { column: 13, lineNumber: 4 },\n\t\t\t\ttext: `: Number`,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: monaco.languages.InlayHintKind.Type,\n\t\t\t\tposition: { column: 13, lineNumber: 2 },\n\t\t\t\ttext: `: Number`,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: monaco.languages.InlayHintKind.Type,\n\t\t\t\tposition: { column: 16, lineNumber: 2 },\n\t\t\t\ttext: `: Number`,\n\t\t\t\twhitespaceBefore: true, // see difference between a and b parameter\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: monaco.languages.InlayHintKind.Parameter,\n\t\t\t\tposition: { column: 18, lineNumber: 4 },\n\t\t\t\ttext: `a:`,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkind: monaco.languages.InlayHintKind.Parameter,\n\t\t\t\tposition: { column: 21, lineNumber: 4 },\n\t\t\t\ttext: `b:`,\n\t\t\t\twhitespaceAfter: true, // similar to whitespaceBefore\n\t\t\t},\n\t\t];\n\t},\n});\n'}}]);
|
||||
//# sourceMappingURL=3180.js.map
|
||||
1
3180.js.map
Normal file
1
3180.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3180.js","mappings":"8IAAA,ysC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/inlay-hints-provider-example/sample.js"],"sourcesContent":["export default \"const value = `\\nconst f = (a, b) => a + b;\\n\\nconst result = f(2, 5);\\n`;\\n\\nconst editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue,\\n\\tlanguage: \\\"javascript\\\",\\n});\\n\\nmonaco.languages.registerInlayHintsProvider(\\\"javascript\\\", {\\n\\tprovideInlayHints(model, range, token) {\\n\\t\\treturn [\\n\\t\\t\\t{\\n\\t\\t\\t\\tkind: monaco.languages.InlayHintKind.Type,\\n\\t\\t\\t\\tposition: { column: 13, lineNumber: 4 },\\n\\t\\t\\t\\ttext: `: Number`,\\n\\t\\t\\t},\\n\\t\\t\\t{\\n\\t\\t\\t\\tkind: monaco.languages.InlayHintKind.Type,\\n\\t\\t\\t\\tposition: { column: 13, lineNumber: 2 },\\n\\t\\t\\t\\ttext: `: Number`,\\n\\t\\t\\t},\\n\\t\\t\\t{\\n\\t\\t\\t\\tkind: monaco.languages.InlayHintKind.Type,\\n\\t\\t\\t\\tposition: { column: 16, lineNumber: 2 },\\n\\t\\t\\t\\ttext: `: Number`,\\n\\t\\t\\t\\twhitespaceBefore: true, // see difference between a and b parameter\\n\\t\\t\\t},\\n\\t\\t\\t{\\n\\t\\t\\t\\tkind: monaco.languages.InlayHintKind.Parameter,\\n\\t\\t\\t\\tposition: { column: 18, lineNumber: 4 },\\n\\t\\t\\t\\ttext: `a:`,\\n\\t\\t\\t},\\n\\t\\t\\t{\\n\\t\\t\\t\\tkind: monaco.languages.InlayHintKind.Parameter,\\n\\t\\t\\t\\tposition: { column: 21, lineNumber: 4 },\\n\\t\\t\\t\\ttext: `b:`,\\n\\t\\t\\t\\twhitespaceAfter: true, // similar to whitespaceBefore\\n\\t\\t\\t},\\n\\t\\t];\\n\\t},\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3377.js
Normal file
2
3377.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3377],{3377:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=3377.js.map
|
||||
1
3377.js.map
Normal file
1
3377.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3377.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-diffeditor/navigating-a-diff/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
3387.js
Normal file
2
3387.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3387],{3387:(t,n,e)=>{e.r(n),e.d(n,{default:()=>o});const o='var editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: \'{\\n\\t"dependencies": {\\n\\t\\t\\n\\t}\\n}\\n\',\n\tlanguage: "json",\n});\n\nvar commandId = editor.addCommand(\n\t0,\n\tfunction () {\n\t\t// services available in `ctx`\n\t\talert("my command is executing!");\n\t},\n\t""\n);\n\nmonaco.languages.registerCodeLensProvider("json", {\n\tprovideCodeLenses: function (model, token) {\n\t\treturn {\n\t\t\tlenses: [\n\t\t\t\t{\n\t\t\t\t\trange: {\n\t\t\t\t\t\tstartLineNumber: 1,\n\t\t\t\t\t\tstartColumn: 1,\n\t\t\t\t\t\tendLineNumber: 2,\n\t\t\t\t\t\tendColumn: 1,\n\t\t\t\t\t},\n\t\t\t\t\tid: "First Line",\n\t\t\t\t\tcommand: {\n\t\t\t\t\t\tid: commandId,\n\t\t\t\t\t\ttitle: "First Line",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t],\n\t\t\tdispose: () => {},\n\t\t};\n\t},\n\tresolveCodeLens: function (model, codeLens, token) {\n\t\treturn codeLens;\n\t},\n});\n'}}]);
|
||||
//# sourceMappingURL=3387.js.map
|
||||
1
3387.js.map
Normal file
1
3387.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3387.js","mappings":"8IAAA,w4B","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/codelens-provider-example/sample.js"],"sourcesContent":["export default \"var editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: '{\\\\n\\\\t\\\"dependencies\\\": {\\\\n\\\\t\\\\t\\\\n\\\\t}\\\\n}\\\\n',\\n\\tlanguage: \\\"json\\\",\\n});\\n\\nvar commandId = editor.addCommand(\\n\\t0,\\n\\tfunction () {\\n\\t\\t// services available in `ctx`\\n\\t\\talert(\\\"my command is executing!\\\");\\n\\t},\\n\\t\\\"\\\"\\n);\\n\\nmonaco.languages.registerCodeLensProvider(\\\"json\\\", {\\n\\tprovideCodeLenses: function (model, token) {\\n\\t\\treturn {\\n\\t\\t\\tlenses: [\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\trange: {\\n\\t\\t\\t\\t\\t\\tstartLineNumber: 1,\\n\\t\\t\\t\\t\\t\\tstartColumn: 1,\\n\\t\\t\\t\\t\\t\\tendLineNumber: 2,\\n\\t\\t\\t\\t\\t\\tendColumn: 1,\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\tid: \\\"First Line\\\",\\n\\t\\t\\t\\t\\tcommand: {\\n\\t\\t\\t\\t\\t\\tid: commandId,\\n\\t\\t\\t\\t\\t\\ttitle: \\\"First Line\\\",\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t},\\n\\t\\t\\t],\\n\\t\\t\\tdispose: () => {},\\n\\t\\t};\\n\\t},\\n\\tresolveCodeLens: function (model, codeLens, token) {\\n\\t\\treturn codeLens;\\n\\t},\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3439.js
Normal file
2
3439.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3439],{5932:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});const l='// The colorizeElement-function will read the data-lang-attribute\n// from the element to select the correct language mode. In this\n// sample it is text/css.\nmonaco.editor.colorizeElement(document.getElementById("code"));\n'}}]);
|
||||
//# sourceMappingURL=3439.js.map
|
||||
1
3439.js.map
Normal file
1
3439.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3439.js","mappings":"8IAAA,2O","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-editor/syntax-highlighting-for-html-elements/sample.js"],"sourcesContent":["export default \"// The colorizeElement-function will read the data-lang-attribute\\n// from the element to select the correct language mode. In this\\n// sample it is text/css.\\nmonaco.editor.colorizeElement(document.getElementById(\\\"code\\\"));\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3642.js
Normal file
2
3642.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3642],{3642:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});const o='// Theme matching (i.e. applying a style to a token) happens in JavaScript.\n// We must therefore register the theme rules in JavaScript.\n\n// A custom theme must name its base theme (i.e. \'vs\', \'vs-dark\' or \'hc-black\')\n// It can then choose to inherit the rules from the base theme or not\n// A rule token matching is prefix based: e.g.\n// - string will match a token with type: string, string.double.js or string.html\n// - string.double will match a token with type string.double but will not match string or string.html\n\n// !!! Tokens can be inspected using F1 > Developer: Inspect Tokens !!!\n\nmonaco.editor.defineTheme("myCustomTheme", {\n\tbase: "vs", // can also be vs-dark or hc-black\n\tinherit: true, // can also be false to completely replace the builtin rules\n\trules: [\n\t\t{\n\t\t\ttoken: "comment",\n\t\t\tforeground: "ffa500",\n\t\t\tfontStyle: "italic underline",\n\t\t},\n\t\t{ token: "comment.js", foreground: "008800", fontStyle: "bold" },\n\t\t{ token: "comment.css", foreground: "0000ff" }, // will inherit fontStyle from `comment` above\n\t],\n\tcolors: {\n\t\t"editor.foreground": "#000000",\n\t},\n});\n\nmonaco.editor.create(document.getElementById("container"), {\n\tvalue: getCode(),\n\tlanguage: "text/html",\n\ttheme: "myCustomTheme",\n});\n\nfunction getCode() {\n\treturn (\n\t\t\'<html>\x3c!-- // !!! Tokens can be inspected using F1 > Developer: Inspect Tokens !!! --\x3e\\n<head>\\n\t\x3c!-- HTML comment --\x3e\\n\t<style type="text/css">\\n\t\t/* CSS comment */\\n\t</style>\\n\t<script type="javascript">\\n\t\t// JavaScript comment\\n\t</\' +\n\t\t"script>\\n</head>\\n<body></body>\\n</html>"\n\t);\n}\n'}}]);
|
||||
//# sourceMappingURL=3642.js.map
|
||||
1
3642.js.map
Normal file
1
3642.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3642.js","mappings":"8IAAA,soD","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/customizing-the-appearence/tokens-and-colors/sample.js"],"sourcesContent":["export default \"// Theme matching (i.e. applying a style to a token) happens in JavaScript.\\n// We must therefore register the theme rules in JavaScript.\\n\\n// A custom theme must name its base theme (i.e. 'vs', 'vs-dark' or 'hc-black')\\n// It can then choose to inherit the rules from the base theme or not\\n// A rule token matching is prefix based: e.g.\\n// - string will match a token with type: string, string.double.js or string.html\\n// - string.double will match a token with type string.double but will not match string or string.html\\n\\n// !!! Tokens can be inspected using F1 > Developer: Inspect Tokens !!!\\n\\nmonaco.editor.defineTheme(\\\"myCustomTheme\\\", {\\n\\tbase: \\\"vs\\\", // can also be vs-dark or hc-black\\n\\tinherit: true, // can also be false to completely replace the builtin rules\\n\\trules: [\\n\\t\\t{\\n\\t\\t\\ttoken: \\\"comment\\\",\\n\\t\\t\\tforeground: \\\"ffa500\\\",\\n\\t\\t\\tfontStyle: \\\"italic underline\\\",\\n\\t\\t},\\n\\t\\t{ token: \\\"comment.js\\\", foreground: \\\"008800\\\", fontStyle: \\\"bold\\\" },\\n\\t\\t{ token: \\\"comment.css\\\", foreground: \\\"0000ff\\\" }, // will inherit fontStyle from `comment` above\\n\\t],\\n\\tcolors: {\\n\\t\\t\\\"editor.foreground\\\": \\\"#000000\\\",\\n\\t},\\n});\\n\\nmonaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: getCode(),\\n\\tlanguage: \\\"text/html\\\",\\n\\ttheme: \\\"myCustomTheme\\\",\\n});\\n\\nfunction getCode() {\\n\\treturn (\\n\\t\\t'<html><!-- // !!! Tokens can be inspected using F1 > Developer: Inspect Tokens !!! -->\\\\n<head>\\\\n\\t<!-- HTML comment -->\\\\n\\t<style type=\\\"text/css\\\">\\\\n\\t\\t/* CSS comment */\\\\n\\t</style>\\\\n\\t<script type=\\\"javascript\\\">\\\\n\\t\\t// JavaScript comment\\\\n\\t</' +\\n\\t\\t\\\"script>\\\\n</head>\\\\n<body></body>\\\\n</html>\\\"\\n\\t);\\n}\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3673.js
Normal file
2
3673.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3673],{3673:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=3673.js.map
|
||||
1
3673.js.map
Normal file
1
3673.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3673.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/adding-a-command-to-an-editor-instance/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3714.js
Normal file
2
3714.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3714],{3714:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=3714.js.map
|
||||
1
3714.js.map
Normal file
1
3714.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3714.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-editor/editor-basic-options/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3760.js
Normal file
2
3760.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3760],{3760:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=3760.js.map
|
||||
1
3760.js.map
Normal file
1
3760.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3760.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/symbols-provider-example/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
3818.js
Normal file
2
3818.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3818],{7352:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=3818.js.map
|
||||
1
3818.js.map
Normal file
1
3818.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3818.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/customizing-the-line-numbers/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3836.js
Normal file
2
3836.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3836],{3836:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=3836.js.map
|
||||
1
3836.js.map
Normal file
1
3836.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3836.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/codelens-provider-example/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
3872.js
Normal file
2
3872.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[3872],{3872:(i,t,e)=>{e.r(t),e.d(t,{default:()=>n});const n='<div id="output" style="height: 29%; font-family: \'Courier New\', monospace">\n\tLast 3 events:<br />\n</div>\n<div style="background: #ccc; height: 1%"></div>\n<div id="container" style="height: 70%"></div>\n'}}]);
|
||||
//# sourceMappingURL=3872.js.map
|
||||
1
3872.js.map
Normal file
1
3872.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"3872.js","mappings":"8IAAA,4N","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-mouse-events/sample.html"],"sourcesContent":["export default \"<div id=\\\"output\\\" style=\\\"height: 29%; font-family: 'Courier New', monospace\\\">\\n\\tLast 3 events:<br />\\n</div>\\n<div style=\\\"background: #ccc; height: 1%\\\"></div>\\n<div id=\\\"container\\\" style=\\\"height: 70%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
4076.js
Normal file
2
4076.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4076],{4076:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=4076.js.map
|
||||
1
4076.js.map
Normal file
1
4076.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4076.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/configure-json-defaults/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
4101.js
Normal file
2
4101.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4101],{4101:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=4101.js.map
|
||||
1
4101.js.map
Normal file
1
4101.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4101.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/color-provider-example/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
4124.js
Normal file
2
4124.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4124],{4124:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});const i='var originalModel = monaco.editor.createModel(\n\t"This line is removed on the right.\\njust some text\\nabcd\\nefgh\\nSome more text",\n\t"text/plain"\n);\nvar modifiedModel = monaco.editor.createModel(\n\t"just some text\\nabcz\\nzzzzefgh\\nSome more text\\nThis line is removed on the left.",\n\t"text/plain"\n);\n\nvar diffEditor = monaco.editor.createDiffEditor(\n\tdocument.getElementById("container"),\n\t{\n\t\t// You can optionally disable the resizing\n\t\tenableSplitViewResizing: false,\n\n\t\t// Render the diff inline\n\t\trenderSideBySide: false,\n\t}\n);\ndiffEditor.setModel({\n\toriginal: originalModel,\n\tmodified: modifiedModel,\n});\n'}}]);
|
||||
//# sourceMappingURL=4124.js.map
|
||||
1
4124.js.map
Normal file
1
4124.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4124.js","mappings":"8IAAA,0pB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-diffeditor/inline-diff-example/sample.js"],"sourcesContent":["export default \"var originalModel = monaco.editor.createModel(\\n\\t\\\"This line is removed on the right.\\\\njust some text\\\\nabcd\\\\nefgh\\\\nSome more text\\\",\\n\\t\\\"text/plain\\\"\\n);\\nvar modifiedModel = monaco.editor.createModel(\\n\\t\\\"just some text\\\\nabcz\\\\nzzzzefgh\\\\nSome more text\\\\nThis line is removed on the left.\\\",\\n\\t\\\"text/plain\\\"\\n);\\n\\nvar diffEditor = monaco.editor.createDiffEditor(\\n\\tdocument.getElementById(\\\"container\\\"),\\n\\t{\\n\\t\\t// You can optionally disable the resizing\\n\\t\\tenableSplitViewResizing: false,\\n\\n\\t\\t// Render the diff inline\\n\\t\\trenderSideBySide: false,\\n\\t}\\n);\\ndiffEditor.setModel({\\n\\toriginal: originalModel,\\n\\tmodified: modifiedModel,\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
4260.js
Normal file
2
4260.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4260],{4260:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});const o='// Configures two JSON schemas, with references.\n\nvar jsonCode = ["{", \' "p1": "v3",\', \' "p2": false\', "}"].join("\\n");\nvar modelUri = monaco.Uri.parse("a://b/foo.json"); // a made up unique URI for our model\nvar model = monaco.editor.createModel(jsonCode, "json", modelUri);\n\n// configure the JSON language support with schemas and schema associations\nmonaco.languages.json.jsonDefaults.setDiagnosticsOptions({\n\tvalidate: true,\n\tschemas: [\n\t\t{\n\t\t\turi: "http://myserver/foo-schema.json", // id of the first schema\n\t\t\tfileMatch: [modelUri.toString()], // associate with our model\n\t\t\tschema: {\n\t\t\t\ttype: "object",\n\t\t\t\tproperties: {\n\t\t\t\t\tp1: {\n\t\t\t\t\t\tenum: ["v1", "v2"],\n\t\t\t\t\t},\n\t\t\t\t\tp2: {\n\t\t\t\t\t\t$ref: "http://myserver/bar-schema.json", // reference the second schema\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\turi: "http://myserver/bar-schema.json", // id of the second schema\n\t\t\tschema: {\n\t\t\t\ttype: "object",\n\t\t\t\tproperties: {\n\t\t\t\t\tq1: {\n\t\t\t\t\t\tenum: ["x1", "x2"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t],\n});\n\nmonaco.editor.create(document.getElementById("container"), {\n\tmodel: model,\n});\n'}}]);
|
||||
//# sourceMappingURL=4260.js.map
|
||||
1
4260.js.map
Normal file
1
4260.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4260.js","mappings":"8IAAA,mtC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/configure-json-defaults/sample.js"],"sourcesContent":["export default \"// Configures two JSON schemas, with references.\\n\\nvar jsonCode = [\\\"{\\\", ' \\\"p1\\\": \\\"v3\\\",', ' \\\"p2\\\": false', \\\"}\\\"].join(\\\"\\\\n\\\");\\nvar modelUri = monaco.Uri.parse(\\\"a://b/foo.json\\\"); // a made up unique URI for our model\\nvar model = monaco.editor.createModel(jsonCode, \\\"json\\\", modelUri);\\n\\n// configure the JSON language support with schemas and schema associations\\nmonaco.languages.json.jsonDefaults.setDiagnosticsOptions({\\n\\tvalidate: true,\\n\\tschemas: [\\n\\t\\t{\\n\\t\\t\\turi: \\\"http://myserver/foo-schema.json\\\", // id of the first schema\\n\\t\\t\\tfileMatch: [modelUri.toString()], // associate with our model\\n\\t\\t\\tschema: {\\n\\t\\t\\t\\ttype: \\\"object\\\",\\n\\t\\t\\t\\tproperties: {\\n\\t\\t\\t\\t\\tp1: {\\n\\t\\t\\t\\t\\t\\tenum: [\\\"v1\\\", \\\"v2\\\"],\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\tp2: {\\n\\t\\t\\t\\t\\t\\t$ref: \\\"http://myserver/bar-schema.json\\\", // reference the second schema\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t},\\n\\t\\t\\t},\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\turi: \\\"http://myserver/bar-schema.json\\\", // id of the second schema\\n\\t\\t\\tschema: {\\n\\t\\t\\t\\ttype: \\\"object\\\",\\n\\t\\t\\t\\tproperties: {\\n\\t\\t\\t\\t\\tq1: {\\n\\t\\t\\t\\t\\t\\tenum: [\\\"x1\\\", \\\"x2\\\"],\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t},\\n\\t\\t\\t},\\n\\t\\t},\\n\\t],\\n});\\n\\nmonaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tmodel: model,\\n});\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
4308.js
Normal file
2
4308.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4308],{4308:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=4308.js.map
|
||||
1
4308.js.map
Normal file
1
4308.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4308.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-key-events/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
4336.js
Normal file
2
4336.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4336],{4336:(t,n,e)=>{e.r(n),e.d(n,{default:()=>o});const o='/** @type {monaco.languages.SemanticTokensLegend} */\nconst legend = {\n\ttokenTypes: [\n\t\t"comment",\n\t\t"string",\n\t\t"keyword",\n\t\t"number",\n\t\t"regexp",\n\t\t"operator",\n\t\t"namespace",\n\t\t"type",\n\t\t"struct",\n\t\t"class",\n\t\t"interface",\n\t\t"enum",\n\t\t"typeParameter",\n\t\t"function",\n\t\t"member",\n\t\t"macro",\n\t\t"variable",\n\t\t"parameter",\n\t\t"property",\n\t\t"label",\n\t],\n\ttokenModifiers: [\n\t\t"declaration",\n\t\t"documentation",\n\t\t"readonly",\n\t\t"static",\n\t\t"abstract",\n\t\t"deprecated",\n\t\t"modification",\n\t\t"async",\n\t],\n};\n\n/** @type {(type: string)=>number} */\nfunction getType(type) {\n\treturn legend.tokenTypes.indexOf(type);\n}\n\n/** @type {(modifier: string[]|string|null)=>number} */\nfunction getModifier(modifiers) {\n\tif (typeof modifiers === "string") {\n\t\tmodifiers = [modifiers];\n\t}\n\tif (Array.isArray(modifiers)) {\n\t\tlet nModifiers = 0;\n\t\tfor (let modifier of modifiers) {\n\t\t\tconst nModifier = legend.tokenModifiers.indexOf(modifier);\n\t\t\tif (nModifier > -1) {\n\t\t\t\tnModifiers |= (1 << nModifier) >>> 0;\n\t\t\t}\n\t\t}\n\t\treturn nModifiers;\n\t} else {\n\t\treturn 0;\n\t}\n}\n\nconst tokenPattern = new RegExp("([a-zA-Z]+)((?:\\\\.[a-zA-Z]+)*)", "g");\n\nmonaco.languages.registerDocumentSemanticTokensProvider("plaintext", {\n\tgetLegend: function () {\n\t\treturn legend;\n\t},\n\tprovideDocumentSemanticTokens: function (model, lastResultId, token) {\n\t\tconst lines = model.getLinesContent();\n\n\t\t/** @type {number[]} */\n\t\tconst data = [];\n\n\t\tlet prevLine = 0;\n\t\tlet prevChar = 0;\n\n\t\tfor (let i = 0; i < lines.length; i++) {\n\t\t\tconst line = lines[i];\n\n\t\t\tfor (let match = null; (match = tokenPattern.exec(line)); ) {\n\t\t\t\t// translate token and modifiers to number representations\n\t\t\t\tlet type = getType(match[1]);\n\t\t\t\tif (type === -1) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tlet modifier = match[2].length\n\t\t\t\t\t? getModifier(match[2].split(".").slice(1))\n\t\t\t\t\t: 0;\n\n\t\t\t\tdata.push(\n\t\t\t\t\t// translate line to deltaLine\n\t\t\t\t\ti - prevLine,\n\t\t\t\t\t// for the same line, translate start to deltaStart\n\t\t\t\t\tprevLine === i ? match.index - prevChar : match.index,\n\t\t\t\t\tmatch[0].length,\n\t\t\t\t\ttype,\n\t\t\t\t\tmodifier\n\t\t\t\t);\n\n\t\t\t\tprevLine = i;\n\t\t\t\tprevChar = match.index;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tdata: new Uint32Array(data),\n\t\t\tresultId: null,\n\t\t};\n\t},\n\treleaseDocumentSemanticTokens: function (resultId) {},\n});\n\n// add some missing tokens\nmonaco.editor.defineTheme("myCustomTheme", {\n\tbase: "vs",\n\tinherit: true,\n\tcolors: {},\n\trules: [\n\t\t{ token: "comment", foreground: "aaaaaa", fontStyle: "italic" },\n\t\t{ token: "keyword", foreground: "ce63eb" },\n\t\t{ token: "operator", foreground: "000000" },\n\t\t{ token: "namespace", foreground: "66afce" },\n\n\t\t{ token: "type", foreground: "1db010" },\n\t\t{ token: "struct", foreground: "0000ff" },\n\t\t{ token: "class", foreground: "0000ff", fontStyle: "bold" },\n\t\t{ token: "interface", foreground: "007700", fontStyle: "bold" },\n\t\t{ token: "enum", foreground: "0077ff", fontStyle: "bold" },\n\t\t{ token: "typeParameter", foreground: "1db010" },\n\t\t{ token: "function", foreground: "94763a" },\n\n\t\t{ token: "member", foreground: "94763a" },\n\t\t{ token: "macro", foreground: "615a60" },\n\t\t{ token: "variable", foreground: "3e5bbf" },\n\t\t{ token: "parameter", foreground: "3e5bbf" },\n\t\t{ token: "property", foreground: "3e5bbf" },\n\t\t{ token: "label", foreground: "615a60" },\n\n\t\t{ token: "type.static", fontStyle: "bold" },\n\t\t{ token: "class.static", foreground: "ff0000", fontStyle: "bold" },\n\t],\n});\n\nconst editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: [\n\t\t"Available token types:",\n\t\t" [comment] [string] [keyword] [number] [regexp] [operator] [namespace]",\n\t\t" [type] [struct] [class] [interface] [enum] [typeParameter] [function]",\n\t\t" [member] [macro] [variable] [parameter] [property] [label]",\n\t\t"",\n\t\t"Available token modifiers:",\n\t\t" [type.declaration] [type.documentation] [type.member] [type.static]",\n\t\t" [type.abstract] [type.deprecated] [type.modification] [type.async]",\n\t\t"",\n\t\t"Some examples:",\n\t\t" [class.static.token] [type.static.abstract]",\n\t\t" [class.static.token] [type.static]",\n\t\t"",\n\t\t" [struct]",\n\t\t"",\n\t\t" [function.private]",\n\t\t"",\n\t\t"An error case:",\n\t\t" [notInLegend]",\n\t].join("\\n"),\n\tlanguage: "plaintext",\n\ttheme: "myCustomTheme",\n\t// semantic tokens provider is disabled by default\n\t"semanticHighlighting.enabled": true,\n});\n'}}]);
|
||||
//# sourceMappingURL=4336.js.map
|
||||
1
4336.js.map
Normal file
1
4336.js.map
Normal file
File diff suppressed because one or more lines are too long
2
4419.js
Normal file
2
4419.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4419],{4419:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=4419.js.map
|
||||
1
4419.js.map
Normal file
1
4419.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4419.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-diffeditor/hello-diff-world/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
4523.js
Normal file
2
4523.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4523],{4523:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r='var jsCodeArr = [\n\t"// ------------------------------",\n\t"// ------------------------------",\n\t"function Person(age) {",\n\t"\tif (age) {",\n\t"\t\tthis.age = age;",\n\t"\t}",\n\t"}",\n\t"Person.prototype.getAge = function () {",\n\t"\treturn this.age;",\n\t"};",\n\t"",\n\t"",\n];\n\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\n\njsCodeArr[49] +=\n\t"And this is some long line. And this is some long line. And this is some long line. And this is some long line. And this is some long line. ";\n\nvar editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: jsCodeArr.join("\\n"),\n\tlanguage: "javascript",\n});\n\neditor.revealPositionInCenter({ lineNumber: 50, column: 120 });\n// Also see:\n// - editor.revealLine\n// - editor.revealLineInCenter\n// - editor.revealLineInCenterIfOutsideViewport\n// - editor.revealLines\n// - editor.revealLinesInCenter\n// - editor.revealLinesInCenterIfOutsideViewport\n// - editor.revealPosition\n// - editor.revealPositionInCenter\n// - editor.revealPositionInCenterIfOutsideViewport\n// - editor.revealRange\n// - editor.revealRangeInCenter\n// - editor.revealRangeInCenterIfOutsideViewport\n'}}]);
|
||||
//# sourceMappingURL=4523.js.map
|
||||
1
4523.js.map
Normal file
1
4523.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4523.js","mappings":"8IAAA,kwC","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/revealing-a-position/sample.js"],"sourcesContent":["export default \"var jsCodeArr = [\\n\\t\\\"// ------------------------------\\\",\\n\\t\\\"// ------------------------------\\\",\\n\\t\\\"function Person(age) {\\\",\\n\\t\\\"\\tif (age) {\\\",\\n\\t\\\"\\t\\tthis.age = age;\\\",\\n\\t\\\"\\t}\\\",\\n\\t\\\"}\\\",\\n\\t\\\"Person.prototype.getAge = function () {\\\",\\n\\t\\\"\\treturn this.age;\\\",\\n\\t\\\"};\\\",\\n\\t\\\"\\\",\\n\\t\\\"\\\",\\n];\\n\\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\\njsCodeArr = jsCodeArr.concat(jsCodeArr.slice(0));\\n\\njsCodeArr[49] +=\\n\\t\\\"And this is some long line. And this is some long line. And this is some long line. And this is some long line. And this is some long line. \\\";\\n\\nvar editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: jsCodeArr.join(\\\"\\\\n\\\"),\\n\\tlanguage: \\\"javascript\\\",\\n});\\n\\neditor.revealPositionInCenter({ lineNumber: 50, column: 120 });\\n// Also see:\\n// - editor.revealLine\\n// - editor.revealLineInCenter\\n// - editor.revealLineInCenterIfOutsideViewport\\n// - editor.revealLines\\n// - editor.revealLinesInCenter\\n// - editor.revealLinesInCenterIfOutsideViewport\\n// - editor.revealPosition\\n// - editor.revealPositionInCenter\\n// - editor.revealPositionInCenterIfOutsideViewport\\n// - editor.revealRange\\n// - editor.revealRangeInCenter\\n// - editor.revealRangeInCenterIfOutsideViewport\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
4541.js
Normal file
2
4541.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4541],{4541:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=4541.js.map
|
||||
1
4541.js.map
Normal file
1
4541.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4541.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/listening-to-key-events/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
4814.js
Normal file
2
4814.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[4814],{4814:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=4814.js.map
|
||||
1
4814.js.map
Normal file
1
4814.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"4814.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/inlay-hints-provider-example/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
4867.js
Normal file
2
4867.js
Normal file
File diff suppressed because one or more lines are too long
1
4867.js.map
Normal file
1
4867.js.map
Normal file
File diff suppressed because one or more lines are too long
2
5026.js
Normal file
2
5026.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5026],{5026:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o='// The diff editor offers a navigator to jump between changes. Once the diff is computed the <em>next()</em> and <em>previous()</em> method allow navigation. By default setting the selection in the editor manually resets the navigation state.\nvar originalModel = monaco.editor.createModel(\n\t"just some text\\n\\nHello World\\n\\nSome more text",\n\t"text/plain"\n);\nvar modifiedModel = monaco.editor.createModel(\n\t"just some Text\\n\\nHello World\\n\\nSome more changes",\n\t"text/plain"\n);\n\nvar diffEditor = monaco.editor.createDiffEditor(\n\tdocument.getElementById("container")\n);\ndiffEditor.setModel({\n\toriginal: originalModel,\n\tmodified: modifiedModel,\n});\n\nvar navi = monaco.editor.createDiffNavigator(diffEditor, {\n\tfollowsCaret: true, // resets the navigator state when the user selects something in the editor\n\tignoreCharChanges: true, // jump from line to line\n});\n\nwindow.setInterval(function () {\n\tnavi.next();\n}, 2000);\n'}}]);
|
||||
//# sourceMappingURL=5026.js.map
|
||||
1
5026.js.map
Normal file
1
5026.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"5026.js","mappings":"8IAAA,48B","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-diffeditor/navigating-a-diff/sample.js"],"sourcesContent":["export default \"// The diff editor offers a navigator to jump between changes. Once the diff is computed the <em>next()</em> and <em>previous()</em> method allow navigation. By default setting the selection in the editor manually resets the navigation state.\\nvar originalModel = monaco.editor.createModel(\\n\\t\\\"just some text\\\\n\\\\nHello World\\\\n\\\\nSome more text\\\",\\n\\t\\\"text/plain\\\"\\n);\\nvar modifiedModel = monaco.editor.createModel(\\n\\t\\\"just some Text\\\\n\\\\nHello World\\\\n\\\\nSome more changes\\\",\\n\\t\\\"text/plain\\\"\\n);\\n\\nvar diffEditor = monaco.editor.createDiffEditor(\\n\\tdocument.getElementById(\\\"container\\\")\\n);\\ndiffEditor.setModel({\\n\\toriginal: originalModel,\\n\\tmodified: modifiedModel,\\n});\\n\\nvar navi = monaco.editor.createDiffNavigator(diffEditor, {\\n\\tfollowsCaret: true, // resets the navigator state when the user selects something in the editor\\n\\tignoreCharChanges: true, // jump from line to line\\n});\\n\\nwindow.setInterval(function () {\\n\\tnavi.next();\\n}, 2000);\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
5198.js
Normal file
2
5198.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5198],{5198:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=5198.js.map
|
||||
1
5198.js.map
Normal file
1
5198.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"5198.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/color-provider-example/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
5256.js
Normal file
2
5256.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5256],{5256:(t,n,e)=>{e.r(n),e.d(n,{default:()=>a});const a='var jsCode = [\n\t\'"use strict";\',\n\t"function Person(age) {",\n\t"\tif (age) {",\n\t"\t\tthis.age = age;",\n\t"\t}",\n\t"}",\n\t"Person.prototype.getAge = function () {",\n\t"\treturn this.age;",\n\t"};",\n].join("\\n");\n\nvar editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: jsCode,\n\tlanguage: "javascript",\n\tglyphMargin: true,\n});\n\nvar decorations = editor.deltaDecorations(\n\t[],\n\t[\n\t\t{\n\t\t\trange: new monaco.Range(3, 1, 3, 1),\n\t\t\toptions: {\n\t\t\t\tisWholeLine: true,\n\t\t\t\tclassName: "myContentClass",\n\t\t\t\tglyphMarginClassName: "myGlyphMarginClass",\n\t\t\t},\n\t\t},\n\t]\n);\n\n// You can now use `decorations` to change or remove the decoration\n'}}]);
|
||||
//# sourceMappingURL=5256.js.map
|
||||
1
5256.js.map
Normal file
1
5256.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"5256.js","mappings":"8IAAA,ytB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/rendering-glyphs-in-the-margin/sample.js"],"sourcesContent":["export default \"var jsCode = [\\n\\t'\\\"use strict\\\";',\\n\\t\\\"function Person(age) {\\\",\\n\\t\\\"\\tif (age) {\\\",\\n\\t\\\"\\t\\tthis.age = age;\\\",\\n\\t\\\"\\t}\\\",\\n\\t\\\"}\\\",\\n\\t\\\"Person.prototype.getAge = function () {\\\",\\n\\t\\\"\\treturn this.age;\\\",\\n\\t\\\"};\\\",\\n].join(\\\"\\\\n\\\");\\n\\nvar editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: jsCode,\\n\\tlanguage: \\\"javascript\\\",\\n\\tglyphMargin: true,\\n});\\n\\nvar decorations = editor.deltaDecorations(\\n\\t[],\\n\\t[\\n\\t\\t{\\n\\t\\t\\trange: new monaco.Range(3, 1, 3, 1),\\n\\t\\t\\toptions: {\\n\\t\\t\\t\\tisWholeLine: true,\\n\\t\\t\\t\\tclassName: \\\"myContentClass\\\",\\n\\t\\t\\t\\tglyphMarginClassName: \\\"myGlyphMarginClass\\\",\\n\\t\\t\\t},\\n\\t\\t},\\n\\t]\\n);\\n\\n// You can now use `decorations` to change or remove the decoration\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
5274.js
Normal file
2
5274.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5274],{5274:(i,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='<div id="container" style="height: 100%"></div>\n'}}]);
|
||||
//# sourceMappingURL=5274.js.map
|
||||
1
5274.js.map
Normal file
1
5274.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"5274.js","mappings":"8IAAA,2D","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/custom-languages/sample.html"],"sourcesContent":["export default \"<div id=\\\"container\\\" style=\\\"height: 100%\\\"></div>\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
5336.js
Normal file
2
5336.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5336],{5336:(t,n,e)=>{e.r(n),e.d(n,{default:()=>a});const a='var jsCode = [\n\t\'"use strict";\',\n\t"function Person(age) {",\n\t"\tif (age) {",\n\t"\t\tthis.age = age;",\n\t"\t}",\n\t"}",\n\t"Person.prototype.getAge = function () {",\n\t"\treturn this.age;",\n\t"};",\n].join("\\n");\n\nvar editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: jsCode,\n\tlanguage: "javascript",\n});\n\nvar decorations = editor.deltaDecorations(\n\t[],\n\t[\n\t\t{\n\t\t\trange: new monaco.Range(3, 1, 5, 1),\n\t\t\toptions: {\n\t\t\t\tisWholeLine: true,\n\t\t\t\tlinesDecorationsClassName: "myLineDecoration",\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\trange: new monaco.Range(7, 1, 7, 24),\n\t\t\toptions: { inlineClassName: "myInlineDecoration" },\n\t\t},\n\t]\n);\n'}}]);
|
||||
//# sourceMappingURL=5336.js.map
|
||||
1
5336.js.map
Normal file
1
5336.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"5336.js","mappings":"8IAAA,gtB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/interacting-with-the-editor/line-and-inline-decorations/sample.js"],"sourcesContent":["export default \"var jsCode = [\\n\\t'\\\"use strict\\\";',\\n\\t\\\"function Person(age) {\\\",\\n\\t\\\"\\tif (age) {\\\",\\n\\t\\\"\\t\\tthis.age = age;\\\",\\n\\t\\\"\\t}\\\",\\n\\t\\\"}\\\",\\n\\t\\\"Person.prototype.getAge = function () {\\\",\\n\\t\\\"\\treturn this.age;\\\",\\n\\t\\\"};\\\",\\n].join(\\\"\\\\n\\\");\\n\\nvar editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: jsCode,\\n\\tlanguage: \\\"javascript\\\",\\n});\\n\\nvar decorations = editor.deltaDecorations(\\n\\t[],\\n\\t[\\n\\t\\t{\\n\\t\\t\\trange: new monaco.Range(3, 1, 5, 1),\\n\\t\\t\\toptions: {\\n\\t\\t\\t\\tisWholeLine: true,\\n\\t\\t\\t\\tlinesDecorationsClassName: \\\"myLineDecoration\\\",\\n\\t\\t\\t},\\n\\t\\t},\\n\\t\\t{\\n\\t\\t\\trange: new monaco.Range(7, 1, 7, 24),\\n\\t\\t\\toptions: { inlineClassName: \\\"myInlineDecoration\\\" },\\n\\t\\t},\\n\\t]\\n);\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
5434.js
Normal file
2
5434.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5434],{5434:(a,p,c)=>{c.r(p),c.d(p,{default:()=>e});const e=""}}]);
|
||||
//# sourceMappingURL=5434.js.map
|
||||
1
5434.js.map
Normal file
1
5434.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"5434.js","mappings":"8IAAA,U","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/extending-language-services/model-markers-example/sample.css"],"sourcesContent":["export default \"\";"],"names":[],"sourceRoot":""}
|
||||
2
5496.js
Normal file
2
5496.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5496],{5496:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o='// Through the options literal, the behaviour of the editor can be easily customized.\n// Here are a few examples of config options that can be passed to the editor.\n// You can also call editor.updateOptions at any time to change the options.\n\nvar editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: "// First line\\nfunction hello() {\\n\\talert(\'Hello world!\');\\n}\\n// Last line",\n\tlanguage: "javascript",\n\n\tlineNumbers: "off",\n\troundedSelection: false,\n\tscrollBeyondLastLine: false,\n\treadOnly: false,\n\ttheme: "vs-dark",\n});\nsetTimeout(function () {\n\teditor.updateOptions({\n\t\tlineNumbers: "on",\n\t});\n}, 2000);\n'}}]);
|
||||
//# sourceMappingURL=5496.js.map
|
||||
1
5496.js.map
Normal file
1
5496.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"5496.js","mappings":"8IAAA,yqB","sources":["file:////home/runner/work/monaco-editor/monaco-editor/website/src/website/data/playground-samples/creating-the-editor/editor-basic-options/sample.js"],"sourcesContent":["export default \"// Through the options literal, the behaviour of the editor can be easily customized.\\n// Here are a few examples of config options that can be passed to the editor.\\n// You can also call editor.updateOptions at any time to change the options.\\n\\nvar editor = monaco.editor.create(document.getElementById(\\\"container\\\"), {\\n\\tvalue: \\\"// First line\\\\nfunction hello() {\\\\n\\\\talert('Hello world!');\\\\n}\\\\n// Last line\\\",\\n\\tlanguage: \\\"javascript\\\",\\n\\n\\tlineNumbers: \\\"off\\\",\\n\\troundedSelection: false,\\n\\tscrollBeyondLastLine: false,\\n\\treadOnly: false,\\n\\ttheme: \\\"vs-dark\\\",\\n});\\nsetTimeout(function () {\\n\\teditor.updateOptions({\\n\\t\\tlineNumbers: \\\"on\\\",\\n\\t});\\n}, 2000);\\n\";"],"names":[],"sourceRoot":""}
|
||||
2
5508.js
Normal file
2
5508.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
"use strict";(self.webpackChunkmy_application=self.webpackChunkmy_application||[]).push([[5508],{8739:(t,n,e)=>{e.r(n),e.d(n,{default:()=>o});const o='var editor = monaco.editor.create(document.getElementById("container"), {\n\tvalue: [\n\t\t"",\n\t\t"class Example {",\n\t\t"\\tprivate m:number;",\n\t\t"",\n\t\t"\\tpublic met(): string {",\n\t\t\'\\t\\treturn "Hello world!";\',\n\t\t"\\t}",\n\t\t"}",\n\t].join("\\n"),\n\tlanguage: "typescript",\n});\n\n// Explanation:\n// Press F1 => the action will appear and run if it is enabled\n// Press Ctrl-F10 => the action will run if it is enabled\n// Press Chord Ctrl-K, Ctrl-M => the action will run if it is enabled\n\neditor.addAction({\n\t// An unique identifier of the contributed action.\n\tid: "my-unique-id",\n\n\t// A label of the action that will be presented to the user.\n\tlabel: "My Label!!!",\n\n\t// An optional array of keybindings for the action.\n\tkeybindings: [\n\t\tmonaco.KeyMod.CtrlCmd | monaco.KeyCode.F10,\n\t\t// chord\n\t\tmonaco.KeyMod.chord(\n\t\t\tmonaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyK,\n\t\t\tmonaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyM\n\t\t),\n\t],\n\n\t// A precondition for this action.\n\tprecondition: null,\n\n\t// A rule to evaluate on top of the precondition in order to dispatch the keybindings.\n\tkeybindingContext: null,\n\n\tcontextMenuGroupId: "navigation",\n\n\tcontextMenuOrder: 1.5,\n\n\t// Method that will be executed when the action is triggered.\n\t// @param editor The editor instance is passed in as a convenience\n\trun: function (ed) {\n\t\talert("i\'m running => " + ed.getPosition());\n\t},\n});\n'}}]);
|
||||
//# sourceMappingURL=5508.js.map
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue