monaco-editor 0.55.0-dev-20251019 → 0.55.0-dev-20251021
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-Q1Lf-3sI.js → cssMode-Bwd5iTwO.js} +1 -1
- package/dev/vs/editor/editor.main.js +1 -1
- package/dev/vs/{editor.api-802iF3VW.js → editor.api-DtdJriTE.js} +104 -53
- package/dev/vs/{freemarker2-DBz8kSoY.js → freemarker2-vzq7IT1V.js} +1 -1
- package/dev/vs/{handlebars-Dn6mhN_R.js → handlebars-voSBoDYq.js} +1 -1
- package/dev/vs/{html-D431O42K.js → html-DgBvMxaw.js} +1 -1
- package/dev/vs/{htmlMode-DFM8DXNV.js → htmlMode-B73e0LQu.js} +1 -1
- package/dev/vs/{javascript-CXLQs4Fj.js → javascript-B456O1TJ.js} +1 -1
- package/dev/vs/{jsonMode-BoZClQyy.js → jsonMode-0j9Sufcy.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-BeJl_4KB.js → liquid-DtsObjyU.js} +1 -1
- package/dev/vs/{lspLanguageFeatures-7D3Okm4p.js → lspLanguageFeatures-BOGx43ac.js} +1 -1
- package/dev/vs/{mdx-DcGH0HYw.js → mdx-CpdAOlbp.js} +1 -1
- package/dev/vs/{monaco.contribution-9FgKzO6Y.js → monaco.contribution-96LxvCLa.js} +2 -2
- package/dev/vs/{monaco.contribution-Cn9EpORE.js → monaco.contribution-BNV_Bhhz.js} +2 -2
- package/dev/vs/{monaco.contribution-Jg8nMxDq.js → monaco.contribution-CLECD6oi.js} +2 -2
- package/dev/vs/{monaco.contribution-D2sTuDLD.js → monaco.contribution-DgD6w475.js} +2 -2
- package/dev/vs/nls.messages.cs.js +1 -1
- package/dev/vs/nls.messages.de.js +1 -1
- package/dev/vs/nls.messages.es.js +1 -1
- package/dev/vs/nls.messages.fr.js +1 -1
- package/dev/vs/nls.messages.it.js +1 -1
- package/dev/vs/nls.messages.ja.js +1 -1
- package/dev/vs/nls.messages.ko.js +1 -1
- package/dev/vs/nls.messages.pl.js +1 -1
- package/dev/vs/nls.messages.pt-br.js +1 -1
- package/dev/vs/nls.messages.ru.js +1 -1
- package/dev/vs/nls.messages.tr.js +1 -1
- package/dev/vs/nls.messages.zh-cn.js +1 -1
- package/dev/vs/nls.messages.zh-tw.js +1 -1
- package/dev/vs/{python-PUDP_Uaz.js → python-Bdcmm8So.js} +1 -1
- package/dev/vs/{razor-DPnf-zqt.js → razor-C2m7Vs0-.js} +1 -1
- package/dev/vs/{tsMode-C4zHvxDV.js → tsMode-qQDYDzQT.js} +1 -1
- package/dev/vs/{typescript-A2hDCSxV.js → typescript-BoBnM-0b.js} +1 -1
- package/dev/vs/{workers-BTQeXau-.js → workers-B1DA8fIt.js} +1 -1
- package/dev/vs/{xml-DZuYLO-A.js → xml-DmpITxBR.js} +1 -1
- package/dev/vs/{yaml-CTCtYDFA.js → yaml-Pd4qqIOC.js} +1 -1
- package/esm/vs/base/browser/ui/findinput/findInput.js +4 -5
- package/esm/vs/base/browser/ui/findinput/findInputToggles.js +3 -4
- package/esm/vs/base/browser/ui/findinput/replaceInput.js +2 -2
- package/esm/vs/base/browser/ui/toggle/toggle.js +9 -6
- package/esm/vs/base/common/actions.js +5 -0
- package/esm/vs/base/common/async.js +5 -5
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +20 -12
- package/esm/vs/editor/browser/services/hoverService/hoverWidget.js +15 -0
- package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +6 -0
- package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +1 -0
- package/esm/vs/editor/contrib/find/browser/findOptionsWidget.js +4 -5
- package/esm/vs/editor/contrib/find/browser/findWidget.js +12 -12
- package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js +23 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +0 -1
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +1 -4
- package/min/vs/basic-languages/monaco.contribution.js +1 -1
- package/min/vs/{cssMode-D4NzqbQS.js → cssMode-CvaUVk1W.js} +1 -1
- package/min/vs/editor/editor.main.js +1 -1
- package/min/vs/{editor.api-Qm4MPvis.js → editor.api-DGkWFOQA.js} +145 -145
- package/min/vs/{freemarker2-B0JPdtFy.js → freemarker2-B_vQOikd.js} +1 -1
- package/min/vs/{handlebars-BT6GvC7i.js → handlebars-DqjIuZnJ.js} +1 -1
- package/min/vs/{html-gBDMmvQV.js → html-DAxAlcjQ.js} +1 -1
- package/min/vs/{htmlMode-NilE83Fe.js → htmlMode-C37mDTXf.js} +1 -1
- package/min/vs/{javascript-BLHmi43m.js → javascript-CmHtjIt-.js} +1 -1
- package/min/vs/{jsonMode-DLRr2_0Z.js → jsonMode-D1uvcOsy.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-Dm5uaeWH.js → liquid-CQBeFlV7.js} +1 -1
- package/min/vs/{lspLanguageFeatures-CGripwyp.js → lspLanguageFeatures-DTAub2tJ.js} +1 -1
- package/min/vs/{mdx-CK01dX6F.js → mdx-BFnE9qyd.js} +1 -1
- package/min/vs/{monaco.contribution-CGOd8_rh.js → monaco.contribution-Ba-90VRW.js} +1 -1
- package/min/vs/{monaco.contribution-BTx9le88.js → monaco.contribution-D4gtmCUd.js} +1 -1
- package/min/vs/{monaco.contribution-r30Wl92q.js → monaco.contribution-DBV8hY3j.js} +1 -1
- package/min/vs/{monaco.contribution-CAud1ylG.js → monaco.contribution-bCyc25XC.js} +1 -1
- package/min/vs/nls.messages.cs.js +1 -1
- package/min/vs/nls.messages.de.js +1 -1
- package/min/vs/nls.messages.es.js +1 -1
- package/min/vs/nls.messages.fr.js +1 -1
- package/min/vs/nls.messages.it.js +1 -1
- package/min/vs/nls.messages.ja.js +1 -1
- package/min/vs/nls.messages.ko.js +1 -1
- package/min/vs/nls.messages.pl.js +1 -1
- package/min/vs/nls.messages.pt-br.js +1 -1
- package/min/vs/nls.messages.ru.js +1 -1
- package/min/vs/nls.messages.tr.js +1 -1
- package/min/vs/nls.messages.zh-cn.js +1 -1
- package/min/vs/nls.messages.zh-tw.js +1 -1
- package/min/vs/{python-Cwb03RGD.js → python-BX875IYK.js} +1 -1
- package/min/vs/{razor-B-kFuuSi.js → razor-BBB6Wn5s.js} +1 -1
- package/min/vs/{tsMode-B6EN8tpu.js → tsMode-DYyNPclY.js} +1 -1
- package/min/vs/{typescript-DSAwa49_.js → typescript-AvfgkAyn.js} +1 -1
- package/min/vs/{workers-CjCUpHZK.js → workers-DnTKLxL6.js} +1 -1
- package/min/vs/{xml-D5baDVnS.js → xml-BVhc_vbm.js} +1 -1
- package/min/vs/{yaml-WDKVYKIX.js → yaml-a9dM1cQx.js} +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-
|
|
1
|
+
define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-DtdJriTE"], (function(require, editor_api) {
|
|
2
2
|
"use strict";
|
|
3
3
|
const languageDefinitions = {};
|
|
4
4
|
const lazyLanguageLoaders = {};
|
|
@@ -174,49 +174,49 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-vzq7IT1V"], 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-vzq7IT1V"], 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-vzq7IT1V"], 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-vzq7IT1V"], 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-vzq7IT1V"], 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-vzq7IT1V"], 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-vzq7IT1V"], 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.api-802i
|
|
|
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-voSBoDYq"], resolve, reject))
|
|
241
241
|
});
|
|
242
242
|
registerLanguage({
|
|
243
243
|
id: "hcl",
|
|
@@ -250,7 +250,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-DgBvMxaw"], resolve, reject))
|
|
254
254
|
});
|
|
255
255
|
registerLanguage({
|
|
256
256
|
id: "ini",
|
|
@@ -273,7 +273,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-B456O1TJ"], resolve, reject))
|
|
277
277
|
});
|
|
278
278
|
registerLanguage({
|
|
279
279
|
id: "julia",
|
|
@@ -312,7 +312,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-DtsObjyU"], resolve, reject))
|
|
316
316
|
});
|
|
317
317
|
registerLanguage({
|
|
318
318
|
id: "m3",
|
|
@@ -330,7 +330,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-CpdAOlbp"], resolve, reject))
|
|
334
334
|
});
|
|
335
335
|
registerLanguage({
|
|
336
336
|
id: "mips",
|
|
@@ -429,7 +429,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-Bdcmm8So"], resolve, reject))
|
|
433
433
|
});
|
|
434
434
|
registerLanguage({
|
|
435
435
|
id: "qsharp",
|
|
@@ -448,7 +448,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-C2m7Vs0-"], resolve, reject))
|
|
452
452
|
});
|
|
453
453
|
registerLanguage({
|
|
454
454
|
id: "redis",
|
|
@@ -581,7 +581,7 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-BoBnM-0b"], resolve, reject));
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
587
|
registerLanguage({
|
|
@@ -626,13 +626,13 @@ define("vs/basic-languages/monaco.contribution", ["require", "../editor.api-802i
|
|
|
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-DmpITxBR"], 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-Pd4qqIOC"], resolve, reject))
|
|
637
637
|
});
|
|
638
638
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define("vs/cssMode-
|
|
1
|
+
define("vs/cssMode-Bwd5iTwO", ["module", "exports", "./workers-B1DA8fIt", "./lspLanguageFeatures-BOGx43ac", "./editor.api-DtdJriTE"], (function(module, exports, workers, lspLanguageFeatures, editor_api) {
|
|
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/editor/editor.main", ["exports", "require", "vs/nls.messages-loader!", "../monaco.contribution-
|
|
1
|
+
define("vs/editor/editor.main", ["exports", "require", "vs/nls.messages-loader!", "../monaco.contribution-96LxvCLa", "../monaco.contribution-BNV_Bhhz", "../monaco.contribution-DgD6w475", "../monaco.contribution-CLECD6oi", "../basic-languages/monaco.contribution", "../editor.api-DtdJriTE", "../workers-B1DA8fIt"], (function(exports, require, nls_messagesLoader_, language_css_monaco_contribution, language_html_monaco_contribution, language_json_monaco_contribution, language_typescript_monaco_contribution, basicLanguages_monaco_contribution, editor_api, workers) {
|
|
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.api-
|
|
1
|
+
define("vs/editor.api-DtdJriTE", ["exports"], (function(exports) {
|
|
2
2
|
"use strict";
|
|
3
3
|
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$2, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa;
|
|
4
4
|
function getNLSMessages() {
|
|
@@ -2802,13 +2802,13 @@ define("vs/editor.api-802iF3VW", ["exports"], (function(exports) {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
let Throttler$1 = class Throttler {
|
|
2804
2804
|
constructor() {
|
|
2805
|
-
this.isDisposed = false;
|
|
2806
2805
|
this.activePromise = null;
|
|
2807
2806
|
this.queuedPromise = null;
|
|
2808
2807
|
this.queuedPromiseFactory = null;
|
|
2808
|
+
this.cancellationTokenSource = new CancellationTokenSource$1();
|
|
2809
2809
|
}
|
|
2810
2810
|
queue(promiseFactory) {
|
|
2811
|
-
if (this.
|
|
2811
|
+
if (this.cancellationTokenSource.token.isCancellationRequested) {
|
|
2812
2812
|
return Promise.reject(new Error("Throttler is disposed"));
|
|
2813
2813
|
}
|
|
2814
2814
|
if (this.activePromise) {
|
|
@@ -2816,7 +2816,7 @@ define("vs/editor.api-802iF3VW", ["exports"], (function(exports) {
|
|
|
2816
2816
|
if (!this.queuedPromise) {
|
|
2817
2817
|
const onComplete = () => {
|
|
2818
2818
|
this.queuedPromise = null;
|
|
2819
|
-
if (this.
|
|
2819
|
+
if (this.cancellationTokenSource.token.isCancellationRequested) {
|
|
2820
2820
|
return;
|
|
2821
2821
|
}
|
|
2822
2822
|
const result = this.queue(this.queuedPromiseFactory);
|
|
@@ -2831,7 +2831,7 @@ define("vs/editor.api-802iF3VW", ["exports"], (function(exports) {
|
|
|
2831
2831
|
this.queuedPromise.then(resolve2, reject);
|
|
2832
2832
|
});
|
|
2833
2833
|
}
|
|
2834
|
-
this.activePromise = promiseFactory();
|
|
2834
|
+
this.activePromise = promiseFactory(this.cancellationTokenSource.token);
|
|
2835
2835
|
return new Promise((resolve2, reject) => {
|
|
2836
2836
|
this.activePromise.then((result) => {
|
|
2837
2837
|
this.activePromise = null;
|
|
@@ -2843,7 +2843,7 @@ define("vs/editor.api-802iF3VW", ["exports"], (function(exports) {
|
|
|
2843
2843
|
});
|
|
2844
2844
|
}
|
|
2845
2845
|
dispose() {
|
|
2846
|
-
this.
|
|
2846
|
+
this.cancellationTokenSource.cancel();
|
|
2847
2847
|
}
|
|
2848
2848
|
};
|
|
2849
2849
|
const timeoutDeferred = (timeout2, fn) => {
|
|
@@ -53786,6 +53786,7 @@ struct VSOutput {
|
|
|
53786
53786
|
this._targetWindowId = -1;
|
|
53787
53787
|
this._scrollTop = 0;
|
|
53788
53788
|
this._scrollLeft = 0;
|
|
53789
|
+
this._linesVisibleRanges = null;
|
|
53789
53790
|
this.domNode = new FastDomNode(document.createElement("div"));
|
|
53790
53791
|
this.domNode.setClassName(`native-edit-context`);
|
|
53791
53792
|
this._imeTextArea = new FastDomNode(document.createElement("textarea"));
|
|
@@ -53927,7 +53928,10 @@ struct VSOutput {
|
|
|
53927
53928
|
}
|
|
53928
53929
|
prepareRender(ctx) {
|
|
53929
53930
|
this._screenReaderSupport.prepareRender(ctx);
|
|
53930
|
-
this.
|
|
53931
|
+
this._updateSelectionAndControlBoundsData(ctx);
|
|
53932
|
+
}
|
|
53933
|
+
onDidRender() {
|
|
53934
|
+
this._updateSelectionAndControlBoundsAfterRender();
|
|
53931
53935
|
}
|
|
53932
53936
|
render(ctx) {
|
|
53933
53937
|
this._screenReaderSupport.render(ctx);
|
|
@@ -54139,27 +54143,32 @@ struct VSOutput {
|
|
|
54139
54143
|
});
|
|
54140
54144
|
this._decorations = this._context.viewModel.model.deltaDecorations(this._decorations, decorations);
|
|
54141
54145
|
}
|
|
54142
|
-
|
|
54143
|
-
|
|
54144
|
-
|
|
54146
|
+
_updateSelectionAndControlBoundsData(ctx) {
|
|
54147
|
+
const viewSelection = this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(this._primarySelection);
|
|
54148
|
+
if (this._primarySelection.isEmpty()) {
|
|
54149
|
+
const linesVisibleRanges = ctx.visibleRangeForPosition(viewSelection.getStartPosition());
|
|
54150
|
+
this._linesVisibleRanges = linesVisibleRanges;
|
|
54151
|
+
} else {
|
|
54152
|
+
this._linesVisibleRanges = null;
|
|
54145
54153
|
}
|
|
54154
|
+
}
|
|
54155
|
+
_updateSelectionAndControlBoundsAfterRender() {
|
|
54146
54156
|
const options = this._context.configuration.options;
|
|
54147
54157
|
const contentLeft = options.get(
|
|
54148
54158
|
165
|
|
54149
54159
|
/* EditorOption.layoutInfo */
|
|
54150
54160
|
).contentLeft;
|
|
54151
|
-
const parentBounds = this._parent.getBoundingClientRect();
|
|
54152
54161
|
const viewSelection = this._context.viewModel.coordinatesConverter.convertModelRangeToViewRange(this._primarySelection);
|
|
54153
54162
|
const verticalOffsetStart = this._context.viewLayout.getVerticalOffsetForLineNumber(viewSelection.startLineNumber);
|
|
54154
|
-
const top = parentBounds.top + verticalOffsetStart - this._scrollTop;
|
|
54155
54163
|
const verticalOffsetEnd = this._context.viewLayout.getVerticalOffsetAfterLineNumber(viewSelection.endLineNumber);
|
|
54164
|
+
const parentBounds = this._parent.getBoundingClientRect();
|
|
54165
|
+
const top = parentBounds.top + verticalOffsetStart - this._scrollTop;
|
|
54156
54166
|
const height = verticalOffsetEnd - verticalOffsetStart;
|
|
54157
54167
|
let left = parentBounds.left + contentLeft - this._scrollLeft;
|
|
54158
54168
|
let width2;
|
|
54159
54169
|
if (this._primarySelection.isEmpty()) {
|
|
54160
|
-
|
|
54161
|
-
|
|
54162
|
-
left += linesVisibleRanges.left;
|
|
54170
|
+
if (this._linesVisibleRanges) {
|
|
54171
|
+
left += this._linesVisibleRanges.left;
|
|
54163
54172
|
}
|
|
54164
54173
|
width2 = 0;
|
|
54165
54174
|
} else {
|
|
@@ -54170,9 +54179,6 @@ struct VSOutput {
|
|
|
54170
54179
|
this._editContext.updateControlBounds(selectionBounds);
|
|
54171
54180
|
}
|
|
54172
54181
|
_updateCharacterBounds(e) {
|
|
54173
|
-
if (!this._parent) {
|
|
54174
|
-
return;
|
|
54175
|
-
}
|
|
54176
54182
|
const options = this._context.configuration.options;
|
|
54177
54183
|
const typicalHalfWidthCharacterWidth = options.get(
|
|
54178
54184
|
59
|
|
@@ -96221,12 +96227,14 @@ ${escape$2(text2)}
|
|
|
96221
96227
|
if (!model || !model.isDiffUpToDate.get()) {
|
|
96222
96228
|
return;
|
|
96223
96229
|
}
|
|
96230
|
+
this._editors.modified.pushUndoStop();
|
|
96224
96231
|
this._editors.modified.executeEdits("diffEditor", [
|
|
96225
96232
|
{
|
|
96226
96233
|
range: diff.modified.toExclusiveRange(),
|
|
96227
96234
|
text: model.model.original.getValueInRange(diff.original.toExclusiveRange())
|
|
96228
96235
|
}
|
|
96229
96236
|
]);
|
|
96237
|
+
this._editors.modified.pushUndoStop();
|
|
96230
96238
|
}
|
|
96231
96239
|
revertRangeMappings(diffs) {
|
|
96232
96240
|
const model = this._diffModel.get();
|
|
@@ -96237,7 +96245,9 @@ ${escape$2(text2)}
|
|
|
96237
96245
|
range: c.modifiedRange,
|
|
96238
96246
|
text: model.model.original.getValueInRange(c.originalRange)
|
|
96239
96247
|
}));
|
|
96248
|
+
this._editors.modified.pushUndoStop();
|
|
96240
96249
|
this._editors.modified.executeEdits("diffEditor", changes);
|
|
96250
|
+
this._editors.modified.pushUndoStop();
|
|
96241
96251
|
}
|
|
96242
96252
|
revertFocusedRangeMappings() {
|
|
96243
96253
|
const model = this._diffModel.get();
|
|
@@ -96258,10 +96268,12 @@ ${escape$2(text2)}
|
|
|
96258
96268
|
const diffsToRevert = diffs.filter((d) => {
|
|
96259
96269
|
return d.lineRangeMapping.modified.intersect(selectedRange);
|
|
96260
96270
|
});
|
|
96271
|
+
modifiedEditor.pushUndoStop();
|
|
96261
96272
|
modifiedEditor.executeEdits("diffEditor", diffsToRevert.map((d) => ({
|
|
96262
96273
|
range: d.lineRangeMapping.modified.toExclusiveRange(),
|
|
96263
96274
|
text: model.model.original.getValueInRange(d.lineRangeMapping.original.toExclusiveRange())
|
|
96264
96275
|
})));
|
|
96276
|
+
modifiedEditor.pushUndoStop();
|
|
96265
96277
|
}
|
|
96266
96278
|
_goTo(diff) {
|
|
96267
96279
|
this._editors.modified.setPosition(new Position$1(diff.lineRangeMapping.modified.startLineNumber, 1));
|
|
@@ -110166,6 +110178,7 @@ ${escape$2(text2)}
|
|
|
110166
110178
|
this._onChange = this._register(new Emitter$1());
|
|
110167
110179
|
this._onKeyDown = this._register(new Emitter$1());
|
|
110168
110180
|
this._opts = opts;
|
|
110181
|
+
this._title = this._opts.title;
|
|
110169
110182
|
this._checked = this._opts.isChecked;
|
|
110170
110183
|
const classes = ["monaco-custom-toggle"];
|
|
110171
110184
|
if (this._opts.icon) {
|
|
@@ -110179,14 +110192,17 @@ ${escape$2(text2)}
|
|
|
110179
110192
|
classes.push("checked");
|
|
110180
110193
|
}
|
|
110181
110194
|
this.domNode = document.createElement("div");
|
|
110182
|
-
this.
|
|
110195
|
+
this._register(getBaseLayerHoverDelegate().setupDelayedHover(this.domNode, () => ({
|
|
110196
|
+
content: this._title,
|
|
110197
|
+
style: 1
|
|
110198
|
+
}), this._opts.hoverLifecycleOptions));
|
|
110183
110199
|
this.domNode.classList.add(...classes);
|
|
110184
110200
|
if (!this._opts.notFocusable) {
|
|
110185
110201
|
this.domNode.tabIndex = 0;
|
|
110186
110202
|
}
|
|
110187
110203
|
this.domNode.setAttribute("role", "checkbox");
|
|
110188
110204
|
this.domNode.setAttribute("aria-checked", String(this._checked));
|
|
110189
|
-
this.
|
|
110205
|
+
this.setTitle(this._opts.title);
|
|
110190
110206
|
this.applyStyles();
|
|
110191
110207
|
this.onclick(this.domNode, (ev) => {
|
|
110192
110208
|
if (this.enabled) {
|
|
@@ -110253,7 +110269,7 @@ ${escape$2(text2)}
|
|
|
110253
110269
|
this.domNode.classList.add("disabled");
|
|
110254
110270
|
}
|
|
110255
110271
|
setTitle(newTitle) {
|
|
110256
|
-
this.
|
|
110272
|
+
this._title = newTitle;
|
|
110257
110273
|
this.domNode.setAttribute("aria-label", newTitle);
|
|
110258
110274
|
}
|
|
110259
110275
|
set visible(visible) {
|
|
@@ -110300,7 +110316,7 @@ ${escape$2(text2)}
|
|
|
110300
110316
|
let BaseCheckbox = _BaseCheckbox;
|
|
110301
110317
|
class Checkbox extends BaseCheckbox {
|
|
110302
110318
|
constructor(title, isChecked, styles) {
|
|
110303
|
-
const toggle = new Toggle({ title, isChecked, icon: Codicon.check, actionClassName: BaseCheckbox.CLASS_NAME,
|
|
110319
|
+
const toggle = new Toggle({ title, isChecked, icon: Codicon.check, actionClassName: BaseCheckbox.CLASS_NAME, hoverLifecycleOptions: styles.hoverLifecycleOptions, ...unthemedToggleStyles });
|
|
110304
110320
|
super(toggle, toggle.domNode, styles);
|
|
110305
110321
|
this._register(toggle);
|
|
110306
110322
|
this._register(this.checkbox.onChange((keyboard) => {
|
|
@@ -110343,7 +110359,7 @@ ${escape$2(text2)}
|
|
|
110343
110359
|
isChecked: _state === true,
|
|
110344
110360
|
icon,
|
|
110345
110361
|
actionClassName: Checkbox.CLASS_NAME,
|
|
110346
|
-
|
|
110362
|
+
hoverLifecycleOptions: styles.hoverLifecycleOptions,
|
|
110347
110363
|
...unthemedToggleStyles
|
|
110348
110364
|
});
|
|
110349
110365
|
super(checkbox, checkbox.domNode, styles);
|
|
@@ -110389,7 +110405,7 @@ ${escape$2(text2)}
|
|
|
110389
110405
|
icon: Codicon.caseSensitive,
|
|
110390
110406
|
title: NLS_CASE_SENSITIVE_TOGGLE_LABEL + opts.appendTitle,
|
|
110391
110407
|
isChecked: opts.isChecked,
|
|
110392
|
-
|
|
110408
|
+
hoverLifecycleOptions: opts.hoverLifecycleOptions,
|
|
110393
110409
|
inputActiveOptionBorder: opts.inputActiveOptionBorder,
|
|
110394
110410
|
inputActiveOptionForeground: opts.inputActiveOptionForeground,
|
|
110395
110411
|
inputActiveOptionBackground: opts.inputActiveOptionBackground
|
|
@@ -110402,7 +110418,7 @@ ${escape$2(text2)}
|
|
|
110402
110418
|
icon: Codicon.wholeWord,
|
|
110403
110419
|
title: NLS_WHOLE_WORD_TOGGLE_LABEL + opts.appendTitle,
|
|
110404
110420
|
isChecked: opts.isChecked,
|
|
110405
|
-
|
|
110421
|
+
hoverLifecycleOptions: opts.hoverLifecycleOptions,
|
|
110406
110422
|
inputActiveOptionBorder: opts.inputActiveOptionBorder,
|
|
110407
110423
|
inputActiveOptionForeground: opts.inputActiveOptionForeground,
|
|
110408
110424
|
inputActiveOptionBackground: opts.inputActiveOptionBackground
|
|
@@ -110415,7 +110431,7 @@ ${escape$2(text2)}
|
|
|
110415
110431
|
icon: Codicon.regex,
|
|
110416
110432
|
title: NLS_REGEX_TOGGLE_LABEL + opts.appendTitle,
|
|
110417
110433
|
isChecked: opts.isChecked,
|
|
110418
|
-
|
|
110434
|
+
hoverLifecycleOptions: opts.hoverLifecycleOptions,
|
|
110419
110435
|
inputActiveOptionBorder: opts.inputActiveOptionBorder,
|
|
110420
110436
|
inputActiveOptionForeground: opts.inputActiveOptionForeground,
|
|
110421
110437
|
inputActiveOptionBackground: opts.inputActiveOptionBackground
|
|
@@ -111205,12 +111221,12 @@ ${escape$2(text2)}
|
|
|
111205
111221
|
inputBoxStyles: options.inputBoxStyles,
|
|
111206
111222
|
history: options.history
|
|
111207
111223
|
}));
|
|
111208
|
-
const hoverDelegate = this._register(createInstantHoverDelegate());
|
|
111209
111224
|
if (this.showCommonFindToggles) {
|
|
111225
|
+
const hoverLifecycleOptions = options?.hoverLifecycleOptions || { groupId: "find-input" };
|
|
111210
111226
|
this.regex = this._register(new RegexToggle({
|
|
111211
111227
|
appendTitle: appendRegexLabel,
|
|
111212
111228
|
isChecked: false,
|
|
111213
|
-
|
|
111229
|
+
hoverLifecycleOptions,
|
|
111214
111230
|
...options.toggleStyles
|
|
111215
111231
|
}));
|
|
111216
111232
|
this._register(this.regex.onChange((viaKeyboard) => {
|
|
@@ -111226,7 +111242,7 @@ ${escape$2(text2)}
|
|
|
111226
111242
|
this.wholeWords = this._register(new WholeWordsToggle({
|
|
111227
111243
|
appendTitle: appendWholeWordsLabel,
|
|
111228
111244
|
isChecked: false,
|
|
111229
|
-
|
|
111245
|
+
hoverLifecycleOptions,
|
|
111230
111246
|
...options.toggleStyles
|
|
111231
111247
|
}));
|
|
111232
111248
|
this._register(this.wholeWords.onChange((viaKeyboard) => {
|
|
@@ -111239,7 +111255,7 @@ ${escape$2(text2)}
|
|
|
111239
111255
|
this.caseSensitive = this._register(new CaseSensitiveToggle({
|
|
111240
111256
|
appendTitle: appendCaseSensitiveLabel,
|
|
111241
111257
|
isChecked: false,
|
|
111242
|
-
|
|
111258
|
+
hoverLifecycleOptions,
|
|
111243
111259
|
...options.toggleStyles
|
|
111244
111260
|
}));
|
|
111245
111261
|
this._register(this.caseSensitive.onChange((viaKeyboard) => {
|
|
@@ -124840,11 +124856,11 @@ ${escape$2(text2)}
|
|
|
124840
124856
|
inputActiveOptionForeground: asCssVariable(inputActiveOptionForeground),
|
|
124841
124857
|
inputActiveOptionBackground: asCssVariable(inputActiveOptionBackground)
|
|
124842
124858
|
};
|
|
124843
|
-
const
|
|
124859
|
+
const hoverLifecycleOptions = { groupId: "find-options-widget" };
|
|
124844
124860
|
this.caseSensitive = this._register(new CaseSensitiveToggle({
|
|
124845
124861
|
appendTitle: this._keybindingLabelFor(FIND_IDS.ToggleCaseSensitiveCommand),
|
|
124846
124862
|
isChecked: this._state.matchCase,
|
|
124847
|
-
|
|
124863
|
+
hoverLifecycleOptions,
|
|
124848
124864
|
...toggleStyles
|
|
124849
124865
|
}));
|
|
124850
124866
|
this._domNode.appendChild(this.caseSensitive.domNode);
|
|
@@ -124856,7 +124872,7 @@ ${escape$2(text2)}
|
|
|
124856
124872
|
this.wholeWords = this._register(new WholeWordsToggle({
|
|
124857
124873
|
appendTitle: this._keybindingLabelFor(FIND_IDS.ToggleWholeWordCommand),
|
|
124858
124874
|
isChecked: this._state.wholeWord,
|
|
124859
|
-
|
|
124875
|
+
hoverLifecycleOptions,
|
|
124860
124876
|
...toggleStyles
|
|
124861
124877
|
}));
|
|
124862
124878
|
this._domNode.appendChild(this.wholeWords.domNode);
|
|
@@ -124868,7 +124884,7 @@ ${escape$2(text2)}
|
|
|
124868
124884
|
this.regex = this._register(new RegexToggle({
|
|
124869
124885
|
appendTitle: this._keybindingLabelFor(FIND_IDS.ToggleRegexCommand),
|
|
124870
124886
|
isChecked: this._state.isRegex,
|
|
124871
|
-
|
|
124887
|
+
hoverLifecycleOptions,
|
|
124872
124888
|
...toggleStyles
|
|
124873
124889
|
}));
|
|
124874
124890
|
this._domNode.appendChild(this.regex.domNode);
|
|
@@ -125225,7 +125241,7 @@ ${escape$2(text2)}
|
|
|
125225
125241
|
icon: Codicon.preserveCase,
|
|
125226
125242
|
title: NLS_PRESERVE_CASE_LABEL + opts.appendTitle,
|
|
125227
125243
|
isChecked: opts.isChecked,
|
|
125228
|
-
|
|
125244
|
+
hoverLifecycleOptions: opts.hoverLifecycleOptions,
|
|
125229
125245
|
inputActiveOptionBorder: opts.inputActiveOptionBorder,
|
|
125230
125246
|
inputActiveOptionForeground: opts.inputActiveOptionForeground,
|
|
125231
125247
|
inputActiveOptionBackground: opts.inputActiveOptionBackground
|
|
@@ -125280,6 +125296,7 @@ ${escape$2(text2)}
|
|
|
125280
125296
|
this.preserveCase = this._register(new PreserveCaseToggle({
|
|
125281
125297
|
appendTitle: appendPreserveCaseLabel,
|
|
125282
125298
|
isChecked: false,
|
|
125299
|
+
hoverLifecycleOptions: options.hoverLifecycleOptions,
|
|
125283
125300
|
...options.toggleStyles
|
|
125284
125301
|
}));
|
|
125285
125302
|
this._register(this.preserveCase.onChange((viaKeyboard) => {
|
|
@@ -126342,11 +126359,11 @@ ${escape$2(text2)}
|
|
|
126342
126359
|
this._matchesCount = document.createElement("div");
|
|
126343
126360
|
this._matchesCount.className = "matchesCount";
|
|
126344
126361
|
this._updateMatchesCount();
|
|
126345
|
-
const
|
|
126362
|
+
const hoverLifecycleOptions = { groupId: "find-widget" };
|
|
126346
126363
|
this._prevBtn = this._register(new SimpleButton({
|
|
126347
126364
|
label: NLS_PREVIOUS_MATCH_BTN_LABEL + this._keybindingLabelFor(FIND_IDS.PreviousMatchFindAction),
|
|
126348
126365
|
icon: findPreviousMatchIcon,
|
|
126349
|
-
|
|
126366
|
+
hoverLifecycleOptions,
|
|
126350
126367
|
onTrigger: () => {
|
|
126351
126368
|
assertReturnsDefined(this._codeEditor.getAction(FIND_IDS.PreviousMatchFindAction)).run().then(void 0, onUnexpectedError);
|
|
126352
126369
|
}
|
|
@@ -126354,7 +126371,7 @@ ${escape$2(text2)}
|
|
|
126354
126371
|
this._nextBtn = this._register(new SimpleButton({
|
|
126355
126372
|
label: NLS_NEXT_MATCH_BTN_LABEL + this._keybindingLabelFor(FIND_IDS.NextMatchFindAction),
|
|
126356
126373
|
icon: findNextMatchIcon,
|
|
126357
|
-
|
|
126374
|
+
hoverLifecycleOptions,
|
|
126358
126375
|
onTrigger: () => {
|
|
126359
126376
|
assertReturnsDefined(this._codeEditor.getAction(FIND_IDS.NextMatchFindAction)).run().then(void 0, onUnexpectedError);
|
|
126360
126377
|
}
|
|
@@ -126372,7 +126389,7 @@ ${escape$2(text2)}
|
|
|
126372
126389
|
icon: findSelectionIcon,
|
|
126373
126390
|
title: NLS_TOGGLE_SELECTION_FIND_TITLE + this._keybindingLabelFor(FIND_IDS.ToggleSearchScopeCommand),
|
|
126374
126391
|
isChecked: false,
|
|
126375
|
-
|
|
126392
|
+
hoverLifecycleOptions,
|
|
126376
126393
|
inputActiveOptionBackground: asCssVariable(inputActiveOptionBackground),
|
|
126377
126394
|
inputActiveOptionBorder: asCssVariable(inputActiveOptionBorder),
|
|
126378
126395
|
inputActiveOptionForeground: asCssVariable(inputActiveOptionForeground)
|
|
@@ -126402,7 +126419,7 @@ ${escape$2(text2)}
|
|
|
126402
126419
|
this._closeBtn = this._register(new SimpleButton({
|
|
126403
126420
|
label: NLS_CLOSE_BTN_LABEL + this._keybindingLabelFor(FIND_IDS.CloseFindWidgetCommand),
|
|
126404
126421
|
icon: widgetClose,
|
|
126405
|
-
|
|
126422
|
+
hoverLifecycleOptions,
|
|
126406
126423
|
onTrigger: () => {
|
|
126407
126424
|
this._state.change({ isRevealed: false, searchScope: null }, false);
|
|
126408
126425
|
},
|
|
@@ -126432,7 +126449,8 @@ ${escape$2(text2)}
|
|
|
126432
126449
|
flexibleMaxHeight: 118,
|
|
126433
126450
|
showHistoryHint: () => showHistoryKeybindingHint(this._keybindingService),
|
|
126434
126451
|
inputBoxStyles: defaultInputBoxStyles,
|
|
126435
|
-
toggleStyles: defaultToggleStyles
|
|
126452
|
+
toggleStyles: defaultToggleStyles,
|
|
126453
|
+
hoverLifecycleOptions
|
|
126436
126454
|
}, this._contextKeyService, true));
|
|
126437
126455
|
this._replaceInput.setPreserveCase(!!this._state.preserveCase);
|
|
126438
126456
|
this._register(this._replaceInput.onKeyDown((e) => this._onReplaceInputKeyDown(e)));
|
|
@@ -126466,11 +126484,10 @@ ${escape$2(text2)}
|
|
|
126466
126484
|
e.preventDefault();
|
|
126467
126485
|
}
|
|
126468
126486
|
}));
|
|
126469
|
-
const replaceHoverDelegate = this._register(createInstantHoverDelegate());
|
|
126470
126487
|
this._replaceBtn = this._register(new SimpleButton({
|
|
126471
126488
|
label: NLS_REPLACE_BTN_LABEL + this._keybindingLabelFor(FIND_IDS.ReplaceOneAction),
|
|
126472
126489
|
icon: findReplaceIcon,
|
|
126473
|
-
|
|
126490
|
+
hoverLifecycleOptions,
|
|
126474
126491
|
onTrigger: () => {
|
|
126475
126492
|
this._controller.replace();
|
|
126476
126493
|
},
|
|
@@ -126487,7 +126504,7 @@ ${escape$2(text2)}
|
|
|
126487
126504
|
this._replaceAllBtn = this._register(new SimpleButton({
|
|
126488
126505
|
label: NLS_REPLACE_ALL_BTN_LABEL + this._keybindingLabelFor(FIND_IDS.ReplaceAllAction),
|
|
126489
126506
|
icon: findReplaceAllIcon,
|
|
126490
|
-
|
|
126507
|
+
hoverLifecycleOptions,
|
|
126491
126508
|
onTrigger: () => {
|
|
126492
126509
|
this._controller.replaceAll();
|
|
126493
126510
|
}
|
|
@@ -126611,7 +126628,10 @@ ${escape$2(text2)}
|
|
|
126611
126628
|
this._domNode.className = className2;
|
|
126612
126629
|
this._domNode.setAttribute("role", "button");
|
|
126613
126630
|
this._domNode.setAttribute("aria-label", this._opts.label);
|
|
126614
|
-
this._register(hoverService.
|
|
126631
|
+
this._register(hoverService.setupDelayedHover(this._domNode, {
|
|
126632
|
+
content: this._opts.label,
|
|
126633
|
+
style: 1
|
|
126634
|
+
}, opts.hoverLifecycleOptions));
|
|
126615
126635
|
this.onclick(this._domNode, (e) => {
|
|
126616
126636
|
this._opts.onTrigger();
|
|
126617
126637
|
e.preventDefault();
|
|
@@ -136753,7 +136773,6 @@ ${escape$2(text2)}
|
|
|
136753
136773
|
return;
|
|
136754
136774
|
}
|
|
136755
136775
|
const emptyEndOfLifeEvent = {
|
|
136756
|
-
id: requestResponseInfo.requestUuid,
|
|
136757
136776
|
opportunityId: requestResponseInfo.requestUuid,
|
|
136758
136777
|
noSuggestionReason: requestResponseInfo.noSuggestionReason ?? "unknown",
|
|
136759
136778
|
extensionId: "vscode-core",
|
|
@@ -151048,6 +151067,7 @@ ${json}
|
|
|
151048
151067
|
constructor(editor2, _markdownRendererService) {
|
|
151049
151068
|
super();
|
|
151050
151069
|
this._markdownRendererService = _markdownRendererService;
|
|
151070
|
+
this.allowEditorOverflow = true;
|
|
151051
151071
|
this._renderDisposeables = this._register(new DisposableStore());
|
|
151052
151072
|
this._editor = editor2;
|
|
151053
151073
|
this._isVisible = false;
|
|
@@ -151165,8 +151185,26 @@ ${json}
|
|
|
151165
151185
|
const nodeHeight = this._hover.containerDomNode.clientHeight;
|
|
151166
151186
|
const top = topForLineNumber - editorScrollTop - (nodeHeight - lineHeight) / 2;
|
|
151167
151187
|
const left = editorLayout.glyphMarginLeft + editorLayout.glyphMarginWidth + (laneOrLine === "lineNo" ? editorLayout.lineNumbersWidth : 0);
|
|
151168
|
-
|
|
151169
|
-
|
|
151188
|
+
const editorHeight = editorLayout.height;
|
|
151189
|
+
const maxTop = editorHeight - nodeHeight;
|
|
151190
|
+
const constrainedTop = Math.max(0, Math.min(Math.round(top), maxTop));
|
|
151191
|
+
const fixedOverflowWidgets = this._editor.getOption(
|
|
151192
|
+
51
|
|
151193
|
+
/* EditorOption.fixedOverflowWidgets */
|
|
151194
|
+
);
|
|
151195
|
+
if (fixedOverflowWidgets) {
|
|
151196
|
+
const editorDomNode = this._editor.getDomNode();
|
|
151197
|
+
if (editorDomNode) {
|
|
151198
|
+
const editorRect = getDomNodePagePosition(editorDomNode);
|
|
151199
|
+
this._hover.containerDomNode.style.position = "fixed";
|
|
151200
|
+
this._hover.containerDomNode.style.left = `${editorRect.left + left}px`;
|
|
151201
|
+
this._hover.containerDomNode.style.top = `${editorRect.top + constrainedTop}px`;
|
|
151202
|
+
}
|
|
151203
|
+
} else {
|
|
151204
|
+
this._hover.containerDomNode.style.position = "absolute";
|
|
151205
|
+
this._hover.containerDomNode.style.left = `${left}px`;
|
|
151206
|
+
this._hover.containerDomNode.style.top = `${constrainedTop}px`;
|
|
151207
|
+
}
|
|
151170
151208
|
this._hover.containerDomNode.style.zIndex = "11";
|
|
151171
151209
|
}
|
|
151172
151210
|
_onMouseLeave(e) {
|
|
@@ -155763,10 +155801,7 @@ ${json}
|
|
|
155763
155801
|
this._buttonHoverContent = this._buttonGenHoverText;
|
|
155764
155802
|
this._disposables.add(getBaseLayerHoverDelegate().setupDelayedHover(this._buttonNode, () => ({
|
|
155765
155803
|
content: this._buttonHoverContent,
|
|
155766
|
-
|
|
155767
|
-
showPointer: true,
|
|
155768
|
-
compact: true
|
|
155769
|
-
}
|
|
155804
|
+
style: 1
|
|
155770
155805
|
})));
|
|
155771
155806
|
this._domNode.appendChild(this._buttonNode);
|
|
155772
155807
|
this._disposables.add(addDisposableListener(this.input, EventType$1.INPUT, () => this._onDidInputChange.fire()));
|
|
@@ -170161,6 +170196,21 @@ ${this._themeCSS}`;
|
|
|
170161
170196
|
this._onRequestLayout = this._register(new Emitter$1());
|
|
170162
170197
|
this._linkHandler = options.linkHandler;
|
|
170163
170198
|
this._target = "targetElements" in options.target ? options.target : new ElementHoverTarget(options.target);
|
|
170199
|
+
if (options.style) {
|
|
170200
|
+
switch (options.style) {
|
|
170201
|
+
case 1: {
|
|
170202
|
+
options.appearance ??= {};
|
|
170203
|
+
options.appearance.compact ??= true;
|
|
170204
|
+
options.appearance.showPointer ??= true;
|
|
170205
|
+
break;
|
|
170206
|
+
}
|
|
170207
|
+
case 2: {
|
|
170208
|
+
options.appearance ??= {};
|
|
170209
|
+
options.appearance.compact ??= true;
|
|
170210
|
+
break;
|
|
170211
|
+
}
|
|
170212
|
+
}
|
|
170213
|
+
}
|
|
170164
170214
|
this._hoverPointer = options.appearance?.showPointer ? $$5("div.workbench-hover-pointer") : void 0;
|
|
170165
170215
|
this._hover = this._register(new HoverWidget$1(!options.appearance?.skipFadeInAnimation));
|
|
170166
170216
|
this._hover.containerDomNode.classList.add("workbench-hover");
|
|
@@ -182570,7 +182620,8 @@ ${graph.toString()}`;
|
|
|
182570
182620
|
])
|
|
182571
182621
|
]);
|
|
182572
182622
|
this.editor = this._register(this._instantiationService.createInstance(DiffEditorWidget, this._elements.editor, {
|
|
182573
|
-
overflowWidgetsDomNode: this._overflowWidgetsDomNode
|
|
182623
|
+
overflowWidgetsDomNode: this._overflowWidgetsDomNode,
|
|
182624
|
+
fixedOverflowWidgets: true
|
|
182574
182625
|
}, {}));
|
|
182575
182626
|
this.isModifedFocused = observableCodeEditor(this.editor.getModifiedEditor()).isFocused;
|
|
182576
182627
|
this.isOriginalFocused = observableCodeEditor(this.editor.getOriginalEditor()).isFocused;
|