monaco-editor 0.58.0-dev-20261107 → 0.58.0-dev-20261109
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/dev/vs/basic-languages/monaco.contribution.js +18 -18
- package/dev/vs/{cssMode-BDMNlZNL.js → cssMode-zwT0KdjF.js} +1 -1
- package/dev/vs/editor/editor.main.css +3 -6
- package/dev/vs/editor/editor.main.js +1 -1
- package/dev/vs/{editor-BOXEgskP.js → editor-ECaWtNFt.js} +159 -39
- package/dev/vs/editor.js +1 -1
- package/dev/vs/{freemarker2-BojDeiN5.js → freemarker2-RGTtONSH.js} +1 -1
- package/dev/vs/{handlebars-DCqraDLK.js → handlebars-Cp3MTK2P.js} +1 -1
- package/dev/vs/{html-DEDmbj_k.js → html-C9j9TC5o.js} +1 -1
- package/dev/vs/{htmlMode-DWjcQZ7s.js → htmlMode-D3gjERWU.js} +1 -1
- package/dev/vs/{index-BhZ7YRde.js → index-CT1dN1az.js} +1 -1
- package/dev/vs/index.js +1 -1
- package/dev/vs/{javascript-l5CjpsRJ.js → javascript-BeTmNQEI.js} +1 -1
- package/dev/vs/{jsonMode-BaX9zFE-.js → jsonMode-uEO7j4ZN.js} +1 -1
- package/dev/vs/language/css/monaco.contribution.js +1 -1
- package/dev/vs/language/html/monaco.contribution.js +1 -1
- package/dev/vs/language/json/monaco.contribution.js +1 -1
- package/dev/vs/language/typescript/monaco.contribution.js +1 -1
- package/dev/vs/{liquid-B31hUHyy.js → liquid-NekTt7oh.js} +1 -1
- package/dev/vs/{lspLanguageFeatures-B8Jmsd5_.js → lspLanguageFeatures-BoknGiwp.js} +1 -1
- package/dev/vs/{mdx-BzHH-mK8.js → mdx-BmCKfq-D.js} +1 -1
- package/dev/vs/{monaco.contribution-ZO1cYtXF.js → monaco.contribution-3bgZtZSi.js} +2 -2
- package/dev/vs/{monaco.contribution-ChfSRKJL.js → monaco.contribution-6sz-lsdL.js} +2 -2
- package/dev/vs/{monaco.contribution-DkhvtnlT.js → monaco.contribution-Bo_jTTdh.js} +2 -2
- package/dev/vs/{monaco.contribution-B1kvTfb3.js → monaco.contribution-CxP_-GSP.js} +2 -2
- package/dev/vs/nls/lang/cs.js +1 -1
- package/dev/vs/nls/lang/de.js +1 -1
- package/dev/vs/nls/lang/es.js +1 -1
- package/dev/vs/nls/lang/fr.js +1 -1
- package/dev/vs/nls/lang/it.js +1 -1
- package/dev/vs/nls/lang/ja.js +1 -1
- package/dev/vs/nls/lang/ko.js +1 -1
- package/dev/vs/nls/lang/pl.js +1 -1
- package/dev/vs/nls/lang/pt-br.js +1 -1
- package/dev/vs/nls/lang/ru.js +1 -1
- package/dev/vs/nls/lang/tr.js +1 -1
- package/dev/vs/nls/lang/zh-cn.js +1 -1
- package/dev/vs/nls/lang/zh-tw.js +1 -1
- package/dev/vs/{python-ESzq1qp5.js → python-DzZfST7v.js} +1 -1
- package/dev/vs/{razor-3NGUhsMp.js → razor-DKez-SBM.js} +1 -1
- package/dev/vs/{toggleHighContrast-Bj6BJ1wB.js → toggleHighContrast-CPhNS-pe.js} +1 -1
- package/dev/vs/{tsMode-C00YvlGe.js → tsMode-Py7hvnTh.js} +1 -1
- package/dev/vs/{typescript-FuMRflIW.js → typescript-C4YQhP56.js} +1 -1
- package/dev/vs/{workers-BkO7QjD1.js → workers-bZC_DvOz.js} +1 -1
- package/dev/vs/{xml-COOtVuE9.js → xml-9U55HLlp.js} +1 -1
- package/dev/vs/{yaml-DvO1HhB5.js → yaml-DAUMs7LT.js} +1 -1
- package/esm/vs/editor/browser/viewParts/minimap/minimap.css +3 -6
- package/esm/vs/editor/browser/viewParts/minimap/minimap.js +89 -37
- package/esm/vs/editor/browser/viewParts/minimap/minimapDirtyRows.js +92 -0
- package/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +3 -1
- package/esm/vs/nls/lang/cs.js +1 -1
- package/esm/vs/nls/lang/de.js +1 -1
- package/esm/vs/nls/lang/es.js +1 -1
- package/esm/vs/nls/lang/fr.js +1 -1
- package/esm/vs/nls/lang/it.js +1 -1
- package/esm/vs/nls/lang/ja.js +1 -1
- package/esm/vs/nls/lang/ko.js +1 -1
- package/esm/vs/nls/lang/pl.js +1 -1
- package/esm/vs/nls/lang/pt-br.js +1 -1
- package/esm/vs/nls/lang/ru.js +1 -1
- package/esm/vs/nls/lang/tr.js +1 -1
- package/esm/vs/nls/lang/zh-cn.js +1 -1
- package/esm/vs/nls/lang/zh-tw.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputController.js +8 -1
- package/min/vs/basic-languages/monaco.contribution.js +1 -1
- package/min/vs/{cssMode-BZxhdWen.js → cssMode-Bu6P5L6Y.js} +1 -1
- package/min/vs/editor/editor.main.css +1 -1
- package/min/vs/editor/editor.main.js +1 -1
- package/min/vs/{editor-Pok-7BYW.js → editor-Byn3UCFZ.js} +106 -106
- package/min/vs/editor.js +1 -1
- package/min/vs/{freemarker2-DbqCcSlX.js → freemarker2-CzgneNqB.js} +1 -1
- package/min/vs/{handlebars-D-D39ZjF.js → handlebars-CK3ioGUb.js} +1 -1
- package/min/vs/{html-BPLva_7N.js → html-DaEhTkAb.js} +1 -1
- package/min/vs/{htmlMode-CldrrsHb.js → htmlMode-MYakqJmP.js} +1 -1
- package/min/vs/{index-CGYLlKBF.js → index-Czs0IVsK.js} +1 -1
- package/min/vs/index.js +1 -1
- package/min/vs/{javascript-DOeIrDfc.js → javascript-U6-KBOff.js} +1 -1
- package/min/vs/{jsonMode-D6xtAuXn.js → jsonMode-BiZ951ln.js} +1 -1
- package/min/vs/language/css/monaco.contribution.js +1 -1
- package/min/vs/language/html/monaco.contribution.js +1 -1
- package/min/vs/language/json/monaco.contribution.js +1 -1
- package/min/vs/language/typescript/monaco.contribution.js +1 -1
- package/min/vs/{liquid-DAtB54lm.js → liquid-BIt5jElD.js} +1 -1
- package/min/vs/{lspLanguageFeatures-BIj4XwzT.js → lspLanguageFeatures-BYDpOw8W.js} +1 -1
- package/min/vs/{mdx-0AioUjzN.js → mdx-D5NV_QdH.js} +1 -1
- package/min/vs/{monaco.contribution-CzljUn9w.js → monaco.contribution-2b9LUz7X.js} +1 -1
- package/min/vs/{monaco.contribution-C8J7p96y.js → monaco.contribution-BYxhL4nc.js} +1 -1
- package/min/vs/{monaco.contribution-DU9Yxdd7.js → monaco.contribution-CPsSsRH-.js} +1 -1
- package/min/vs/{monaco.contribution-CPitVlbE.js → monaco.contribution-CWKS6KLb.js} +1 -1
- package/min/vs/nls/lang/cs.js +1 -1
- package/min/vs/nls/lang/de.js +1 -1
- package/min/vs/nls/lang/es.js +1 -1
- package/min/vs/nls/lang/fr.js +1 -1
- package/min/vs/nls/lang/it.js +1 -1
- package/min/vs/nls/lang/ja.js +1 -1
- package/min/vs/nls/lang/ko.js +1 -1
- package/min/vs/nls/lang/pl.js +1 -1
- package/min/vs/nls/lang/pt-br.js +1 -1
- package/min/vs/nls/lang/ru.js +1 -1
- package/min/vs/nls/lang/tr.js +1 -1
- package/min/vs/nls/lang/zh-cn.js +1 -1
- package/min/vs/nls/lang/zh-tw.js +1 -1
- package/min/vs/{python-Cjm2Jcuk.js → python-D03scdK5.js} +1 -1
- package/min/vs/{razor-DAlPdjuU.js → razor-D7fTDi2Y.js} +1 -1
- package/min/vs/{toggleHighContrast-Cem1fwIR.js → toggleHighContrast-Du-9827m.js} +1 -1
- package/min/vs/{tsMode-CDthxOtY.js → tsMode-Cg_L-tM7.js} +1 -1
- package/min/vs/{typescript-DFb82uXw.js → typescript-BeQ2SLkV.js} +1 -1
- package/min/vs/{workers-yBL_0FWi.js → workers-Da0isKE-.js} +1 -1
- package/min/vs/{xml-BGCC4cHP.js → xml-BbPyivxy.js} +1 -1
- package/min/vs/{yaml-CygcHD61.js → yaml-BdQ_rgh3.js} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/basic-languages/monaco.contribution", ["require", "../editor-
|
|
1
|
+
define("vs/basic-languages/monaco.contribution", ["require", "../editor-ECaWtNFt"], (function(require, editor) {
|
|
2
2
|
"use strict";
|
|
3
3
|
const languageDefinitions = {};
|
|
4
4
|
const lazyLanguageLoaders = {};
|
|
@@ -174,49 +174,49 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
174
174
|
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
175
175
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
176
176
|
loader: () => {
|
|
177
|
-
return new Promise((resolve, reject) => require(["../freemarker2-
|
|
177
|
+
return new Promise((resolve, reject) => require(["../freemarker2-RGTtONSH"], resolve, reject)).then((m) => m.TagAutoInterpolationDollar);
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
registerLanguage({
|
|
181
181
|
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
182
182
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
183
183
|
loader: () => {
|
|
184
|
-
return new Promise((resolve, reject) => require(["../freemarker2-
|
|
184
|
+
return new Promise((resolve, reject) => require(["../freemarker2-RGTtONSH"], resolve, reject)).then((m) => m.TagAngleInterpolationDollar);
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
registerLanguage({
|
|
188
188
|
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
189
189
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
190
190
|
loader: () => {
|
|
191
|
-
return new Promise((resolve, reject) => require(["../freemarker2-
|
|
191
|
+
return new Promise((resolve, reject) => require(["../freemarker2-RGTtONSH"], resolve, reject)).then((m) => m.TagBracketInterpolationDollar);
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
registerLanguage({
|
|
195
195
|
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
196
196
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
197
197
|
loader: () => {
|
|
198
|
-
return new Promise((resolve, reject) => require(["../freemarker2-
|
|
198
|
+
return new Promise((resolve, reject) => require(["../freemarker2-RGTtONSH"], resolve, reject)).then((m) => m.TagAngleInterpolationBracket);
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
201
|
registerLanguage({
|
|
202
202
|
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
203
203
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
204
204
|
loader: () => {
|
|
205
|
-
return new Promise((resolve, reject) => require(["../freemarker2-
|
|
205
|
+
return new Promise((resolve, reject) => require(["../freemarker2-RGTtONSH"], resolve, reject)).then((m) => m.TagBracketInterpolationBracket);
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
registerLanguage({
|
|
209
209
|
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
210
210
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
211
211
|
loader: () => {
|
|
212
|
-
return new Promise((resolve, reject) => require(["../freemarker2-
|
|
212
|
+
return new Promise((resolve, reject) => require(["../freemarker2-RGTtONSH"], resolve, reject)).then((m) => m.TagAutoInterpolationDollar);
|
|
213
213
|
}
|
|
214
214
|
});
|
|
215
215
|
registerLanguage({
|
|
216
216
|
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
217
217
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
218
218
|
loader: () => {
|
|
219
|
-
return new Promise((resolve, reject) => require(["../freemarker2-
|
|
219
|
+
return new Promise((resolve, reject) => require(["../freemarker2-RGTtONSH"], resolve, reject)).then((m) => m.TagAutoInterpolationBracket);
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
registerLanguage({
|
|
@@ -237,7 +237,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
237
237
|
extensions: [".handlebars", ".hbs"],
|
|
238
238
|
aliases: ["Handlebars", "handlebars", "hbs"],
|
|
239
239
|
mimetypes: ["text/x-handlebars-template"],
|
|
240
|
-
loader: () => new Promise((resolve, reject) => require(["../handlebars-
|
|
240
|
+
loader: () => new Promise((resolve, reject) => require(["../handlebars-Cp3MTK2P"], resolve, reject))
|
|
241
241
|
});
|
|
242
242
|
registerLanguage({
|
|
243
243
|
id: "hcl",
|
|
@@ -250,7 +250,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
250
250
|
extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
|
|
251
251
|
aliases: ["HTML", "htm", "html", "xhtml"],
|
|
252
252
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
253
|
-
loader: () => new Promise((resolve, reject) => require(["../html-
|
|
253
|
+
loader: () => new Promise((resolve, reject) => require(["../html-C9j9TC5o"], resolve, reject))
|
|
254
254
|
});
|
|
255
255
|
registerLanguage({
|
|
256
256
|
id: "ini",
|
|
@@ -273,7 +273,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
273
273
|
filenames: ["jakefile"],
|
|
274
274
|
aliases: ["JavaScript", "javascript", "js"],
|
|
275
275
|
mimetypes: ["text/javascript"],
|
|
276
|
-
loader: () => new Promise((resolve, reject) => require(["../javascript-
|
|
276
|
+
loader: () => new Promise((resolve, reject) => require(["../javascript-BeTmNQEI"], resolve, reject))
|
|
277
277
|
});
|
|
278
278
|
registerLanguage({
|
|
279
279
|
id: "julia",
|
|
@@ -312,7 +312,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
312
312
|
extensions: [".liquid", ".html.liquid"],
|
|
313
313
|
aliases: ["Liquid", "liquid"],
|
|
314
314
|
mimetypes: ["application/liquid"],
|
|
315
|
-
loader: () => new Promise((resolve, reject) => require(["../liquid-
|
|
315
|
+
loader: () => new Promise((resolve, reject) => require(["../liquid-NekTt7oh"], resolve, reject))
|
|
316
316
|
});
|
|
317
317
|
registerLanguage({
|
|
318
318
|
id: "m3",
|
|
@@ -330,7 +330,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
330
330
|
id: "mdx",
|
|
331
331
|
extensions: [".mdx"],
|
|
332
332
|
aliases: ["MDX", "mdx"],
|
|
333
|
-
loader: () => new Promise((resolve, reject) => require(["../mdx-
|
|
333
|
+
loader: () => new Promise((resolve, reject) => require(["../mdx-BmCKfq-D"], resolve, reject))
|
|
334
334
|
});
|
|
335
335
|
registerLanguage({
|
|
336
336
|
id: "mips",
|
|
@@ -429,7 +429,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
429
429
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
430
430
|
aliases: ["Python", "py"],
|
|
431
431
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
432
|
-
loader: () => new Promise((resolve, reject) => require(["../python-
|
|
432
|
+
loader: () => new Promise((resolve, reject) => require(["../python-DzZfST7v"], resolve, reject))
|
|
433
433
|
});
|
|
434
434
|
registerLanguage({
|
|
435
435
|
id: "qsharp",
|
|
@@ -448,7 +448,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
448
448
|
extensions: [".cshtml"],
|
|
449
449
|
aliases: ["Razor", "razor"],
|
|
450
450
|
mimetypes: ["text/x-cshtml"],
|
|
451
|
-
loader: () => new Promise((resolve, reject) => require(["../razor-
|
|
451
|
+
loader: () => new Promise((resolve, reject) => require(["../razor-DKez-SBM"], resolve, reject))
|
|
452
452
|
});
|
|
453
453
|
registerLanguage({
|
|
454
454
|
id: "redis",
|
|
@@ -581,7 +581,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
581
581
|
aliases: ["TypeScript", "ts", "typescript"],
|
|
582
582
|
mimetypes: ["text/typescript"],
|
|
583
583
|
loader: () => {
|
|
584
|
-
return new Promise((resolve, reject) => require(["../typescript-
|
|
584
|
+
return new Promise((resolve, reject) => require(["../typescript-C4YQhP56"], resolve, reject));
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
587
|
registerLanguage({
|
|
@@ -626,13 +626,13 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor-BOXEgskP
|
|
|
626
626
|
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
|
627
627
|
aliases: ["XML", "xml"],
|
|
628
628
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
629
|
-
loader: () => new Promise((resolve, reject) => require(["../xml-
|
|
629
|
+
loader: () => new Promise((resolve, reject) => require(["../xml-9U55HLlp"], resolve, reject))
|
|
630
630
|
});
|
|
631
631
|
registerLanguage({
|
|
632
632
|
id: "yaml",
|
|
633
633
|
extensions: [".yaml", ".yml"],
|
|
634
634
|
aliases: ["YAML", "yaml", "YML", "yml"],
|
|
635
635
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
636
|
-
loader: () => new Promise((resolve, reject) => require(["../yaml-
|
|
636
|
+
loader: () => new Promise((resolve, reject) => require(["../yaml-DAUMs7LT"], resolve, reject))
|
|
637
637
|
});
|
|
638
638
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/cssMode-
|
|
1
|
+
define("vs/cssMode-zwT0KdjF", ["exports", "./css.worker-Ca2Lf4fA", "./workers-bZC_DvOz", "./lspLanguageFeatures-BoknGiwp", "./editor-ECaWtNFt"], (function(exports, css_worker, workers, lspLanguageFeatures, editor) {
|
|
2
2
|
"use strict";
|
|
3
3
|
const STOP_WHEN_IDLE_FOR = 2 * 60 * 1e3;
|
|
4
4
|
class WorkerManager {
|
|
@@ -555,7 +555,8 @@
|
|
|
555
555
|
opacity: 0;
|
|
556
556
|
transition: opacity 100ms linear;
|
|
557
557
|
}
|
|
558
|
-
.monaco-editor .minimap.slider-mouseover:hover .minimap-slider
|
|
558
|
+
.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,
|
|
559
|
+
.monaco-editor .minimap.slider-mouseover.slider-scrolling .minimap-slider {
|
|
559
560
|
opacity: 1;
|
|
560
561
|
}
|
|
561
562
|
.monaco-editor .minimap.slider-mouseover .minimap-slider.active {
|
|
@@ -596,7 +597,7 @@
|
|
|
596
597
|
opacity: 0;
|
|
597
598
|
transition: opacity 0.5s;
|
|
598
599
|
}
|
|
599
|
-
.minimap.minimap-autohide-scroll{
|
|
600
|
+
.minimap.minimap-autohide-scroll {
|
|
600
601
|
pointer-events: none;
|
|
601
602
|
}
|
|
602
603
|
.minimap.minimap-autohide-mouseover:hover,
|
|
@@ -612,10 +613,6 @@
|
|
|
612
613
|
*/
|
|
613
614
|
z-index: 4;
|
|
614
615
|
}
|
|
615
|
-
|
|
616
|
-
.monaco-editor .minimap canvas {
|
|
617
|
-
opacity: 0.9;
|
|
618
|
-
}
|
|
619
616
|
/*---------------------------------------------------------------------------------------------
|
|
620
617
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
621
618
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/editor/editor.main", ["exports", "../json.worker-xCAEeuKf", "../css.worker-Ca2Lf4fA", "../html.worker-Ce7FjZsx", "../ts.worker-CW2J32YZ", "require", "vs/nls.messages-loader!", "../index-
|
|
1
|
+
define("vs/editor/editor.main", ["exports", "../json.worker-xCAEeuKf", "../css.worker-Ca2Lf4fA", "../html.worker-Ce7FjZsx", "../ts.worker-CW2J32YZ", "require", "vs/nls.messages-loader!", "../index-CT1dN1az", "../monaco.contribution-6sz-lsdL", "../editor-ECaWtNFt", "../monaco.contribution-CxP_-GSP", "../monaco.contribution-3bgZtZSi", "../monaco.contribution-Bo_jTTdh"], (function(exports, json_worker, css_worker, html_worker, ts_worker, require, nls_messagesLoader_, index, src_deprecated_language_css_monaco_contribution_ts, editor, src_deprecated_language_html_monaco_contribution_ts, src_deprecated_language_typescript_monaco_contribution_ts, src_deprecated_language_json_monaco_contribution_ts) {
|
|
2
2
|
"use strict";
|
|
3
3
|
function _interopNamespaceDefault(e) {
|
|
4
4
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/editor-
|
|
1
|
+
define("vs/editor-ECaWtNFt", ["require", "exports", "./editorWorkerHost-CZDXXPqi"], (function(require, exports, editorWorkerHost) {
|
|
2
2
|
"use strict";
|
|
3
3
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
4
4
|
const EditorZoom = new class {
|
|
@@ -36060,6 +36060,83 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
36060
36060
|
return result;
|
|
36061
36061
|
}
|
|
36062
36062
|
}
|
|
36063
|
+
class RowSignatures {
|
|
36064
|
+
constructor(height) {
|
|
36065
|
+
this.height = height;
|
|
36066
|
+
this._rows = new Array(height).fill("");
|
|
36067
|
+
}
|
|
36068
|
+
/**
|
|
36069
|
+
* Records a drawing that covers the rows from `y` to `y + height`.
|
|
36070
|
+
* @param uniform Whether the drawing looks the same on every row it covers, like a filled
|
|
36071
|
+
* rectangle. Otherwise, like text, each row also records where it is in the drawing.
|
|
36072
|
+
*/
|
|
36073
|
+
add(y, height, signature, uniform) {
|
|
36074
|
+
const bottom = y + height;
|
|
36075
|
+
const first = Math.max(0, Math.floor(y));
|
|
36076
|
+
const last = Math.min(this.height, Math.ceil(bottom));
|
|
36077
|
+
for (let row = first; row < last; row++) {
|
|
36078
|
+
const coverage = `${Math.max(y, row) - row},${Math.min(bottom, row + 1) - row}`;
|
|
36079
|
+
this._rows[row] += uniform ? `${signature}@${coverage};` : `${signature}@${row - y},${coverage};`;
|
|
36080
|
+
}
|
|
36081
|
+
}
|
|
36082
|
+
/**
|
|
36083
|
+
* Finds the smallest band of rows that contains every row drawn differently
|
|
36084
|
+
* in the two frames. Returns `null` when they draw the same.
|
|
36085
|
+
*/
|
|
36086
|
+
static diff(previous, next) {
|
|
36087
|
+
if (!previous || previous.height !== next.height) {
|
|
36088
|
+
return next.height > 0 ? { start: 0, end: next.height } : null;
|
|
36089
|
+
}
|
|
36090
|
+
const a = previous._rows;
|
|
36091
|
+
const b = next._rows;
|
|
36092
|
+
let start = 0;
|
|
36093
|
+
while (start < next.height && a[start] === b[start]) {
|
|
36094
|
+
start++;
|
|
36095
|
+
}
|
|
36096
|
+
if (start === next.height) {
|
|
36097
|
+
return null;
|
|
36098
|
+
}
|
|
36099
|
+
let end = next.height;
|
|
36100
|
+
while (end > start && a[end - 1] === b[end - 1]) {
|
|
36101
|
+
end--;
|
|
36102
|
+
}
|
|
36103
|
+
return { start, end };
|
|
36104
|
+
}
|
|
36105
|
+
}
|
|
36106
|
+
class RecordedFrame {
|
|
36107
|
+
constructor(height) {
|
|
36108
|
+
this._drawings = [];
|
|
36109
|
+
this.rows = new RowSignatures(height);
|
|
36110
|
+
}
|
|
36111
|
+
fillRect(fillStyle, x, y, width2, height) {
|
|
36112
|
+
if (width2 === 0 || height === 0) {
|
|
36113
|
+
return;
|
|
36114
|
+
}
|
|
36115
|
+
this.add(y, height, `rect:${fillStyle}:${x}:${width2}`, true, (target) => {
|
|
36116
|
+
target.fillStyle = fillStyle;
|
|
36117
|
+
target.fillRect(x, y, width2, height);
|
|
36118
|
+
});
|
|
36119
|
+
}
|
|
36120
|
+
/**
|
|
36121
|
+
* Records a drawing that touches no pixel outside the rows from `y` to `y + height`.
|
|
36122
|
+
* @param signature Identifies how the drawing looks: two drawings with the same
|
|
36123
|
+
* signature at the same position must draw the same pixels.
|
|
36124
|
+
*/
|
|
36125
|
+
add(y, height, signature, uniform, draw) {
|
|
36126
|
+
this.rows.add(y, height, signature, uniform);
|
|
36127
|
+
this._drawings.push({ top: y, bottom: y + height, draw });
|
|
36128
|
+
}
|
|
36129
|
+
/**
|
|
36130
|
+
* Draws, in order, every recorded drawing that touches the given rows.
|
|
36131
|
+
*/
|
|
36132
|
+
replay(target, rows) {
|
|
36133
|
+
for (const drawing of this._drawings) {
|
|
36134
|
+
if (drawing.bottom > rows.start && drawing.top < rows.end) {
|
|
36135
|
+
drawing.draw(target);
|
|
36136
|
+
}
|
|
36137
|
+
}
|
|
36138
|
+
}
|
|
36139
|
+
}
|
|
36063
36140
|
const DEFAULT_FONT_FAMILY = editorWorkerHost.isWindows ? '"Segoe WPC", "Segoe UI", sans-serif' : editorWorkerHost.isMacintosh ? "-apple-system, BlinkMacSystemFont, sans-serif" : 'system-ui, "Ubuntu", "Droid Sans", sans-serif';
|
|
36064
36141
|
class ViewModelDecoration {
|
|
36065
36142
|
constructor(range, options) {
|
|
@@ -36209,7 +36286,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
36209
36286
|
return defaultForegroundColor;
|
|
36210
36287
|
}
|
|
36211
36288
|
equals(other) {
|
|
36212
|
-
return this.renderMinimap === other.renderMinimap && this.size === other.size && this.minimapHeightIsEditorHeight === other.minimapHeightIsEditorHeight && this.scrollBeyondLastLine === other.scrollBeyondLastLine && this.paddingTop === other.paddingTop && this.paddingBottom === other.paddingBottom && this.showSlider === other.showSlider && this.autohide === other.autohide && this.pixelRatio === other.pixelRatio && this.typicalHalfwidthCharacterWidth === other.typicalHalfwidthCharacterWidth && this.lineHeight === other.lineHeight && this.minimapLeft === other.minimapLeft && this.minimapWidth === other.minimapWidth && this.minimapHeight === other.minimapHeight && this.canvasInnerWidth === other.canvasInnerWidth && this.canvasInnerHeight === other.canvasInnerHeight && this.canvasOuterWidth === other.canvasOuterWidth && this.canvasOuterHeight === other.canvasOuterHeight && this.isSampling === other.isSampling && this.editorHeight === other.editorHeight && this.fontScale === other.fontScale && this.minimapLineHeight === other.minimapLineHeight && this.minimapCharWidth === other.minimapCharWidth && this.sectionHeaderFontSize === other.sectionHeaderFontSize && this.sectionHeaderLetterSpacing === other.sectionHeaderLetterSpacing && this.defaultBackgroundColor && this.defaultBackgroundColor.equals(other.defaultBackgroundColor) && this.backgroundColor && this.backgroundColor.equals(other.backgroundColor) && this.foregroundAlpha === other.foregroundAlpha;
|
|
36289
|
+
return this.renderMinimap === other.renderMinimap && this.size === other.size && this.minimapHeightIsEditorHeight === other.minimapHeightIsEditorHeight && this.scrollBeyondLastLine === other.scrollBeyondLastLine && this.paddingTop === other.paddingTop && this.paddingBottom === other.paddingBottom && this.showSlider === other.showSlider && this.autohide === other.autohide && this.pixelRatio === other.pixelRatio && this.typicalHalfwidthCharacterWidth === other.typicalHalfwidthCharacterWidth && this.lineHeight === other.lineHeight && this.minimapLeft === other.minimapLeft && this.minimapWidth === other.minimapWidth && this.minimapHeight === other.minimapHeight && this.canvasInnerWidth === other.canvasInnerWidth && this.canvasInnerHeight === other.canvasInnerHeight && this.canvasOuterWidth === other.canvasOuterWidth && this.canvasOuterHeight === other.canvasOuterHeight && this.isSampling === other.isSampling && this.editorHeight === other.editorHeight && this.fontScale === other.fontScale && this.minimapLineHeight === other.minimapLineHeight && this.minimapCharWidth === other.minimapCharWidth && this.sectionHeaderFontSize === other.sectionHeaderFontSize && this.sectionHeaderLetterSpacing === other.sectionHeaderLetterSpacing && this.sectionHeaderFontColor.equals(other.sectionHeaderFontColor) && this.defaultBackgroundColor && this.defaultBackgroundColor.equals(other.defaultBackgroundColor) && this.backgroundColor && this.backgroundColor.equals(other.backgroundColor) && this.foregroundAlpha === other.foregroundAlpha;
|
|
36213
36290
|
}
|
|
36214
36291
|
}
|
|
36215
36292
|
class MinimapLayout {
|
|
@@ -36250,7 +36327,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
36250
36327
|
getYForLineNumber(lineNumber, minimapLineHeight) {
|
|
36251
36328
|
return +(lineNumber - this.startLineNumber + this.topPaddingLineCount) * minimapLineHeight;
|
|
36252
36329
|
}
|
|
36253
|
-
static create(options, viewportStartLineNumber, viewportEndLineNumber, viewportStartLineNumberVerticalOffset, viewportHeight, viewportContainsWhitespaceGaps, lineCount, realLineCount, scrollTop, scrollHeight, previousLayout) {
|
|
36330
|
+
static create(options, viewportStartLineNumber, viewportEndLineNumber, viewportStartLineNumberVerticalOffset, viewportStartLineNumberLineHeight, viewportHeight, viewportContainsWhitespaceGaps, lineCount, realLineCount, scrollTop, scrollHeight, previousLayout) {
|
|
36254
36331
|
const pixelRatio = options.pixelRatio;
|
|
36255
36332
|
const minimapLineHeight = options.minimapLineHeight;
|
|
36256
36333
|
const minimapLinesFitting = Math.floor(options.canvasInnerHeight / minimapLineHeight);
|
|
@@ -36323,7 +36400,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
36323
36400
|
}
|
|
36324
36401
|
}
|
|
36325
36402
|
const endLineNumber = Math.min(lineCount, startLineNumber - topPaddingLineCount + minimapLinesFitting - 1);
|
|
36326
|
-
const partialLine = (scrollTop - viewportStartLineNumberVerticalOffset) /
|
|
36403
|
+
const partialLine = viewportStartLineNumberLineHeight > 0 ? Math.min(Math.max(0, scrollTop - viewportStartLineNumberVerticalOffset), viewportStartLineNumberLineHeight) / viewportStartLineNumberLineHeight : 0;
|
|
36327
36404
|
let sliderTopAligned;
|
|
36328
36405
|
if (scrollTop >= options.paddingTop) {
|
|
36329
36406
|
sliderTopAligned = (viewportStartLineNumber - startLineNumber + topPaddingLineCount + partialLine) * minimapLineHeight / pixelRatio;
|
|
@@ -36738,6 +36815,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
36738
36815
|
viewportStartLineNumber,
|
|
36739
36816
|
viewportEndLineNumber,
|
|
36740
36817
|
viewportStartLineNumberVerticalOffset: ctx.getVerticalOffsetForLineNumber(viewportStartLineNumber),
|
|
36818
|
+
viewportStartLineNumberLineHeight: ctx.getLineHeightForLineNumber(viewportStartLineNumber),
|
|
36741
36819
|
scrollTop: ctx.scrollTop,
|
|
36742
36820
|
scrollLeft: ctx.scrollLeft,
|
|
36743
36821
|
viewportWidth: ctx.viewportWidth,
|
|
@@ -36891,6 +36969,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
36891
36969
|
class InnerMinimap extends editorWorkerHost.Disposable {
|
|
36892
36970
|
constructor(theme, model) {
|
|
36893
36971
|
super();
|
|
36972
|
+
this._lastDecorationsRows = null;
|
|
36894
36973
|
this._renderDecorations = false;
|
|
36895
36974
|
this._gestureInProgress = false;
|
|
36896
36975
|
this._isMouseOverMinimap = false;
|
|
@@ -36933,6 +37012,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
36933
37012
|
this._slider.appendChild(this._sliderHorizontal);
|
|
36934
37013
|
this._applyLayout();
|
|
36935
37014
|
this._hideDelayedScheduler = this._register(new editorWorkerHost.RunOnceScheduler(() => this._hideImmediatelyIfMouseIsOutside(), 500));
|
|
37015
|
+
this._hideSliderAfterScrollScheduler = this._register(new editorWorkerHost.RunOnceScheduler(() => this._domNode.toggleClassName("slider-scrolling", false), 500));
|
|
36936
37016
|
this._register(addStandardDisposableListener(this._domNode.domNode, EventType.MOUSE_OVER, () => {
|
|
36937
37017
|
this._isMouseOverMinimap = true;
|
|
36938
37018
|
}));
|
|
@@ -37080,6 +37160,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37080
37160
|
this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight);
|
|
37081
37161
|
this._decorationsCanvas.domNode.width = this._model.options.canvasInnerWidth;
|
|
37082
37162
|
this._decorationsCanvas.domNode.height = this._model.options.canvasInnerHeight;
|
|
37163
|
+
this._lastDecorationsRows = null;
|
|
37083
37164
|
this._slider.setWidth(this._model.options.minimapWidth);
|
|
37084
37165
|
}
|
|
37085
37166
|
_getBuffer() {
|
|
@@ -37128,6 +37209,10 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37128
37209
|
this._domNode.toggleClassName("active", true);
|
|
37129
37210
|
this._hideSoon();
|
|
37130
37211
|
}
|
|
37212
|
+
if (this._model.options.showSlider === "mouseover" && e.scrollTopChanged) {
|
|
37213
|
+
this._domNode.toggleClassName("slider-scrolling", true);
|
|
37214
|
+
this._hideSliderAfterScrollScheduler.schedule();
|
|
37215
|
+
}
|
|
37131
37216
|
this._renderDecorations = true;
|
|
37132
37217
|
return true;
|
|
37133
37218
|
}
|
|
@@ -37165,7 +37250,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37165
37250
|
} else {
|
|
37166
37251
|
this._shadow.setClassName("minimap-shadow-visible");
|
|
37167
37252
|
}
|
|
37168
|
-
const layout2 = MinimapLayout.create(this._model.options, renderingCtx.viewportStartLineNumber, renderingCtx.viewportEndLineNumber, renderingCtx.viewportStartLineNumberVerticalOffset, renderingCtx.viewportHeight, renderingCtx.viewportContainsWhitespaceGaps, this._model.getLineCount(), this._model.getRealLineCount(), renderingCtx.scrollTop, renderingCtx.scrollHeight, this._lastRenderData ? this._lastRenderData.renderedLayout : null);
|
|
37253
|
+
const layout2 = MinimapLayout.create(this._model.options, renderingCtx.viewportStartLineNumber, renderingCtx.viewportEndLineNumber, renderingCtx.viewportStartLineNumberVerticalOffset, renderingCtx.viewportStartLineNumberLineHeight, renderingCtx.viewportHeight, renderingCtx.viewportContainsWhitespaceGaps, this._model.getLineCount(), this._model.getRealLineCount(), renderingCtx.scrollTop, renderingCtx.scrollHeight, this._lastRenderData ? this._lastRenderData.renderedLayout : null);
|
|
37169
37254
|
this._slider.setDisplay(layout2.sliderNeeded ? "block" : "none");
|
|
37170
37255
|
this._slider.setTop(layout2.sliderTop);
|
|
37171
37256
|
this._slider.setHeight(layout2.sliderHeight);
|
|
@@ -37187,22 +37272,36 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37187
37272
|
const minimapLineHeight = this._model.options.minimapLineHeight;
|
|
37188
37273
|
const minimapCharWidth = this._model.options.minimapCharWidth;
|
|
37189
37274
|
const tabSize = this._model.getOptions().tabSize;
|
|
37275
|
+
if (canvasInnerWidth === 0 || canvasInnerHeight === 0) {
|
|
37276
|
+
return;
|
|
37277
|
+
}
|
|
37190
37278
|
const canvasContext = this._decorationsCanvas.domNode.getContext("2d");
|
|
37191
|
-
|
|
37279
|
+
const frame = new RecordedFrame(canvasInnerHeight);
|
|
37192
37280
|
const highlightedLines = new ContiguousLineMap(layout2.startLineNumber, layout2.endLineNumber, false);
|
|
37193
|
-
this._renderSelectionLineHighlights(
|
|
37194
|
-
this._renderDecorationsLineHighlights(
|
|
37281
|
+
this._renderSelectionLineHighlights(frame, selections, highlightedLines, layout2, minimapLineHeight, canvasInnerWidth);
|
|
37282
|
+
this._renderDecorationsLineHighlights(frame, decorations, highlightedLines, layout2, minimapLineHeight, canvasInnerWidth);
|
|
37195
37283
|
const lineOffsetMap = new ContiguousLineMap(layout2.startLineNumber, layout2.endLineNumber, null);
|
|
37196
|
-
this._renderSelectionsHighlights(
|
|
37197
|
-
this._renderDecorationsHighlights(
|
|
37198
|
-
this._renderSectionHeaders(layout2);
|
|
37199
|
-
|
|
37200
|
-
|
|
37201
|
-
|
|
37284
|
+
this._renderSelectionsHighlights(frame, selections, lineOffsetMap, layout2, minimapLineHeight, tabSize, minimapCharWidth, canvasInnerWidth);
|
|
37285
|
+
this._renderDecorationsHighlights(frame, decorations, lineOffsetMap, layout2, minimapLineHeight, tabSize, minimapCharWidth, canvasInnerWidth);
|
|
37286
|
+
this._renderSectionHeaders(frame, canvasContext, layout2);
|
|
37287
|
+
const dirty = RowSignatures.diff(this._lastDecorationsRows, frame.rows);
|
|
37288
|
+
this._lastDecorationsRows = frame.rows;
|
|
37289
|
+
if (dirty) {
|
|
37290
|
+
canvasContext.save();
|
|
37291
|
+
canvasContext.beginPath();
|
|
37292
|
+
canvasContext.rect(0, dirty.start, canvasInnerWidth, dirty.end - dirty.start);
|
|
37293
|
+
canvasContext.clip();
|
|
37294
|
+
canvasContext.clearRect(0, dirty.start, canvasInnerWidth, dirty.end - dirty.start);
|
|
37295
|
+
frame.replay(canvasContext, dirty);
|
|
37296
|
+
canvasContext.restore();
|
|
37297
|
+
}
|
|
37298
|
+
}
|
|
37299
|
+
}
|
|
37300
|
+
_renderSelectionLineHighlights(frame, selections, highlightedLines, layout2, minimapLineHeight, canvasInnerWidth) {
|
|
37202
37301
|
if (!this._selectionColor || this._selectionColor.isTransparent()) {
|
|
37203
37302
|
return;
|
|
37204
37303
|
}
|
|
37205
|
-
|
|
37304
|
+
const fillStyle = this._selectionColor.transparent(0.5).toString();
|
|
37206
37305
|
let y1 = 0;
|
|
37207
37306
|
let y2 = 0;
|
|
37208
37307
|
for (const selection of selections) {
|
|
@@ -37220,17 +37319,17 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37220
37319
|
y2 = yy2;
|
|
37221
37320
|
} else {
|
|
37222
37321
|
if (y2 > y1) {
|
|
37223
|
-
|
|
37322
|
+
frame.fillRect(fillStyle, MINIMAP_GUTTER_WIDTH, y1, canvasInnerWidth, y2 - y1);
|
|
37224
37323
|
}
|
|
37225
37324
|
y1 = yy1;
|
|
37226
37325
|
y2 = yy2;
|
|
37227
37326
|
}
|
|
37228
37327
|
}
|
|
37229
37328
|
if (y2 > y1) {
|
|
37230
|
-
|
|
37329
|
+
frame.fillRect(fillStyle, MINIMAP_GUTTER_WIDTH, y1, canvasInnerWidth, y2 - y1);
|
|
37231
37330
|
}
|
|
37232
37331
|
}
|
|
37233
|
-
_renderDecorationsLineHighlights(
|
|
37332
|
+
_renderDecorationsLineHighlights(frame, decorations, highlightedLines, layout2, minimapLineHeight, canvasInnerWidth) {
|
|
37234
37333
|
const highlightColors = /* @__PURE__ */ new Map();
|
|
37235
37334
|
for (let i = decorations.length - 1; i >= 0; i--) {
|
|
37236
37335
|
const decoration = decorations[i];
|
|
@@ -37252,18 +37351,17 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37252
37351
|
highlightColor = decorationColor.transparent(0.5).toString();
|
|
37253
37352
|
highlightColors.set(decorationColor.toString(), highlightColor);
|
|
37254
37353
|
}
|
|
37255
|
-
canvasContext.fillStyle = highlightColor;
|
|
37256
37354
|
for (let line = startLineNumber; line <= endLineNumber; line++) {
|
|
37257
37355
|
if (highlightedLines.has(line)) {
|
|
37258
37356
|
continue;
|
|
37259
37357
|
}
|
|
37260
37358
|
highlightedLines.set(line, true);
|
|
37261
37359
|
const y = layout2.getYForLineNumber(line, minimapLineHeight);
|
|
37262
|
-
|
|
37360
|
+
frame.fillRect(highlightColor, MINIMAP_GUTTER_WIDTH, y, canvasInnerWidth, minimapLineHeight);
|
|
37263
37361
|
}
|
|
37264
37362
|
}
|
|
37265
37363
|
}
|
|
37266
|
-
_renderSelectionsHighlights(
|
|
37364
|
+
_renderSelectionsHighlights(frame, selections, lineOffsetMap, layout2, lineHeight, tabSize, characterWidth, canvasInnerWidth) {
|
|
37267
37365
|
if (!this._selectionColor || this._selectionColor.isTransparent()) {
|
|
37268
37366
|
return;
|
|
37269
37367
|
}
|
|
@@ -37274,11 +37372,11 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37274
37372
|
}
|
|
37275
37373
|
const [startLineNumber, endLineNumber] = intersection2;
|
|
37276
37374
|
for (let line = startLineNumber; line <= endLineNumber; line++) {
|
|
37277
|
-
this.renderDecorationOnLine(
|
|
37375
|
+
this.renderDecorationOnLine(frame, lineOffsetMap, selection, this._selectionColor, layout2, line, lineHeight, lineHeight, tabSize, characterWidth, canvasInnerWidth);
|
|
37278
37376
|
}
|
|
37279
37377
|
}
|
|
37280
37378
|
}
|
|
37281
|
-
_renderDecorationsHighlights(
|
|
37379
|
+
_renderDecorationsHighlights(frame, decorations, lineOffsetMap, layout2, minimapLineHeight, tabSize, characterWidth, canvasInnerWidth) {
|
|
37282
37380
|
for (const decoration of decorations) {
|
|
37283
37381
|
const minimapOptions = decoration.options.minimap;
|
|
37284
37382
|
if (!minimapOptions) {
|
|
@@ -37296,19 +37394,19 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37296
37394
|
for (let line = startLineNumber; line <= endLineNumber; line++) {
|
|
37297
37395
|
switch (minimapOptions.position) {
|
|
37298
37396
|
case 1:
|
|
37299
|
-
this.renderDecorationOnLine(
|
|
37397
|
+
this.renderDecorationOnLine(frame, lineOffsetMap, decoration.range, decorationColor, layout2, line, minimapLineHeight, minimapLineHeight, tabSize, characterWidth, canvasInnerWidth);
|
|
37300
37398
|
continue;
|
|
37301
37399
|
case 2: {
|
|
37302
37400
|
const y = layout2.getYForLineNumber(line, minimapLineHeight);
|
|
37303
37401
|
const x = 2;
|
|
37304
|
-
this.renderDecoration(
|
|
37402
|
+
this.renderDecoration(frame, decorationColor, x, y, GUTTER_DECORATION_WIDTH, minimapLineHeight);
|
|
37305
37403
|
continue;
|
|
37306
37404
|
}
|
|
37307
37405
|
}
|
|
37308
37406
|
}
|
|
37309
37407
|
}
|
|
37310
37408
|
}
|
|
37311
|
-
renderDecorationOnLine(
|
|
37409
|
+
renderDecorationOnLine(frame, lineOffsetMap, decorationRange, decorationColor, layout2, lineNumber, height, minimapLineHeight, tabSize, charWidth, canvasInnerWidth) {
|
|
37312
37410
|
const y = layout2.getYForLineNumber(lineNumber, minimapLineHeight);
|
|
37313
37411
|
if (y + height < 0 || y > this._model.options.canvasInnerHeight) {
|
|
37314
37412
|
return;
|
|
@@ -37318,7 +37416,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37318
37416
|
const endColumn = endLineNumber === lineNumber ? decorationRange.endColumn : this._model.getLineMaxColumn(lineNumber);
|
|
37319
37417
|
const x1 = this.getXOffsetForPosition(lineOffsetMap, lineNumber, startColumn, tabSize, charWidth, canvasInnerWidth);
|
|
37320
37418
|
const x2 = this.getXOffsetForPosition(lineOffsetMap, lineNumber, endColumn, tabSize, charWidth, canvasInnerWidth);
|
|
37321
|
-
this.renderDecoration(
|
|
37419
|
+
this.renderDecoration(frame, decorationColor, x1, y, x2 - x1, height);
|
|
37322
37420
|
}
|
|
37323
37421
|
getXOffsetForPosition(lineOffsetMap, lineNumber, column, tabSize, charWidth, canvasInnerWidth) {
|
|
37324
37422
|
if (column === 1) {
|
|
@@ -37351,11 +37449,12 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37351
37449
|
}
|
|
37352
37450
|
return canvasInnerWidth;
|
|
37353
37451
|
}
|
|
37354
|
-
renderDecoration(
|
|
37355
|
-
|
|
37356
|
-
|
|
37452
|
+
renderDecoration(frame, decorationColor, x, y, width2, height) {
|
|
37453
|
+
if (decorationColor) {
|
|
37454
|
+
frame.fillRect(decorationColor.toString(), x, y, width2, height);
|
|
37455
|
+
}
|
|
37357
37456
|
}
|
|
37358
|
-
_renderSectionHeaders(layout2) {
|
|
37457
|
+
_renderSectionHeaders(frame, canvasContext, layout2) {
|
|
37359
37458
|
const minimapLineHeight = this._model.options.minimapLineHeight;
|
|
37360
37459
|
const sectionHeaderFontSize = this._model.options.sectionHeaderFontSize;
|
|
37361
37460
|
const sectionHeaderLetterSpacing = this._model.options.sectionHeaderLetterSpacing;
|
|
@@ -37368,13 +37467,18 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37368
37467
|
const foregroundColor = this._model.options.sectionHeaderFontColor;
|
|
37369
37468
|
const foregroundFill = `rgb(${foregroundColor.r} ${foregroundColor.g} ${foregroundColor.b})`;
|
|
37370
37469
|
const separatorStroke = foregroundFill;
|
|
37371
|
-
const
|
|
37372
|
-
|
|
37373
|
-
|
|
37374
|
-
|
|
37375
|
-
|
|
37470
|
+
const letterSpacing = sectionHeaderLetterSpacing + "px";
|
|
37471
|
+
const font = "500 " + sectionHeaderFontSize + "px " + this._model.options.sectionHeaderFontFamily;
|
|
37472
|
+
const style = `${letterSpacing}:${font}:${backgroundFill}:${foregroundFill}:${horizontalScale}:${labelAreaWidth}`;
|
|
37473
|
+
const setStyle = (target) => {
|
|
37474
|
+
target.letterSpacing = letterSpacing;
|
|
37475
|
+
target.font = font;
|
|
37476
|
+
target.strokeStyle = separatorStroke;
|
|
37477
|
+
target.lineWidth = 0.4;
|
|
37478
|
+
target.scale(horizontalScale, 1);
|
|
37479
|
+
};
|
|
37376
37480
|
canvasContext.save();
|
|
37377
|
-
canvasContext
|
|
37481
|
+
setStyle(canvasContext);
|
|
37378
37482
|
const decorations = this._model.getSectionHeaderDecorationsInViewport(layout2.startLineNumber, layout2.endLineNumber);
|
|
37379
37483
|
decorations.sort((a, b) => a.range.startLineNumber - b.range.startLineNumber);
|
|
37380
37484
|
const fitWidth = InnerMinimap._fitSectionHeader.bind(null, canvasContext, labelAreaWidth - MINIMAP_GUTTER_WIDTH);
|
|
@@ -37388,7 +37492,18 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
37388
37492
|
if (headerText) {
|
|
37389
37493
|
nextLabelY = backgroundFillY + backgroundFillHeight;
|
|
37390
37494
|
}
|
|
37391
|
-
|
|
37495
|
+
const hasSeparatorLine = decoration.options.minimap?.sectionHeaderStyle === 2;
|
|
37496
|
+
if (!headerText && !hasSeparatorLine) {
|
|
37497
|
+
continue;
|
|
37498
|
+
}
|
|
37499
|
+
const top = backgroundFillY - sectionHeaderFontSize;
|
|
37500
|
+
const bottom = backgroundFillY + backgroundFillHeight + sectionHeaderFontSize;
|
|
37501
|
+
frame.add(top, bottom - top, `label:${style}:${hasSeparatorLine}:${headerText}`, false, (target) => {
|
|
37502
|
+
target.save();
|
|
37503
|
+
setStyle(target);
|
|
37504
|
+
InnerMinimap._renderSectionLabel(target, headerText, hasSeparatorLine, backgroundFill, foregroundFill, labelAreaWidth, backgroundFillY, backgroundFillHeight, y, separatorY);
|
|
37505
|
+
target.restore();
|
|
37506
|
+
});
|
|
37392
37507
|
}
|
|
37393
37508
|
canvasContext.restore();
|
|
37394
37509
|
}
|
|
@@ -38004,7 +38119,7 @@ define("vs/editor-BOXEgskP", ["require", "exports", "./editorWorkerHost-CZDXXPqi
|
|
|
38004
38119
|
this._domNode.setClassName("decorationsOverviewRuler");
|
|
38005
38120
|
this._domNode.setPosition("absolute");
|
|
38006
38121
|
this._domNode.setLayerHinting(true);
|
|
38007
|
-
this._domNode.setContain("
|
|
38122
|
+
this._domNode.setContain("size");
|
|
38008
38123
|
this._domNode.setAttribute("aria-hidden", "true");
|
|
38009
38124
|
this._updateSettings(false);
|
|
38010
38125
|
this._tokensColorTrackerListener = editorWorkerHost.TokenizationRegistry.onDidChange((e) => {
|
|
@@ -109619,6 +109734,11 @@ ${graph.toString()}`;
|
|
|
109619
109734
|
this._container = options.container;
|
|
109620
109735
|
this.styles = options.styles;
|
|
109621
109736
|
this._register(editorWorkerHost.Event.runAndSubscribe(onDidRegisterWindow, ({ window: window2, disposables }) => this.registerKeyModsListeners(window2, disposables), { window: mainWindow, disposables: this._store }));
|
|
109737
|
+
for (const { window: window2, disposables } of getWindows()) {
|
|
109738
|
+
if (window2 !== mainWindow) {
|
|
109739
|
+
this.registerKeyModsListeners(window2, disposables);
|
|
109740
|
+
}
|
|
109741
|
+
}
|
|
109622
109742
|
this._register(onWillUnregisterWindow((window2) => {
|
|
109623
109743
|
if (this.ui && getWindow(this.ui.container) === window2) {
|
|
109624
109744
|
this.reparentUI(this.layoutService.mainContainer);
|
package/dev/vs/editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/editor", ["exports", "./editor-
|
|
1
|
+
define("vs/editor", ["exports", "./editor-ECaWtNFt"], (function(exports, editor) {
|
|
2
2
|
"use strict";
|
|
3
3
|
exports.CancellationTokenSource = editor.CancellationTokenSource;
|
|
4
4
|
exports.Emitter = editor.Emitter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/htmlMode-
|
|
1
|
+
define("vs/htmlMode-D3gjERWU", ["exports", "./html.worker-Ce7FjZsx", "./workers-bZC_DvOz", "./lspLanguageFeatures-BoknGiwp", "./editor-ECaWtNFt"], (function(exports, html_worker, workers, lspLanguageFeatures, editor) {
|
|
2
2
|
"use strict";
|
|
3
3
|
const STOP_WHEN_IDLE_FOR = 2 * 60 * 1e3;
|
|
4
4
|
class WorkerManager {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/index-
|
|
1
|
+
define("vs/index-CT1dN1az", ["exports", "./editor-ECaWtNFt", "./toggleHighContrast-CPhNS-pe", "./basic-languages/monaco.contribution", "./monaco.contribution-6sz-lsdL", "./monaco.contribution-CxP_-GSP", "./monaco.contribution-Bo_jTTdh", "./monaco.contribution-3bgZtZSi"], (function(exports, editor, toggleHighContrast, src_deprecated_basicLanguages_monaco_contribution_ts, src_deprecated_language_css_monaco_contribution_ts, src_deprecated_language_html_monaco_contribution_ts, src_deprecated_language_json_monaco_contribution_ts, src_deprecated_language_typescript_monaco_contribution_ts) {
|
|
2
2
|
"use strict";
|
|
3
3
|
function isRequestOrNotification(msg) {
|
|
4
4
|
return msg.method !== void 0;
|