@univerjs/uniscript 0.5.2-nightly.202412311606 → 0.5.2-nightly.202501021606
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/lib/cjs/index.js +1 -1
- package/lib/{cssMode-DaTePOS6.js → cssMode-I2dbn2bV.js} +1 -1
- package/lib/es/index.js +187 -194
- package/lib/{freemarker2-BxDubIJs.js → freemarker2-BmTVTbE1.js} +1 -1
- package/lib/{handlebars-D8xEdom8.js → handlebars-8T5_4s2L.js} +1 -1
- package/lib/{html-iC-DtzR5.js → html-BZ-BC92C.js} +1 -1
- package/lib/{htmlMode-CKFr3t8H.js → htmlMode--rbedJ80.js} +1 -1
- package/lib/{index-BpNtGZH6.js → index-CRcFYv_W.js} +32 -32
- package/lib/{javascript-6r5jkIcl.js → javascript-BtJuG4QH.js} +1 -1
- package/lib/{jsonMode-B71GZUw_.js → jsonMode-CNPZjtDs.js} +1 -1
- package/lib/{liquid-BOl1Oh3Q.js → liquid-Bjd01vi-.js} +1 -1
- package/lib/{mdx-Cu0kr1vQ.js → mdx-Dwr6gNxJ.js} +1 -1
- package/lib/{python-DkwiRhxd.js → python-DfXVoIf1.js} +1 -1
- package/lib/{razor-C8e9RLNx.js → razor-SbAzUB-Y.js} +1 -1
- package/lib/{tsMode-9jt4ah6m.js → tsMode-8JbdIqUQ.js} +1 -1
- package/lib/{typescript-CzhpCP1B.js → typescript-B4lBkITC.js} +1 -1
- package/lib/umd/index.js +48 -48
- package/lib/{xml-BNbag5Ux.js → xml-DkTcxjRi.js} +1 -1
- package/lib/{yaml-urFFLwjq.js → yaml-P1NjHn8p.js} +1 -1
- package/package.json +6 -6
package/lib/es/index.js
CHANGED
@@ -1636,8 +1636,8 @@ class I_ extends US {
|
|
1636
1636
|
_ && (Y = o * t.glyphMarginDecorationLaneCount);
|
1637
1637
|
let le = 0, pe = le + Y, be = pe + B, ve = be + U;
|
1638
1638
|
const Re = i - Y - B - U;
|
1639
|
-
let Ae = !1, oi = !1,
|
1640
|
-
h === "inherit" && m ? (Ae = !0, oi = !0) : g === "on" || g === "bounded" ? oi = !0 : g === "wordWrapColumn" && (
|
1639
|
+
let Ae = !1, oi = !1, It = -1;
|
1640
|
+
h === "inherit" && m ? (Ae = !0, oi = !0) : g === "on" || g === "bounded" ? oi = !0 : g === "wordWrapColumn" && (It = f);
|
1641
1641
|
const Ci = I_._computeMinimapLayout({
|
1642
1642
|
outerWidth: i,
|
1643
1643
|
outerHeight: n,
|
@@ -1655,7 +1655,7 @@ class I_ extends US {
|
|
1655
1655
|
}, t.memory || new AG());
|
1656
1656
|
Ci.renderMinimap !== 0 && Ci.minimapLeft === 0 && (le += Ci.minimapWidth, pe += Ci.minimapWidth, be += Ci.minimapWidth, ve += Ci.minimapWidth);
|
1657
1657
|
const jt = Re - Ci.minimapWidth, Yi = Math.max(1, Math.floor((jt - k - 2) / a)), kt = E ? N : 0;
|
1658
|
-
return oi && (
|
1658
|
+
return oi && (It = Math.max(1, Yi), g === "bounded" && (It = Math.min(It, f))), {
|
1659
1659
|
width: i,
|
1660
1660
|
height: n,
|
1661
1661
|
glyphMarginLeft: le,
|
@@ -1671,7 +1671,7 @@ class I_ extends US {
|
|
1671
1671
|
viewportColumn: Yi,
|
1672
1672
|
isWordWrapMinified: Ae,
|
1673
1673
|
isViewportWrapping: oi,
|
1674
|
-
wrappingColumn:
|
1674
|
+
wrappingColumn: It,
|
1675
1675
|
verticalScrollbarWidth: k,
|
1676
1676
|
horizontalScrollbarHeight: H,
|
1677
1677
|
overviewRuler: {
|
@@ -3870,19 +3870,19 @@ var ae;
|
|
3870
3870
|
return B instanceof Array ? B.push(U) : B && B.add(U), U;
|
3871
3871
|
}
|
3872
3872
|
function h(U, B, Y = 100, le = !1, pe = !1, be, ve) {
|
3873
|
-
let Re, Ae, oi,
|
3873
|
+
let Re, Ae, oi, It = 0, Ci;
|
3874
3874
|
const jt = {
|
3875
3875
|
leakWarningThreshold: be,
|
3876
3876
|
onWillAddFirstListener() {
|
3877
3877
|
Re = U((kt) => {
|
3878
|
-
|
3878
|
+
It++, Ae = B(Ae, kt), le && !oi && (Yi.fire(Ae), Ae = void 0), Ci = () => {
|
3879
3879
|
const Xi = Ae;
|
3880
|
-
Ae = void 0, oi = void 0, (!le ||
|
3880
|
+
Ae = void 0, oi = void 0, (!le || It > 1) && Yi.fire(Xi), It = 0;
|
3881
3881
|
}, typeof Y == "number" ? (clearTimeout(oi), oi = setTimeout(Ci, Y)) : oi === void 0 && (oi = 0, queueMicrotask(Ci));
|
3882
3882
|
});
|
3883
3883
|
},
|
3884
3884
|
onWillRemoveListener() {
|
3885
|
-
pe &&
|
3885
|
+
pe && It > 0 && (Ci == null || Ci());
|
3886
3886
|
},
|
3887
3887
|
onDidRemoveLastListener() {
|
3888
3888
|
Ci = void 0, Re.dispose();
|
@@ -8741,7 +8741,7 @@ function pZ() {
|
|
8741
8741
|
IS_ALLOWED_URI: Re
|
8742
8742
|
} = X6, Ae = null;
|
8743
8743
|
const oi = Bt({}, [...K6, ...BN, ...WN, ...HN, ...G6]);
|
8744
|
-
let
|
8744
|
+
let It = null;
|
8745
8745
|
const Ci = Bt({}, [...Z6, ...VN, ...Y6, ...Vy]);
|
8746
8746
|
let jt = Object.seal(hZ(null, {
|
8747
8747
|
tagNameCheck: {
|
@@ -8781,7 +8781,7 @@ function pZ() {
|
|
8781
8781
|
let G = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
8782
8782
|
if (!(Jd && Jd === G)) {
|
8783
8783
|
if ((!G || typeof G != "object") && (G = {}), G = cg(G), Gh = // eslint-disable-next-line unicorn/prefer-includes
|
8784
|
-
EN.indexOf(G.PARSER_MEDIA_TYPE) === -1 ? IN : G.PARSER_MEDIA_TYPE, Rn = Gh === "application/xhtml+xml" ? FN : J0, Ae = Ba(G, "ALLOWED_TAGS") ? Bt({}, G.ALLOWED_TAGS, Rn) : oi,
|
8784
|
+
EN.indexOf(G.PARSER_MEDIA_TYPE) === -1 ? IN : G.PARSER_MEDIA_TYPE, Rn = Gh === "application/xhtml+xml" ? FN : J0, Ae = Ba(G, "ALLOWED_TAGS") ? Bt({}, G.ALLOWED_TAGS, Rn) : oi, It = Ba(G, "ALLOWED_ATTR") ? Bt({}, G.ALLOWED_ATTR, Rn) : Ci, Ta = Ba(G, "ALLOWED_NAMESPACES") ? Bt({}, G.ALLOWED_NAMESPACES, FN) : ui, Rc = Ba(G, "ADD_URI_SAFE_ATTR") ? Bt(
|
8785
8785
|
cg(Ko),
|
8786
8786
|
// eslint-disable-line indent
|
8787
8787
|
G.ADD_URI_SAFE_ATTR,
|
@@ -8795,7 +8795,7 @@ function pZ() {
|
|
8795
8795
|
// eslint-disable-line indent
|
8796
8796
|
Rn
|
8797
8797
|
// eslint-disable-line indent
|
8798
|
-
) : Kh, Qd = Ba(G, "FORBID_CONTENTS") ? Bt({}, G.FORBID_CONTENTS, Rn) : im, Yi = Ba(G, "FORBID_TAGS") ? Bt({}, G.FORBID_TAGS, Rn) : {}, kt = Ba(G, "FORBID_ATTR") ? Bt({}, G.FORBID_ATTR, Rn) : {}, Ll = Ba(G, "USE_PROFILES") ? G.USE_PROFILES : !1, Xi = G.ALLOW_ARIA_ATTR !== !1, Us = G.ALLOW_DATA_ATTR !== !1, qo = G.ALLOW_UNKNOWN_PROTOCOLS || !1, Da = G.ALLOW_SELF_CLOSE_IN_ATTR !== !1, go = G.SAFE_FOR_TEMPLATES || !1, Jr = G.SAFE_FOR_XML !== !1, fo = G.WHOLE_DOCUMENT || !1, po = G.RETURN_DOM || !1, Jp = G.RETURN_DOM_FRAGMENT || !1, em = G.RETURN_TRUSTED_TYPE || !1, vn = G.FORCE_BODY || !1, jh = G.SANITIZE_DOM !== !1, Ty = G.SANITIZE_NAMED_PROPS || !1, tm = G.KEEP_CONTENT !== !1, qh = G.IN_PLACE || !1, Re = G.ALLOWED_URI_REGEXP || gZ, Lr = G.NAMESPACE || wn, jt = G.CUSTOM_ELEMENT_HANDLING || {}, G.CUSTOM_ELEMENT_HANDLING && Ay(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (jt.tagNameCheck = G.CUSTOM_ELEMENT_HANDLING.tagNameCheck), G.CUSTOM_ELEMENT_HANDLING && Ay(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (jt.attributeNameCheck = G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), G.CUSTOM_ELEMENT_HANDLING && typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (jt.allowCustomizedBuiltInElements = G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), go && (Us = !1), Jp && (po = !0), Ll && (Ae = Bt({}, G6),
|
8798
|
+
) : Kh, Qd = Ba(G, "FORBID_CONTENTS") ? Bt({}, G.FORBID_CONTENTS, Rn) : im, Yi = Ba(G, "FORBID_TAGS") ? Bt({}, G.FORBID_TAGS, Rn) : {}, kt = Ba(G, "FORBID_ATTR") ? Bt({}, G.FORBID_ATTR, Rn) : {}, Ll = Ba(G, "USE_PROFILES") ? G.USE_PROFILES : !1, Xi = G.ALLOW_ARIA_ATTR !== !1, Us = G.ALLOW_DATA_ATTR !== !1, qo = G.ALLOW_UNKNOWN_PROTOCOLS || !1, Da = G.ALLOW_SELF_CLOSE_IN_ATTR !== !1, go = G.SAFE_FOR_TEMPLATES || !1, Jr = G.SAFE_FOR_XML !== !1, fo = G.WHOLE_DOCUMENT || !1, po = G.RETURN_DOM || !1, Jp = G.RETURN_DOM_FRAGMENT || !1, em = G.RETURN_TRUSTED_TYPE || !1, vn = G.FORCE_BODY || !1, jh = G.SANITIZE_DOM !== !1, Ty = G.SANITIZE_NAMED_PROPS || !1, tm = G.KEEP_CONTENT !== !1, qh = G.IN_PLACE || !1, Re = G.ALLOWED_URI_REGEXP || gZ, Lr = G.NAMESPACE || wn, jt = G.CUSTOM_ELEMENT_HANDLING || {}, G.CUSTOM_ELEMENT_HANDLING && Ay(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (jt.tagNameCheck = G.CUSTOM_ELEMENT_HANDLING.tagNameCheck), G.CUSTOM_ELEMENT_HANDLING && Ay(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (jt.attributeNameCheck = G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), G.CUSTOM_ELEMENT_HANDLING && typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (jt.allowCustomizedBuiltInElements = G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), go && (Us = !1), Jp && (po = !0), Ll && (Ae = Bt({}, G6), It = [], Ll.html === !0 && (Bt(Ae, K6), Bt(It, Z6)), Ll.svg === !0 && (Bt(Ae, BN), Bt(It, VN), Bt(It, Vy)), Ll.svgFilters === !0 && (Bt(Ae, WN), Bt(It, VN), Bt(It, Vy)), Ll.mathMl === !0 && (Bt(Ae, HN), Bt(It, Y6), Bt(It, Vy))), G.ADD_TAGS && (Ae === oi && (Ae = cg(Ae)), Bt(Ae, G.ADD_TAGS, Rn)), G.ADD_ATTR && (It === Ci && (It = cg(It)), Bt(It, G.ADD_ATTR, Rn)), G.ADD_URI_SAFE_ATTR && Bt(Rc, G.ADD_URI_SAFE_ATTR, Rn), G.FORBID_CONTENTS && (Qd === im && (Qd = cg(Qd)), Bt(Qd, G.FORBID_CONTENTS, Rn)), tm && (Ae["#text"] = !0), fo && Bt(Ae, ["html", "head", "body"]), Ae.table && (Bt(Ae, ["tbody"]), delete Yi.tbody), G.TRUSTED_TYPES_POLICY) {
|
8799
8799
|
if (typeof G.TRUSTED_TYPES_POLICY.createHTML != "function")
|
8800
8800
|
throw Kv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
8801
8801
|
if (typeof G.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -8834,7 +8834,7 @@ function pZ() {
|
|
8834
8834
|
from: ke
|
8835
8835
|
});
|
8836
8836
|
}
|
8837
|
-
if (ke.removeAttribute(G), G === "is" && !
|
8837
|
+
if (ke.removeAttribute(G), G === "is" && !It[G])
|
8838
8838
|
if (po || Jp)
|
8839
8839
|
try {
|
8840
8840
|
J(ke);
|
@@ -8920,7 +8920,7 @@ function pZ() {
|
|
8920
8920
|
return !1;
|
8921
8921
|
if (!(Us && !kt[ke] && bo(Y, ke))) {
|
8922
8922
|
if (!(Xi && bo(le, ke))) {
|
8923
|
-
if (!
|
8923
|
+
if (!It[ke] || kt[ke]) {
|
8924
8924
|
if (
|
8925
8925
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
8926
8926
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
@@ -8955,7 +8955,7 @@ function pZ() {
|
|
8955
8955
|
attrName: "",
|
8956
8956
|
attrValue: "",
|
8957
8957
|
keepAttr: !0,
|
8958
|
-
allowedAttributes:
|
8958
|
+
allowedAttributes: It
|
8959
8959
|
};
|
8960
8960
|
let ji = ke.length;
|
8961
8961
|
for (; ji--; ) {
|
@@ -9042,7 +9042,7 @@ function pZ() {
|
|
9042
9042
|
js.appendChild(ke.firstChild);
|
9043
9043
|
else
|
9044
9044
|
js = ke;
|
9045
|
-
return (
|
9045
|
+
return (It.shadowroot || It.shadowrootmode) && (js = H.call(i, js, !0)), js;
|
9046
9046
|
}
|
9047
9047
|
let Go = fo ? ke.outerHTML : ke.innerHTML;
|
9048
9048
|
return fo && Ae["!doctype"] && ke.ownerDocument && ke.ownerDocument.doctype && ke.ownerDocument.doctype.name && bo(fZ, ke.ownerDocument.doctype.name) && (Go = "<!DOCTYPE " + ke.ownerDocument.doctype.name + `>
|
@@ -9468,15 +9468,15 @@ function XD(s) {
|
|
9468
9468
|
function _h(s, e) {
|
9469
9469
|
const t = Le(s), i = t.document;
|
9470
9470
|
if (s !== i.body)
|
9471
|
-
return new
|
9471
|
+
return new Et(s.clientWidth, s.clientHeight);
|
9472
9472
|
if (gl && (t != null && t.visualViewport))
|
9473
|
-
return new
|
9473
|
+
return new Et(t.visualViewport.width, t.visualViewport.height);
|
9474
9474
|
if (t != null && t.innerWidth && t.innerHeight)
|
9475
|
-
return new
|
9475
|
+
return new Et(t.innerWidth, t.innerHeight);
|
9476
9476
|
if (i.body && i.body.clientWidth && i.body.clientHeight)
|
9477
|
-
return new
|
9477
|
+
return new Et(i.body.clientWidth, i.body.clientHeight);
|
9478
9478
|
if (i.documentElement && i.documentElement.clientWidth && i.documentElement.clientHeight)
|
9479
|
-
return new
|
9479
|
+
return new Et(i.documentElement.clientWidth, i.documentElement.clientHeight);
|
9480
9480
|
throw new Error("Unable to figure out browser width and height");
|
9481
9481
|
}
|
9482
9482
|
class Fi {
|
@@ -9544,7 +9544,7 @@ const Ag = class Ag {
|
|
9544
9544
|
}
|
9545
9545
|
};
|
9546
9546
|
Ag.None = new Ag(0, 0);
|
9547
|
-
let
|
9547
|
+
let Et = Ag;
|
9548
9548
|
function SZ(s) {
|
9549
9549
|
let e = s.offsetParent, t = s.offsetTop, i = s.offsetLeft;
|
9550
9550
|
for (; (s = s.parentNode) !== null && s !== s.ownerDocument.body && s !== s.ownerDocument.documentElement; ) {
|
@@ -18213,7 +18213,7 @@ let Z = (gi = class {
|
|
18213
18213
|
}
|
18214
18214
|
})(e.CSS || (e.CSS = {}));
|
18215
18215
|
})(s.Format || (s.Format = {}));
|
18216
|
-
})(Z
|
18216
|
+
})(Z);
|
18217
18217
|
function aY(s) {
|
18218
18218
|
const e = [];
|
18219
18219
|
for (const t of s) {
|
@@ -23943,15 +23943,8 @@ let os = {};
|
|
23943
23943
|
if (O === 0)
|
23944
23944
|
return "";
|
23945
23945
|
let $ = 0;
|
23946
|
-
for (; $ < O; )
|
23947
|
-
|
23948
|
-
if (j === R && !A)
|
23949
|
-
$++;
|
23950
|
-
else if (j !== R && A)
|
23951
|
-
$++;
|
23952
|
-
else
|
23953
|
-
break;
|
23954
|
-
}
|
23946
|
+
for (; $ < O && (gt.charAt(O - $ - 1) === R && !A); )
|
23947
|
+
$++;
|
23955
23948
|
return gt.slice(0, O - $);
|
23956
23949
|
}
|
23957
23950
|
function b(gt, R) {
|
@@ -24494,10 +24487,10 @@ ${Pt}` : Pt;
|
|
24494
24487
|
paragraph: Re,
|
24495
24488
|
table: f,
|
24496
24489
|
text: U
|
24497
|
-
},
|
24490
|
+
}, It = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", pe).getRegex(), Ci = {
|
24498
24491
|
...oi,
|
24499
|
-
table:
|
24500
|
-
paragraph: h(V).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table",
|
24492
|
+
table: It,
|
24493
|
+
paragraph: h(V).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", It).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", pe).getRegex()
|
24501
24494
|
}, jt = {
|
24502
24495
|
...oi,
|
24503
24496
|
html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", be).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
@@ -29645,7 +29638,7 @@ class NT {
|
|
29645
29638
|
}
|
29646
29639
|
(function(s) {
|
29647
29640
|
s.Observer = NT;
|
29648
|
-
})(Be
|
29641
|
+
})(Be);
|
29649
29642
|
function Br(s) {
|
29650
29643
|
return new yme(s);
|
29651
29644
|
}
|
@@ -29667,7 +29660,7 @@ class yme extends wX {
|
|
29667
29660
|
return `Const: ${this.value}`;
|
29668
29661
|
}
|
29669
29662
|
}
|
29670
|
-
function
|
29663
|
+
function Nt(...s) {
|
29671
29664
|
let e, t, i;
|
29672
29665
|
return s.length === 3 ? [e, t, i] = s : [t, i] = s, new Ru(new ns(e, void 0, i), t, i, () => Ru.globalTransaction, br);
|
29673
29666
|
}
|
@@ -29717,7 +29710,7 @@ class Ru extends yv {
|
|
29717
29710
|
}
|
29718
29711
|
}
|
29719
29712
|
s.batchEventsGlobally = e;
|
29720
|
-
})(
|
29713
|
+
})(Nt);
|
29721
29714
|
function Un(s, e) {
|
29722
29715
|
return new kme(s, e);
|
29723
29716
|
}
|
@@ -30003,7 +29996,7 @@ jC.instanceCount = 0;
|
|
30003
29996
|
let C2 = jC;
|
30004
29997
|
class XH {
|
30005
29998
|
constructor(e, t) {
|
30006
|
-
this._value =
|
29999
|
+
this._value = Nt(this, e, () => t()), this.onDidChange = ae.fromObservable(this._value);
|
30007
30000
|
}
|
30008
30001
|
get languageId() {
|
30009
30002
|
return this._value.get();
|
@@ -33792,7 +33785,7 @@ class tV extends OX {
|
|
33792
33785
|
left: n.left,
|
33793
33786
|
height: n.height + 2 * i,
|
33794
33787
|
width: n.width
|
33795
|
-
}, r = this.submenuContainer.getBoundingClientRect(), a = Le(this.element), { top: l, left: c } = this.calculateSubmenuMenuLayout(new
|
33788
|
+
}, r = this.submenuContainer.getBoundingClientRect(), a = Le(this.element), { top: l, left: c } = this.calculateSubmenuMenuLayout(new Et(a.innerWidth, a.innerHeight), Et.lift(r), o, this.expandDirection);
|
33796
33789
|
this.submenuContainer.style.left = `${c - r.left}px`, this.submenuContainer.style.top = `${l - r.top}px`, this.submenuDisposables.add(z(this.submenuContainer, se.KEY_UP, (d) => {
|
33797
33790
|
new Ht(d).equals(
|
33798
33791
|
15
|
@@ -73170,7 +73163,7 @@ let hF = class extends F {
|
|
73170
73163
|
/* EditorOption.lineHeight */
|
73171
73164
|
)) && h.schedule();
|
73172
73165
|
}));
|
73173
|
-
const g = this._diffModel.map((w) => w ?
|
73166
|
+
const g = this._diffModel.map((w) => w ? Nt(
|
73174
73167
|
this,
|
73175
73168
|
w.model.original.onDidChangeTokens,
|
73176
73169
|
() => w.model.original.tokenization.backgroundTokenizationState === 2
|
@@ -73197,7 +73190,7 @@ let hF = class extends F {
|
|
73197
73190
|
}
|
73198
73191
|
const b = this._register(new q());
|
73199
73192
|
this.viewZones = Ph(this, (w, C) => {
|
73200
|
-
var ve, Re, Ae, oi,
|
73193
|
+
var ve, Re, Ae, oi, It, Ci, jt, Yi;
|
73201
73194
|
b.clear();
|
73202
73195
|
const S = f.read(w) || [], y = [], k = [], E = this._modifiedTopPadding.read(w);
|
73203
73196
|
E > 0 && k.push({
|
@@ -73231,7 +73224,7 @@ let hF = class extends F {
|
|
73231
73224
|
const B = this._editors.modified.getOption(
|
73232
73225
|
67
|
73233
73226
|
/* EditorOption.lineHeight */
|
73234
|
-
), Y = (Ae = this._diffModel.read(w)) == null ? void 0 : Ae.movedTextToCompare.read(w), le = (
|
73227
|
+
), Y = (Ae = this._diffModel.read(w)) == null ? void 0 : Ae.movedTextToCompare.read(w), le = (It = (oi = this._editors.original.getModel()) == null ? void 0 : oi.mightContainNonBasicASCII()) != null ? It : !1, pe = (jt = (Ci = this._editors.original.getModel()) == null ? void 0 : Ci.mightContainRTL()) != null ? jt : !1, be = KW.fromEditor(this._editors.modified);
|
73235
73228
|
for (const kt of S)
|
73236
73229
|
if (kt.diff && !H && (!this._options.useTrueInlineDiffRendering.read(w) || !GW(kt.diff))) {
|
73237
73230
|
if (!kt.originalRange.isEmpty) {
|
@@ -73346,10 +73339,10 @@ let hF = class extends F {
|
|
73346
73339
|
w.scrollLeftChanged && !v && (v = !0, this._editors.modified.setScrollLeft(w.scrollLeft), v = !1);
|
73347
73340
|
})), this._register(this._editors.modified.onDidScrollChange((w) => {
|
73348
73341
|
w.scrollLeftChanged && !v && (v = !0, this._editors.original.setScrollLeft(w.scrollLeft), v = !1);
|
73349
|
-
})), this._originalScrollTop =
|
73342
|
+
})), this._originalScrollTop = Nt(this._editors.original.onDidScrollChange, () => (
|
73350
73343
|
/** @description original.getScrollTop */
|
73351
73344
|
this._editors.original.getScrollTop()
|
73352
|
-
)), this._modifiedScrollTop =
|
73345
|
+
)), this._modifiedScrollTop = Nt(this._editors.modified.onDidScrollChange, () => (
|
73353
73346
|
/** @description modified.getScrollTop */
|
73354
73347
|
this._editors.modified.getScrollTop()
|
73355
73348
|
)), this._register(Be((w) => {
|
@@ -73477,7 +73470,7 @@ function Z$(s) {
|
|
73477
73470
|
}
|
73478
73471
|
const XC = class XC extends F {
|
73479
73472
|
constructor(e, t, i, n, o) {
|
73480
|
-
super(), this._rootElement = e, this._diffModel = t, this._originalEditorLayoutInfo = i, this._modifiedEditorLayoutInfo = n, this._editors = o, this._originalScrollTop =
|
73473
|
+
super(), this._rootElement = e, this._diffModel = t, this._originalEditorLayoutInfo = i, this._modifiedEditorLayoutInfo = n, this._editors = o, this._originalScrollTop = Nt(this, this._editors.original.onDidScrollChange, () => this._editors.original.getScrollTop()), this._modifiedScrollTop = Nt(this, this._editors.modified.onDidScrollChange, () => this._editors.modified.getScrollTop()), this._viewZonesChanged = Un("onDidChangeViewZones", this._editors.modified.onDidChangeViewZones), this.width = Ze(this, 0), this._modifiedViewZonesChangedSignal = Un("modified.onDidChangeViewZones", this._editors.modified.onDidChangeViewZones), this._originalViewZonesChangedSignal = Un("original.onDidChangeViewZones", this._editors.original.onDidChangeViewZones), this._state = Ph(this, (d, u) => {
|
73481
73474
|
var k;
|
73482
73475
|
this._element.replaceChildren();
|
73483
73476
|
const h = this._diffModel.read(d), g = (k = h == null ? void 0 : h.diff.read(d)) == null ? void 0 : k.movedTexts;
|
@@ -73590,7 +73583,7 @@ class Y$ extends WW {
|
|
73590
73583
|
et("div.text-content@textContent"),
|
73591
73584
|
et("div.action-bar@actionBar")
|
73592
73585
|
]), r.root.appendChild(this._nodes.root);
|
73593
|
-
const a =
|
73586
|
+
const a = Nt(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
|
73594
73587
|
this._register(Fd(this._nodes.root, {
|
73595
73588
|
paddingRight: a.map((h) => h.verticalScrollbarWidth)
|
73596
73589
|
}));
|
@@ -73713,13 +73706,13 @@ class BJ extends F {
|
|
73713
73706
|
}
|
73714
73707
|
class Zxe extends F {
|
73715
73708
|
constructor(e, t, i) {
|
73716
|
-
super(), this._editor = e, this._domNode = t, this.itemProvider = i, this.scrollTop =
|
73709
|
+
super(), this._editor = e, this._domNode = t, this.itemProvider = i, this.scrollTop = Nt(this, this._editor.onDidScrollChange, (r) => (
|
73717
73710
|
/** @description editor.onDidScrollChange */
|
73718
73711
|
this._editor.getScrollTop()
|
73719
73712
|
)), this.isScrollTopZero = this.scrollTop.map((r) => (
|
73720
73713
|
/** @description isScrollTopZero */
|
73721
73714
|
r === 0
|
73722
|
-
)), this.modelAttached =
|
73715
|
+
)), this.modelAttached = Nt(this, this._editor.onDidChangeModel, (r) => (
|
73723
73716
|
/** @description editor.onDidChangeModel */
|
73724
73717
|
this._editor.hasModel()
|
73725
73718
|
)), this.editorOnDidChangeViewZones = Un("onDidChangeViewZones", this._editor.onDidChangeViewZones), this.editorOnDidContentSizeChange = Un("onDidContentSizeChange", this._editor.onDidContentSizeChange), this.domNodeSizeChanged = kv("domNodeSizeChanged"), this.views = /* @__PURE__ */ new Map(), this._domNode.className = "gutter monaco-editor";
|
@@ -74051,7 +74044,7 @@ var VJ = function(s, e, t, i) {
|
|
74051
74044
|
const nA = [], S0 = 35;
|
74052
74045
|
let gF = class extends F {
|
74053
74046
|
constructor(e, t, i, n, o, r, a, l, c) {
|
74054
|
-
super(), this._diffModel = t, this._editors = i, this._options = n, this._sashLayout = o, this._boundarySashes = r, this._instantiationService = a, this._contextKeyService = l, this._menuService = c, this._menu = this._register(this._menuService.createMenu(me.DiffEditorHunkToolbar, this._contextKeyService)), this._actions =
|
74047
|
+
super(), this._diffModel = t, this._editors = i, this._options = n, this._sashLayout = o, this._boundarySashes = r, this._instantiationService = a, this._contextKeyService = l, this._menuService = c, this._menu = this._register(this._menuService.createMenu(me.DiffEditorHunkToolbar, this._contextKeyService)), this._actions = Nt(this, this._menu.onDidChange, () => this._menu.getActions()), this._hasActions = this._actions.map((d) => d.length > 0), this._showSash = we(this, (d) => this._options.renderSideBySide.read(d) && this._hasActions.read(d)), this.width = we(this, (d) => this._hasActions.read(d) ? S0 : 0), this.elements = et("div.gutter@gutter", { style: { position: "absolute", height: "100%", width: S0 + "px" } }, []), this._currentDiff = we(this, (d) => {
|
74055
74048
|
var f;
|
74056
74049
|
const u = this._diffModel.read(d);
|
74057
74050
|
if (!u)
|
@@ -74211,10 +74204,10 @@ const fu = class fu extends F {
|
|
74211
74204
|
}
|
74212
74205
|
constructor(e) {
|
74213
74206
|
var t, i, n;
|
74214
|
-
super(), this.editor = e, this._updateCounter = 0, this._currentTransaction = void 0, this._model = Ze(this, this.editor.getModel()), this.model = this._model, this.isReadonly =
|
74207
|
+
super(), this.editor = e, this._updateCounter = 0, this._currentTransaction = void 0, this._model = Ze(this, this.editor.getModel()), this.model = this._model, this.isReadonly = Nt(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
74215
74208
|
92
|
74216
74209
|
/* EditorOption.readOnly */
|
74217
|
-
)), this._versionId = w2({ owner: this, lazy: !0 }, (i = (t = this.editor.getModel()) == null ? void 0 : t.getVersionId()) != null ? i : null), this.versionId = this._versionId, this._selections = w2({ owner: this, equalsFn: _2(Ak(_e.selectionsEqual)), lazy: !0 }, (n = this.editor.getSelections()) != null ? n : null), this.selections = this._selections, this.isFocused =
|
74210
|
+
)), this._versionId = w2({ owner: this, lazy: !0 }, (i = (t = this.editor.getModel()) == null ? void 0 : t.getVersionId()) != null ? i : null), this.versionId = this._versionId, this._selections = w2({ owner: this, equalsFn: _2(Ak(_e.selectionsEqual)), lazy: !0 }, (n = this.editor.getSelections()) != null ? n : null), this.selections = this._selections, this.isFocused = Nt(this, (o) => {
|
74218
74211
|
const r = this.editor.onDidFocusEditorWidget(o), a = this.editor.onDidBlurEditorWidget(o);
|
74219
74212
|
return {
|
74220
74213
|
dispose() {
|
@@ -74233,7 +74226,7 @@ const fu = class fu extends F {
|
|
74233
74226
|
}), this.cursorSelection = rr({ owner: this, equalsFn: _2(_e.selectionsEqual) }, (o) => {
|
74234
74227
|
var r, a;
|
74235
74228
|
return (a = (r = this.selections.read(o)) == null ? void 0 : r[0]) != null ? a : null;
|
74236
|
-
}), this.onDidType = kv(this), this.scrollTop =
|
74229
|
+
}), this.onDidType = kv(this), this.scrollTop = Nt(this.editor.onDidScrollChange, () => this.editor.getScrollTop()), this.scrollLeft = Nt(this.editor.onDidScrollChange, () => this.editor.getScrollLeft()), this.layoutInfo = Nt(this.editor.onDidLayoutChange, () => this.editor.getLayoutInfo()), this.layoutInfoContentLeft = this.layoutInfo.map((o) => o.contentLeft), this.layoutInfoDecorationsLeft = this.layoutInfo.map((o) => o.decorationsLeft), this.contentWidth = Nt(this.editor.onDidContentSizeChange, () => this.editor.getContentWidth()), this._overlayWidgetCounter = 0, this._register(this.editor.onBeginUpdate(() => this._beginUpdate())), this._register(this.editor.onEndUpdate(() => this._endUpdate())), this._register(this.editor.onDidChangeModel(() => {
|
74237
74230
|
this._beginUpdate();
|
74238
74231
|
try {
|
74239
74232
|
this._model.set(this.editor.getModel(), this._currentTransaction), this._forceUpdate();
|
@@ -74282,7 +74275,7 @@ const fu = class fu extends F {
|
|
74282
74275
|
}
|
74283
74276
|
}
|
74284
74277
|
getOption(e) {
|
74285
|
-
return
|
74278
|
+
return Nt(this, (t) => this.editor.onDidChangeConfiguration((i) => {
|
74286
74279
|
i.hasChanged(e) && t(void 0);
|
74287
74280
|
}), () => this.editor.getOption(e));
|
74288
74281
|
}
|
@@ -74622,7 +74615,7 @@ var tke = function(s, e, t, i) {
|
|
74622
74615
|
let aS = (vd = class extends F {
|
74623
74616
|
constructor(e, t, i, n, o, r, a) {
|
74624
74617
|
super(), this._editors = e, this._rootElement = t, this._diffModel = i, this._rootWidth = n, this._rootHeight = o, this._modifiedEditorLayoutInfo = r, this._themeService = a, this.width = Pa.ENTIRE_DIFF_OVERVIEW_WIDTH;
|
74625
|
-
const l =
|
74618
|
+
const l = Nt(this._themeService.onDidColorThemeChange, () => this._themeService.getColorTheme()), c = we((h) => {
|
74626
74619
|
const g = l.read(h), f = g.getColor(She) || (g.getColor(whe) || WP).transparent(2), m = g.getColor(yhe) || (g.getColor(Che) || HP).transparent(2);
|
74627
74620
|
return { insertColor: f, removeColor: m };
|
74628
74621
|
}), d = yt(document.createElement("div"));
|
@@ -74790,19 +74783,19 @@ let _F = class extends F {
|
|
74790
74783
|
return this._onDidContentSizeChange.event;
|
74791
74784
|
}
|
74792
74785
|
constructor(e, t, i, n, o, r, a) {
|
74793
|
-
super(), this.originalEditorElement = e, this.modifiedEditorElement = t, this._options = i, this._argCodeEditorWidgetOptions = n, this._createInnerEditor = o, this._instantiationService = r, this._keybindingService = a, this.original = this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(), this._argCodeEditorWidgetOptions.originalEditor || {})), this.modified = this._register(this._createRightHandSideEditor(this._options.editorOptions.get(), this._argCodeEditorWidgetOptions.modifiedEditor || {})), this._onDidContentSizeChange = this._register(new P()), this.modifiedScrollTop =
|
74786
|
+
super(), this.originalEditorElement = e, this.modifiedEditorElement = t, this._options = i, this._argCodeEditorWidgetOptions = n, this._createInnerEditor = o, this._instantiationService = r, this._keybindingService = a, this.original = this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(), this._argCodeEditorWidgetOptions.originalEditor || {})), this.modified = this._register(this._createRightHandSideEditor(this._options.editorOptions.get(), this._argCodeEditorWidgetOptions.modifiedEditor || {})), this._onDidContentSizeChange = this._register(new P()), this.modifiedScrollTop = Nt(this, this.modified.onDidScrollChange, () => (
|
74794
74787
|
/** @description modified.getScrollTop */
|
74795
74788
|
this.modified.getScrollTop()
|
74796
|
-
)), this.modifiedScrollHeight =
|
74789
|
+
)), this.modifiedScrollHeight = Nt(this, this.modified.onDidScrollChange, () => (
|
74797
74790
|
/** @description modified.getScrollHeight */
|
74798
74791
|
this.modified.getScrollHeight()
|
74799
|
-
)), this.modifiedObs = To(this.modified), this.originalObs = To(this.original), this.modifiedModel = this.modifiedObs.model, this.modifiedSelections =
|
74792
|
+
)), this.modifiedObs = To(this.modified), this.originalObs = To(this.original), this.modifiedModel = this.modifiedObs.model, this.modifiedSelections = Nt(this, this.modified.onDidChangeCursorSelection, () => {
|
74800
74793
|
var l;
|
74801
74794
|
return (l = this.modified.getSelections()) != null ? l : [];
|
74802
74795
|
}), this.modifiedCursor = rr({ owner: this, equalsFn: M.equals }, (l) => {
|
74803
74796
|
var c, d;
|
74804
74797
|
return (d = (c = this.modifiedSelections.read(l)[0]) == null ? void 0 : c.getPosition()) != null ? d : new M(1, 1);
|
74805
|
-
}), this.originalCursor =
|
74798
|
+
}), this.originalCursor = Nt(this, this.original.onDidChangeCursorPosition, () => {
|
74806
74799
|
var l;
|
74807
74800
|
return (l = this.original.getPosition()) != null ? l : new M(1, 1);
|
74808
74801
|
}), this._argCodeEditorWidgetOptions = null, this._register(ly({
|
@@ -74977,7 +74970,7 @@ let vF = class {
|
|
74977
74970
|
return this._options;
|
74978
74971
|
}
|
74979
74972
|
constructor(e, t) {
|
74980
|
-
this._accessibilityService = t, this._diffEditorWidth = Ze(this, 0), this._screenReaderMode =
|
74973
|
+
this._accessibilityService = t, this._diffEditorWidth = Ze(this, 0), this._screenReaderMode = Nt(this, this._accessibilityService.onDidChangeScreenReaderOptimized, () => this._accessibilityService.isScreenReaderOptimized()), this.couldShowInlineViewBecauseOfSize = we(this, (n) => this._options.read(n).renderSideBySide && this._diffEditorWidth.read(n) <= this._options.read(n).renderSideBySideInlineBreakpoint), this.renderOverviewRuler = we(this, (n) => this._options.read(n).renderOverviewRuler), this.renderSideBySide = we(this, (n) => this.compactMode.read(n) && this.shouldRenderInlineViewInSmartMode.read(n) ? !1 : this._options.read(n).renderSideBySide && !(this._options.read(n).useInlineViewWhenSpaceIsLimited && this.couldShowInlineViewBecauseOfSize.read(n) && !this._screenReaderMode.read(n))), this.readOnly = we(this, (n) => this._options.read(n).readOnly), this.shouldRenderOldRevertArrows = we(this, (n) => !(!this._options.read(n).renderMarginRevertIcon || !this.renderSideBySide.read(n) || this.readOnly.read(n) || this.shouldRenderGutterMenu.read(n))), this.shouldRenderGutterMenu = we(this, (n) => this._options.read(n).renderGutterMenu), this.renderIndicators = we(this, (n) => this._options.read(n).renderIndicators), this.enableSplitViewResizing = we(this, (n) => this._options.read(n).enableSplitViewResizing), this.splitViewDefaultRatio = we(this, (n) => this._options.read(n).splitViewDefaultRatio), this.ignoreTrimWhitespace = we(this, (n) => this._options.read(n).ignoreTrimWhitespace), this.maxComputationTimeMs = we(this, (n) => this._options.read(n).maxComputationTime), this.showMoves = we(this, (n) => this._options.read(n).experimental.showMoves && this.renderSideBySide.read(n)), this.isInEmbeddedEditor = we(this, (n) => this._options.read(n).isInEmbeddedEditor), this.diffWordWrap = we(this, (n) => this._options.read(n).diffWordWrap), this.originalEditable = we(this, (n) => this._options.read(n).originalEditable), this.diffCodeLens = we(this, (n) => this._options.read(n).diffCodeLens), this.accessibilityVerbose = we(this, (n) => this._options.read(n).accessibilityVerbose), this.diffAlgorithm = we(this, (n) => this._options.read(n).diffAlgorithm), this.showEmptyDecorations = we(this, (n) => this._options.read(n).experimental.showEmptyDecorations), this.onlyShowAccessibleDiffViewer = we(this, (n) => this._options.read(n).onlyShowAccessibleDiffViewer), this.compactMode = we(this, (n) => this._options.read(n).compactMode), this.trueInlineDiffRenderingEnabled = we(this, (n) => this._options.read(n).experimental.useTrueInlineView), this.useTrueInlineDiffRendering = we(this, (n) => !this.renderSideBySide.read(n) && this.trueInlineDiffRenderingEnabled.read(n)), this.hideUnchangedRegions = we(this, (n) => this._options.read(n).hideUnchangedRegions.enabled), this.hideUnchangedRegionsRevealLineCount = we(this, (n) => this._options.read(n).hideUnchangedRegions.revealLineCount), this.hideUnchangedRegionsContextLineCount = we(this, (n) => this._options.read(n).hideUnchangedRegions.contextLineCount), this.hideUnchangedRegionsMinimumLineCount = we(this, (n) => this._options.read(n).hideUnchangedRegions.minimumLineCount), this._model = Ze(this, void 0), this.shouldRenderInlineViewInSmartMode = this._model.map(this, (n) => Ime(this, (o) => {
|
74981
74974
|
const r = n == null ? void 0 : n.diff.read(o);
|
74982
74975
|
return r ? lke(r, this.trueInlineDiffRenderingEnabled.read(o)) : void 0;
|
74983
74976
|
})).flatten().map(this, (n) => !!n), this.inlineViewHideOriginalLineNumbers = this.compactMode;
|
@@ -75109,12 +75102,12 @@ let Bd = class extends bF {
|
|
75109
75102
|
const E = this._sash.read(S), N = this._gutter.read(S), H = (be = N == null ? void 0 : N.width.read(S)) != null ? be : 0, W = (Re = (ve = this._overviewRulerPart.read(S)) == null ? void 0 : ve.width) != null ? Re : 0;
|
75110
75103
|
let V, U, B, Y, le;
|
75111
75104
|
if (!!E) {
|
75112
|
-
const
|
75113
|
-
V = 0, U =
|
75105
|
+
const It = E.sashLeft.read(S), Ci = (oi = (Ae = this._movedBlocksLinesPart.read(S)) == null ? void 0 : Ae.width.read(S)) != null ? oi : 0;
|
75106
|
+
V = 0, U = It - H - Ci, le = It - H, B = It, Y = y - B - W;
|
75114
75107
|
} else {
|
75115
75108
|
le = 0;
|
75116
|
-
const
|
75117
|
-
V = H,
|
75109
|
+
const It = this._options.inlineViewHideOriginalLineNumbers.read(S);
|
75110
|
+
V = H, It ? U = 0 : U = Math.max(5, this._editors.originalObs.layoutInfoDecorationsLeft.read(S)), B = H + U, Y = y - B - W;
|
75118
75111
|
}
|
75119
75112
|
return this.elements.original.style.left = V + "px", this.elements.original.style.width = U + "px", this._editors.original.layout({ width: U, height: k }, !0), N == null || N.layout(le), this.elements.modified.style.left = B + "px", this.elements.modified.style.width = Y + "px", this._editors.modified.layout({ width: Y, height: k }, !0), {
|
75120
75113
|
modifiedEditor: this._editors.modified.getLayoutInfo(),
|
@@ -75264,7 +75257,7 @@ let Bd = class extends bF {
|
|
75264
75257
|
!e && i && this._accessibleDiffViewer.get().close(), this._diffModel.get() !== (e == null ? void 0 : e.object) && mp(t, (n) => {
|
75265
75258
|
var a;
|
75266
75259
|
const o = e == null ? void 0 : e.object;
|
75267
|
-
|
75260
|
+
Nt.batchEventsGlobally(n, () => {
|
75268
75261
|
this._editors.original.setModel(o ? o.model.original : null), this._editors.modified.setModel(o ? o.model.modified : null);
|
75269
75262
|
});
|
75270
75263
|
const r = (a = this._diffModelSrc.get()) == null ? void 0 : a.createNewRef(this);
|
@@ -75821,10 +75814,10 @@ let SF = class extends F {
|
|
75821
75814
|
]), this._sizeObserver = this._register(new AJ(this._element, void 0)), this._objectPool = this._register(new _ke((l) => {
|
75822
75815
|
const c = this._instantiationService.createInstance(WL, this._scrollableElements.content, this._scrollableElements.overflowWidgetsDomNode, this._workbenchUIElementFactory);
|
75823
75816
|
return c.setData(l), c;
|
75824
|
-
})), this.scrollTop =
|
75817
|
+
})), this.scrollTop = Nt(this, this._scrollableElement.onScroll, () => (
|
75825
75818
|
/** @description scrollTop */
|
75826
75819
|
this._scrollableElement.getScrollPosition().scrollTop
|
75827
|
-
)), this.scrollLeft =
|
75820
|
+
)), this.scrollLeft = Nt(this, this._scrollableElement.onScroll, () => (
|
75828
75821
|
/** @description scrollLeft */
|
75829
75822
|
this._scrollableElement.getScrollPosition().scrollLeft
|
75830
75823
|
)), this._viewItemsInfo = Ph(this, (l, c) => {
|
@@ -84357,7 +84350,7 @@ function ote(s, e, t, i, n) {
|
|
84357
84350
|
67
|
84358
84351
|
/* EditorOption.lineHeight */
|
84359
84352
|
) + 8;
|
84360
|
-
n.setMinimumDimensions(new
|
84353
|
+
n.setMinimumDimensions(new Et(302, h));
|
84361
84354
|
}
|
84362
84355
|
const o = new q(), r = i[0], a = e.getModel(), l = r.model, c = o.add(new ODe(n.fragment, l, e.getOption(
|
84363
84356
|
144
|
@@ -84416,7 +84409,7 @@ var p9 = function(s, e, t, i) {
|
|
84416
84409
|
}, Ex;
|
84417
84410
|
let ZF = class extends F {
|
84418
84411
|
constructor(e, t, i) {
|
84419
|
-
super(), this.editor = e, this.model = t, this.instantiationService = i, this.alwaysShowToolbar =
|
84412
|
+
super(), this.editor = e, this.model = t, this.instantiationService = i, this.alwaysShowToolbar = Nt(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
84420
84413
|
62
|
84421
84414
|
/* EditorOption.inlineSuggest */
|
84422
84415
|
).showToolbar === "always"), this.sessionPosition = void 0, this.position = we(this, (n) => {
|
@@ -84668,7 +84661,7 @@ class ute extends F {
|
|
84668
84661
|
}
|
84669
84662
|
class m9 {
|
84670
84663
|
constructor() {
|
84671
|
-
this._onDidWillResize = new P(), this.onDidWillResize = this._onDidWillResize.event, this._onDidResize = new P(), this.onDidResize = this._onDidResize.event, this._sashListener = new q(), this._size = new
|
84664
|
+
this._onDidWillResize = new P(), this.onDidWillResize = this._onDidWillResize.event, this._onDidResize = new P(), this.onDidResize = this._onDidResize.event, this._sashListener = new q(), this._size = new Et(0, 0), this._minSize = new Et(0, 0), this._maxSize = new Et(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER), this.domNode = document.createElement("div"), this._eastSash = new Qn(this.domNode, { getVerticalSashLeft: () => this._size.width }, {
|
84672
84665
|
orientation: 0
|
84673
84666
|
/* Orientation.VERTICAL */
|
84674
84667
|
}), this._westSash = new Qn(this.domNode, { getVerticalSashLeft: () => 0 }, {
|
@@ -84703,8 +84696,8 @@ class m9 {
|
|
84703
84696
|
layout(e = this.size.height, t = this.size.width) {
|
84704
84697
|
const { height: i, width: n } = this._minSize, { height: o, width: r } = this._maxSize;
|
84705
84698
|
e = Math.max(i, Math.min(o, e)), t = Math.max(n, Math.min(r, t));
|
84706
|
-
const a = new
|
84707
|
-
|
84699
|
+
const a = new Et(t, e);
|
84700
|
+
Et.equals(a, this._size) || (this.domNode.style.height = e + "px", this.domNode.style.width = t + "px", this._size = a, this._northSash.layout(), this._eastSash.layout(), this._southSash.layout(), this._westSash.layout());
|
84708
84701
|
}
|
84709
84702
|
clearSashHoverState() {
|
84710
84703
|
this._eastSash.clearSashHoverState(), this._westSash.clearSashHoverState(), this._northSash.clearSashHoverState(), this._southSash.clearSashHoverState();
|
@@ -84733,9 +84726,9 @@ class m9 {
|
|
84733
84726
|
}
|
84734
84727
|
const tTe = 30, iTe = 24;
|
84735
84728
|
class nTe extends F {
|
84736
|
-
constructor(e, t = new
|
84737
|
-
super(), this._editor = e, this.allowEditorOverflow = !0, this.suppressMouseDown = !1, this._resizableNode = this._register(new m9()), this._contentPosition = null, this._isResizing = !1, this._resizableNode.domNode.style.position = "absolute", this._resizableNode.minSize =
|
84738
|
-
this._resize(new
|
84729
|
+
constructor(e, t = new Et(10, 10)) {
|
84730
|
+
super(), this._editor = e, this.allowEditorOverflow = !0, this.suppressMouseDown = !1, this._resizableNode = this._register(new m9()), this._contentPosition = null, this._isResizing = !1, this._resizableNode.domNode.style.position = "absolute", this._resizableNode.minSize = Et.lift(t), this._resizableNode.layout(t.height, t.width), this._resizableNode.enableSashes(!0, !0, !0, !0), this._register(this._resizableNode.onDidResize((i) => {
|
84731
|
+
this._resize(new Et(i.dimension.width, i.dimension.height)), i.done && (this._isResizing = !1);
|
84739
84732
|
})), this._register(this._resizableNode.onDidWillResize(() => {
|
84740
84733
|
this._isResizing = !0;
|
84741
84734
|
}));
|
@@ -84806,7 +84799,7 @@ let XF = (Ju = class extends nTe {
|
|
84806
84799
|
const r = e.getOption(
|
84807
84800
|
67
|
84808
84801
|
/* EditorOption.lineHeight */
|
84809
|
-
) + 8, a = 150, l = new
|
84802
|
+
) + 8, a = 150, l = new Et(a, r);
|
84810
84803
|
super(e, l), this._configurationService = i, this._accessibilityService = n, this._keybindingService = o, this._hover = this._register(new p8()), this._onDidResize = this._register(new P()), this.onDidResize = this._onDidResize.event, this._minimumSize = l, this._hoverVisibleKey = I.hoverVisible.bindTo(t), this._hoverFocusedKey = I.hoverFocused.bindTo(t), X(this._resizableNode.domNode, this._hover.containerDomNode), this._resizableNode.domNode.style.zIndex = "50", this._register(this._editor.onDidLayoutChange(() => {
|
84811
84804
|
this.isVisible && this._updateMaxDimensions();
|
84812
84805
|
})), this._register(this._editor.onDidChangeConfiguration((d) => {
|
@@ -84859,10 +84852,10 @@ let XF = (Ju = class extends nTe {
|
|
84859
84852
|
_updateResizableNodeMaxDimensions() {
|
84860
84853
|
var i, n;
|
84861
84854
|
const e = (i = this._findMaximumRenderingWidth()) != null ? i : 1 / 0, t = (n = this._findMaximumRenderingHeight()) != null ? n : 1 / 0;
|
84862
|
-
this._resizableNode.maxSize = new
|
84855
|
+
this._resizableNode.maxSize = new Et(e, t), this._setHoverWidgetMaxDimensions(e, t);
|
84863
84856
|
}
|
84864
84857
|
_resize(e) {
|
84865
|
-
Wl._lastDimensions = new
|
84858
|
+
Wl._lastDimensions = new Et(e.width, e.height), this._setAdjustedHoverWidgetDimensions(e), this._resizableNode.layout(e.height, e.width), this._updateResizableNodeMaxDimensions(), this._hover.scrollbar.scanDomNode(), this._editor.layoutContentWidget(this), this._onDidResize.fire();
|
84866
84859
|
}
|
84867
84860
|
_findAvailableSpaceVertically() {
|
84868
84861
|
var t;
|
@@ -84951,18 +84944,18 @@ let XF = (Ju = class extends nTe {
|
|
84951
84944
|
if (!this._renderedHover)
|
84952
84945
|
return;
|
84953
84946
|
const e = this._renderedHover.shouldFocus || this._hoverFocusedKey.get();
|
84954
|
-
this._setRenderedHover(void 0), this._resizableNode.maxSize = new
|
84947
|
+
this._setRenderedHover(void 0), this._resizableNode.maxSize = new Et(1 / 0, 1 / 0), this._resizableNode.clearSashHoverState(), this._hoverFocusedKey.set(!1), this._editor.layoutContentWidget(this), e && this._editor.focus();
|
84955
84948
|
}
|
84956
84949
|
_removeConstraintsRenderNormally() {
|
84957
84950
|
const e = this._editor.getLayoutInfo();
|
84958
84951
|
this._resizableNode.layout(e.height, e.width), this._setHoverWidgetDimensions("auto", "auto");
|
84959
84952
|
}
|
84960
84953
|
setMinimumDimensions(e) {
|
84961
|
-
this._minimumSize = new
|
84954
|
+
this._minimumSize = new Et(Math.max(this._minimumSize.width, e.width), Math.max(this._minimumSize.height, e.height)), this._updateMinimumWidth();
|
84962
84955
|
}
|
84963
84956
|
_updateMinimumWidth() {
|
84964
84957
|
const e = typeof this._contentWidth > "u" ? this._minimumSize.width : Math.min(this._contentWidth, this._minimumSize.width);
|
84965
|
-
this._resizableNode.minSize = new
|
84958
|
+
this._resizableNode.minSize = new Et(e, this._minimumSize.height);
|
84966
84959
|
}
|
84967
84960
|
onContentsChanged() {
|
84968
84961
|
var n;
|
@@ -85014,7 +85007,7 @@ let XF = (Ju = class extends nTe {
|
|
85014
85007
|
goToBottom() {
|
85015
85008
|
this._hover.scrollbar.setScrollPosition({ scrollTop: this._hover.scrollbar.getScrollDimensions().scrollHeight });
|
85016
85009
|
}
|
85017
|
-
}, Wl = Ju, Ju.ID = "editor.contrib.resizableContentHoverWidget", Ju._lastDimensions = new
|
85010
|
+
}, Wl = Ju, Ju.ID = "editor.contrib.resizableContentHoverWidget", Ju._lastDimensions = new Et(0, 0), Ju);
|
85018
85011
|
XF = Wl = sTe([
|
85019
85012
|
x0(1, Ne),
|
85020
85013
|
x0(2, Ye),
|
@@ -86323,7 +86316,7 @@ class FTe extends oO {
|
|
86323
86316
|
}
|
86324
86317
|
let o4 = class extends YL {
|
86325
86318
|
constructor(e, t, i, n, o, r, a, l, c) {
|
86326
|
-
super(e, { showFrame: !1, showArrow: !0, isResizeable: !0, isAccessible: !0, supportOnTitleClick: !0 }, r), this._defaultTreeKeyboardSupport = t, this.layoutData = i, this._textModelResolverService = o, this._instantiationService = r, this._peekViewService = a, this._uriLabel = l, this._keybindingService = c, this._disposeOnNewModel = new q(), this._callOnDispose = new q(), this._onDidSelectReference = new P(), this.onDidSelectReference = this._onDidSelectReference.event, this._dim = new
|
86319
|
+
super(e, { showFrame: !1, showArrow: !0, isResizeable: !0, isAccessible: !0, supportOnTitleClick: !0 }, r), this._defaultTreeKeyboardSupport = t, this.layoutData = i, this._textModelResolverService = o, this._instantiationService = r, this._peekViewService = a, this._uriLabel = l, this._keybindingService = c, this._disposeOnNewModel = new q(), this._callOnDispose = new q(), this._onDidSelectReference = new P(), this.onDidSelectReference = this._onDidSelectReference.event, this._dim = new Et(0, 0), this._isClosing = !1, this._applyTheme(n.getColorTheme()), this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))), this._peekViewService.addExclusiveWidget(e, this), this.create();
|
86327
86320
|
}
|
86328
86321
|
get isClosing() {
|
86329
86322
|
return this._isClosing;
|
@@ -86431,7 +86424,7 @@ let o4 = class extends YL {
|
|
86431
86424
|
this._dim && this._doLayoutBody(this._dim.height, e);
|
86432
86425
|
}
|
86433
86426
|
_doLayoutBody(e, t) {
|
86434
|
-
super._doLayoutBody(e, t), this._dim = new
|
86427
|
+
super._doLayoutBody(e, t), this._dim = new Et(t, e), this.layoutData.heightInLines = this._viewZone ? this._viewZone.heightInLines : this.layoutData.heightInLines, this._splitView.layout(t), this._splitView.resizeView(0, t * this.layoutData.ratio);
|
86435
86428
|
}
|
86436
86429
|
setSelection(e) {
|
86437
86430
|
return this._revealReference(e, !0).then(() => {
|
@@ -94905,7 +94898,7 @@ var XRe = function(s, e, t, i) {
|
|
94905
94898
|
const sU = "ghost-text";
|
94906
94899
|
let T4 = class extends F {
|
94907
94900
|
constructor(e, t, i) {
|
94908
|
-
super(), this.editor = e, this.model = t, this.languageService = i, this.isDisposed = Ze(this, !1), this.currentTextModel =
|
94901
|
+
super(), this.editor = e, this.model = t, this.languageService = i, this.isDisposed = Ze(this, !1), this.currentTextModel = Nt(this, this.editor.onDidChangeModel, () => (
|
94909
94902
|
/** @description editor.model */
|
94910
94903
|
this.editor.getModel()
|
94911
94904
|
)), this.uiState = we(this, (n) => {
|
@@ -97831,7 +97824,7 @@ function F9(s) {
|
|
97831
97824
|
}
|
97832
97825
|
let W4 = class {
|
97833
97826
|
constructor(e, t) {
|
97834
|
-
this._editor = e, this._onDidClose = new P(), this.onDidClose = this._onDidClose.event, this._onDidChangeContents = new P(), this.onDidChangeContents = this._onDidChangeContents.event, this._disposables = new q(), this._renderDisposeable = new q(), this._borderWidth = 1, this._size = new
|
97827
|
+
this._editor = e, this._onDidClose = new P(), this.onDidClose = this._onDidClose.event, this._onDidChangeContents = new P(), this.onDidChangeContents = this._onDidChangeContents.event, this._disposables = new q(), this._renderDisposeable = new q(), this._borderWidth = 1, this._size = new Et(330, 0), this.domNode = oe(".suggest-details"), this.domNode.classList.add("no-docs"), this._markdownRenderer = t.createInstance(Od, { editor: e }), this._body = oe(".body"), this._scrollbar = new ty(this._body, {
|
97835
97828
|
alwaysConsumeMouseWheel: !0
|
97836
97829
|
}), X(this.domNode, this._scrollbar.getDomNode()), this._disposables.add(this._scrollbar), this._header = X(this._body, oe(".header")), this._close = X(this._header, oe("span" + Te.asCSSSelector(ne.close))), this._close.title = p("details.close", "Close"), this._type = X(this._header, oe("p.type")), this._docs = X(this._body, oe("p.docs")), this._configureFont(), this._disposables.add(this._editor.onDidChangeConfiguration((i) => {
|
97837
97830
|
i.hasChanged(
|
@@ -97923,8 +97916,8 @@ let W4 = class {
|
|
97923
97916
|
return this._size;
|
97924
97917
|
}
|
97925
97918
|
layout(e, t) {
|
97926
|
-
const i = new
|
97927
|
-
|
97919
|
+
const i = new Et(e, t);
|
97920
|
+
Et.equals(i, this._size) || (this._size = i, ule(this.domNode, e, t)), this._scrollbar.scanDomNode();
|
97928
97921
|
}
|
97929
97922
|
scrollDown(e = 8) {
|
97930
97923
|
this._body.scrollTop += e;
|
@@ -98000,14 +97993,14 @@ class VAe {
|
|
98000
97993
|
}
|
98001
97994
|
_placeAtAnchor(e, t, i) {
|
98002
97995
|
var S;
|
98003
|
-
const n = _h(this.getDomNode().ownerDocument.body), o = this.widget.getLayoutInfo(), r = new
|
98004
|
-
const y = n.width - (e.left + e.width + o.borderWidth + o.horizontalPadding), k = -o.borderWidth + e.left + e.width, E = new
|
97996
|
+
const n = _h(this.getDomNode().ownerDocument.body), o = this.widget.getLayoutInfo(), r = new Et(220, 2 * o.lineHeight), a = e.top, l = function() {
|
97997
|
+
const y = n.width - (e.left + e.width + o.borderWidth + o.horizontalPadding), k = -o.borderWidth + e.left + e.width, E = new Et(y, n.height - e.top - o.borderHeight - o.verticalPadding), N = E.with(void 0, e.top + e.height - o.borderHeight - o.verticalPadding);
|
98005
97998
|
return { top: a, left: k, fit: y - t.width, maxSizeTop: E, maxSizeBottom: N, minSize: r.with(Math.min(y, r.width)) };
|
98006
97999
|
}(), c = function() {
|
98007
|
-
const y = e.left - o.borderWidth - o.horizontalPadding, k = Math.max(o.horizontalPadding, e.left - t.width - o.borderWidth), E = new
|
98000
|
+
const y = e.left - o.borderWidth - o.horizontalPadding, k = Math.max(o.horizontalPadding, e.left - t.width - o.borderWidth), E = new Et(y, n.height - e.top - o.borderHeight - o.verticalPadding), N = E.with(void 0, e.top + e.height - o.borderHeight - o.verticalPadding);
|
98008
98001
|
return { top: a, left: k, fit: y - t.width, maxSizeTop: E, maxSizeBottom: N, minSize: r.with(Math.min(y, r.width)) };
|
98009
98002
|
}(), d = function() {
|
98010
|
-
const y = e.left, k = -o.borderWidth + e.top + e.height, E = new
|
98003
|
+
const y = e.left, k = -o.borderWidth + e.top + e.height, E = new Et(e.width - o.borderHeight, n.height - e.top - e.height - o.verticalPadding);
|
98011
98004
|
return { top: k, left: y, fit: E.height - t.height, maxSizeBottom: E, maxSizeTop: E, minSize: r.with(E.width) };
|
98012
98005
|
}(), u = [l, c, d], h = (S = u.find((y) => y.fit >= 0)) != null ? S : u.sort((y, k) => k.fit - y.fit)[0], g = e.top + e.height - o.borderHeight;
|
98013
98006
|
let f, m = t.height;
|
@@ -98212,8 +98205,8 @@ class YAe {
|
|
98212
98205
|
)) != null ? t : "";
|
98213
98206
|
try {
|
98214
98207
|
const i = JSON.parse(e);
|
98215
|
-
if (
|
98216
|
-
return
|
98208
|
+
if (Et.is(i))
|
98209
|
+
return Et.lift(i);
|
98217
98210
|
} catch {
|
98218
98211
|
}
|
98219
98212
|
}
|
@@ -98252,7 +98245,7 @@ let V4 = (sh = class {
|
|
98252
98245
|
if (a) {
|
98253
98246
|
const { itemHeight: b, defaultSize: v } = this.getLayoutInfo(), w = Math.round(b / 2);
|
98254
98247
|
let { width: C, height: S } = this.element.size;
|
98255
|
-
(!a.persistHeight || Math.abs(a.currentSize.height - S) <= w) && (S = (f = (g = a.persistedSize) == null ? void 0 : g.height) != null ? f : v.height), (!a.persistWidth || Math.abs(a.currentSize.width - C) <= w) && (C = (_ = (m = a.persistedSize) == null ? void 0 : m.width) != null ? _ : v.width), this._persistedSize.store(new
|
98248
|
+
(!a.persistHeight || Math.abs(a.currentSize.height - S) <= w) && (S = (f = (g = a.persistedSize) == null ? void 0 : g.height) != null ? f : v.height), (!a.persistWidth || Math.abs(a.currentSize.width - C) <= w) && (C = (_ = (m = a.persistedSize) == null ? void 0 : m.width) != null ? _ : v.width), this._persistedSize.store(new Et(C, S));
|
98256
98249
|
}
|
98257
98250
|
this._contentWidget.unlockPreference(), a = void 0;
|
98258
98251
|
}
|
@@ -98560,7 +98553,7 @@ let V4 = (sh = class {
|
|
98560
98553
|
e || (e = i.defaultSize);
|
98561
98554
|
let n = e.height, o = e.width;
|
98562
98555
|
if (this._status.element.style.height = `${i.itemHeight}px`, this._state === 2 || this._state === 1)
|
98563
|
-
n = i.itemHeight + i.borderHeight, o = i.defaultSize.width / 2, this.element.enableSashes(!1, !1, !1, !1), this.element.minSize = this.element.maxSize = new
|
98556
|
+
n = i.itemHeight + i.borderHeight, o = i.defaultSize.width / 2, this.element.enableSashes(!1, !1, !1, !1), this.element.minSize = this.element.maxSize = new Et(o, n), this._contentWidget.setPreference(
|
98564
98557
|
2
|
98565
98558
|
/* ContentWidgetPositionPreference.BELOW */
|
98566
98559
|
);
|
@@ -98575,7 +98568,7 @@ let V4 = (sh = class {
|
|
98575
98568
|
), this.element.enableSashes(!0, !0, !1, !1), w = v) : (this._contentWidget.setPreference(
|
98576
98569
|
2
|
98577
98570
|
/* ContentWidgetPositionPreference.BELOW */
|
98578
|
-
), this.element.enableSashes(!1, !0, !0, !1), w = _), this.element.preferredSize = new
|
98571
|
+
), this.element.enableSashes(!1, !0, !0, !1), w = _), this.element.preferredSize = new Et(d, i.defaultSize.height), this.element.maxSize = new Et(c, w), this.element.minSize = new Et(220, h), this._cappedHeight = n === u ? { wanted: (l = (a = this._cappedHeight) == null ? void 0 : a.wanted) != null ? l : e.height, capped: n } : void 0;
|
98579
98572
|
}
|
98580
98573
|
this._resize(o, n);
|
98581
98574
|
}
|
@@ -98612,7 +98605,7 @@ let V4 = (sh = class {
|
|
98612
98605
|
typicalHalfwidthCharacterWidth: e.typicalHalfwidthCharacterWidth,
|
98613
98606
|
verticalPadding: 22,
|
98614
98607
|
horizontalPadding: 14,
|
98615
|
-
defaultSize: new
|
98608
|
+
defaultSize: new Et(430, i + 12 * t + o)
|
98616
98609
|
};
|
98617
98610
|
}
|
98618
98611
|
_isDetailsVisible() {
|
@@ -98670,7 +98663,7 @@ class XAe {
|
|
98670
98663
|
}
|
98671
98664
|
beforeRender() {
|
98672
98665
|
const { height: e, width: t } = this._widget.element.size, { borderWidth: i, horizontalPadding: n } = this._widget.getLayoutInfo();
|
98673
|
-
return new
|
98666
|
+
return new Et(t + 2 * i + n, e + 2 * i);
|
98674
98667
|
}
|
98675
98668
|
afterRender(e) {
|
98676
98669
|
this._widget._afterRender(e);
|
@@ -99544,22 +99537,22 @@ let Gr = (Hf = class extends F {
|
|
99544
99537
|
}, (h) => this._editorObs.forceUpdate((g) => {
|
99545
99538
|
var f;
|
99546
99539
|
(f = this.model.get()) == null || f.handleSuggestAccepted(h);
|
99547
|
-
}))), this._suggestWidgetSelectedItem =
|
99540
|
+
}))), this._suggestWidgetSelectedItem = Nt(this, (h) => this._suggestWidgetAdaptor.onDidSelectedItemChange(() => {
|
99548
99541
|
this._editorObs.forceUpdate((g) => h(void 0));
|
99549
|
-
}), () => this._suggestWidgetAdaptor.selectedItem), this._enabledInConfig =
|
99542
|
+
}), () => this._suggestWidgetAdaptor.selectedItem), this._enabledInConfig = Nt(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
99550
99543
|
62
|
99551
99544
|
/* EditorOption.inlineSuggest */
|
99552
|
-
).enabled), this._isScreenReaderEnabled =
|
99545
|
+
).enabled), this._isScreenReaderEnabled = Nt(this, this._accessibilityService.onDidChangeScreenReaderOptimized, () => this._accessibilityService.isScreenReaderOptimized()), this._editorDictationInProgress = Nt(this, this._contextKeyService.onDidChangeContext, () => this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress") === !0), this._enabled = we(this, (h) => this._enabledInConfig.read(h) && (!this._isScreenReaderEnabled.read(h) || !this._editorDictationInProgress.read(h))), this._debounceValue = this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider, "InlineCompletionsDebounce", { min: 50, max: 50 }), this.model = fs(this, (h) => {
|
99553
99546
|
if (this._editorObs.isReadonly.read(h))
|
99554
99547
|
return;
|
99555
99548
|
const g = this._editorObs.model.read(h);
|
99556
|
-
return g ? this._instantiationService.createInstance(A4, g, this._suggestWidgetSelectedItem, this._editorObs.versionId, this._positions, this._debounceValue,
|
99549
|
+
return g ? this._instantiationService.createInstance(A4, g, this._suggestWidgetSelectedItem, this._editorObs.versionId, this._positions, this._debounceValue, Nt(this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
99557
99550
|
119
|
99558
99551
|
/* EditorOption.suggest */
|
99559
|
-
).preview),
|
99552
|
+
).preview), Nt(this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
99560
99553
|
119
|
99561
99554
|
/* EditorOption.suggest */
|
99562
|
-
).previewMode),
|
99555
|
+
).previewMode), Nt(this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
99563
99556
|
62
|
99564
99557
|
/* EditorOption.inlineSuggest */
|
99565
99558
|
).mode), this._enabled) : void 0;
|
@@ -99571,7 +99564,7 @@ let Gr = (Hf = class extends F {
|
|
99571
99564
|
ghostText: h,
|
99572
99565
|
minReservedLineCount: Br(0),
|
99573
99566
|
targetTextModel: this.model.map((f) => f == null ? void 0 : f.textModel)
|
99574
|
-
}))).recomputeInitiallyAndOnChange(this._store), this._playAccessibilitySignal = kv(this), this._fontFamily =
|
99567
|
+
}))).recomputeInitiallyAndOnChange(this._store), this._playAccessibilitySignal = kv(this), this._fontFamily = Nt(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
99575
99568
|
62
|
99576
99569
|
/* EditorOption.inlineSuggest */
|
99577
99570
|
).fontFamily), this._register(new Fo(this._contextKeyService, this.model)), this._register(mF(this._editorObs.onDidType, (h, g) => {
|
@@ -104637,7 +104630,7 @@ var p2e = function(s, e, t, i) {
|
|
104637
104630
|
const DA = "inline-edit";
|
104638
104631
|
let p5 = class extends F {
|
104639
104632
|
constructor(e, t, i) {
|
104640
|
-
super(), this.editor = e, this.model = t, this.languageService = i, this.isDisposed = Ze(this, !1), this.currentTextModel =
|
104633
|
+
super(), this.editor = e, this.model = t, this.languageService = i, this.isDisposed = Ze(this, !1), this.currentTextModel = Nt(this, this.editor.onDidChangeModel, () => (
|
104641
104634
|
/** @description editor.model */
|
104642
104635
|
this.editor.getModel()
|
104643
104636
|
)), this.uiState = we(this, (n) => {
|
@@ -104763,7 +104756,7 @@ var W9 = function(s, e, t, i) {
|
|
104763
104756
|
}, Rx;
|
104764
104757
|
let m5 = class extends F {
|
104765
104758
|
constructor(e, t, i) {
|
104766
|
-
super(), this.editor = e, this.model = t, this.instantiationService = i, this.alwaysShowToolbar =
|
104759
|
+
super(), this.editor = e, this.model = t, this.instantiationService = i, this.alwaysShowToolbar = Nt(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
104767
104760
|
63
|
104768
104761
|
/* EditorOption.inlineEdit */
|
104769
104762
|
).showToolbar === "always"), this.sessionPosition = void 0, this.position = we(this, (n) => {
|
@@ -105076,10 +105069,10 @@ let Ns = (Rr = class extends F {
|
|
105076
105069
|
targetTextModel: Br((k = this.editor.getModel()) != null ? k : void 0),
|
105077
105070
|
range: Br(m.range)
|
105078
105071
|
});
|
105079
|
-
}), this._isAccepting = Ze(this, !1), this._enabled =
|
105072
|
+
}), this._isAccepting = Ze(this, !1), this._enabled = Nt(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
105080
105073
|
63
|
105081
105074
|
/* EditorOption.inlineEdit */
|
105082
|
-
).enabled), this._fontFamily =
|
105075
|
+
).enabled), this._fontFamily = Nt(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(
|
105083
105076
|
63
|
105084
105077
|
/* EditorOption.inlineEdit */
|
105085
105078
|
).fontFamily);
|
@@ -105087,7 +105080,7 @@ let Ns = (Rr = class extends F {
|
|
105087
105080
|
this._register(Be((f) => {
|
105088
105081
|
this._enabled.read(f) && (c.read(f), !this._isAccepting.read(f) && this.getInlineEdit(e, !0));
|
105089
105082
|
}));
|
105090
|
-
const d =
|
105083
|
+
const d = Nt(this, e.onDidChangeCursorPosition, () => e.getPosition());
|
105091
105084
|
this._register(Be((f) => {
|
105092
105085
|
if (!this._enabled.read(f))
|
105093
105086
|
return;
|
@@ -141931,8 +141924,8 @@ var R9e = Object.defineProperty, A9e = Object.getOwnPropertyDescriptor, M9e = Ob
|
|
141931
141924
|
for (let n of M9e(e))
|
141932
141925
|
!P9e.call(s, n) && n !== t && R9e(s, n, { get: () => e[n], enumerable: !(i = A9e(e, n)) || i.enumerable });
|
141933
141926
|
return s;
|
141934
|
-
}, F9e = (s, e, t) => (O9e(s, e, "default"), t),
|
141935
|
-
F9e(
|
141927
|
+
}, F9e = (s, e, t) => (O9e(s, e, "default"), t), Dt = {};
|
141928
|
+
F9e(Dt, rs);
|
141936
141929
|
var B9e = 2 * 60 * 1e3, ine = class {
|
141937
141930
|
constructor(e) {
|
141938
141931
|
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
@@ -141949,7 +141942,7 @@ var B9e = 2 * 60 * 1e3, ine = class {
|
|
141949
141942
|
Date.now() - this._lastUsedTime > B9e && this._stopWorker();
|
141950
141943
|
}
|
141951
141944
|
_getClient() {
|
141952
|
-
return this._lastUsedTime = Date.now(), this._client || (this._worker =
|
141945
|
+
return this._lastUsedTime = Date.now(), this._client || (this._worker = Dt.editor.createWebWorker({
|
141953
141946
|
// module that exports the create() method and returns a `CSSWorker` instance
|
141954
141947
|
moduleId: "vs/language/css/cssWorker",
|
141955
141948
|
label: this._defaults.languageId,
|
@@ -142905,27 +142898,27 @@ var nne = class {
|
|
142905
142898
|
window.clearTimeout(l), l = window.setTimeout(() => this._doValidate(r.uri, a), 500);
|
142906
142899
|
}), this._doValidate(r.uri, a);
|
142907
142900
|
}, o = (r) => {
|
142908
|
-
|
142901
|
+
Dt.editor.setModelMarkers(r, this._languageId, []);
|
142909
142902
|
let a = r.uri.toString(), l = this._listener[a];
|
142910
142903
|
l && (l.dispose(), delete this._listener[a]);
|
142911
142904
|
};
|
142912
|
-
this._disposables.push(
|
142913
|
-
|
142905
|
+
this._disposables.push(Dt.editor.onDidCreateModel(n)), this._disposables.push(Dt.editor.onWillDisposeModel(o)), this._disposables.push(
|
142906
|
+
Dt.editor.onDidChangeModelLanguage((r) => {
|
142914
142907
|
o(r.model), n(r.model);
|
142915
142908
|
})
|
142916
142909
|
), this._disposables.push(
|
142917
142910
|
i((r) => {
|
142918
|
-
|
142911
|
+
Dt.editor.getModels().forEach((a) => {
|
142919
142912
|
a.getLanguageId() === this._languageId && (o(a), n(a));
|
142920
142913
|
});
|
142921
142914
|
})
|
142922
142915
|
), this._disposables.push({
|
142923
142916
|
dispose: () => {
|
142924
|
-
|
142917
|
+
Dt.editor.getModels().forEach(o);
|
142925
142918
|
for (let r in this._listener)
|
142926
142919
|
this._listener[r].dispose();
|
142927
142920
|
}
|
142928
|
-
}),
|
142921
|
+
}), Dt.editor.getModels().forEach(n);
|
142929
142922
|
}
|
142930
142923
|
dispose() {
|
142931
142924
|
this._disposables.forEach((e) => e && e.dispose()), this._disposables.length = 0;
|
@@ -142933,8 +142926,8 @@ var nne = class {
|
|
142933
142926
|
_doValidate(e, t) {
|
142934
142927
|
this._worker(e).then((i) => i.doValidation(e.toString())).then((i) => {
|
142935
142928
|
const n = i.map((r) => V9e(e, r));
|
142936
|
-
let o =
|
142937
|
-
o && o.getLanguageId() === t &&
|
142929
|
+
let o = Dt.editor.getModel(e);
|
142930
|
+
o && o.getLanguageId() === t && Dt.editor.setModelMarkers(o, t, n);
|
142938
142931
|
}).then(void 0, (i) => {
|
142939
142932
|
console.error(i);
|
142940
142933
|
});
|
@@ -142943,15 +142936,15 @@ var nne = class {
|
|
142943
142936
|
function H9e(s) {
|
142944
142937
|
switch (s) {
|
142945
142938
|
case l_.Error:
|
142946
|
-
return
|
142939
|
+
return Dt.MarkerSeverity.Error;
|
142947
142940
|
case l_.Warning:
|
142948
|
-
return
|
142941
|
+
return Dt.MarkerSeverity.Warning;
|
142949
142942
|
case l_.Information:
|
142950
|
-
return
|
142943
|
+
return Dt.MarkerSeverity.Info;
|
142951
142944
|
case l_.Hint:
|
142952
|
-
return
|
142945
|
+
return Dt.MarkerSeverity.Hint;
|
142953
142946
|
default:
|
142954
|
-
return
|
142947
|
+
return Dt.MarkerSeverity.Info;
|
142955
142948
|
}
|
142956
142949
|
}
|
142957
142950
|
function V9e(s, e) {
|
@@ -142979,7 +142972,7 @@ var sne = class {
|
|
142979
142972
|
return this._worker(o).then((r) => r.doComplete(o.toString(), $h(t))).then((r) => {
|
142980
142973
|
if (!r)
|
142981
142974
|
return;
|
142982
|
-
const a = e.getWordUntilPosition(t), l = new
|
142975
|
+
const a = e.getWordUntilPosition(t), l = new Dt.Range(
|
142983
142976
|
t.lineNumber,
|
142984
142977
|
a.startColumn,
|
142985
142978
|
t.lineNumber,
|
@@ -142999,7 +142992,7 @@ var sne = class {
|
|
142999
142992
|
return d.textEdit && ($9e(d.textEdit) ? u.range = {
|
143000
142993
|
insert: to(d.textEdit.insert),
|
143001
142994
|
replace: to(d.textEdit.replace)
|
143002
|
-
} : u.range = to(d.textEdit.range), u.insertText = d.textEdit.newText), d.additionalTextEdits && (u.additionalTextEdits = d.additionalTextEdits.map(iv)), d.insertTextFormat === T3.Snippet && (u.insertTextRules =
|
142995
|
+
} : u.range = to(d.textEdit.range), u.insertText = d.textEdit.newText), d.additionalTextEdits && (u.additionalTextEdits = d.additionalTextEdits.map(iv)), d.insertTextFormat === T3.Snippet && (u.insertTextRules = Dt.languages.CompletionItemInsertTextRule.InsertAsSnippet), u;
|
143003
142996
|
});
|
143004
142997
|
return {
|
143005
142998
|
isIncomplete: r.isIncomplete,
|
@@ -143024,7 +143017,7 @@ function e6(s) {
|
|
143024
143017
|
}
|
143025
143018
|
function to(s) {
|
143026
143019
|
if (s)
|
143027
|
-
return new
|
143020
|
+
return new Dt.Range(
|
143028
143021
|
s.start.line + 1,
|
143029
143022
|
s.start.character + 1,
|
143030
143023
|
s.end.line + 1,
|
@@ -143035,7 +143028,7 @@ function $9e(s) {
|
|
143035
143028
|
return typeof s.insert < "u" && typeof s.replace < "u";
|
143036
143029
|
}
|
143037
143030
|
function z9e(s) {
|
143038
|
-
const e =
|
143031
|
+
const e = Dt.languages.CompletionItemKind;
|
143039
143032
|
switch (s) {
|
143040
143033
|
case On.Text:
|
143041
143034
|
return e.Text;
|
@@ -143136,13 +143129,13 @@ var rne = class {
|
|
143136
143129
|
function K9e(s) {
|
143137
143130
|
switch (s) {
|
143138
143131
|
case MC.Read:
|
143139
|
-
return
|
143132
|
+
return Dt.languages.DocumentHighlightKind.Read;
|
143140
143133
|
case MC.Write:
|
143141
|
-
return
|
143134
|
+
return Dt.languages.DocumentHighlightKind.Write;
|
143142
143135
|
case MC.Text:
|
143143
|
-
return
|
143136
|
+
return Dt.languages.DocumentHighlightKind.Text;
|
143144
143137
|
}
|
143145
|
-
return
|
143138
|
+
return Dt.languages.DocumentHighlightKind.Text;
|
143146
143139
|
}
|
143147
143140
|
var ane = class {
|
143148
143141
|
constructor(e) {
|
@@ -143158,7 +143151,7 @@ var ane = class {
|
|
143158
143151
|
};
|
143159
143152
|
function lne(s) {
|
143160
143153
|
return {
|
143161
|
-
uri:
|
143154
|
+
uri: Dt.Uri.parse(s.uri),
|
143162
143155
|
range: to(s.range)
|
143163
143156
|
};
|
143164
143157
|
}
|
@@ -143187,7 +143180,7 @@ function G9e(s) {
|
|
143187
143180
|
return;
|
143188
143181
|
let e = [];
|
143189
143182
|
for (let t in s.changes) {
|
143190
|
-
const i =
|
143183
|
+
const i = Dt.Uri.parse(t);
|
143191
143184
|
for (let n of s.changes[t])
|
143192
143185
|
e.push({
|
143193
143186
|
resource: i,
|
@@ -143238,7 +143231,7 @@ function hne(s) {
|
|
143238
143231
|
};
|
143239
143232
|
}
|
143240
143233
|
function gne(s) {
|
143241
|
-
let e =
|
143234
|
+
let e = Dt.languages.SymbolKind;
|
143242
143235
|
switch (s) {
|
143243
143236
|
case Fn.File:
|
143244
143237
|
return e.File;
|
@@ -143373,11 +143366,11 @@ var _ne = class {
|
|
143373
143366
|
function X9e(s) {
|
143374
143367
|
switch (s) {
|
143375
143368
|
case AC.Comment:
|
143376
|
-
return
|
143369
|
+
return Dt.languages.FoldingRangeKind.Comment;
|
143377
143370
|
case AC.Imports:
|
143378
|
-
return
|
143371
|
+
return Dt.languages.FoldingRangeKind.Imports;
|
143379
143372
|
case AC.Region:
|
143380
|
-
return
|
143373
|
+
return Dt.languages.FoldingRangeKind.Region;
|
143381
143374
|
}
|
143382
143375
|
}
|
143383
143376
|
var vne = class {
|
@@ -143409,58 +143402,58 @@ function Q9e(s) {
|
|
143409
143402
|
function o() {
|
143410
143403
|
const { languageId: r, modeConfiguration: a } = s;
|
143411
143404
|
wne(t), a.completionItems && t.push(
|
143412
|
-
|
143405
|
+
Dt.languages.registerCompletionItemProvider(
|
143413
143406
|
r,
|
143414
143407
|
new sne(n, ["/", "-", ":"])
|
143415
143408
|
)
|
143416
143409
|
), a.hovers && t.push(
|
143417
|
-
|
143410
|
+
Dt.languages.registerHoverProvider(r, new one(n))
|
143418
143411
|
), a.documentHighlights && t.push(
|
143419
|
-
|
143412
|
+
Dt.languages.registerDocumentHighlightProvider(
|
143420
143413
|
r,
|
143421
143414
|
new rne(n)
|
143422
143415
|
)
|
143423
143416
|
), a.definitions && t.push(
|
143424
|
-
|
143417
|
+
Dt.languages.registerDefinitionProvider(
|
143425
143418
|
r,
|
143426
143419
|
new ane(n)
|
143427
143420
|
)
|
143428
143421
|
), a.references && t.push(
|
143429
|
-
|
143422
|
+
Dt.languages.registerReferenceProvider(
|
143430
143423
|
r,
|
143431
143424
|
new cne(n)
|
143432
143425
|
)
|
143433
143426
|
), a.documentSymbols && t.push(
|
143434
|
-
|
143427
|
+
Dt.languages.registerDocumentSymbolProvider(
|
143435
143428
|
r,
|
143436
143429
|
new une(n)
|
143437
143430
|
)
|
143438
143431
|
), a.rename && t.push(
|
143439
|
-
|
143432
|
+
Dt.languages.registerRenameProvider(r, new dne(n))
|
143440
143433
|
), a.colors && t.push(
|
143441
|
-
|
143434
|
+
Dt.languages.registerColorProvider(
|
143442
143435
|
r,
|
143443
143436
|
new _ne(n)
|
143444
143437
|
)
|
143445
143438
|
), a.foldingRanges && t.push(
|
143446
|
-
|
143439
|
+
Dt.languages.registerFoldingRangeProvider(
|
143447
143440
|
r,
|
143448
143441
|
new bne(n)
|
143449
143442
|
)
|
143450
143443
|
), a.diagnostics && t.push(
|
143451
143444
|
new nne(r, n, s.onDidChange)
|
143452
143445
|
), a.selectionRanges && t.push(
|
143453
|
-
|
143446
|
+
Dt.languages.registerSelectionRangeProvider(
|
143454
143447
|
r,
|
143455
143448
|
new vne(n)
|
143456
143449
|
)
|
143457
143450
|
), a.documentFormattingEdits && t.push(
|
143458
|
-
|
143451
|
+
Dt.languages.registerDocumentFormattingEditProvider(
|
143459
143452
|
r,
|
143460
143453
|
new fne(n)
|
143461
143454
|
)
|
143462
143455
|
), a.documentRangeFormattingEdits && t.push(
|
143463
|
-
|
143456
|
+
Dt.languages.registerDocumentRangeFormattingEditProvider(
|
143464
143457
|
r,
|
143465
143458
|
new pne(n)
|
143466
143459
|
)
|
@@ -145097,8 +145090,8 @@ var L6e = Object.defineProperty, E6e = Object.getOwnPropertyDescriptor, I6e = Ob
|
|
145097
145090
|
for (let n of I6e(e))
|
145098
145091
|
!D6e.call(s, n) && n !== t && L6e(s, n, { get: () => e[n], enumerable: !(i = E6e(e, n)) || i.enumerable });
|
145099
145092
|
return s;
|
145100
|
-
}, N6e = (s, e, t) => (T6e(s, e, "default"), t),
|
145101
|
-
N6e(
|
145093
|
+
}, N6e = (s, e, t) => (T6e(s, e, "default"), t), Tt = {};
|
145094
|
+
N6e(Tt, rs);
|
145102
145095
|
var R6e = 2 * 60 * 1e3, Ine = class {
|
145103
145096
|
constructor(e) {
|
145104
145097
|
this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
|
@@ -145115,7 +145108,7 @@ var R6e = 2 * 60 * 1e3, Ine = class {
|
|
145115
145108
|
Date.now() - this._lastUsedTime > R6e && this._stopWorker();
|
145116
145109
|
}
|
145117
145110
|
_getClient() {
|
145118
|
-
return this._lastUsedTime = Date.now(), this._client || (this._worker =
|
145111
|
+
return this._lastUsedTime = Date.now(), this._client || (this._worker = Tt.editor.createWebWorker({
|
145119
145112
|
// module that exports the create() method and returns a `JSONWorker` instance
|
145120
145113
|
moduleId: "vs/language/json/jsonWorker",
|
145121
145114
|
label: this._defaults.languageId,
|
@@ -146072,27 +146065,27 @@ var Dne = class {
|
|
146072
146065
|
window.clearTimeout(l), l = window.setTimeout(() => this._doValidate(r.uri, a), 500);
|
146073
146066
|
}), this._doValidate(r.uri, a);
|
146074
146067
|
}, o = (r) => {
|
146075
|
-
|
146068
|
+
Tt.editor.setModelMarkers(r, this._languageId, []);
|
146076
146069
|
let a = r.uri.toString(), l = this._listener[a];
|
146077
146070
|
l && (l.dispose(), delete this._listener[a]);
|
146078
146071
|
};
|
146079
|
-
this._disposables.push(
|
146080
|
-
|
146072
|
+
this._disposables.push(Tt.editor.onDidCreateModel(n)), this._disposables.push(Tt.editor.onWillDisposeModel(o)), this._disposables.push(
|
146073
|
+
Tt.editor.onDidChangeModelLanguage((r) => {
|
146081
146074
|
o(r.model), n(r.model);
|
146082
146075
|
})
|
146083
146076
|
), this._disposables.push(
|
146084
146077
|
i((r) => {
|
146085
|
-
|
146078
|
+
Tt.editor.getModels().forEach((a) => {
|
146086
146079
|
a.getLanguageId() === this._languageId && (o(a), n(a));
|
146087
146080
|
});
|
146088
146081
|
})
|
146089
146082
|
), this._disposables.push({
|
146090
146083
|
dispose: () => {
|
146091
|
-
|
146084
|
+
Tt.editor.getModels().forEach(o);
|
146092
146085
|
for (let r in this._listener)
|
146093
146086
|
this._listener[r].dispose();
|
146094
146087
|
}
|
146095
|
-
}),
|
146088
|
+
}), Tt.editor.getModels().forEach(n);
|
146096
146089
|
}
|
146097
146090
|
dispose() {
|
146098
146091
|
this._disposables.forEach((e) => e && e.dispose()), this._disposables.length = 0;
|
@@ -146100,8 +146093,8 @@ var Dne = class {
|
|
146100
146093
|
_doValidate(e, t) {
|
146101
146094
|
this._worker(e).then((i) => i.doValidation(e.toString())).then((i) => {
|
146102
146095
|
const n = i.map((r) => P6e(e, r));
|
146103
|
-
let o =
|
146104
|
-
o && o.getLanguageId() === t &&
|
146096
|
+
let o = Tt.editor.getModel(e);
|
146097
|
+
o && o.getLanguageId() === t && Tt.editor.setModelMarkers(o, t, n);
|
146105
146098
|
}).then(void 0, (i) => {
|
146106
146099
|
console.error(i);
|
146107
146100
|
});
|
@@ -146110,15 +146103,15 @@ var Dne = class {
|
|
146110
146103
|
function M6e(s) {
|
146111
146104
|
switch (s) {
|
146112
146105
|
case d_.Error:
|
146113
|
-
return
|
146106
|
+
return Tt.MarkerSeverity.Error;
|
146114
146107
|
case d_.Warning:
|
146115
|
-
return
|
146108
|
+
return Tt.MarkerSeverity.Warning;
|
146116
146109
|
case d_.Information:
|
146117
|
-
return
|
146110
|
+
return Tt.MarkerSeverity.Info;
|
146118
146111
|
case d_.Hint:
|
146119
|
-
return
|
146112
|
+
return Tt.MarkerSeverity.Hint;
|
146120
146113
|
default:
|
146121
|
-
return
|
146114
|
+
return Tt.MarkerSeverity.Info;
|
146122
146115
|
}
|
146123
146116
|
}
|
146124
146117
|
function P6e(s, e) {
|
@@ -146146,7 +146139,7 @@ var Tne = class {
|
|
146146
146139
|
return this._worker(n).then((o) => o.doComplete(n.toString(), Uh(e))).then((o) => {
|
146147
146140
|
if (!o)
|
146148
146141
|
return;
|
146149
|
-
const r = s.getWordUntilPosition(e), a = new
|
146142
|
+
const r = s.getWordUntilPosition(e), a = new Tt.Range(
|
146150
146143
|
e.lineNumber,
|
146151
146144
|
r.startColumn,
|
146152
146145
|
e.lineNumber,
|
@@ -146166,7 +146159,7 @@ var Tne = class {
|
|
146166
146159
|
return c.textEdit && (O6e(c.textEdit) ? d.range = {
|
146167
146160
|
insert: no(c.textEdit.insert),
|
146168
146161
|
replace: no(c.textEdit.replace)
|
146169
|
-
} : d.range = no(c.textEdit.range), d.insertText = c.textEdit.newText), c.additionalTextEdits && (d.additionalTextEdits = c.additionalTextEdits.map(dv)), c.insertTextFormat === sB.Snippet && (d.insertTextRules =
|
146162
|
+
} : d.range = no(c.textEdit.range), d.insertText = c.textEdit.newText), c.additionalTextEdits && (d.additionalTextEdits = c.additionalTextEdits.map(dv)), c.insertTextFormat === sB.Snippet && (d.insertTextRules = Tt.languages.CompletionItemInsertTextRule.InsertAsSnippet), d;
|
146170
146163
|
});
|
146171
146164
|
return {
|
146172
146165
|
isIncomplete: o.isIncomplete,
|
@@ -146191,7 +146184,7 @@ function h6(s) {
|
|
146191
146184
|
}
|
146192
146185
|
function no(s) {
|
146193
146186
|
if (s)
|
146194
|
-
return new
|
146187
|
+
return new Tt.Range(
|
146195
146188
|
s.start.line + 1,
|
146196
146189
|
s.start.character + 1,
|
146197
146190
|
s.end.line + 1,
|
@@ -146202,7 +146195,7 @@ function O6e(s) {
|
|
146202
146195
|
return typeof s.insert < "u" && typeof s.replace < "u";
|
146203
146196
|
}
|
146204
146197
|
function F6e(s) {
|
146205
|
-
const e =
|
146198
|
+
const e = Tt.languages.CompletionItemKind;
|
146206
146199
|
switch (s) {
|
146207
146200
|
case Hn.Text:
|
146208
146201
|
return e.Text;
|
@@ -146303,13 +146296,13 @@ var V6e = class {
|
|
146303
146296
|
function $6e(s) {
|
146304
146297
|
switch (s) {
|
146305
146298
|
case BC.Read:
|
146306
|
-
return
|
146299
|
+
return Tt.languages.DocumentHighlightKind.Read;
|
146307
146300
|
case BC.Write:
|
146308
|
-
return
|
146301
|
+
return Tt.languages.DocumentHighlightKind.Write;
|
146309
146302
|
case BC.Text:
|
146310
|
-
return
|
146303
|
+
return Tt.languages.DocumentHighlightKind.Text;
|
146311
146304
|
}
|
146312
|
-
return
|
146305
|
+
return Tt.languages.DocumentHighlightKind.Text;
|
146313
146306
|
}
|
146314
146307
|
var z6e = class {
|
146315
146308
|
constructor(e) {
|
@@ -146325,7 +146318,7 @@ var z6e = class {
|
|
146325
146318
|
};
|
146326
146319
|
function Rne(s) {
|
146327
146320
|
return {
|
146328
|
-
uri:
|
146321
|
+
uri: Tt.Uri.parse(s.uri),
|
146329
146322
|
range: no(s.range)
|
146330
146323
|
};
|
146331
146324
|
}
|
@@ -146354,7 +146347,7 @@ function q6e(s) {
|
|
146354
146347
|
return;
|
146355
146348
|
let e = [];
|
146356
146349
|
for (let t in s.changes) {
|
146357
|
-
const i =
|
146350
|
+
const i = Tt.Uri.parse(t);
|
146358
146351
|
for (let n of s.changes[t])
|
146359
146352
|
e.push({
|
146360
146353
|
resource: i,
|
@@ -146405,7 +146398,7 @@ function Mne(s) {
|
|
146405
146398
|
};
|
146406
146399
|
}
|
146407
146400
|
function Pne(s) {
|
146408
|
-
let e =
|
146401
|
+
let e = Tt.languages.SymbolKind;
|
146409
146402
|
switch (s) {
|
146410
146403
|
case Vn.File:
|
146411
146404
|
return e.File;
|
@@ -146540,11 +146533,11 @@ var Wne = class {
|
|
146540
146533
|
function Z6e(s) {
|
146541
146534
|
switch (s) {
|
146542
146535
|
case FC.Comment:
|
146543
|
-
return
|
146536
|
+
return Tt.languages.FoldingRangeKind.Comment;
|
146544
146537
|
case FC.Imports:
|
146545
|
-
return
|
146538
|
+
return Tt.languages.FoldingRangeKind.Imports;
|
146546
146539
|
case FC.Region:
|
146547
|
-
return
|
146540
|
+
return Tt.languages.FoldingRangeKind.Region;
|
146548
146541
|
}
|
146549
146542
|
}
|
146550
146543
|
var Vne = class {
|
@@ -146977,11 +146970,11 @@ function c7e() {
|
|
146977
146970
|
var d7e = class extends Dne {
|
146978
146971
|
constructor(s, e, t) {
|
146979
146972
|
super(s, e, t.onDidChange), this._disposables.push(
|
146980
|
-
|
146973
|
+
Tt.editor.onWillDisposeModel((i) => {
|
146981
146974
|
this._resetSchema(i.uri);
|
146982
146975
|
})
|
146983
146976
|
), this._disposables.push(
|
146984
|
-
|
146977
|
+
Tt.editor.onDidChangeModelLanguage((i) => {
|
146985
146978
|
this._resetSchema(i.model.uri);
|
146986
146979
|
})
|
146987
146980
|
);
|
@@ -146998,45 +146991,45 @@ function u7e(s) {
|
|
146998
146991
|
function n() {
|
146999
146992
|
const { languageId: r, modeConfiguration: a } = s;
|
147000
146993
|
Une(t), a.documentFormattingEdits && t.push(
|
147001
|
-
|
146994
|
+
Tt.languages.registerDocumentFormattingEditProvider(
|
147002
146995
|
r,
|
147003
146996
|
new One(na)
|
147004
146997
|
)
|
147005
146998
|
), a.documentRangeFormattingEdits && t.push(
|
147006
|
-
|
146999
|
+
Tt.languages.registerDocumentRangeFormattingEditProvider(
|
147007
147000
|
r,
|
147008
147001
|
new Fne(na)
|
147009
147002
|
)
|
147010
147003
|
), a.completionItems && t.push(
|
147011
|
-
|
147004
|
+
Tt.languages.registerCompletionItemProvider(
|
147012
147005
|
r,
|
147013
147006
|
new Tne(na, [" ", ":", '"'])
|
147014
147007
|
)
|
147015
147008
|
), a.hovers && t.push(
|
147016
|
-
|
147009
|
+
Tt.languages.registerHoverProvider(r, new Nne(na))
|
147017
147010
|
), a.documentSymbols && t.push(
|
147018
|
-
|
147011
|
+
Tt.languages.registerDocumentSymbolProvider(
|
147019
147012
|
r,
|
147020
147013
|
new Ane(na)
|
147021
147014
|
)
|
147022
|
-
), a.tokens && t.push(
|
147023
|
-
|
147015
|
+
), a.tokens && t.push(Tt.languages.setTokensProvider(r, Q6e(!0))), a.colors && t.push(
|
147016
|
+
Tt.languages.registerColorProvider(
|
147024
147017
|
r,
|
147025
147018
|
new Wne(na)
|
147026
147019
|
)
|
147027
147020
|
), a.foldingRanges && t.push(
|
147028
|
-
|
147021
|
+
Tt.languages.registerFoldingRangeProvider(
|
147029
147022
|
r,
|
147030
147023
|
new Hne(na)
|
147031
147024
|
)
|
147032
147025
|
), a.diagnostics && t.push(new d7e(r, na, s)), a.selectionRanges && t.push(
|
147033
|
-
|
147026
|
+
Tt.languages.registerSelectionRangeProvider(
|
147034
147027
|
r,
|
147035
147028
|
new Vne(na)
|
147036
147029
|
)
|
147037
147030
|
);
|
147038
147031
|
}
|
147039
|
-
n(), e.push(
|
147032
|
+
n(), e.push(Tt.languages.setLanguageConfiguration(s.languageId, h7e));
|
147040
147033
|
let o = s.modeConfiguration;
|
147041
147034
|
return s.onDidChange((r) => {
|
147042
147035
|
r.modeConfiguration !== o && (o = r.modeConfiguration, n());
|