@marimo-team/islands 0.20.1 → 0.20.3-dev76
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/dist/{ConnectedDataExplorerComponent-BMiGWK57.js → ConnectedDataExplorerComponent-DUS-zJoR.js} +12 -12
- package/dist/{_baseIsEqual-DN5YkPnl.js → _baseIsEqual-5cAxzk6f.js} +42 -41
- package/dist/_basePickBy-3JVb5wYm.js +47 -0
- package/dist/{_baseProperty-6juuyX7Z.js → _baseProperty-D1nWkRMz.js} +12 -12
- package/dist/_baseSlice-BrVixxuc.js +10 -0
- package/dist/{_baseUniq-BlF21ach.js → _baseUniq-DSSiFuIJ.js} +10 -6
- package/dist/{any-language-editor-1OMbohwD.js → any-language-editor-BL9o7y0_.js} +31 -30
- package/dist/apl-lHFVoxx7.js +4 -0
- package/dist/{arc-9nABupDE.js → arc-DXxE-tFl.js} +2 -2
- package/dist/architecture-7HQA4BMR-BxkNpYRp.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-DhN0C3Xf.js → architectureDiagram-VXUJARFQ-DrJeyFHq.js} +19 -19
- package/dist/asciiarmor-DqCdZUHI.js +4 -0
- package/dist/asn1-DEcwtw-q.js +4 -0
- package/dist/{blockDiagram-VD42YOAC-DrBkIcbV.js → blockDiagram-VD42YOAC-BJrP6qKc.js} +53 -53
- package/dist/brainfuck-Bro9Oz5x.js +4 -0
- package/dist/{c4Diagram-YG6GDRKO-pWt4zmu0.js → c4Diagram-YG6GDRKO-Bo4gytQ5.js} +6 -6
- package/dist/{channel-C56Jz8EL.js → channel-IWLGkaBE.js} +1 -1
- package/dist/{chunk-4BX2VUAB-WmXmzRBr.js → chunk-4BX2VUAB-CwMMQLZ_.js} +1 -1
- package/dist/{chunk-S6J4BHB3-zfWjyfUg.js → chunk-4F5CHEZ2-CxKDFd-t.js} +2 -2
- package/dist/{chunk-55IACEB6-irYMvHJu.js → chunk-55IACEB6-Dj8CzJvE.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-pOElJy8t.js → chunk-5FQGJX7Z-BkzUmppO.js} +2 -2
- package/dist/{chunk-ABZYJK2D-BwNsaa1P.js → chunk-ABZYJK2D-CRwanrkd.js} +3 -3
- package/dist/{chunk-ATLVNIR6-DtFMAawc.js → chunk-ATLVNIR6-CMMCMvOK.js} +2 -2
- package/dist/{chunk-FWNWRKHM-DmrwhAQr.js → chunk-B2363JML-e_W7KW1D.js} +2 -2
- package/dist/{chunk-B4BG7PRW-lfWcLlzS.js → chunk-B4BG7PRW-BNsHrGHG.js} +7 -7
- package/dist/{chunk-CVBHYZKI-Bb2XMuXJ.js → chunk-CVBHYZKI-D8iwHsLF.js} +1 -1
- package/dist/{chunk-DI55MBZ5-RhhAimfG.js → chunk-DI55MBZ5-DQeYbfMV.js} +6 -6
- package/dist/{chunk-XAJISQIX-CZ8Bi1-x.js → chunk-DR5Q36YT-D4q96vNV.js} +2 -2
- package/dist/{chunk-EXTU4WIE-Bmo660a9.js → chunk-EXTU4WIE-CV_DQeaX.js} +2 -2
- package/dist/{chunk-FMBD7UC4-C0DZU_4q.js → chunk-FMBD7UC4-XTL4xAvH.js} +1 -1
- package/dist/{chunk-LBM3YZW2-BkxsqkNK.js → chunk-FRFDVMJY-C7q09nvl.js} +2 -2
- package/dist/{chunk-HN2XXSSU-BsB4dtgF.js → chunk-HN2XXSSU-CzO5Phf0.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-n8UTzfok.js → chunk-JA3XYJ7Z-Cmt--e0q.js} +3 -3
- package/dist/{chunk-JZLCHNYA-ChKqHUdB.js → chunk-JZLCHNYA-CkyMJnI9.js} +6 -6
- package/dist/{chunk-MI3HLSF2-DeDZS-tQ.js → chunk-MI3HLSF2-DvCKDmpi.js} +1 -1
- package/dist/{chunk-N4CR4FBY-BxOHGL3P.js → chunk-N4CR4FBY-BJfHtJbD.js} +7 -7
- package/dist/{chunk-T53DSG4Q-Bewz1tiU.js → chunk-PL6DKKU2-ChKBqnoD.js} +2 -2
- package/dist/{chunk-QN33PNHL-Dda-55xY.js → chunk-QN33PNHL-WOLIPUAJ.js} +2 -2
- package/dist/{chunk-QXUST7PY-ClIEpoCT.js → chunk-QXUST7PY-DYuD50pU.js} +10 -10
- package/dist/{chunk-QZHKN3VN-Diy_Cdek.js → chunk-QZHKN3VN-CYbwZKgJ.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-C_1SJcWo.js → chunk-S3R3BYOJ-CsnX6RKs.js} +8 -8
- package/dist/{chunk-76Q3JFCE-CQ6a2yGJ.js → chunk-SJTYNZTY-j6_1s5om.js} +2 -2
- package/dist/{chunk-FPAJGGOC-quWdfNUB.js → chunk-TCCFYFTB-DdLCbCTn.js} +3995 -3985
- package/dist/{chunk-LHMN2FUI-CgYPnxfN.js → chunk-TQ3KTPDO-CGsUIC73.js} +2 -2
- package/dist/{chunk-TZMSLE5B-XW3duOft.js → chunk-TZMSLE5B-B3eYTGCw.js} +3 -3
- package/dist/{chunk-O7ZBX7Z2-CdpLwOP0.js → chunk-UMXZTB3W--LdAK3Bv.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-C7C-oefv.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-UTw37Gg8.js +30 -0
- package/dist/{clike-B90WKs4D.js → clike-CLJYUAWw.js} +1 -1
- package/dist/clojure-B2uhdQPa.js +4 -0
- package/dist/{clone-V9hndNcj.js → clone-BJrS4PdE.js} +1 -1
- package/dist/cmake-B9WXyQcc.js +4 -0
- package/dist/cobol-CPD3EJfO.js +4 -0
- package/dist/{code-block-37QAKDTI-zh5AeoJo.js → code-block-37QAKDTI-DV_ZyoUh.js} +1 -1
- package/dist/coffeescript-KD9TnEnS.js +4 -0
- package/dist/commonlisp-DNEULz_Q.js +4 -0
- package/dist/{constants-BGRTDzdW.js → constants-D1Tbg_6B.js} +3 -2
- package/dist/{cose-bilkent-S5V4N54A-BK1nIR2J.js → cose-bilkent-S5V4N54A-BCDTZDay.js} +2 -2
- package/dist/crystal-DVPNgAPQ.js +4 -0
- package/dist/css-fq3a1AH1.js +4 -0
- package/dist/cypher-Dtzq0BP7.js +4 -0
- package/dist/d-DcZudIhJ.js +4 -0
- package/dist/{dagre-6UL2VRFP-BArPH353.js → dagre-6UL2VRFP-BgsUhJrV.js} +88 -87
- package/dist/{dagre-Dcgyn_Uy.js → dagre-CyZCGfV_.js} +41 -84
- package/dist/{data-grid-overlay-editor-BVFT970w.js → data-grid-overlay-editor-BD0BFHzy.js} +2 -2
- package/dist/{diagram-PSM6KHXK-B1xAkr9y.js → diagram-PSM6KHXK-BIUUOfKo.js} +22 -22
- package/dist/{diagram-QEK2KX5R-CaoqwzPb.js → diagram-QEK2KX5R-BFjolZQv.js} +17 -17
- package/dist/{diagram-S2PKOQOG-NXCsFLvR.js → diagram-S2PKOQOG-4jfkWoZw.js} +17 -17
- package/dist/diff-D9BPDC3o.js +4 -0
- package/dist/{dist-IlWGXVjO.js → dist-7ZF--V_D.js} +2 -2
- package/dist/dist-BAeGo2rp.js +5 -0
- package/dist/{dist-Ey9hP8-j.js → dist-BBcqvpvP.js} +1 -1
- package/dist/{dist-DpAbrLuF.js → dist-BFL9TlzD.js} +5 -5
- package/dist/{dist-CD7uLx0M.js → dist-BLThQiU4.js} +2 -2
- package/dist/{dist-CoZ8kKKW.js → dist-BT6_J2eq.js} +1 -1
- package/dist/{dist-C_9IMrtt.js → dist-BTQbjEKU.js} +1 -1
- package/dist/dist-BqwCMSEa.js +5 -0
- package/dist/{dist-CUOuFgHt.js → dist-BuapEdlD.js} +113 -58
- package/dist/dist-Bum8FwTO.js +6 -0
- package/dist/{dist-LNp8svLl.js → dist-BwQHkjA9.js} +4 -4
- package/dist/dist-C0YiOwt_.js +5 -0
- package/dist/dist-C2uPv4iU.js +5 -0
- package/dist/{dist-Dmr_nXF6.js → dist-C4XMUaob.js} +2 -2
- package/dist/dist-C5hOLsJN.js +8 -0
- package/dist/{dist-a6Obzr07.js → dist-C6z8U-ms.js} +2 -2
- package/dist/dist-C9NIAKMs.js +8 -0
- package/dist/{dist-EZFqUJhh.js → dist-CB6qhQ8K.js} +1 -1
- package/dist/dist-CCrzTtvk.js +5 -0
- package/dist/dist-CFS9i1rS.js +8 -0
- package/dist/{dist-CMOy93xY.js → dist-CFToYDWO.js} +2 -2
- package/dist/{dist-DF_77D2B.js → dist-COpDrwi-.js} +1 -1
- package/dist/{dist-D8EhXZ4S.js → dist-CYo3w-nC.js} +3 -3
- package/dist/{dist-Dv2Phbh5.js → dist-Cb3cLT39.js} +2 -2
- package/dist/{dist-DOLQQtWK.js → dist-Ch_JuCvc.js} +3 -3
- package/dist/{dist-Cb3iqED3.js → dist-Cqpjy6bK.js} +1 -1
- package/dist/{dist-BswsDM4k.js → dist-CsqiXw7J.js} +2 -2
- package/dist/{dist-BoagoQQw.js → dist-CwtEWuFb.js} +2 -2
- package/dist/dist-CyHZuhPH.js +5 -0
- package/dist/dist-CzcjWdIk.js +6 -0
- package/dist/{dist-BUEi7EKT.js → dist-D0f6Yrrb.js} +1 -1
- package/dist/{dist-C5QB1NtD.js → dist-D7ZGWV_9.js} +3 -3
- package/dist/{dist-CrAYcS_4.js → dist-DEFZ7dnD.js} +2 -2
- package/dist/{dist-DrC0QKFK.js → dist-DMS81OrU.js} +1 -1
- package/dist/{dist-iyBCcLRa.js → dist-DUxS2paD.js} +2 -2
- package/dist/dist-DaYyUSNC.js +5 -0
- package/dist/{dist-W6TdeACj.js → dist-De9X_Des.js} +1 -1
- package/dist/dist-DpDcJYNh.js +8 -0
- package/dist/{dist-bz6WguLy.js → dist-I8MQW60_.js} +2 -2
- package/dist/{dist-BGzkWRSl.js → dist-IW_ARJ3S.js} +4 -4
- package/dist/{dist-xCB683Dh.js → dist-Qjf6pcqK.js} +2 -2
- package/dist/{dist-B_i29Q6L.js → dist-UYm1IE5s.js} +2 -2
- package/dist/dist-U_BfxcPn.js +5 -0
- package/dist/{dist-iDeoXzdN.js → dist-ovDpXuSB.js} +1 -1
- package/dist/{dockerfile-D1Q_4uCN.js → dockerfile-BxhYdLHL.js} +1 -1
- package/dist/dtd-FhG-tVom.js +4 -0
- package/dist/dylan-HWpZOBPw.js +4 -0
- package/dist/ecl-B_rcje1I.js +4 -0
- package/dist/eiffel-oqHyHs6f.js +4 -0
- package/dist/elm-B62RQEds.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-DWCa11g5.js → erDiagram-Q2GNP2WA-Cq5Bz5lG.js} +15 -15
- package/dist/erlang-CjRjjA-B.js +4 -0
- package/dist/{esm-DZSk8vt3.js → esm-BxMbHo0y.js} +107 -107
- package/dist/factor-CGH_TnIV.js +4 -0
- package/dist/{factor--4HHM8Rw.js → factor-Png_OsVt.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-BQ5PQs4L.js → flowDiagram-NV44I4VS-6WPJVFl7.js} +17 -17
- package/dist/forth-5N06oHNp.js +4 -0
- package/dist/fortran-wZ-sNg3h.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-NTOuNWeT.js → ganttDiagram-JELNMOA3-AfDhh9CI.js} +10 -10
- package/dist/gas-3H4_FaS8.js +4 -0
- package/dist/gherkin-PEA2uy50.js +4 -0
- package/dist/{gitGraph-F6HP7TQM-DfRNsaDw.js → gitGraph-G5XIXVHT-C0o6gecv.js} +3 -3
- package/dist/{gitGraphDiagram-NY62KEGX-CYke62Ot.js → gitGraphDiagram-V2S2FVAM-BRSwuj0Q.js} +17 -17
- package/dist/{glide-data-editor-DttqGjrT.js → glide-data-editor-ByPNTNVG.js} +7 -7
- package/dist/graphlib-DZnBMcsX.js +228 -0
- package/dist/groovy-DZzbvCP1.js +4 -0
- package/dist/haskell-CExLTzho.js +4 -0
- package/dist/haxe-f3pVb8qU.js +5 -0
- package/dist/idl-BbWlJ0gk.js +4 -0
- package/dist/{info-NVLQJR56-CUaoPtis.js → info-VBDWY6EO-Bzsods6X.js} +3 -3
- package/dist/infoDiagram-HS3SLOUP-Cmxo6jKx.js +30 -0
- package/dist/{_baseFor-B69PDbIz.js → isArrayLikeObject-Btu-i6_P.js} +216 -44
- package/dist/{isEmpty-6z2uv6gM.js → isEmpty-CZvUtYFp.js} +2 -2
- package/dist/{isString-D6abkXrl.js → isString-CBr7TEb7.js} +1 -1
- package/dist/{isSymbol-hk7foJ70.js → isSymbol-BuQsMXhk.js} +1 -1
- package/dist/javascript-eMOhp6Aq.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-ahXD97kr.js → journeyDiagram-XKPGCS4Q-CKYr8cSR.js} +7 -7
- package/dist/julia-C6w3Rvqb.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-CiTIpnhy.js → kanban-definition-3W4ZIXB7-DVvAZzQD.js} +12 -12
- package/dist/{katex-DaGuLbVh.js → katex-pyO_klYC.js} +1 -1
- package/dist/{label-Cc5tEavt.js → label-CV0KYhtH.js} +4 -10
- package/dist/{line-Bc27KE1D.js → line-C1k1rG3Z.js} +3 -3
- package/dist/{linear-Bnc6E9kA.js → linear-DIp6l9sg.js} +4 -4
- package/dist/livescript-ChQl9lD-.js +4 -0
- package/dist/{loader-Cob3XFOw.js → loader-eJCvvApN.js} +2 -2
- package/dist/lua-CiDvI96j.js +4 -0
- package/dist/main-Tj_-QTyF.js +4321 -0
- package/dist/main.js +2025 -5032
- package/dist/mathematica-ClVO4k7N.js +4 -0
- package/dist/mbox-BEI7DeUg.js +4 -0
- package/dist/{memoize-Ckyqzyu_.js → memoize-P1T1IGb9.js} +1 -1
- package/dist/merge-CGQkMGzr.js +51 -0
- package/dist/{mermaid-4DMBBIKO-BmJdHPwx.js → mermaid-4DMBBIKO-PVrJfEpX.js} +1 -1
- package/dist/{mermaid-B5xl_2hx.js → mermaid-COOB_abB.js} +46 -46
- package/dist/{mermaid-parser.core-BXj7Il0J.js → mermaid-parser.core-Cd-wu4tE.js} +8 -8
- package/dist/{mhchem-B_tiMbKF.js → mhchem-DckvwtV8.js} +1 -1
- package/dist/min-CMDDtXJP.js +89 -0
- package/dist/{mindmap-definition-VGOIOE7T-Mni766A_.js → mindmap-definition-VGOIOE7T-1ExmnvYy.js} +14 -14
- package/dist/mirc-DwidJ3iH.js +4 -0
- package/dist/mllike-Dspdy0xJ.js +6 -0
- package/dist/modelica-CIUejP-L.js +4 -0
- package/dist/mscgen-BWXU4Omp.js +6 -0
- package/dist/mumps-PHFFoPk5.js +4 -0
- package/dist/now-BxlRp0OQ.js +7 -0
- package/dist/nsis-B7xooKLf.js +4 -0
- package/dist/{nsis-B6EN9LWI.js → nsis-BrAITej_.js} +1 -1
- package/dist/ntriples-DnOgtCzG.js +4 -0
- package/dist/{number-overlay-editor-DKVJgXpp.js → number-overlay-editor-CQrncFlP.js} +1 -1
- package/dist/octave-Cn5kH_QT.js +4 -0
- package/dist/{once-C9dA9qgQ.js → once-BqS42WgZ.js} +1 -1
- package/dist/{ordinal-DLLbwLkP.js → ordinal-Dcvf4J1m.js} +1 -1
- package/dist/oz-DR-sROpu.js +4 -0
- package/dist/{packet-BFZMPI3H-DHtQCusE.js → packet-DYOGHKS2-Bf1CvFco.js} +3 -3
- package/dist/pascal-CPKK1zcS.js +4 -0
- package/dist/perl-D7FuFdyd.js +4 -0
- package/dist/{pie-7BOR55EZ-2sVLYbpR.js → pie-VRWISCQL-LY_wbqji.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-PbXpgT8_.js → pieDiagram-ADFJNKIX-CJlIsdsU.js} +22 -22
- package/dist/pig-CEXnOAnI.js +4 -0
- package/dist/powershell-BKvWab7q.js +4 -0
- package/dist/{precisionRound-Duzbr5ur.js → precisionRound-BAc-kQ3q.js} +1 -1
- package/dist/properties-7jnK_vYx.js +4 -0
- package/dist/protobuf-4rslMjEN.js +4 -0
- package/dist/pug-BVwdEv4r.js +4 -0
- package/dist/{pug-xrm7jQ2R.js → pug-CH-17az-.js} +1 -1
- package/dist/puppet-iSHg_1Z2.js +4 -0
- package/dist/python-tK3wUCn0.js +4 -0
- package/dist/q-DP_Dcoox.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BtXGnx8i.js → quadrantDiagram-AYHSOK5B-BU78RiaH.js} +5 -5
- package/dist/r-C32wHLYu.js +4 -0
- package/dist/{radar-NHE76QYJ-Be0pEUux.js → radar-ZZBFDIW7-Ro3iXZCk.js} +3 -3
- package/dist/range-Dh0_-r8P.js +30 -0
- package/dist/{react-vega-CCNu2JE0.js → react-vega-C6kwcd86.js} +18 -18
- package/dist/react-vega-CFUuchds.js +9 -0
- package/dist/reduce-BXFHs7IQ.js +268 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DxzXQRgq.js → requirementDiagram-UZGBJVZJ-DACHtrFr.js} +14 -14
- package/dist/rpm-BbDBUfs9.js +5 -0
- package/dist/ruby-COfWUiIr.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-D-I7dJ0_.js → sankeyDiagram-TZEHDZUN-Bzg7_UWs.js} +5 -5
- package/dist/sas-y_Hue2-X.js +4 -0
- package/dist/scheme-7jTCqHw8.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-VDme2ljw.js → sequenceDiagram-WL72ISMW-agybEe9J.js} +8 -8
- package/dist/shell-DAqJWXDk.js +4 -0
- package/dist/sieve-EaqnbCO3.js +4 -0
- package/dist/slides-component-B0yK5GXP.js +3057 -0
- package/dist/smalltalk-DL03YKLJ.js +4 -0
- package/dist/sparql-DTA-tQ_q.js +4 -0
- package/dist/{spec-GwhMEXwK.js → spec-Dq_reDGM.js} +4 -4
- package/dist/{src-jICM_d2B.js → src-CHUphWwL.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-g3GI1EcK.js → stateDiagram-FKZM4ZOC-DehQAt8g.js} +19 -19
- package/dist/stateDiagram-v2-4FDKWEC3-8VzeREl9.js +29 -0
- package/dist/{step-BqVgkWtk.js → step-BbmiiQdf.js} +1 -1
- package/dist/stex-KfRnSHzF.js +4 -0
- package/dist/style.css +1 -1
- package/dist/stylus-CfjeFry_.js +4 -0
- package/dist/swift-Dl0RRDbH.js +4 -0
- package/dist/tcl-wv9O7fLZ.js +4 -0
- package/dist/textile-DzMRCBcV.js +4 -0
- package/dist/{time-CrYsYnQU.js → time-DFFVNc1Q.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-bhvLlX_b.js → timeline-definition-IT6M3QCI-CdCfdaCF.js} +4 -4
- package/dist/toNumber-By7s5JC_.js +28 -0
- package/dist/{toString-BwTJvlyD.js → toString-Ckpb50uw.js} +8 -8
- package/dist/toml-CyIWqgbe.js +4 -0
- package/dist/{treemap-KMMF4GRG-Ba9ifjpG.js → treemap-GDKQZRPO-DRxfDG65.js} +3 -3
- package/dist/troff-_huin_CY.js +4 -0
- package/dist/ttcn-BEiJuYYc.js +4 -0
- package/dist/ttcn-cfg-DB6Ksh67.js +4 -0
- package/dist/turtle-DzhzGEum.js +4 -0
- package/dist/{types-Dsh6yC4B.js → types-BwnzGcE4.js} +31 -32
- package/dist/uniq-cCc07Q8K.js +8 -0
- package/dist/{useAsyncData-BPpyKjTJ.js → useAsyncData-B4hMFGnF.js} +2 -2
- package/dist/{useDeepCompareMemoize-C8Ms87P-.js → useDeepCompareMemoize-DuPhOXzr.js} +3 -3
- package/dist/{useIframeCapabilities-C7z8VrZ1.js → useIframeCapabilities-CAt6D2EI.js} +1 -1
- package/dist/{useTheme-Cq-gIssy.js → useTheme-BNYQnvu-.js} +2 -2
- package/dist/vb-CngKZQHu.js +4 -0
- package/dist/vbscript-BV_8nbeM.js +4 -0
- package/dist/{vega-component-B5sxdjMq.js → vega-component-DouPy8AI.js} +12 -15
- package/dist/{vega-loader.browser-DqHiiBeQ.js → vega-loader.browser-CQ-lnUkI.js} +3 -3
- package/dist/velocity-IqE7qYKE.js +4 -0
- package/dist/verilog-xtyaWTnc.js +4 -0
- package/dist/vhdl-BaqXCtf3.js +4 -0
- package/dist/webidl-BDB8PTTO.js +4 -0
- package/dist/xquery-BIC-qj9Z.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-CFxuifYY.js → xychartDiagram-PRI3JC2R-rEm_SIsC.js} +13 -13
- package/dist/yacas-ifv5tftd.js +4 -0
- package/dist/z80-B8zOMVNt.js +4 -0
- package/package.json +11 -11
- package/src/__mocks__/requests.ts +2 -0
- package/src/components/app-config/ai-config.tsx +1 -1
- package/src/components/app-config/user-config-form.tsx +27 -0
- package/src/components/data-table/__tests__/pagination.test.tsx +16 -24
- package/src/components/data-table/charts/lazy-chart.tsx +1 -1
- package/src/components/data-table/data-table.tsx +20 -18
- package/src/components/data-table/pagination.tsx +138 -56
- package/src/components/data-table/range-focus/__tests__/cell-selection-stats.test.tsx +365 -0
- package/src/components/data-table/range-focus/__tests__/test-utils.ts +77 -0
- package/src/components/data-table/range-focus/__tests__/utils.test.ts +205 -65
- package/src/components/data-table/range-focus/cell-selection-stats.tsx +79 -0
- package/src/components/data-table/range-focus/utils.ts +69 -7
- package/src/components/data-table/types.ts +4 -0
- package/src/components/databases/engine-variable.tsx +2 -1
- package/src/components/databases/icons/google-cloud-storage.svg +38 -0
- package/src/components/datasources/components.tsx +6 -2
- package/src/components/dependency-graph/minimap-content.tsx +3 -5
- package/src/components/dependency-graph/utils/__tests__/cell-preview.test.ts +143 -0
- package/src/components/dependency-graph/utils/cell-preview.ts +46 -0
- package/src/components/editor/Output.tsx +3 -28
- package/src/components/editor/cell/cell-actions.tsx +6 -5
- package/src/components/editor/cell/cell-context-menu.tsx +11 -7
- package/src/components/editor/chrome/panels/components.tsx +88 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +120 -7
- package/src/components/editor/chrome/panels/outline/floating-outline.tsx +27 -15
- package/src/components/editor/chrome/panels/session-panel.tsx +24 -35
- package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +17 -1
- package/src/components/editor/file-tree/file-explorer.tsx +38 -6
- package/src/components/editor/file-tree/file-header.tsx +61 -0
- package/src/components/editor/file-tree/file-viewer.tsx +88 -167
- package/src/components/editor/file-tree/renderers.tsx +142 -21
- package/src/components/editor/file-tree/requesting-tree.tsx +6 -2
- package/src/components/editor/output/console/ConsoleOutput.tsx +34 -2
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +13 -0
- package/src/components/icons/marimo-icons.tsx +173 -0
- package/src/components/markdown/markdown-renderer.tsx +3 -20
- package/src/components/pages/run-page.tsx +2 -2
- package/src/components/storage/components.tsx +86 -0
- package/src/components/storage/storage-file-viewer.tsx +225 -0
- package/src/components/storage/storage-inspector.tsx +610 -0
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +79 -0
- package/src/core/ai/tools/edit-notebook-tool.ts +5 -0
- package/src/core/cells/__tests__/cells.test.ts +30 -0
- package/src/core/cells/cells.ts +6 -1
- package/src/core/cells/outline.ts +7 -1
- package/src/core/cells/outputs.ts +20 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +76 -62
- package/src/core/codemirror/language/panel/sql.tsx +3 -3
- package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +123 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +196 -0
- package/src/core/codemirror/lsp/normalize-markdown-math.ts +381 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +59 -3
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/core/dom/__tests__/outline.test.ts +48 -0
- package/src/core/dom/outline.ts +13 -2
- package/src/core/islands/bridge.ts +2 -0
- package/src/core/islands/main.ts +2 -0
- package/src/core/network/requests-lazy.ts +2 -0
- package/src/core/network/requests-network.ts +16 -0
- package/src/core/network/requests-static.ts +2 -0
- package/src/core/network/requests-toasting.tsx +2 -0
- package/src/core/network/types.ts +6 -0
- package/src/core/storage/__tests__/state.test.ts +345 -0
- package/src/core/storage/__tests__/types.test.ts +83 -0
- package/src/core/storage/__tests__/useStorageEntries.test.tsx +187 -0
- package/src/core/storage/request-registry.ts +36 -0
- package/src/core/storage/state.ts +132 -0
- package/src/core/storage/types.ts +57 -0
- package/src/core/wasm/bridge.ts +2 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +19 -1
- package/src/hooks/__tests__/useNonce.test.tsx +127 -0
- package/src/hooks/__tests__/useOverflowDetection.test.tsx +127 -0
- package/src/hooks/useNonce.ts +6 -5
- package/src/hooks/useOverflowDetection.ts +36 -0
- package/src/plugins/impl/MatrixPlugin.tsx +5 -2
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
- package/src/plugins/impl/code/any-language-editor.tsx +14 -3
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +37 -2
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +13 -1
- package/src/utils/__tests__/filenames.test.ts +54 -1
- package/src/utils/filenames.ts +42 -0
- package/dist/apl-C1bki_dE.js +0 -4
- package/dist/architecture-U656AL7Q-Jd2CvPgJ.js +0 -6
- package/dist/asciiarmor-BdlkCCRr.js +0 -4
- package/dist/asn1-CvE30hox.js +0 -4
- package/dist/brainfuck-BalwWy1a.js +0 -4
- package/dist/classDiagram-2ON5EDUG-CUJlS_eo.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-BhSPpbkE.js +0 -30
- package/dist/clojure-CUC2I1hM.js +0 -4
- package/dist/cmake-8PcMxXnB.js +0 -4
- package/dist/cobol-DkkkDz5v.js +0 -4
- package/dist/coffeescript-CCupxOZf.js +0 -4
- package/dist/commonlisp-DhUfGX6b.js +0 -4
- package/dist/crystal-DSaw6rFQ.js +0 -4
- package/dist/css-D4QDewkG.js +0 -4
- package/dist/cypher-CrYVqw_F.js +0 -4
- package/dist/d-Cr3H3pPx.js +0 -4
- package/dist/diff-ODiZJGls.js +0 -4
- package/dist/dist-BA-HK7pI.js +0 -5
- package/dist/dist-BD5GU948.js +0 -5
- package/dist/dist-BIYmAsND.js +0 -5
- package/dist/dist-BcKTJXJi.js +0 -5
- package/dist/dist-BgnrtcWg.js +0 -8
- package/dist/dist-C1njTlBq.js +0 -5
- package/dist/dist-CSKHwJYH.js +0 -5
- package/dist/dist-CSKKyiIq.js +0 -5
- package/dist/dist-CrQ_pOuK.js +0 -6
- package/dist/dist-Cskx1daf.js +0 -5
- package/dist/dist-D4i0Ef34.js +0 -8
- package/dist/dist-DOcn61TX.js +0 -8
- package/dist/dist-DwMejAPB.js +0 -6
- package/dist/dist-DzSe1wby.js +0 -8
- package/dist/dtd-C-t2Rk7F.js +0 -4
- package/dist/dylan-B4ctBLGp.js +0 -4
- package/dist/ecl-DqWfymni.js +0 -4
- package/dist/eiffel-DjBKKAr7.js +0 -4
- package/dist/elm--fxeC0FV.js +0 -4
- package/dist/erlang-CaKXCX6H.js +0 -4
- package/dist/factor-DlLO5EFS.js +0 -4
- package/dist/flatten-CWZjF1fc.js +0 -8
- package/dist/forth-rOO6LVj_.js +0 -4
- package/dist/fortran-CUg15VGR.js +0 -4
- package/dist/gas-BMRJspiW.js +0 -4
- package/dist/gherkin-DRxzijZU.js +0 -4
- package/dist/graphlib-CwMnCnQ9.js +0 -362
- package/dist/groovy-BmrQ8pUP.js +0 -4
- package/dist/haskell-BuaYfKOz.js +0 -4
- package/dist/haxe-DcH9eA0a.js +0 -5
- package/dist/idl-DGlcm4Ls.js +0 -4
- package/dist/infoDiagram-WHAUD3N6-B42WjAPh.js +0 -30
- package/dist/javascript-CeTk7rzr.js +0 -4
- package/dist/julia-BoP_q1gm.js +0 -4
- package/dist/livescript-B7IMN-ba.js +0 -4
- package/dist/lua-q1InavKb.js +0 -4
- package/dist/main-DmxVpB19.js +0 -1089
- package/dist/mathematica-DvR8-_EI.js +0 -4
- package/dist/mbox-7h5MNBS_.js +0 -4
- package/dist/merge-Db4Uulx4.js +0 -222
- package/dist/min-ypdVXicC.js +0 -38
- package/dist/mirc-D-XM8A5c.js +0 -4
- package/dist/mllike-BQGkkbmf.js +0 -6
- package/dist/modelica-D_yRj_WU.js +0 -4
- package/dist/mscgen-B-rltAjp.js +0 -6
- package/dist/mumps-2kh8TU2b.js +0 -4
- package/dist/now-Dwu5ou19.js +0 -31
- package/dist/nsis-CtusEqwb.js +0 -4
- package/dist/ntriples-BdAXw6zV.js +0 -4
- package/dist/octave-CsNFmVp5.js +0 -4
- package/dist/oz-odIXCrKd.js +0 -4
- package/dist/pascal-B9Mfk3Fo.js +0 -4
- package/dist/perl-C48inLcz.js +0 -4
- package/dist/pig-uwRtAssU.js +0 -4
- package/dist/powershell-CXqlca-i.js +0 -4
- package/dist/properties-D6Zu1rpK.js +0 -4
- package/dist/protobuf-BlNNWZaR.js +0 -4
- package/dist/pug-DytcK7bv.js +0 -4
- package/dist/puppet-lJ8Ok3iY.js +0 -4
- package/dist/python-cMaF7kUp.js +0 -4
- package/dist/q-Dgt2HYQh.js +0 -4
- package/dist/r-Bm4S4awf.js +0 -4
- package/dist/range-D9jxVFd_.js +0 -67
- package/dist/react-vega-1ub36dPZ.js +0 -9
- package/dist/reduce-C6NEPj6s.js +0 -133
- package/dist/rpm-_8LbzMVc.js +0 -5
- package/dist/ruby-Cr8IJ5VZ.js +0 -4
- package/dist/sas-CFcSfo2_.js +0 -4
- package/dist/scheme-N4XRoKgc.js +0 -4
- package/dist/shell-B4L7f_ds.js +0 -4
- package/dist/sieve-UI6J3Gm0.js +0 -4
- package/dist/slides-component-ql7-5GDI.js +0 -3048
- package/dist/smalltalk-BuaPZAZU.js +0 -4
- package/dist/sparql-1rKrq463.js +0 -4
- package/dist/stateDiagram-v2-4FDKWEC3-7i6jBXe6.js +0 -29
- package/dist/stex-D2rme5UG.js +0 -4
- package/dist/stylus-DvSovJEP.js +0 -4
- package/dist/swift-D-_E7Yyb.js +0 -4
- package/dist/tcl-Di5sAVHN.js +0 -4
- package/dist/textile-Benwt66z.js +0 -4
- package/dist/toml-CeOvPOkY.js +0 -4
- package/dist/troff-DJN9hfgu.js +0 -4
- package/dist/ttcn-DQW2Psjf.js +0 -4
- package/dist/ttcn-cfg-zFG_MNpg.js +0 -4
- package/dist/turtle-DHRyNlSc.js +0 -4
- package/dist/vb-CXWH9DD-.js +0 -4
- package/dist/vbscript-qr8qVck5.js +0 -4
- package/dist/velocity-C_9pUJRx.js +0 -4
- package/dist/verilog-DxBstgBa.js +0 -4
- package/dist/vhdl-odUxAbE6.js +0 -4
- package/dist/webidl-Dfn5Rku4.js +0 -4
- package/dist/xquery-CrJs6SXr.js +0 -4
- package/dist/yacas-B-uDDLZe.js +0 -4
- package/dist/z80-51gxgAXE.js +0 -4
- /package/dist/{ImageComparisonComponent-CRbA-1eg.js → ImageComparisonComponent-BYQfAfSR.js} +0 -0
- /package/dist/{Plot-C9vQQj4X.js → Plot-DfUav0o0.js} +0 -0
- /package/dist/{_arrayReduce-REKcIEj3.js → _arrayReduce-BfFy684W.js} +0 -0
- /package/dist/{_hasUnicode-DrSAc5A5.js → _hasUnicode-C32WqUu7.js} +0 -0
- /package/dist/{apl-Oc3bL26_.js → apl-DRxKiEot.js} +0 -0
- /package/dist/{array-CEIRxyh3.js → array-D-nrDupM.js} +0 -0
- /package/dist/{asciiarmor-DTbPh2VI.js → asciiarmor-C8HoXFIm.js} +0 -0
- /package/dist/{asn1-CGhwu1Ri.js → asn1-9Bo0DYT-.js} +0 -0
- /package/dist/{asterisk-Crp-Pien.js → asterisk-BsiuGzWq.js} +0 -0
- /package/dist/{brainfuck-CA0L8lRq.js → brainfuck-Db8njC-p.js} +0 -0
- /package/dist/{click-outside-container-C_k38vlR.js → click-outside-container-CKfwEZqH.js} +0 -0
- /package/dist/{clike-CEtUBPHD.js → clike-CFhUNtI5.js} +0 -0
- /package/dist/{clojure-BszjvdGo.js → clojure-CX7oovsp.js} +0 -0
- /package/dist/{cmake-B2Gvps8b.js → cmake-C29AR2kk.js} +0 -0
- /package/dist/{cobol-DuMch8nn.js → cobol-CNkuRW9i.js} +0 -0
- /package/dist/{coffeescript-L9aKXVsJ.js → coffeescript-BJAbfGam.js} +0 -0
- /package/dist/{colors-DR_aHfmQ.js → colors-6nB_pSln.js} +0 -0
- /package/dist/{common-keywords-NhoiR-2S.js → common-keywords-BAkLFdud.js} +0 -0
- /package/dist/{commonlisp-CrtdssxB.js → commonlisp-BTNhj2l9.js} +0 -0
- /package/dist/{crystal-vvNY0LpY.js → crystal-CZc0nIm9.js} +0 -0
- /package/dist/{css-B1GdzqT1.js → css-L2-0OTXc.js} +0 -0
- /package/dist/{cypher-BtZvV7bW.js → cypher-Dnc6MXl0.js} +0 -0
- /package/dist/{cytoscape.esm-CgJFiP_E.js → cytoscape.esm-BXzSsA6N.js} +0 -0
- /package/dist/{d-B0UN3V-Z.js → d-C6X9iIga.js} +0 -0
- /package/dist/{defaultLocale-DjFHq3Xk.js → defaultLocale-Bklbu-Tp.js} +0 -0
- /package/dist/{defaultLocale-B_A76Zpk.js → defaultLocale-CfQ4kBaV.js} +0 -0
- /package/dist/{diff-DOpgjj1W.js → diff-ZzKinYqY.js} +0 -0
- /package/dist/{dist-BYznkC5E.js → dist-Bymy0kEH.js} +0 -0
- /package/dist/{dtd-Ctnjxrle.js → dtd-CytEpkAo.js} +0 -0
- /package/dist/{duckdb-keywords-BnNtuiVz.js → duckdb-keywords-C1WxmSfG.js} +0 -0
- /package/dist/{dylan-DFXkoaZy.js → dylan-CZByFBEQ.js} +0 -0
- /package/dist/{ebnf-CFKHGc8c.js → ebnf-BF2FOt-m.js} +0 -0
- /package/dist/{ecl-C1NExZip.js → ecl-Cp7L1F5B.js} +0 -0
- /package/dist/{eiffel-uXVGgleg.js → eiffel-C66yjnFL.js} +0 -0
- /package/dist/{elm-CBOFnnib.js → elm-DtHo-73e.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm--WpIBtj8.js → emotion-is-prop-valid.esm-DtW2o230.js} +0 -0
- /package/dist/{erlang-DMnrT8XK.js → erlang-C_sj44mF.js} +0 -0
- /package/dist/{error-banner-vCG-EbUQ.js → error-banner-D0tXnwl4.js} +0 -0
- /package/dist/{esm-0_ieXYNc.js → esm-BWftfC-A.js} +0 -0
- /package/dist/{fcl-DPZwieM9.js → fcl-BhLcvRo_.js} +0 -0
- /package/dist/{forth-DDpxS4nw.js → forth-CIDHh56T.js} +0 -0
- /package/dist/{fortran-B6uYqQMz.js → fortran-BQrDVXRU.js} +0 -0
- /package/dist/{gas-BKnWzuFz.js → gas-D4HQPB0Q.js} +0 -0
- /package/dist/{gherkin-pBt0wT4X.js → gherkin-UB2gJHdT.js} +0 -0
- /package/dist/{groovy-DKsn4ppB.js → groovy-DVz6jkOx.js} +0 -0
- /package/dist/{haskell-BJVBJQcy.js → haskell-CpUdAPCz.js} +0 -0
- /package/dist/{haxe-rLN5UZU5.js → haxe-DCV5_cqD.js} +0 -0
- /package/dist/{http-AQJFxSug.js → http-C_TDb8VX.js} +0 -0
- /package/dist/{idl-B4mwMAo-.js → idl-D7WCIgHw.js} +0 -0
- /package/dist/{init-TaqZJsBY.js → init-Ci8VD8ZH.js} +0 -0
- /package/dist/{invariant-D-K49MfV.js → invariant-D9QLJ4SZ.js} +0 -0
- /package/dist/{javascript-Hf2NLNC0.js → javascript-B2Rn0Lmd.js} +0 -0
- /package/dist/{julia-GGpx21YN.js → julia-ApprtEaw.js} +0 -0
- /package/dist/{katex-Ba7xZPrx.js → katex-Bk_FvVSR.js} +0 -0
- /package/dist/{livescript-CSvXMspZ.js → livescript-BMLIlM7C.js} +0 -0
- /package/dist/{lua-CVMR5LMW.js → lua-DdDaW3tC.js} +0 -0
- /package/dist/{math-CTnb-N1W.js → math-HUZifhTs.js} +0 -0
- /package/dist/{mathematica-JENNt-p4.js → mathematica-PnNN7c2Z.js} +0 -0
- /package/dist/{mbox-mzifoc8E.js → mbox-B84OtHBK.js} +0 -0
- /package/dist/{mirc-BXoiItvN.js → mirc-BVWXJxIq.js} +0 -0
- /package/dist/{mllike-H-KR9OuH.js → mllike-BawXWupH.js} +0 -0
- /package/dist/{modelica-B6Hm3mMl.js → modelica-C8-X4Hf_.js} +0 -0
- /package/dist/{mscgen-D8TF_Hei.js → mscgen-BOM6dDj8.js} +0 -0
- /package/dist/{mumps-CD-kNPt4.js → mumps-DQOY8n05.js} +0 -0
- /package/dist/{nginx-hpek_Tnq.js → nginx-DkMgA__9.js} +0 -0
- /package/dist/{node-sql-parser-ChQUJk8A.js → node-sql-parser-D53LM_7b.js} +0 -0
- /package/dist/{ntriples-DgnpxU40.js → ntriples-DU8VrXdW.js} +0 -0
- /package/dist/{octave-CkobqyVm.js → octave-BzTIBsQ8.js} +0 -0
- /package/dist/{oz-ChDLd9tS.js → oz-DKFcZsoi.js} +0 -0
- /package/dist/{pascal-CvlkwK7E.js → pascal-DHBZ15pT.js} +0 -0
- /package/dist/{path-7gr7eZmp.js → path-BVI7RNUv.js} +0 -0
- /package/dist/{perl-BNEFTNbM.js → perl-75NMI3w0.js} +0 -0
- /package/dist/{pig-Cd1DMS7P.js → pig-B-HY1fo_.js} +0 -0
- /package/dist/{powershell-CPxA0zpc.js → powershell-DEH22U53.js} +0 -0
- /package/dist/{properties-BaFBm-Xa.js → properties-B1MzBoJC.js} +0 -0
- /package/dist/{protobuf-BQV_-X0H.js → protobuf-Dr14KV0p.js} +0 -0
- /package/dist/{puppet-LXLST0mx.js → puppet-C4z38l7v.js} +0 -0
- /package/dist/{purify.es-D4vaFt5N.js → purify.es-CyOIw8ru.js} +0 -0
- /package/dist/{python-DLjLzX4k.js → python-D2L7Nknt.js} +0 -0
- /package/dist/{q-DswTX1Y9.js → q-PxipHfgS.js} +0 -0
- /package/dist/{r-CO7NpMwE.js → r-CEMMu_Tf.js} +0 -0
- /package/dist/{range-DwpxnYuB.js → range-BToS7LsA.js} +0 -0
- /package/dist/{rpm-BlmEDT6r.js → rpm-D3xyahkR.js} +0 -0
- /package/dist/{ruby-BTPKgeZZ.js → ruby-DwEkwdiu.js} +0 -0
- /package/dist/{sas-DTDTiNO8.js → sas-L1W0BRft.js} +0 -0
- /package/dist/{scheme-UzAAg4GJ.js → scheme-CTybTrX0.js} +0 -0
- /package/dist/{shell-DQ0hQCsB.js → shell-BSx3LZnu.js} +0 -0
- /package/dist/{sieve-BVyYIx9u.js → sieve-BjUfbv-6.js} +0 -0
- /package/dist/{simple-mode-Dryu-fC9.js → simple-mode-IPZGFbI6.js} +0 -0
- /package/dist/{smalltalk-DAdMAHTu.js → smalltalk-BlzuYrMv.js} +0 -0
- /package/dist/{solr-BSTJW269.js → solr-Cj_9RM4d.js} +0 -0
- /package/dist/{sparql-Bi7quYgw.js → sparql-BXKjQ0cK.js} +0 -0
- /package/dist/{spreadsheet-CiBky1_y.js → spreadsheet-CifI10GO.js} +0 -0
- /package/dist/{sql-BXZovj-z.js → sql-B0bFyY1c.js} +0 -0
- /package/dist/{stex-DIvyJfNO.js → stex-BIsgBmK4.js} +0 -0
- /package/dist/{stylus-jhpzcQ6Y.js → stylus-CqrLLVnG.js} +0 -0
- /package/dist/{swift-BrO8qThZ.js → swift-DIqvj3_G.js} +0 -0
- /package/dist/{tcl-s5QI5gv3.js → tcl-B8bOIGVK.js} +0 -0
- /package/dist/{textile-ClhvJrxM.js → textile-DZsjavD_.js} +0 -0
- /package/dist/{tiddlywiki-DLTDKQCh.js → tiddlywiki-BbGdvEjx.js} +0 -0
- /package/dist/{tiki-tw_kBvbp.js → tiki-BYesmRDo.js} +0 -0
- /package/dist/{timer-DV8t68ti.js → timer-CPsmIOdm.js} +0 -0
- /package/dist/{toml-TFa3EJQE.js → toml-Uc7m08nl.js} +0 -0
- /package/dist/{treemap-CQJ0bIDy.js → treemap-DMn4tIJ7.js} +0 -0
- /package/dist/{troff-SqLg0heF.js → troff-GEl5wcXR.js} +0 -0
- /package/dist/{ttcn-cfg-Dopc-iwE.js → ttcn-cfg-dZQ_fWTH.js} +0 -0
- /package/dist/{ttcn-Cfrap7HJ.js → ttcn-pr4FDOLT.js} +0 -0
- /package/dist/{turtle-Dt52DvVH.js → turtle-TPRDOknA.js} +0 -0
- /package/dist/{vb-D1pAvfDe.js → vb-BJUAeTYr.js} +0 -0
- /package/dist/{vbscript-DZ7RBxn5.js → vbscript-CcJ6Z3ic.js} +0 -0
- /package/dist/{velocity-Csau7eZy.js → velocity-pq4ZMzU3.js} +0 -0
- /package/dist/{verilog-gXlZACs5.js → verilog-timMNjHt.js} +0 -0
- /package/dist/{vhdl-NaUWbI1B.js → vhdl-DYFbVKNm.js} +0 -0
- /package/dist/{webidl-BJmPjW01.js → webidl-pue9oqnb.js} +0 -0
- /package/dist/{xquery-CJIPsC0g.js → xquery-DeItGynK.js} +0 -0
- /package/dist/{yacas-8f2Vjiiz.js → yacas-By2Qrjba.js} +0 -0
- /package/dist/{z80-s5Xk2hCP.js → z80-C7iLsyPC.js} +0 -0
- /package/src/components/editor/file-tree/__tests__/{file-expolorer.test.ts → file-explorer.test.ts} +0 -0
|
@@ -0,0 +1,4321 @@
|
|
|
1
|
+
import { a as __toCommonJS, n as __esmMin, r as __export, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
2
|
+
var require_is$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.stringArray = e.array = e.func = e.error = e.number = e.string = e.boolean = void 0;
|
|
4
|
+
function t(e2) {
|
|
5
|
+
return e2 === true || e2 === false;
|
|
6
|
+
}
|
|
7
|
+
e.boolean = t;
|
|
8
|
+
function n(e2) {
|
|
9
|
+
return typeof e2 == "string" || e2 instanceof String;
|
|
10
|
+
}
|
|
11
|
+
e.string = n;
|
|
12
|
+
function r(e2) {
|
|
13
|
+
return typeof e2 == "number" || e2 instanceof Number;
|
|
14
|
+
}
|
|
15
|
+
e.number = r;
|
|
16
|
+
function i(e2) {
|
|
17
|
+
return e2 instanceof Error;
|
|
18
|
+
}
|
|
19
|
+
e.error = i;
|
|
20
|
+
function a(e2) {
|
|
21
|
+
return typeof e2 == "function";
|
|
22
|
+
}
|
|
23
|
+
e.func = a;
|
|
24
|
+
function o(e2) {
|
|
25
|
+
return Array.isArray(e2);
|
|
26
|
+
}
|
|
27
|
+
e.array = o;
|
|
28
|
+
function s(e2) {
|
|
29
|
+
return o(e2) && e2.every((e3) => n(e3));
|
|
30
|
+
}
|
|
31
|
+
e.stringArray = s;
|
|
32
|
+
})), require_messages$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
33
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.Message = e.NotificationType9 = e.NotificationType8 = e.NotificationType7 = e.NotificationType6 = e.NotificationType5 = e.NotificationType4 = e.NotificationType3 = e.NotificationType2 = e.NotificationType1 = e.NotificationType0 = e.NotificationType = e.RequestType9 = e.RequestType8 = e.RequestType7 = e.RequestType6 = e.RequestType5 = e.RequestType4 = e.RequestType3 = e.RequestType2 = e.RequestType1 = e.RequestType = e.RequestType0 = e.AbstractMessageSignature = e.ParameterStructures = e.ResponseError = e.ErrorCodes = void 0;
|
|
34
|
+
var t = require_is$1(), n;
|
|
35
|
+
(function(e2) {
|
|
36
|
+
e2.ParseError = -32700, e2.InvalidRequest = -32600, e2.MethodNotFound = -32601, e2.InvalidParams = -32602, e2.InternalError = -32603, e2.jsonrpcReservedErrorRangeStart = -32099, e2.serverErrorStart = -32099, e2.MessageWriteError = -32099, e2.MessageReadError = -32098, e2.PendingResponseRejected = -32097, e2.ConnectionInactive = -32096, e2.ServerNotInitialized = -32002, e2.UnknownErrorCode = -32001, e2.jsonrpcReservedErrorRangeEnd = -32e3, e2.serverErrorEnd = -32e3;
|
|
37
|
+
})(n || (e.ErrorCodes = n = {})), e.ResponseError = class e2 extends Error {
|
|
38
|
+
constructor(r2, i, a2) {
|
|
39
|
+
super(i), this.code = t.number(r2) ? r2 : n.UnknownErrorCode, this.data = a2, Object.setPrototypeOf(this, e2.prototype);
|
|
40
|
+
}
|
|
41
|
+
toJson() {
|
|
42
|
+
let e3 = {
|
|
43
|
+
code: this.code,
|
|
44
|
+
message: this.message
|
|
45
|
+
};
|
|
46
|
+
return this.data !== void 0 && (e3.data = this.data), e3;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var r = class e2 {
|
|
50
|
+
constructor(e3) {
|
|
51
|
+
this.kind = e3;
|
|
52
|
+
}
|
|
53
|
+
static is(t2) {
|
|
54
|
+
return t2 === e2.auto || t2 === e2.byName || t2 === e2.byPosition;
|
|
55
|
+
}
|
|
56
|
+
toString() {
|
|
57
|
+
return this.kind;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
e.ParameterStructures = r, r.auto = new r("auto"), r.byPosition = new r("byPosition"), r.byName = new r("byName");
|
|
61
|
+
var a = class {
|
|
62
|
+
constructor(e2, t2) {
|
|
63
|
+
this.method = e2, this.numberOfParams = t2;
|
|
64
|
+
}
|
|
65
|
+
get parameterStructures() {
|
|
66
|
+
return r.auto;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
e.AbstractMessageSignature = a, e.RequestType0 = class extends a {
|
|
70
|
+
constructor(e2) {
|
|
71
|
+
super(e2, 0);
|
|
72
|
+
}
|
|
73
|
+
}, e.RequestType = class extends a {
|
|
74
|
+
constructor(e2, t2 = r.auto) {
|
|
75
|
+
super(e2, 1), this._parameterStructures = t2;
|
|
76
|
+
}
|
|
77
|
+
get parameterStructures() {
|
|
78
|
+
return this._parameterStructures;
|
|
79
|
+
}
|
|
80
|
+
}, e.RequestType1 = class extends a {
|
|
81
|
+
constructor(e2, t2 = r.auto) {
|
|
82
|
+
super(e2, 1), this._parameterStructures = t2;
|
|
83
|
+
}
|
|
84
|
+
get parameterStructures() {
|
|
85
|
+
return this._parameterStructures;
|
|
86
|
+
}
|
|
87
|
+
}, e.RequestType2 = class extends a {
|
|
88
|
+
constructor(e2) {
|
|
89
|
+
super(e2, 2);
|
|
90
|
+
}
|
|
91
|
+
}, e.RequestType3 = class extends a {
|
|
92
|
+
constructor(e2) {
|
|
93
|
+
super(e2, 3);
|
|
94
|
+
}
|
|
95
|
+
}, e.RequestType4 = class extends a {
|
|
96
|
+
constructor(e2) {
|
|
97
|
+
super(e2, 4);
|
|
98
|
+
}
|
|
99
|
+
}, e.RequestType5 = class extends a {
|
|
100
|
+
constructor(e2) {
|
|
101
|
+
super(e2, 5);
|
|
102
|
+
}
|
|
103
|
+
}, e.RequestType6 = class extends a {
|
|
104
|
+
constructor(e2) {
|
|
105
|
+
super(e2, 6);
|
|
106
|
+
}
|
|
107
|
+
}, e.RequestType7 = class extends a {
|
|
108
|
+
constructor(e2) {
|
|
109
|
+
super(e2, 7);
|
|
110
|
+
}
|
|
111
|
+
}, e.RequestType8 = class extends a {
|
|
112
|
+
constructor(e2) {
|
|
113
|
+
super(e2, 8);
|
|
114
|
+
}
|
|
115
|
+
}, e.RequestType9 = class extends a {
|
|
116
|
+
constructor(e2) {
|
|
117
|
+
super(e2, 9);
|
|
118
|
+
}
|
|
119
|
+
}, e.NotificationType = class extends a {
|
|
120
|
+
constructor(e2, t2 = r.auto) {
|
|
121
|
+
super(e2, 1), this._parameterStructures = t2;
|
|
122
|
+
}
|
|
123
|
+
get parameterStructures() {
|
|
124
|
+
return this._parameterStructures;
|
|
125
|
+
}
|
|
126
|
+
}, e.NotificationType0 = class extends a {
|
|
127
|
+
constructor(e2) {
|
|
128
|
+
super(e2, 0);
|
|
129
|
+
}
|
|
130
|
+
}, e.NotificationType1 = class extends a {
|
|
131
|
+
constructor(e2, t2 = r.auto) {
|
|
132
|
+
super(e2, 1), this._parameterStructures = t2;
|
|
133
|
+
}
|
|
134
|
+
get parameterStructures() {
|
|
135
|
+
return this._parameterStructures;
|
|
136
|
+
}
|
|
137
|
+
}, e.NotificationType2 = class extends a {
|
|
138
|
+
constructor(e2) {
|
|
139
|
+
super(e2, 2);
|
|
140
|
+
}
|
|
141
|
+
}, e.NotificationType3 = class extends a {
|
|
142
|
+
constructor(e2) {
|
|
143
|
+
super(e2, 3);
|
|
144
|
+
}
|
|
145
|
+
}, e.NotificationType4 = class extends a {
|
|
146
|
+
constructor(e2) {
|
|
147
|
+
super(e2, 4);
|
|
148
|
+
}
|
|
149
|
+
}, e.NotificationType5 = class extends a {
|
|
150
|
+
constructor(e2) {
|
|
151
|
+
super(e2, 5);
|
|
152
|
+
}
|
|
153
|
+
}, e.NotificationType6 = class extends a {
|
|
154
|
+
constructor(e2) {
|
|
155
|
+
super(e2, 6);
|
|
156
|
+
}
|
|
157
|
+
}, e.NotificationType7 = class extends a {
|
|
158
|
+
constructor(e2) {
|
|
159
|
+
super(e2, 7);
|
|
160
|
+
}
|
|
161
|
+
}, e.NotificationType8 = class extends a {
|
|
162
|
+
constructor(e2) {
|
|
163
|
+
super(e2, 8);
|
|
164
|
+
}
|
|
165
|
+
}, e.NotificationType9 = class extends a {
|
|
166
|
+
constructor(e2) {
|
|
167
|
+
super(e2, 9);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var o;
|
|
171
|
+
(function(e2) {
|
|
172
|
+
function n2(e3) {
|
|
173
|
+
let n3 = e3;
|
|
174
|
+
return n3 && t.string(n3.method) && (t.string(n3.id) || t.number(n3.id));
|
|
175
|
+
}
|
|
176
|
+
e2.isRequest = n2;
|
|
177
|
+
function r2(e3) {
|
|
178
|
+
let n3 = e3;
|
|
179
|
+
return n3 && t.string(n3.method) && e3.id === void 0;
|
|
180
|
+
}
|
|
181
|
+
e2.isNotification = r2;
|
|
182
|
+
function i(e3) {
|
|
183
|
+
let n3 = e3;
|
|
184
|
+
return n3 && (n3.result !== void 0 || !!n3.error) && (t.string(n3.id) || t.number(n3.id) || n3.id === null);
|
|
185
|
+
}
|
|
186
|
+
e2.isResponse = i;
|
|
187
|
+
})(o || (e.Message = o = {}));
|
|
188
|
+
})), require_linkedMap = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
189
|
+
var t;
|
|
190
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.LRUCache = e.LinkedMap = e.Touch = void 0;
|
|
191
|
+
var n;
|
|
192
|
+
(function(e2) {
|
|
193
|
+
e2.None = 0, e2.First = 1, e2.AsOld = e2.First, e2.Last = 2, e2.AsNew = e2.Last;
|
|
194
|
+
})(n || (e.Touch = n = {}));
|
|
195
|
+
var r = class {
|
|
196
|
+
constructor() {
|
|
197
|
+
this[t] = "LinkedMap", this._map = /* @__PURE__ */ new Map(), this._head = void 0, this._tail = void 0, this._size = 0, this._state = 0;
|
|
198
|
+
}
|
|
199
|
+
clear() {
|
|
200
|
+
this._map.clear(), this._head = void 0, this._tail = void 0, this._size = 0, this._state++;
|
|
201
|
+
}
|
|
202
|
+
isEmpty() {
|
|
203
|
+
return !this._head && !this._tail;
|
|
204
|
+
}
|
|
205
|
+
get size() {
|
|
206
|
+
return this._size;
|
|
207
|
+
}
|
|
208
|
+
get first() {
|
|
209
|
+
var _a;
|
|
210
|
+
return (_a = this._head) == null ? void 0 : _a.value;
|
|
211
|
+
}
|
|
212
|
+
get last() {
|
|
213
|
+
var _a;
|
|
214
|
+
return (_a = this._tail) == null ? void 0 : _a.value;
|
|
215
|
+
}
|
|
216
|
+
has(e2) {
|
|
217
|
+
return this._map.has(e2);
|
|
218
|
+
}
|
|
219
|
+
get(e2, t2 = n.None) {
|
|
220
|
+
let r2 = this._map.get(e2);
|
|
221
|
+
if (r2) return t2 !== n.None && this.touch(r2, t2), r2.value;
|
|
222
|
+
}
|
|
223
|
+
set(e2, t2, r2 = n.None) {
|
|
224
|
+
let i = this._map.get(e2);
|
|
225
|
+
if (i) i.value = t2, r2 !== n.None && this.touch(i, r2);
|
|
226
|
+
else {
|
|
227
|
+
switch (i = {
|
|
228
|
+
key: e2,
|
|
229
|
+
value: t2,
|
|
230
|
+
next: void 0,
|
|
231
|
+
previous: void 0
|
|
232
|
+
}, r2) {
|
|
233
|
+
case n.None:
|
|
234
|
+
this.addItemLast(i);
|
|
235
|
+
break;
|
|
236
|
+
case n.First:
|
|
237
|
+
this.addItemFirst(i);
|
|
238
|
+
break;
|
|
239
|
+
case n.Last:
|
|
240
|
+
this.addItemLast(i);
|
|
241
|
+
break;
|
|
242
|
+
default:
|
|
243
|
+
this.addItemLast(i);
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
this._map.set(e2, i), this._size++;
|
|
247
|
+
}
|
|
248
|
+
return this;
|
|
249
|
+
}
|
|
250
|
+
delete(e2) {
|
|
251
|
+
return !!this.remove(e2);
|
|
252
|
+
}
|
|
253
|
+
remove(e2) {
|
|
254
|
+
let t2 = this._map.get(e2);
|
|
255
|
+
if (t2) return this._map.delete(e2), this.removeItem(t2), this._size--, t2.value;
|
|
256
|
+
}
|
|
257
|
+
shift() {
|
|
258
|
+
if (!this._head && !this._tail) return;
|
|
259
|
+
if (!this._head || !this._tail) throw Error("Invalid list");
|
|
260
|
+
let e2 = this._head;
|
|
261
|
+
return this._map.delete(e2.key), this.removeItem(e2), this._size--, e2.value;
|
|
262
|
+
}
|
|
263
|
+
forEach(e2, t2) {
|
|
264
|
+
let n2 = this._state, r2 = this._head;
|
|
265
|
+
for (; r2; ) {
|
|
266
|
+
if (t2 ? e2.bind(t2)(r2.value, r2.key, this) : e2(r2.value, r2.key, this), this._state !== n2) throw Error("LinkedMap got modified during iteration.");
|
|
267
|
+
r2 = r2.next;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
keys() {
|
|
271
|
+
let e2 = this._state, t2 = this._head, n2 = {
|
|
272
|
+
[Symbol.iterator]: () => n2,
|
|
273
|
+
next: () => {
|
|
274
|
+
if (this._state !== e2) throw Error("LinkedMap got modified during iteration.");
|
|
275
|
+
if (t2) {
|
|
276
|
+
let e3 = {
|
|
277
|
+
value: t2.key,
|
|
278
|
+
done: false
|
|
279
|
+
};
|
|
280
|
+
return t2 = t2.next, e3;
|
|
281
|
+
} else return {
|
|
282
|
+
value: void 0,
|
|
283
|
+
done: true
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
return n2;
|
|
288
|
+
}
|
|
289
|
+
values() {
|
|
290
|
+
let e2 = this._state, t2 = this._head, n2 = {
|
|
291
|
+
[Symbol.iterator]: () => n2,
|
|
292
|
+
next: () => {
|
|
293
|
+
if (this._state !== e2) throw Error("LinkedMap got modified during iteration.");
|
|
294
|
+
if (t2) {
|
|
295
|
+
let e3 = {
|
|
296
|
+
value: t2.value,
|
|
297
|
+
done: false
|
|
298
|
+
};
|
|
299
|
+
return t2 = t2.next, e3;
|
|
300
|
+
} else return {
|
|
301
|
+
value: void 0,
|
|
302
|
+
done: true
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
return n2;
|
|
307
|
+
}
|
|
308
|
+
entries() {
|
|
309
|
+
let e2 = this._state, t2 = this._head, n2 = {
|
|
310
|
+
[Symbol.iterator]: () => n2,
|
|
311
|
+
next: () => {
|
|
312
|
+
if (this._state !== e2) throw Error("LinkedMap got modified during iteration.");
|
|
313
|
+
if (t2) {
|
|
314
|
+
let e3 = {
|
|
315
|
+
value: [t2.key, t2.value],
|
|
316
|
+
done: false
|
|
317
|
+
};
|
|
318
|
+
return t2 = t2.next, e3;
|
|
319
|
+
} else return {
|
|
320
|
+
value: void 0,
|
|
321
|
+
done: true
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
return n2;
|
|
326
|
+
}
|
|
327
|
+
[(t = Symbol.toStringTag, Symbol.iterator)]() {
|
|
328
|
+
return this.entries();
|
|
329
|
+
}
|
|
330
|
+
trimOld(e2) {
|
|
331
|
+
if (e2 >= this.size) return;
|
|
332
|
+
if (e2 === 0) {
|
|
333
|
+
this.clear();
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
let t2 = this._head, n2 = this.size;
|
|
337
|
+
for (; t2 && n2 > e2; ) this._map.delete(t2.key), t2 = t2.next, n2--;
|
|
338
|
+
this._head = t2, this._size = n2, t2 && (t2.previous = void 0), this._state++;
|
|
339
|
+
}
|
|
340
|
+
addItemFirst(e2) {
|
|
341
|
+
if (!this._head && !this._tail) this._tail = e2;
|
|
342
|
+
else if (this._head) e2.next = this._head, this._head.previous = e2;
|
|
343
|
+
else throw Error("Invalid list");
|
|
344
|
+
this._head = e2, this._state++;
|
|
345
|
+
}
|
|
346
|
+
addItemLast(e2) {
|
|
347
|
+
if (!this._head && !this._tail) this._head = e2;
|
|
348
|
+
else if (this._tail) e2.previous = this._tail, this._tail.next = e2;
|
|
349
|
+
else throw Error("Invalid list");
|
|
350
|
+
this._tail = e2, this._state++;
|
|
351
|
+
}
|
|
352
|
+
removeItem(e2) {
|
|
353
|
+
if (e2 === this._head && e2 === this._tail) this._head = void 0, this._tail = void 0;
|
|
354
|
+
else if (e2 === this._head) {
|
|
355
|
+
if (!e2.next) throw Error("Invalid list");
|
|
356
|
+
e2.next.previous = void 0, this._head = e2.next;
|
|
357
|
+
} else if (e2 === this._tail) {
|
|
358
|
+
if (!e2.previous) throw Error("Invalid list");
|
|
359
|
+
e2.previous.next = void 0, this._tail = e2.previous;
|
|
360
|
+
} else {
|
|
361
|
+
let t2 = e2.next, n2 = e2.previous;
|
|
362
|
+
if (!t2 || !n2) throw Error("Invalid list");
|
|
363
|
+
t2.previous = n2, n2.next = t2;
|
|
364
|
+
}
|
|
365
|
+
e2.next = void 0, e2.previous = void 0, this._state++;
|
|
366
|
+
}
|
|
367
|
+
touch(e2, t2) {
|
|
368
|
+
if (!this._head || !this._tail) throw Error("Invalid list");
|
|
369
|
+
if (!(t2 !== n.First && t2 !== n.Last)) {
|
|
370
|
+
if (t2 === n.First) {
|
|
371
|
+
if (e2 === this._head) return;
|
|
372
|
+
let t3 = e2.next, n2 = e2.previous;
|
|
373
|
+
e2 === this._tail ? (n2.next = void 0, this._tail = n2) : (t3.previous = n2, n2.next = t3), e2.previous = void 0, e2.next = this._head, this._head.previous = e2, this._head = e2, this._state++;
|
|
374
|
+
} else if (t2 === n.Last) {
|
|
375
|
+
if (e2 === this._tail) return;
|
|
376
|
+
let t3 = e2.next, n2 = e2.previous;
|
|
377
|
+
e2 === this._head ? (t3.previous = void 0, this._head = t3) : (t3.previous = n2, n2.next = t3), e2.next = void 0, e2.previous = this._tail, this._tail.next = e2, this._tail = e2, this._state++;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
toJSON() {
|
|
382
|
+
let e2 = [];
|
|
383
|
+
return this.forEach((t2, n2) => {
|
|
384
|
+
e2.push([n2, t2]);
|
|
385
|
+
}), e2;
|
|
386
|
+
}
|
|
387
|
+
fromJSON(e2) {
|
|
388
|
+
this.clear();
|
|
389
|
+
for (let [t2, n2] of e2) this.set(t2, n2);
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
e.LinkedMap = r, e.LRUCache = class extends r {
|
|
393
|
+
constructor(e2, t2 = 1) {
|
|
394
|
+
super(), this._limit = e2, this._ratio = Math.min(Math.max(0, t2), 1);
|
|
395
|
+
}
|
|
396
|
+
get limit() {
|
|
397
|
+
return this._limit;
|
|
398
|
+
}
|
|
399
|
+
set limit(e2) {
|
|
400
|
+
this._limit = e2, this.checkTrim();
|
|
401
|
+
}
|
|
402
|
+
get ratio() {
|
|
403
|
+
return this._ratio;
|
|
404
|
+
}
|
|
405
|
+
set ratio(e2) {
|
|
406
|
+
this._ratio = Math.min(Math.max(0, e2), 1), this.checkTrim();
|
|
407
|
+
}
|
|
408
|
+
get(e2, t2 = n.AsNew) {
|
|
409
|
+
return super.get(e2, t2);
|
|
410
|
+
}
|
|
411
|
+
peek(e2) {
|
|
412
|
+
return super.get(e2, n.None);
|
|
413
|
+
}
|
|
414
|
+
set(e2, t2) {
|
|
415
|
+
return super.set(e2, t2, n.Last), this.checkTrim(), this;
|
|
416
|
+
}
|
|
417
|
+
checkTrim() {
|
|
418
|
+
this.size > this._limit && this.trimOld(Math.round(this._limit * this._ratio));
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
})), require_disposable = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
422
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.Disposable = void 0;
|
|
423
|
+
var t;
|
|
424
|
+
(function(e2) {
|
|
425
|
+
function t2(e3) {
|
|
426
|
+
return { dispose: e3 };
|
|
427
|
+
}
|
|
428
|
+
e2.create = t2;
|
|
429
|
+
})(t || (e.Disposable = t = {}));
|
|
430
|
+
})), require_ral = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
431
|
+
Object.defineProperty(e, "__esModule", { value: true });
|
|
432
|
+
var t;
|
|
433
|
+
function n() {
|
|
434
|
+
if (t === void 0) throw Error("No runtime abstraction layer installed");
|
|
435
|
+
return t;
|
|
436
|
+
}
|
|
437
|
+
(function(e2) {
|
|
438
|
+
function n2(e3) {
|
|
439
|
+
if (e3 === void 0) throw Error("No runtime abstraction layer provided");
|
|
440
|
+
t = e3;
|
|
441
|
+
}
|
|
442
|
+
e2.install = n2;
|
|
443
|
+
})(n || (n = {})), e.default = n;
|
|
444
|
+
})), require_events = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
445
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.Emitter = e.Event = void 0;
|
|
446
|
+
var t = require_ral(), n;
|
|
447
|
+
(function(e2) {
|
|
448
|
+
let t2 = { dispose() {
|
|
449
|
+
} };
|
|
450
|
+
e2.None = function() {
|
|
451
|
+
return t2;
|
|
452
|
+
};
|
|
453
|
+
})(n || (e.Event = n = {}));
|
|
454
|
+
var r = class {
|
|
455
|
+
add(e2, t2 = null, n2) {
|
|
456
|
+
this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e2), this._contexts.push(t2), Array.isArray(n2) && n2.push({ dispose: () => this.remove(e2, t2) });
|
|
457
|
+
}
|
|
458
|
+
remove(e2, t2 = null) {
|
|
459
|
+
if (!this._callbacks) return;
|
|
460
|
+
let n2 = false;
|
|
461
|
+
for (let r2 = 0, i2 = this._callbacks.length; r2 < i2; r2++) if (this._callbacks[r2] === e2) if (this._contexts[r2] === t2) {
|
|
462
|
+
this._callbacks.splice(r2, 1), this._contexts.splice(r2, 1);
|
|
463
|
+
return;
|
|
464
|
+
} else n2 = true;
|
|
465
|
+
if (n2) throw Error("When adding a listener with a context, you should remove it with the same context");
|
|
466
|
+
}
|
|
467
|
+
invoke(...e2) {
|
|
468
|
+
if (!this._callbacks) return [];
|
|
469
|
+
let n2 = [], r2 = this._callbacks.slice(0), i2 = this._contexts.slice(0);
|
|
470
|
+
for (let a = 0, o = r2.length; a < o; a++) try {
|
|
471
|
+
n2.push(r2[a].apply(i2[a], e2));
|
|
472
|
+
} catch (e3) {
|
|
473
|
+
(0, t.default)().console.error(e3);
|
|
474
|
+
}
|
|
475
|
+
return n2;
|
|
476
|
+
}
|
|
477
|
+
isEmpty() {
|
|
478
|
+
return !this._callbacks || this._callbacks.length === 0;
|
|
479
|
+
}
|
|
480
|
+
dispose() {
|
|
481
|
+
this._callbacks = void 0, this._contexts = void 0;
|
|
482
|
+
}
|
|
483
|
+
}, i = class e2 {
|
|
484
|
+
constructor(e3) {
|
|
485
|
+
this._options = e3;
|
|
486
|
+
}
|
|
487
|
+
get event() {
|
|
488
|
+
return this._event || (this._event = (t2, n2, i2) => {
|
|
489
|
+
this._callbacks || (this._callbacks = new r()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(t2, n2);
|
|
490
|
+
let a = { dispose: () => {
|
|
491
|
+
this._callbacks && (this._callbacks.remove(t2, n2), a.dispose = e2._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this));
|
|
492
|
+
} };
|
|
493
|
+
return Array.isArray(i2) && i2.push(a), a;
|
|
494
|
+
}), this._event;
|
|
495
|
+
}
|
|
496
|
+
fire(e3) {
|
|
497
|
+
this._callbacks && this._callbacks.invoke.call(this._callbacks, e3);
|
|
498
|
+
}
|
|
499
|
+
dispose() {
|
|
500
|
+
this._callbacks && (this._callbacks = (this._callbacks.dispose(), void 0));
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
e.Emitter = i, i._noop = function() {
|
|
504
|
+
};
|
|
505
|
+
})), require_cancellation = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
506
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.CancellationTokenSource = e.CancellationToken = void 0;
|
|
507
|
+
var t = require_ral(), n = require_is$1(), r = require_events(), a;
|
|
508
|
+
(function(e2) {
|
|
509
|
+
e2.None = Object.freeze({
|
|
510
|
+
isCancellationRequested: false,
|
|
511
|
+
onCancellationRequested: r.Event.None
|
|
512
|
+
}), e2.Cancelled = Object.freeze({
|
|
513
|
+
isCancellationRequested: true,
|
|
514
|
+
onCancellationRequested: r.Event.None
|
|
515
|
+
});
|
|
516
|
+
function t2(t3) {
|
|
517
|
+
let r2 = t3;
|
|
518
|
+
return r2 && (r2 === e2.None || r2 === e2.Cancelled || n.boolean(r2.isCancellationRequested) && !!r2.onCancellationRequested);
|
|
519
|
+
}
|
|
520
|
+
e2.is = t2;
|
|
521
|
+
})(a || (e.CancellationToken = a = {}));
|
|
522
|
+
var o = Object.freeze(function(e2, n2) {
|
|
523
|
+
let r2 = (0, t.default)().timer.setTimeout(e2.bind(n2), 0);
|
|
524
|
+
return { dispose() {
|
|
525
|
+
r2.dispose();
|
|
526
|
+
} };
|
|
527
|
+
}), s = class {
|
|
528
|
+
constructor() {
|
|
529
|
+
this._isCancelled = false;
|
|
530
|
+
}
|
|
531
|
+
cancel() {
|
|
532
|
+
this._isCancelled || (this._isCancelled = true, this._emitter && (this._emitter.fire(void 0), this.dispose()));
|
|
533
|
+
}
|
|
534
|
+
get isCancellationRequested() {
|
|
535
|
+
return this._isCancelled;
|
|
536
|
+
}
|
|
537
|
+
get onCancellationRequested() {
|
|
538
|
+
return this._isCancelled ? o : (this._emitter || (this._emitter = new r.Emitter()), this._emitter.event);
|
|
539
|
+
}
|
|
540
|
+
dispose() {
|
|
541
|
+
this._emitter && (this._emitter = (this._emitter.dispose(), void 0));
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
e.CancellationTokenSource = class {
|
|
545
|
+
get token() {
|
|
546
|
+
return this._token || (this._token = new s()), this._token;
|
|
547
|
+
}
|
|
548
|
+
cancel() {
|
|
549
|
+
this._token ? this._token.cancel() : this._token = a.Cancelled;
|
|
550
|
+
}
|
|
551
|
+
dispose() {
|
|
552
|
+
this._token ? this._token instanceof s && this._token.dispose() : this._token = a.None;
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
})), require_sharedArrayCancellation = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
556
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.SharedArrayReceiverStrategy = e.SharedArraySenderStrategy = void 0;
|
|
557
|
+
var t = require_cancellation(), n;
|
|
558
|
+
(function(e2) {
|
|
559
|
+
e2.Continue = 0, e2.Cancelled = 1;
|
|
560
|
+
})(n || (n = {})), e.SharedArraySenderStrategy = class {
|
|
561
|
+
constructor() {
|
|
562
|
+
this.buffers = /* @__PURE__ */ new Map();
|
|
563
|
+
}
|
|
564
|
+
enableCancellation(e2) {
|
|
565
|
+
if (e2.id === null) return;
|
|
566
|
+
let t2 = new SharedArrayBuffer(4), r2 = new Int32Array(t2, 0, 1);
|
|
567
|
+
r2[0] = n.Continue, this.buffers.set(e2.id, t2), e2.$cancellationData = t2;
|
|
568
|
+
}
|
|
569
|
+
async sendCancellation(e2, t2) {
|
|
570
|
+
let r2 = this.buffers.get(t2);
|
|
571
|
+
if (r2 === void 0) return;
|
|
572
|
+
let i2 = new Int32Array(r2, 0, 1);
|
|
573
|
+
Atomics.store(i2, 0, n.Cancelled);
|
|
574
|
+
}
|
|
575
|
+
cleanup(e2) {
|
|
576
|
+
this.buffers.delete(e2);
|
|
577
|
+
}
|
|
578
|
+
dispose() {
|
|
579
|
+
this.buffers.clear();
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
var r = class {
|
|
583
|
+
constructor(e2) {
|
|
584
|
+
this.data = new Int32Array(e2, 0, 1);
|
|
585
|
+
}
|
|
586
|
+
get isCancellationRequested() {
|
|
587
|
+
return Atomics.load(this.data, 0) === n.Cancelled;
|
|
588
|
+
}
|
|
589
|
+
get onCancellationRequested() {
|
|
590
|
+
throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events");
|
|
591
|
+
}
|
|
592
|
+
}, i = class {
|
|
593
|
+
constructor(e2) {
|
|
594
|
+
this.token = new r(e2);
|
|
595
|
+
}
|
|
596
|
+
cancel() {
|
|
597
|
+
}
|
|
598
|
+
dispose() {
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
e.SharedArrayReceiverStrategy = class {
|
|
602
|
+
constructor() {
|
|
603
|
+
this.kind = "request";
|
|
604
|
+
}
|
|
605
|
+
createCancellationTokenSource(e2) {
|
|
606
|
+
let n2 = e2.$cancellationData;
|
|
607
|
+
return n2 === void 0 ? new t.CancellationTokenSource() : new i(n2);
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
})), require_semaphore = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
611
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.Semaphore = void 0;
|
|
612
|
+
var t = require_ral();
|
|
613
|
+
e.Semaphore = class {
|
|
614
|
+
constructor(e2 = 1) {
|
|
615
|
+
if (e2 <= 0) throw Error("Capacity must be greater than 0");
|
|
616
|
+
this._capacity = e2, this._active = 0, this._waiting = [];
|
|
617
|
+
}
|
|
618
|
+
lock(e2) {
|
|
619
|
+
return new Promise((t2, n) => {
|
|
620
|
+
this._waiting.push({
|
|
621
|
+
thunk: e2,
|
|
622
|
+
resolve: t2,
|
|
623
|
+
reject: n
|
|
624
|
+
}), this.runNext();
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
get active() {
|
|
628
|
+
return this._active;
|
|
629
|
+
}
|
|
630
|
+
runNext() {
|
|
631
|
+
this._waiting.length === 0 || this._active === this._capacity || (0, t.default)().timer.setImmediate(() => this.doRunNext());
|
|
632
|
+
}
|
|
633
|
+
doRunNext() {
|
|
634
|
+
if (this._waiting.length === 0 || this._active === this._capacity) return;
|
|
635
|
+
let e2 = this._waiting.shift();
|
|
636
|
+
if (this._active++, this._active > this._capacity) throw Error("To many thunks active");
|
|
637
|
+
try {
|
|
638
|
+
let t2 = e2.thunk();
|
|
639
|
+
t2 instanceof Promise ? t2.then((t3) => {
|
|
640
|
+
this._active--, e2.resolve(t3), this.runNext();
|
|
641
|
+
}, (t3) => {
|
|
642
|
+
this._active--, e2.reject(t3), this.runNext();
|
|
643
|
+
}) : (this._active--, e2.resolve(t2), this.runNext());
|
|
644
|
+
} catch (t2) {
|
|
645
|
+
this._active--, e2.reject(t2), this.runNext();
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
})), require_messageReader = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
650
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.ReadableStreamMessageReader = e.AbstractMessageReader = e.MessageReader = void 0;
|
|
651
|
+
var t = require_ral(), n = require_is$1(), r = require_events(), a = require_semaphore(), o;
|
|
652
|
+
(function(e2) {
|
|
653
|
+
function t2(e3) {
|
|
654
|
+
let t3 = e3;
|
|
655
|
+
return t3 && n.func(t3.listen) && n.func(t3.dispose) && n.func(t3.onError) && n.func(t3.onClose) && n.func(t3.onPartialMessage);
|
|
656
|
+
}
|
|
657
|
+
e2.is = t2;
|
|
658
|
+
})(o || (e.MessageReader = o = {}));
|
|
659
|
+
var s = class {
|
|
660
|
+
constructor() {
|
|
661
|
+
this.errorEmitter = new r.Emitter(), this.closeEmitter = new r.Emitter(), this.partialMessageEmitter = new r.Emitter();
|
|
662
|
+
}
|
|
663
|
+
dispose() {
|
|
664
|
+
this.errorEmitter.dispose(), this.closeEmitter.dispose();
|
|
665
|
+
}
|
|
666
|
+
get onError() {
|
|
667
|
+
return this.errorEmitter.event;
|
|
668
|
+
}
|
|
669
|
+
fireError(e2) {
|
|
670
|
+
this.errorEmitter.fire(this.asError(e2));
|
|
671
|
+
}
|
|
672
|
+
get onClose() {
|
|
673
|
+
return this.closeEmitter.event;
|
|
674
|
+
}
|
|
675
|
+
fireClose() {
|
|
676
|
+
this.closeEmitter.fire(void 0);
|
|
677
|
+
}
|
|
678
|
+
get onPartialMessage() {
|
|
679
|
+
return this.partialMessageEmitter.event;
|
|
680
|
+
}
|
|
681
|
+
firePartialMessage(e2) {
|
|
682
|
+
this.partialMessageEmitter.fire(e2);
|
|
683
|
+
}
|
|
684
|
+
asError(e2) {
|
|
685
|
+
return e2 instanceof Error ? e2 : /* @__PURE__ */ Error(`Reader received error. Reason: ${n.string(e2.message) ? e2.message : "unknown"}`);
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
e.AbstractMessageReader = s;
|
|
689
|
+
var u;
|
|
690
|
+
(function(e2) {
|
|
691
|
+
function n2(e3) {
|
|
692
|
+
let n3, r2, i = /* @__PURE__ */ new Map(), a2, o2 = /* @__PURE__ */ new Map();
|
|
693
|
+
if (e3 === void 0 || typeof e3 == "string") n3 = e3 ?? "utf-8";
|
|
694
|
+
else {
|
|
695
|
+
if (n3 = e3.charset ?? "utf-8", e3.contentDecoder !== void 0 && (r2 = e3.contentDecoder, i.set(r2.name, r2)), e3.contentDecoders !== void 0) for (let t2 of e3.contentDecoders) i.set(t2.name, t2);
|
|
696
|
+
if (e3.contentTypeDecoder !== void 0 && (a2 = e3.contentTypeDecoder, o2.set(a2.name, a2)), e3.contentTypeDecoders !== void 0) for (let t2 of e3.contentTypeDecoders) o2.set(t2.name, t2);
|
|
697
|
+
}
|
|
698
|
+
return a2 === void 0 && (a2 = (0, t.default)().applicationJson.decoder, o2.set(a2.name, a2)), {
|
|
699
|
+
charset: n3,
|
|
700
|
+
contentDecoder: r2,
|
|
701
|
+
contentDecoders: i,
|
|
702
|
+
contentTypeDecoder: a2,
|
|
703
|
+
contentTypeDecoders: o2
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
e2.fromOptions = n2;
|
|
707
|
+
})(u || (u = {})), e.ReadableStreamMessageReader = class extends s {
|
|
708
|
+
constructor(e2, n2) {
|
|
709
|
+
super(), this.readable = e2, this.options = u.fromOptions(n2), this.buffer = (0, t.default)().messageBuffer.create(this.options.charset), this._partialMessageTimeout = 1e4, this.nextMessageLength = -1, this.messageToken = 0, this.readSemaphore = new a.Semaphore(1);
|
|
710
|
+
}
|
|
711
|
+
set partialMessageTimeout(e2) {
|
|
712
|
+
this._partialMessageTimeout = e2;
|
|
713
|
+
}
|
|
714
|
+
get partialMessageTimeout() {
|
|
715
|
+
return this._partialMessageTimeout;
|
|
716
|
+
}
|
|
717
|
+
listen(e2) {
|
|
718
|
+
this.nextMessageLength = -1, this.messageToken = 0, this.partialMessageTimer = void 0, this.callback = e2;
|
|
719
|
+
let t2 = this.readable.onData((e3) => {
|
|
720
|
+
this.onData(e3);
|
|
721
|
+
});
|
|
722
|
+
return this.readable.onError((e3) => this.fireError(e3)), this.readable.onClose(() => this.fireClose()), t2;
|
|
723
|
+
}
|
|
724
|
+
onData(e2) {
|
|
725
|
+
try {
|
|
726
|
+
for (this.buffer.append(e2); ; ) {
|
|
727
|
+
if (this.nextMessageLength === -1) {
|
|
728
|
+
let e4 = this.buffer.tryReadHeaders(true);
|
|
729
|
+
if (!e4) return;
|
|
730
|
+
let t2 = e4.get("content-length");
|
|
731
|
+
if (!t2) {
|
|
732
|
+
this.fireError(/* @__PURE__ */ Error(`Header must provide a Content-Length property.
|
|
733
|
+
${JSON.stringify(Object.fromEntries(e4))}`));
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
let n2 = parseInt(t2);
|
|
737
|
+
if (isNaN(n2)) {
|
|
738
|
+
this.fireError(/* @__PURE__ */ Error(`Content-Length value must be a number. Got ${t2}`));
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
this.nextMessageLength = n2;
|
|
742
|
+
}
|
|
743
|
+
let e3 = this.buffer.tryReadBody(this.nextMessageLength);
|
|
744
|
+
if (e3 === void 0) {
|
|
745
|
+
this.setPartialMessageTimer();
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
this.clearPartialMessageTimer(), this.nextMessageLength = -1, this.readSemaphore.lock(async () => {
|
|
749
|
+
let t2 = this.options.contentDecoder === void 0 ? e3 : await this.options.contentDecoder.decode(e3), n2 = await this.options.contentTypeDecoder.decode(t2, this.options);
|
|
750
|
+
this.callback(n2);
|
|
751
|
+
}).catch((e4) => {
|
|
752
|
+
this.fireError(e4);
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
} catch (e3) {
|
|
756
|
+
this.fireError(e3);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
clearPartialMessageTimer() {
|
|
760
|
+
this.partialMessageTimer && (this.partialMessageTimer = (this.partialMessageTimer.dispose(), void 0));
|
|
761
|
+
}
|
|
762
|
+
setPartialMessageTimer() {
|
|
763
|
+
this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0, t.default)().timer.setTimeout((e2, t2) => {
|
|
764
|
+
this.partialMessageTimer = void 0, e2 === this.messageToken && (this.firePartialMessage({
|
|
765
|
+
messageToken: e2,
|
|
766
|
+
waitingTime: t2
|
|
767
|
+
}), this.setPartialMessageTimer());
|
|
768
|
+
}, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout));
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
})), require_messageWriter = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
772
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.WriteableStreamMessageWriter = e.AbstractMessageWriter = e.MessageWriter = void 0;
|
|
773
|
+
var t = require_ral(), n = require_is$1(), r = require_semaphore(), a = require_events(), o = "Content-Length: ", s = "\r\n", u;
|
|
774
|
+
(function(e2) {
|
|
775
|
+
function t2(e3) {
|
|
776
|
+
let t3 = e3;
|
|
777
|
+
return t3 && n.func(t3.dispose) && n.func(t3.onClose) && n.func(t3.onError) && n.func(t3.write);
|
|
778
|
+
}
|
|
779
|
+
e2.is = t2;
|
|
780
|
+
})(u || (e.MessageWriter = u = {}));
|
|
781
|
+
var d = class {
|
|
782
|
+
constructor() {
|
|
783
|
+
this.errorEmitter = new a.Emitter(), this.closeEmitter = new a.Emitter();
|
|
784
|
+
}
|
|
785
|
+
dispose() {
|
|
786
|
+
this.errorEmitter.dispose(), this.closeEmitter.dispose();
|
|
787
|
+
}
|
|
788
|
+
get onError() {
|
|
789
|
+
return this.errorEmitter.event;
|
|
790
|
+
}
|
|
791
|
+
fireError(e2, t2, n2) {
|
|
792
|
+
this.errorEmitter.fire([
|
|
793
|
+
this.asError(e2),
|
|
794
|
+
t2,
|
|
795
|
+
n2
|
|
796
|
+
]);
|
|
797
|
+
}
|
|
798
|
+
get onClose() {
|
|
799
|
+
return this.closeEmitter.event;
|
|
800
|
+
}
|
|
801
|
+
fireClose() {
|
|
802
|
+
this.closeEmitter.fire(void 0);
|
|
803
|
+
}
|
|
804
|
+
asError(e2) {
|
|
805
|
+
return e2 instanceof Error ? e2 : /* @__PURE__ */ Error(`Writer received error. Reason: ${n.string(e2.message) ? e2.message : "unknown"}`);
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
e.AbstractMessageWriter = d;
|
|
809
|
+
var p;
|
|
810
|
+
(function(e2) {
|
|
811
|
+
function n2(e3) {
|
|
812
|
+
return e3 === void 0 || typeof e3 == "string" ? {
|
|
813
|
+
charset: e3 ?? "utf-8",
|
|
814
|
+
contentTypeEncoder: (0, t.default)().applicationJson.encoder
|
|
815
|
+
} : {
|
|
816
|
+
charset: e3.charset ?? "utf-8",
|
|
817
|
+
contentEncoder: e3.contentEncoder,
|
|
818
|
+
contentTypeEncoder: e3.contentTypeEncoder ?? (0, t.default)().applicationJson.encoder
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
e2.fromOptions = n2;
|
|
822
|
+
})(p || (p = {})), e.WriteableStreamMessageWriter = class extends d {
|
|
823
|
+
constructor(e2, t2) {
|
|
824
|
+
super(), this.writable = e2, this.options = p.fromOptions(t2), this.errorCount = 0, this.writeSemaphore = new r.Semaphore(1), this.writable.onError((e3) => this.fireError(e3)), this.writable.onClose(() => this.fireClose());
|
|
825
|
+
}
|
|
826
|
+
async write(e2) {
|
|
827
|
+
return this.writeSemaphore.lock(async () => this.options.contentTypeEncoder.encode(e2, this.options).then((e3) => this.options.contentEncoder === void 0 ? e3 : this.options.contentEncoder.encode(e3)).then((t2) => {
|
|
828
|
+
let n2 = [];
|
|
829
|
+
return n2.push(o, t2.byteLength.toString(), s), n2.push(s), this.doWrite(e2, n2, t2);
|
|
830
|
+
}, (e3) => {
|
|
831
|
+
throw this.fireError(e3), e3;
|
|
832
|
+
}));
|
|
833
|
+
}
|
|
834
|
+
async doWrite(e2, t2, n2) {
|
|
835
|
+
try {
|
|
836
|
+
return await this.writable.write(t2.join(""), "ascii"), this.writable.write(n2);
|
|
837
|
+
} catch (t3) {
|
|
838
|
+
return this.handleError(t3, e2), Promise.reject(t3);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
handleError(e2, t2) {
|
|
842
|
+
this.errorCount++, this.fireError(e2, t2, this.errorCount);
|
|
843
|
+
}
|
|
844
|
+
end() {
|
|
845
|
+
this.writable.end();
|
|
846
|
+
}
|
|
847
|
+
};
|
|
848
|
+
})), require_messageBuffer = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
849
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.AbstractMessageBuffer = void 0;
|
|
850
|
+
var t = 13, n = 10, r = "\r\n";
|
|
851
|
+
e.AbstractMessageBuffer = class {
|
|
852
|
+
constructor(e2 = "utf-8") {
|
|
853
|
+
this._encoding = e2, this._chunks = [], this._totalLength = 0;
|
|
854
|
+
}
|
|
855
|
+
get encoding() {
|
|
856
|
+
return this._encoding;
|
|
857
|
+
}
|
|
858
|
+
append(e2) {
|
|
859
|
+
let t2 = typeof e2 == "string" ? this.fromString(e2, this._encoding) : e2;
|
|
860
|
+
this._chunks.push(t2), this._totalLength += t2.byteLength;
|
|
861
|
+
}
|
|
862
|
+
tryReadHeaders(e2 = false) {
|
|
863
|
+
if (this._chunks.length === 0) return;
|
|
864
|
+
let i = 0, a = 0, o = 0, s = 0;
|
|
865
|
+
row: for (; a < this._chunks.length; ) {
|
|
866
|
+
let e3 = this._chunks[a];
|
|
867
|
+
o = 0;
|
|
868
|
+
column: for (; o < e3.length; ) {
|
|
869
|
+
switch (e3[o]) {
|
|
870
|
+
case t:
|
|
871
|
+
switch (i) {
|
|
872
|
+
case 0:
|
|
873
|
+
i = 1;
|
|
874
|
+
break;
|
|
875
|
+
case 2:
|
|
876
|
+
i = 3;
|
|
877
|
+
break;
|
|
878
|
+
default:
|
|
879
|
+
i = 0;
|
|
880
|
+
}
|
|
881
|
+
break;
|
|
882
|
+
case n:
|
|
883
|
+
switch (i) {
|
|
884
|
+
case 1:
|
|
885
|
+
i = 2;
|
|
886
|
+
break;
|
|
887
|
+
case 3:
|
|
888
|
+
i = 4, o++;
|
|
889
|
+
break row;
|
|
890
|
+
default:
|
|
891
|
+
i = 0;
|
|
892
|
+
}
|
|
893
|
+
break;
|
|
894
|
+
default:
|
|
895
|
+
i = 0;
|
|
896
|
+
}
|
|
897
|
+
o++;
|
|
898
|
+
}
|
|
899
|
+
s += e3.byteLength, a++;
|
|
900
|
+
}
|
|
901
|
+
if (i !== 4) return;
|
|
902
|
+
let c = this._read(s + o), l = /* @__PURE__ */ new Map(), u = this.toString(c, "ascii").split(r);
|
|
903
|
+
if (u.length < 2) return l;
|
|
904
|
+
for (let t2 = 0; t2 < u.length - 2; t2++) {
|
|
905
|
+
let n2 = u[t2], r2 = n2.indexOf(":");
|
|
906
|
+
if (r2 === -1) throw Error(`Message header must separate key and value using ':'
|
|
907
|
+
${n2}`);
|
|
908
|
+
let i2 = n2.substr(0, r2), a2 = n2.substr(r2 + 1).trim();
|
|
909
|
+
l.set(e2 ? i2.toLowerCase() : i2, a2);
|
|
910
|
+
}
|
|
911
|
+
return l;
|
|
912
|
+
}
|
|
913
|
+
tryReadBody(e2) {
|
|
914
|
+
if (!(this._totalLength < e2)) return this._read(e2);
|
|
915
|
+
}
|
|
916
|
+
get numberOfBytes() {
|
|
917
|
+
return this._totalLength;
|
|
918
|
+
}
|
|
919
|
+
_read(e2) {
|
|
920
|
+
if (e2 === 0) return this.emptyBuffer();
|
|
921
|
+
if (e2 > this._totalLength) throw Error("Cannot read so many bytes!");
|
|
922
|
+
if (this._chunks[0].byteLength === e2) {
|
|
923
|
+
let t3 = this._chunks[0];
|
|
924
|
+
return this._chunks.shift(), this._totalLength -= e2, this.asNative(t3);
|
|
925
|
+
}
|
|
926
|
+
if (this._chunks[0].byteLength > e2) {
|
|
927
|
+
let t3 = this._chunks[0], n3 = this.asNative(t3, e2);
|
|
928
|
+
return this._chunks[0] = t3.slice(e2), this._totalLength -= e2, n3;
|
|
929
|
+
}
|
|
930
|
+
let t2 = this.allocNative(e2), n2 = 0;
|
|
931
|
+
for (; e2 > 0; ) {
|
|
932
|
+
let r2 = this._chunks[0];
|
|
933
|
+
if (r2.byteLength > e2) {
|
|
934
|
+
let i = r2.slice(0, e2);
|
|
935
|
+
t2.set(i, n2), n2 += e2, this._chunks[0] = r2.slice(e2), this._totalLength -= e2, e2 -= e2;
|
|
936
|
+
} else t2.set(r2, n2), n2 += r2.byteLength, this._chunks.shift(), this._totalLength -= r2.byteLength, e2 -= r2.byteLength;
|
|
937
|
+
}
|
|
938
|
+
return t2;
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
})), require_connection$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
942
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.createMessageConnection = e.ConnectionOptions = e.MessageStrategy = e.CancellationStrategy = e.CancellationSenderStrategy = e.CancellationReceiverStrategy = e.RequestCancellationReceiverStrategy = e.IdCancellationReceiverStrategy = e.ConnectionStrategy = e.ConnectionError = e.ConnectionErrors = e.LogTraceNotification = e.SetTraceNotification = e.TraceFormat = e.TraceValues = e.Trace = e.NullLogger = e.ProgressType = e.ProgressToken = void 0;
|
|
943
|
+
var t = require_ral(), n = require_is$1(), r = require_messages$1(), s = require_linkedMap(), d = require_events(), f = require_cancellation(), p;
|
|
944
|
+
(function(e2) {
|
|
945
|
+
e2.type = new r.NotificationType("$/cancelRequest");
|
|
946
|
+
})(p || (p = {}));
|
|
947
|
+
var m;
|
|
948
|
+
(function(e2) {
|
|
949
|
+
function t2(e3) {
|
|
950
|
+
return typeof e3 == "string" || typeof e3 == "number";
|
|
951
|
+
}
|
|
952
|
+
e2.is = t2;
|
|
953
|
+
})(m || (e.ProgressToken = m = {}));
|
|
954
|
+
var h;
|
|
955
|
+
(function(e2) {
|
|
956
|
+
e2.type = new r.NotificationType("$/progress");
|
|
957
|
+
})(h || (h = {})), e.ProgressType = class {
|
|
958
|
+
constructor() {
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
var Ue;
|
|
962
|
+
(function(e2) {
|
|
963
|
+
function t2(e3) {
|
|
964
|
+
return n.func(e3);
|
|
965
|
+
}
|
|
966
|
+
e2.is = t2;
|
|
967
|
+
})(Ue || (Ue = {})), e.NullLogger = Object.freeze({
|
|
968
|
+
error: () => {
|
|
969
|
+
},
|
|
970
|
+
warn: () => {
|
|
971
|
+
},
|
|
972
|
+
info: () => {
|
|
973
|
+
},
|
|
974
|
+
log: () => {
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
var g;
|
|
978
|
+
(function(e2) {
|
|
979
|
+
e2[e2.Off = 0] = "Off", e2[e2.Messages = 1] = "Messages", e2[e2.Compact = 2] = "Compact", e2[e2.Verbose = 3] = "Verbose";
|
|
980
|
+
})(g || (e.Trace = g = {}));
|
|
981
|
+
var _;
|
|
982
|
+
(function(e2) {
|
|
983
|
+
e2.Off = "off", e2.Messages = "messages", e2.Compact = "compact", e2.Verbose = "verbose";
|
|
984
|
+
})(_ || (e.TraceValues = _ = {})), (function(e2) {
|
|
985
|
+
function t2(t3) {
|
|
986
|
+
if (!n.string(t3)) return e2.Off;
|
|
987
|
+
switch (t3 = t3.toLowerCase(), t3) {
|
|
988
|
+
case "off":
|
|
989
|
+
return e2.Off;
|
|
990
|
+
case "messages":
|
|
991
|
+
return e2.Messages;
|
|
992
|
+
case "compact":
|
|
993
|
+
return e2.Compact;
|
|
994
|
+
case "verbose":
|
|
995
|
+
return e2.Verbose;
|
|
996
|
+
default:
|
|
997
|
+
return e2.Off;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
e2.fromString = t2;
|
|
1001
|
+
function r2(t3) {
|
|
1002
|
+
switch (t3) {
|
|
1003
|
+
case e2.Off:
|
|
1004
|
+
return "off";
|
|
1005
|
+
case e2.Messages:
|
|
1006
|
+
return "messages";
|
|
1007
|
+
case e2.Compact:
|
|
1008
|
+
return "compact";
|
|
1009
|
+
case e2.Verbose:
|
|
1010
|
+
return "verbose";
|
|
1011
|
+
default:
|
|
1012
|
+
return "off";
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
e2.toString = r2;
|
|
1016
|
+
})(g || (e.Trace = g = {}));
|
|
1017
|
+
var v;
|
|
1018
|
+
(function(e2) {
|
|
1019
|
+
e2.Text = "text", e2.JSON = "json";
|
|
1020
|
+
})(v || (e.TraceFormat = v = {})), (function(e2) {
|
|
1021
|
+
function t2(t3) {
|
|
1022
|
+
return n.string(t3) ? (t3 = t3.toLowerCase(), t3 === "json" ? e2.JSON : e2.Text) : e2.Text;
|
|
1023
|
+
}
|
|
1024
|
+
e2.fromString = t2;
|
|
1025
|
+
})(v || (e.TraceFormat = v = {}));
|
|
1026
|
+
var y;
|
|
1027
|
+
(function(e2) {
|
|
1028
|
+
e2.type = new r.NotificationType("$/setTrace");
|
|
1029
|
+
})(y || (e.SetTraceNotification = y = {}));
|
|
1030
|
+
var b;
|
|
1031
|
+
(function(e2) {
|
|
1032
|
+
e2.type = new r.NotificationType("$/logTrace");
|
|
1033
|
+
})(b || (e.LogTraceNotification = b = {}));
|
|
1034
|
+
var x;
|
|
1035
|
+
(function(e2) {
|
|
1036
|
+
e2[e2.Closed = 1] = "Closed", e2[e2.Disposed = 2] = "Disposed", e2[e2.AlreadyListening = 3] = "AlreadyListening";
|
|
1037
|
+
})(x || (e.ConnectionErrors = x = {}));
|
|
1038
|
+
var S = class e2 extends Error {
|
|
1039
|
+
constructor(t2, n2) {
|
|
1040
|
+
super(n2), this.code = t2, Object.setPrototypeOf(this, e2.prototype);
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
e.ConnectionError = S;
|
|
1044
|
+
var C;
|
|
1045
|
+
(function(e2) {
|
|
1046
|
+
function t2(e3) {
|
|
1047
|
+
let t3 = e3;
|
|
1048
|
+
return t3 && n.func(t3.cancelUndispatched);
|
|
1049
|
+
}
|
|
1050
|
+
e2.is = t2;
|
|
1051
|
+
})(C || (e.ConnectionStrategy = C = {}));
|
|
1052
|
+
var w;
|
|
1053
|
+
(function(e2) {
|
|
1054
|
+
function t2(e3) {
|
|
1055
|
+
let t3 = e3;
|
|
1056
|
+
return t3 && (t3.kind === void 0 || t3.kind === "id") && n.func(t3.createCancellationTokenSource) && (t3.dispose === void 0 || n.func(t3.dispose));
|
|
1057
|
+
}
|
|
1058
|
+
e2.is = t2;
|
|
1059
|
+
})(w || (e.IdCancellationReceiverStrategy = w = {}));
|
|
1060
|
+
var T;
|
|
1061
|
+
(function(e2) {
|
|
1062
|
+
function t2(e3) {
|
|
1063
|
+
let t3 = e3;
|
|
1064
|
+
return t3 && t3.kind === "request" && n.func(t3.createCancellationTokenSource) && (t3.dispose === void 0 || n.func(t3.dispose));
|
|
1065
|
+
}
|
|
1066
|
+
e2.is = t2;
|
|
1067
|
+
})(T || (e.RequestCancellationReceiverStrategy = T = {}));
|
|
1068
|
+
var E;
|
|
1069
|
+
(function(e2) {
|
|
1070
|
+
e2.Message = Object.freeze({ createCancellationTokenSource(e3) {
|
|
1071
|
+
return new f.CancellationTokenSource();
|
|
1072
|
+
} });
|
|
1073
|
+
function t2(e3) {
|
|
1074
|
+
return w.is(e3) || T.is(e3);
|
|
1075
|
+
}
|
|
1076
|
+
e2.is = t2;
|
|
1077
|
+
})(E || (e.CancellationReceiverStrategy = E = {}));
|
|
1078
|
+
var D;
|
|
1079
|
+
(function(e2) {
|
|
1080
|
+
e2.Message = Object.freeze({
|
|
1081
|
+
sendCancellation(e3, t3) {
|
|
1082
|
+
return e3.sendNotification(p.type, { id: t3 });
|
|
1083
|
+
},
|
|
1084
|
+
cleanup(e3) {
|
|
1085
|
+
}
|
|
1086
|
+
});
|
|
1087
|
+
function t2(e3) {
|
|
1088
|
+
let t3 = e3;
|
|
1089
|
+
return t3 && n.func(t3.sendCancellation) && n.func(t3.cleanup);
|
|
1090
|
+
}
|
|
1091
|
+
e2.is = t2;
|
|
1092
|
+
})(D || (e.CancellationSenderStrategy = D = {}));
|
|
1093
|
+
var O;
|
|
1094
|
+
(function(e2) {
|
|
1095
|
+
e2.Message = Object.freeze({
|
|
1096
|
+
receiver: E.Message,
|
|
1097
|
+
sender: D.Message
|
|
1098
|
+
});
|
|
1099
|
+
function t2(e3) {
|
|
1100
|
+
let t3 = e3;
|
|
1101
|
+
return t3 && E.is(t3.receiver) && D.is(t3.sender);
|
|
1102
|
+
}
|
|
1103
|
+
e2.is = t2;
|
|
1104
|
+
})(O || (e.CancellationStrategy = O = {}));
|
|
1105
|
+
var k;
|
|
1106
|
+
(function(e2) {
|
|
1107
|
+
function t2(e3) {
|
|
1108
|
+
let t3 = e3;
|
|
1109
|
+
return t3 && n.func(t3.handleMessage);
|
|
1110
|
+
}
|
|
1111
|
+
e2.is = t2;
|
|
1112
|
+
})(k || (e.MessageStrategy = k = {}));
|
|
1113
|
+
var A;
|
|
1114
|
+
(function(e2) {
|
|
1115
|
+
function t2(e3) {
|
|
1116
|
+
let t3 = e3;
|
|
1117
|
+
return t3 && (O.is(t3.cancellationStrategy) || C.is(t3.connectionStrategy) || k.is(t3.messageStrategy));
|
|
1118
|
+
}
|
|
1119
|
+
e2.is = t2;
|
|
1120
|
+
})(A || (e.ConnectionOptions = A = {}));
|
|
1121
|
+
var j;
|
|
1122
|
+
(function(e2) {
|
|
1123
|
+
e2[e2.New = 1] = "New", e2[e2.Listening = 2] = "Listening", e2[e2.Closed = 3] = "Closed", e2[e2.Disposed = 4] = "Disposed";
|
|
1124
|
+
})(j || (j = {}));
|
|
1125
|
+
function M(i, a, o, c) {
|
|
1126
|
+
let l = o === void 0 ? e.NullLogger : o, u = 0, _2 = 0, C2 = 0, T2, E2 = /* @__PURE__ */ new Map(), D2, A2 = /* @__PURE__ */ new Map(), M2 = /* @__PURE__ */ new Map(), N, P = new s.LinkedMap(), F = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Map(), R = g.Off, z = v.Text, B, V = j.New, H = new d.Emitter(), U = new d.Emitter(), We = new d.Emitter(), Ge = new d.Emitter(), Ke = new d.Emitter(), W = c && c.cancellationStrategy ? c.cancellationStrategy : O.Message;
|
|
1127
|
+
function qe(e2) {
|
|
1128
|
+
if (e2 === null) throw Error("Can't send requests with id null since the response can't be correlated.");
|
|
1129
|
+
return "req-" + e2.toString();
|
|
1130
|
+
}
|
|
1131
|
+
function Je(e2) {
|
|
1132
|
+
return e2 === null ? "res-unknown-" + (++C2).toString() : "res-" + e2.toString();
|
|
1133
|
+
}
|
|
1134
|
+
function Ye() {
|
|
1135
|
+
return "not-" + (++_2).toString();
|
|
1136
|
+
}
|
|
1137
|
+
function Xe(e2, t2) {
|
|
1138
|
+
r.Message.isRequest(t2) ? e2.set(qe(t2.id), t2) : r.Message.isResponse(t2) ? e2.set(Je(t2.id), t2) : e2.set(Ye(), t2);
|
|
1139
|
+
}
|
|
1140
|
+
function Ze(e2) {
|
|
1141
|
+
}
|
|
1142
|
+
function Qe() {
|
|
1143
|
+
return V === j.Listening;
|
|
1144
|
+
}
|
|
1145
|
+
function $e() {
|
|
1146
|
+
return V === j.Closed;
|
|
1147
|
+
}
|
|
1148
|
+
function G() {
|
|
1149
|
+
return V === j.Disposed;
|
|
1150
|
+
}
|
|
1151
|
+
function et() {
|
|
1152
|
+
(V === j.New || V === j.Listening) && (V = j.Closed, U.fire(void 0));
|
|
1153
|
+
}
|
|
1154
|
+
function tt(e2) {
|
|
1155
|
+
H.fire([
|
|
1156
|
+
e2,
|
|
1157
|
+
void 0,
|
|
1158
|
+
void 0
|
|
1159
|
+
]);
|
|
1160
|
+
}
|
|
1161
|
+
function nt(e2) {
|
|
1162
|
+
H.fire(e2);
|
|
1163
|
+
}
|
|
1164
|
+
i.onClose(et), i.onError(tt), a.onClose(et), a.onError(nt);
|
|
1165
|
+
function rt() {
|
|
1166
|
+
N || P.size === 0 || (N = (0, t.default)().timer.setImmediate(() => {
|
|
1167
|
+
N = void 0, at();
|
|
1168
|
+
}));
|
|
1169
|
+
}
|
|
1170
|
+
function it(e2) {
|
|
1171
|
+
r.Message.isRequest(e2) ? st(e2) : r.Message.isNotification(e2) ? lt(e2) : r.Message.isResponse(e2) ? ct(e2) : ut(e2);
|
|
1172
|
+
}
|
|
1173
|
+
function at() {
|
|
1174
|
+
if (P.size === 0) return;
|
|
1175
|
+
let e2 = P.shift();
|
|
1176
|
+
try {
|
|
1177
|
+
let t2 = c == null ? void 0 : c.messageStrategy;
|
|
1178
|
+
k.is(t2) ? t2.handleMessage(e2, it) : it(e2);
|
|
1179
|
+
} finally {
|
|
1180
|
+
rt();
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
let ot = (e2) => {
|
|
1184
|
+
try {
|
|
1185
|
+
if (r.Message.isNotification(e2) && e2.method === p.type.method) {
|
|
1186
|
+
let t2 = e2.params.id, n2 = qe(t2), i2 = P.get(n2);
|
|
1187
|
+
if (r.Message.isRequest(i2)) {
|
|
1188
|
+
let r2 = c == null ? void 0 : c.connectionStrategy, o3 = r2 && r2.cancelUndispatched ? r2.cancelUndispatched(i2, Ze) : void 0;
|
|
1189
|
+
if (o3 && (o3.error !== void 0 || o3.result !== void 0)) {
|
|
1190
|
+
P.delete(n2), L.delete(t2), o3.id = i2.id, q(o3, e2.method, Date.now()), a.write(o3).catch(() => l.error("Sending response for canceled message failed."));
|
|
1191
|
+
return;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
let o2 = L.get(t2);
|
|
1195
|
+
if (o2 !== void 0) {
|
|
1196
|
+
o2.cancel(), J(e2);
|
|
1197
|
+
return;
|
|
1198
|
+
} else I.add(t2);
|
|
1199
|
+
}
|
|
1200
|
+
Xe(P, e2);
|
|
1201
|
+
} finally {
|
|
1202
|
+
rt();
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
function st(e2) {
|
|
1206
|
+
if (G()) return;
|
|
1207
|
+
function t2(t3, n2, i3) {
|
|
1208
|
+
let o3 = {
|
|
1209
|
+
jsonrpc: "2.0",
|
|
1210
|
+
id: e2.id
|
|
1211
|
+
};
|
|
1212
|
+
t3 instanceof r.ResponseError ? o3.error = t3.toJson() : o3.result = t3 === void 0 ? null : t3, q(o3, n2, i3), a.write(o3).catch(() => l.error("Sending response failed."));
|
|
1213
|
+
}
|
|
1214
|
+
function i2(t3, n2, r2) {
|
|
1215
|
+
let i3 = {
|
|
1216
|
+
jsonrpc: "2.0",
|
|
1217
|
+
id: e2.id,
|
|
1218
|
+
error: t3.toJson()
|
|
1219
|
+
};
|
|
1220
|
+
q(i3, n2, r2), a.write(i3).catch(() => l.error("Sending response failed."));
|
|
1221
|
+
}
|
|
1222
|
+
function o2(t3, n2, r2) {
|
|
1223
|
+
t3 === void 0 && (t3 = null);
|
|
1224
|
+
let i3 = {
|
|
1225
|
+
jsonrpc: "2.0",
|
|
1226
|
+
id: e2.id,
|
|
1227
|
+
result: t3
|
|
1228
|
+
};
|
|
1229
|
+
q(i3, n2, r2), a.write(i3).catch(() => l.error("Sending response failed."));
|
|
1230
|
+
}
|
|
1231
|
+
pt(e2);
|
|
1232
|
+
let s2 = E2.get(e2.method), c2, u2;
|
|
1233
|
+
s2 && (c2 = s2.type, u2 = s2.handler);
|
|
1234
|
+
let d2 = Date.now();
|
|
1235
|
+
if (u2 || T2) {
|
|
1236
|
+
let a2 = e2.id ?? String(Date.now()), s3 = w.is(W.receiver) ? W.receiver.createCancellationTokenSource(a2) : W.receiver.createCancellationTokenSource(e2);
|
|
1237
|
+
e2.id !== null && I.has(e2.id) && s3.cancel(), e2.id !== null && L.set(a2, s3);
|
|
1238
|
+
try {
|
|
1239
|
+
let l2;
|
|
1240
|
+
if (u2) if (e2.params === void 0) {
|
|
1241
|
+
if (c2 !== void 0 && c2.numberOfParams !== 0) {
|
|
1242
|
+
i2(new r.ResponseError(r.ErrorCodes.InvalidParams, `Request ${e2.method} defines ${c2.numberOfParams} params but received none.`), e2.method, d2);
|
|
1243
|
+
return;
|
|
1244
|
+
}
|
|
1245
|
+
l2 = u2(s3.token);
|
|
1246
|
+
} else if (Array.isArray(e2.params)) {
|
|
1247
|
+
if (c2 !== void 0 && c2.parameterStructures === r.ParameterStructures.byName) {
|
|
1248
|
+
i2(new r.ResponseError(r.ErrorCodes.InvalidParams, `Request ${e2.method} defines parameters by name but received parameters by position`), e2.method, d2);
|
|
1249
|
+
return;
|
|
1250
|
+
}
|
|
1251
|
+
l2 = u2(...e2.params, s3.token);
|
|
1252
|
+
} else {
|
|
1253
|
+
if (c2 !== void 0 && c2.parameterStructures === r.ParameterStructures.byPosition) {
|
|
1254
|
+
i2(new r.ResponseError(r.ErrorCodes.InvalidParams, `Request ${e2.method} defines parameters by position but received parameters by name`), e2.method, d2);
|
|
1255
|
+
return;
|
|
1256
|
+
}
|
|
1257
|
+
l2 = u2(e2.params, s3.token);
|
|
1258
|
+
}
|
|
1259
|
+
else T2 && (l2 = T2(e2.method, e2.params, s3.token));
|
|
1260
|
+
let f2 = l2;
|
|
1261
|
+
l2 ? f2.then ? f2.then((n2) => {
|
|
1262
|
+
L.delete(a2), t2(n2, e2.method, d2);
|
|
1263
|
+
}, (t3) => {
|
|
1264
|
+
L.delete(a2), t3 instanceof r.ResponseError ? i2(t3, e2.method, d2) : t3 && n.string(t3.message) ? i2(new r.ResponseError(r.ErrorCodes.InternalError, `Request ${e2.method} failed with message: ${t3.message}`), e2.method, d2) : i2(new r.ResponseError(r.ErrorCodes.InternalError, `Request ${e2.method} failed unexpectedly without providing any details.`), e2.method, d2);
|
|
1265
|
+
}) : (L.delete(a2), t2(l2, e2.method, d2)) : (L.delete(a2), o2(l2, e2.method, d2));
|
|
1266
|
+
} catch (o3) {
|
|
1267
|
+
L.delete(a2), o3 instanceof r.ResponseError ? t2(o3, e2.method, d2) : o3 && n.string(o3.message) ? i2(new r.ResponseError(r.ErrorCodes.InternalError, `Request ${e2.method} failed with message: ${o3.message}`), e2.method, d2) : i2(new r.ResponseError(r.ErrorCodes.InternalError, `Request ${e2.method} failed unexpectedly without providing any details.`), e2.method, d2);
|
|
1268
|
+
}
|
|
1269
|
+
} else i2(new r.ResponseError(r.ErrorCodes.MethodNotFound, `Unhandled method ${e2.method}`), e2.method, d2);
|
|
1270
|
+
}
|
|
1271
|
+
function ct(e2) {
|
|
1272
|
+
if (!G()) if (e2.id === null) e2.error ? l.error(`Received response message without id: Error is:
|
|
1273
|
+
${JSON.stringify(e2.error, void 0, 4)}`) : l.error("Received response message without id. No further error information provided.");
|
|
1274
|
+
else {
|
|
1275
|
+
let t2 = e2.id, n2 = F.get(t2);
|
|
1276
|
+
if (mt(e2, n2), n2 !== void 0) {
|
|
1277
|
+
F.delete(t2);
|
|
1278
|
+
try {
|
|
1279
|
+
if (e2.error) {
|
|
1280
|
+
let t3 = e2.error;
|
|
1281
|
+
n2.reject(new r.ResponseError(t3.code, t3.message, t3.data));
|
|
1282
|
+
} else if (e2.result !== void 0) n2.resolve(e2.result);
|
|
1283
|
+
else throw Error("Should never happen.");
|
|
1284
|
+
} catch (e3) {
|
|
1285
|
+
e3.message ? l.error(`Response handler '${n2.method}' failed with message: ${e3.message}`) : l.error(`Response handler '${n2.method}' failed unexpectedly.`);
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
function lt(e2) {
|
|
1291
|
+
if (G()) return;
|
|
1292
|
+
let t2, n2;
|
|
1293
|
+
if (e2.method === p.type.method) {
|
|
1294
|
+
let t3 = e2.params.id;
|
|
1295
|
+
I.delete(t3), J(e2);
|
|
1296
|
+
return;
|
|
1297
|
+
} else {
|
|
1298
|
+
let r2 = A2.get(e2.method);
|
|
1299
|
+
r2 && (n2 = r2.handler, t2 = r2.type);
|
|
1300
|
+
}
|
|
1301
|
+
if (n2 || D2) try {
|
|
1302
|
+
if (J(e2), n2) if (e2.params === void 0) t2 !== void 0 && t2.numberOfParams !== 0 && t2.parameterStructures !== r.ParameterStructures.byName && l.error(`Notification ${e2.method} defines ${t2.numberOfParams} params but received none.`), n2();
|
|
1303
|
+
else if (Array.isArray(e2.params)) {
|
|
1304
|
+
let i2 = e2.params;
|
|
1305
|
+
e2.method === h.type.method && i2.length === 2 && m.is(i2[0]) ? n2({
|
|
1306
|
+
token: i2[0],
|
|
1307
|
+
value: i2[1]
|
|
1308
|
+
}) : (t2 !== void 0 && (t2.parameterStructures === r.ParameterStructures.byName && l.error(`Notification ${e2.method} defines parameters by name but received parameters by position`), t2.numberOfParams !== e2.params.length && l.error(`Notification ${e2.method} defines ${t2.numberOfParams} params but received ${i2.length} arguments`)), n2(...i2));
|
|
1309
|
+
} else t2 !== void 0 && t2.parameterStructures === r.ParameterStructures.byPosition && l.error(`Notification ${e2.method} defines parameters by position but received parameters by name`), n2(e2.params);
|
|
1310
|
+
else D2 && D2(e2.method, e2.params);
|
|
1311
|
+
} catch (t3) {
|
|
1312
|
+
t3.message ? l.error(`Notification handler '${e2.method}' failed with message: ${t3.message}`) : l.error(`Notification handler '${e2.method}' failed unexpectedly.`);
|
|
1313
|
+
}
|
|
1314
|
+
else We.fire(e2);
|
|
1315
|
+
}
|
|
1316
|
+
function ut(e2) {
|
|
1317
|
+
if (!e2) {
|
|
1318
|
+
l.error("Received empty message.");
|
|
1319
|
+
return;
|
|
1320
|
+
}
|
|
1321
|
+
l.error(`Received message which is neither a response nor a notification message:
|
|
1322
|
+
${JSON.stringify(e2, null, 4)}`);
|
|
1323
|
+
let t2 = e2;
|
|
1324
|
+
if (n.string(t2.id) || n.number(t2.id)) {
|
|
1325
|
+
let e3 = t2.id, n2 = F.get(e3);
|
|
1326
|
+
n2 && n2.reject(/* @__PURE__ */ Error("The received response has neither a result nor an error property."));
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
function K(e2) {
|
|
1330
|
+
if (e2 != null) switch (R) {
|
|
1331
|
+
case g.Verbose:
|
|
1332
|
+
return JSON.stringify(e2, null, 4);
|
|
1333
|
+
case g.Compact:
|
|
1334
|
+
return JSON.stringify(e2);
|
|
1335
|
+
default:
|
|
1336
|
+
return;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
function dt(e2) {
|
|
1340
|
+
if (!(R === g.Off || !B)) if (z === v.Text) {
|
|
1341
|
+
let t2;
|
|
1342
|
+
(R === g.Verbose || R === g.Compact) && e2.params && (t2 = `Params: ${K(e2.params)}
|
|
1343
|
+
|
|
1344
|
+
`), B.log(`Sending request '${e2.method} - (${e2.id})'.`, t2);
|
|
1345
|
+
} else Y("send-request", e2);
|
|
1346
|
+
}
|
|
1347
|
+
function ft(e2) {
|
|
1348
|
+
if (!(R === g.Off || !B)) if (z === v.Text) {
|
|
1349
|
+
let t2;
|
|
1350
|
+
(R === g.Verbose || R === g.Compact) && (t2 = e2.params ? `Params: ${K(e2.params)}
|
|
1351
|
+
|
|
1352
|
+
` : "No parameters provided.\n\n"), B.log(`Sending notification '${e2.method}'.`, t2);
|
|
1353
|
+
} else Y("send-notification", e2);
|
|
1354
|
+
}
|
|
1355
|
+
function q(e2, t2, n2) {
|
|
1356
|
+
if (!(R === g.Off || !B)) if (z === v.Text) {
|
|
1357
|
+
let r2;
|
|
1358
|
+
(R === g.Verbose || R === g.Compact) && (e2.error && e2.error.data ? r2 = `Error data: ${K(e2.error.data)}
|
|
1359
|
+
|
|
1360
|
+
` : e2.result ? r2 = `Result: ${K(e2.result)}
|
|
1361
|
+
|
|
1362
|
+
` : e2.error === void 0 && (r2 = "No result returned.\n\n")), B.log(`Sending response '${t2} - (${e2.id})'. Processing request took ${Date.now() - n2}ms`, r2);
|
|
1363
|
+
} else Y("send-response", e2);
|
|
1364
|
+
}
|
|
1365
|
+
function pt(e2) {
|
|
1366
|
+
if (!(R === g.Off || !B)) if (z === v.Text) {
|
|
1367
|
+
let t2;
|
|
1368
|
+
(R === g.Verbose || R === g.Compact) && e2.params && (t2 = `Params: ${K(e2.params)}
|
|
1369
|
+
|
|
1370
|
+
`), B.log(`Received request '${e2.method} - (${e2.id})'.`, t2);
|
|
1371
|
+
} else Y("receive-request", e2);
|
|
1372
|
+
}
|
|
1373
|
+
function J(e2) {
|
|
1374
|
+
if (!(R === g.Off || !B || e2.method === b.type.method)) if (z === v.Text) {
|
|
1375
|
+
let t2;
|
|
1376
|
+
(R === g.Verbose || R === g.Compact) && (t2 = e2.params ? `Params: ${K(e2.params)}
|
|
1377
|
+
|
|
1378
|
+
` : "No parameters provided.\n\n"), B.log(`Received notification '${e2.method}'.`, t2);
|
|
1379
|
+
} else Y("receive-notification", e2);
|
|
1380
|
+
}
|
|
1381
|
+
function mt(e2, t2) {
|
|
1382
|
+
if (!(R === g.Off || !B)) if (z === v.Text) {
|
|
1383
|
+
let n2;
|
|
1384
|
+
if ((R === g.Verbose || R === g.Compact) && (e2.error && e2.error.data ? n2 = `Error data: ${K(e2.error.data)}
|
|
1385
|
+
|
|
1386
|
+
` : e2.result ? n2 = `Result: ${K(e2.result)}
|
|
1387
|
+
|
|
1388
|
+
` : e2.error === void 0 && (n2 = "No result returned.\n\n")), t2) {
|
|
1389
|
+
let r2 = e2.error ? ` Request failed: ${e2.error.message} (${e2.error.code}).` : "";
|
|
1390
|
+
B.log(`Received response '${t2.method} - (${e2.id})' in ${Date.now() - t2.timerStart}ms.${r2}`, n2);
|
|
1391
|
+
} else B.log(`Received response ${e2.id} without active response promise.`, n2);
|
|
1392
|
+
} else Y("receive-response", e2);
|
|
1393
|
+
}
|
|
1394
|
+
function Y(e2, t2) {
|
|
1395
|
+
if (!B || R === g.Off) return;
|
|
1396
|
+
let n2 = {
|
|
1397
|
+
isLSPMessage: true,
|
|
1398
|
+
type: e2,
|
|
1399
|
+
message: t2,
|
|
1400
|
+
timestamp: Date.now()
|
|
1401
|
+
};
|
|
1402
|
+
B.log(n2);
|
|
1403
|
+
}
|
|
1404
|
+
function X() {
|
|
1405
|
+
if ($e()) throw new S(x.Closed, "Connection is closed.");
|
|
1406
|
+
if (G()) throw new S(x.Disposed, "Connection is disposed.");
|
|
1407
|
+
}
|
|
1408
|
+
function ht() {
|
|
1409
|
+
if (Qe()) throw new S(x.AlreadyListening, "Connection is already listening");
|
|
1410
|
+
}
|
|
1411
|
+
function gt() {
|
|
1412
|
+
if (!Qe()) throw Error("Call listen() first.");
|
|
1413
|
+
}
|
|
1414
|
+
function Z(e2) {
|
|
1415
|
+
return e2 === void 0 ? null : e2;
|
|
1416
|
+
}
|
|
1417
|
+
function _t(e2) {
|
|
1418
|
+
if (e2 !== null) return e2;
|
|
1419
|
+
}
|
|
1420
|
+
function vt(e2) {
|
|
1421
|
+
return e2 != null && !Array.isArray(e2) && typeof e2 == "object";
|
|
1422
|
+
}
|
|
1423
|
+
function Q(e2, t2) {
|
|
1424
|
+
switch (e2) {
|
|
1425
|
+
case r.ParameterStructures.auto:
|
|
1426
|
+
return vt(t2) ? _t(t2) : [Z(t2)];
|
|
1427
|
+
case r.ParameterStructures.byName:
|
|
1428
|
+
if (!vt(t2)) throw Error("Received parameters by name but param is not an object literal.");
|
|
1429
|
+
return _t(t2);
|
|
1430
|
+
case r.ParameterStructures.byPosition:
|
|
1431
|
+
return [Z(t2)];
|
|
1432
|
+
default:
|
|
1433
|
+
throw Error(`Unknown parameter structure ${e2.toString()}`);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
function yt(e2, t2) {
|
|
1437
|
+
let n2, r2 = e2.numberOfParams;
|
|
1438
|
+
switch (r2) {
|
|
1439
|
+
case 0:
|
|
1440
|
+
n2 = void 0;
|
|
1441
|
+
break;
|
|
1442
|
+
case 1:
|
|
1443
|
+
n2 = Q(e2.parameterStructures, t2[0]);
|
|
1444
|
+
break;
|
|
1445
|
+
default:
|
|
1446
|
+
n2 = [];
|
|
1447
|
+
for (let e3 = 0; e3 < t2.length && e3 < r2; e3++) n2.push(Z(t2[e3]));
|
|
1448
|
+
if (t2.length < r2) for (let e3 = t2.length; e3 < r2; e3++) n2.push(null);
|
|
1449
|
+
break;
|
|
1450
|
+
}
|
|
1451
|
+
return n2;
|
|
1452
|
+
}
|
|
1453
|
+
let $ = {
|
|
1454
|
+
sendNotification: (e2, ...t2) => {
|
|
1455
|
+
X();
|
|
1456
|
+
let i2, o2;
|
|
1457
|
+
if (n.string(e2)) {
|
|
1458
|
+
i2 = e2;
|
|
1459
|
+
let n2 = t2[0], a2 = 0, s3 = r.ParameterStructures.auto;
|
|
1460
|
+
r.ParameterStructures.is(n2) && (a2 = 1, s3 = n2);
|
|
1461
|
+
let c2 = t2.length, l2 = c2 - a2;
|
|
1462
|
+
switch (l2) {
|
|
1463
|
+
case 0:
|
|
1464
|
+
o2 = void 0;
|
|
1465
|
+
break;
|
|
1466
|
+
case 1:
|
|
1467
|
+
o2 = Q(s3, t2[a2]);
|
|
1468
|
+
break;
|
|
1469
|
+
default:
|
|
1470
|
+
if (s3 === r.ParameterStructures.byName) throw Error(`Received ${l2} parameters for 'by Name' notification parameter structure.`);
|
|
1471
|
+
o2 = t2.slice(a2, c2).map((e3) => Z(e3));
|
|
1472
|
+
break;
|
|
1473
|
+
}
|
|
1474
|
+
} else {
|
|
1475
|
+
let n2 = t2;
|
|
1476
|
+
i2 = e2.method, o2 = yt(e2, n2);
|
|
1477
|
+
}
|
|
1478
|
+
let s2 = {
|
|
1479
|
+
jsonrpc: "2.0",
|
|
1480
|
+
method: i2,
|
|
1481
|
+
params: o2
|
|
1482
|
+
};
|
|
1483
|
+
return ft(s2), a.write(s2).catch((e3) => {
|
|
1484
|
+
throw l.error("Sending notification failed."), e3;
|
|
1485
|
+
});
|
|
1486
|
+
},
|
|
1487
|
+
onNotification: (e2, t2) => {
|
|
1488
|
+
X();
|
|
1489
|
+
let r2;
|
|
1490
|
+
return n.func(e2) ? D2 = e2 : t2 && (n.string(e2) ? (r2 = e2, A2.set(e2, {
|
|
1491
|
+
type: void 0,
|
|
1492
|
+
handler: t2
|
|
1493
|
+
})) : (r2 = e2.method, A2.set(e2.method, {
|
|
1494
|
+
type: e2,
|
|
1495
|
+
handler: t2
|
|
1496
|
+
}))), { dispose: () => {
|
|
1497
|
+
r2 === void 0 ? D2 = void 0 : A2.delete(r2);
|
|
1498
|
+
} };
|
|
1499
|
+
},
|
|
1500
|
+
onProgress: (e2, t2, n2) => {
|
|
1501
|
+
if (M2.has(t2)) throw Error(`Progress handler for token ${t2} already registered`);
|
|
1502
|
+
return M2.set(t2, n2), { dispose: () => {
|
|
1503
|
+
M2.delete(t2);
|
|
1504
|
+
} };
|
|
1505
|
+
},
|
|
1506
|
+
sendProgress: (e2, t2, n2) => $.sendNotification(h.type, {
|
|
1507
|
+
token: t2,
|
|
1508
|
+
value: n2
|
|
1509
|
+
}),
|
|
1510
|
+
onUnhandledProgress: Ge.event,
|
|
1511
|
+
sendRequest: (e2, ...t2) => {
|
|
1512
|
+
X(), gt();
|
|
1513
|
+
let i2, o2, s2;
|
|
1514
|
+
if (n.string(e2)) {
|
|
1515
|
+
i2 = e2;
|
|
1516
|
+
let n2 = t2[0], a2 = t2[t2.length - 1], c3 = 0, l2 = r.ParameterStructures.auto;
|
|
1517
|
+
r.ParameterStructures.is(n2) && (c3 = 1, l2 = n2);
|
|
1518
|
+
let u2 = t2.length;
|
|
1519
|
+
f.CancellationToken.is(a2) && (--u2, s2 = a2);
|
|
1520
|
+
let d3 = u2 - c3;
|
|
1521
|
+
switch (d3) {
|
|
1522
|
+
case 0:
|
|
1523
|
+
o2 = void 0;
|
|
1524
|
+
break;
|
|
1525
|
+
case 1:
|
|
1526
|
+
o2 = Q(l2, t2[c3]);
|
|
1527
|
+
break;
|
|
1528
|
+
default:
|
|
1529
|
+
if (l2 === r.ParameterStructures.byName) throw Error(`Received ${d3} parameters for 'by Name' request parameter structure.`);
|
|
1530
|
+
o2 = t2.slice(c3, u2).map((e3) => Z(e3));
|
|
1531
|
+
break;
|
|
1532
|
+
}
|
|
1533
|
+
} else {
|
|
1534
|
+
let n2 = t2;
|
|
1535
|
+
i2 = e2.method, o2 = yt(e2, n2);
|
|
1536
|
+
let r2 = e2.numberOfParams;
|
|
1537
|
+
s2 = f.CancellationToken.is(n2[r2]) ? n2[r2] : void 0;
|
|
1538
|
+
}
|
|
1539
|
+
let c2 = u++, d2;
|
|
1540
|
+
s2 && (d2 = s2.onCancellationRequested(() => {
|
|
1541
|
+
let e3 = W.sender.sendCancellation($, c2);
|
|
1542
|
+
return e3 === void 0 ? (l.log(`Received no promise from cancellation strategy when cancelling id ${c2}`), Promise.resolve()) : e3.catch(() => {
|
|
1543
|
+
l.log(`Sending cancellation messages for id ${c2} failed`);
|
|
1544
|
+
});
|
|
1545
|
+
}));
|
|
1546
|
+
let p2 = {
|
|
1547
|
+
jsonrpc: "2.0",
|
|
1548
|
+
id: c2,
|
|
1549
|
+
method: i2,
|
|
1550
|
+
params: o2
|
|
1551
|
+
};
|
|
1552
|
+
return dt(p2), typeof W.sender.enableCancellation == "function" && W.sender.enableCancellation(p2), new Promise(async (e3, t3) => {
|
|
1553
|
+
let n2 = {
|
|
1554
|
+
method: i2,
|
|
1555
|
+
timerStart: Date.now(),
|
|
1556
|
+
resolve: (t4) => {
|
|
1557
|
+
e3(t4), W.sender.cleanup(c2), d2 == null ? void 0 : d2.dispose();
|
|
1558
|
+
},
|
|
1559
|
+
reject: (e4) => {
|
|
1560
|
+
t3(e4), W.sender.cleanup(c2), d2 == null ? void 0 : d2.dispose();
|
|
1561
|
+
}
|
|
1562
|
+
};
|
|
1563
|
+
try {
|
|
1564
|
+
await a.write(p2), F.set(c2, n2);
|
|
1565
|
+
} catch (e4) {
|
|
1566
|
+
throw l.error("Sending request failed."), n2.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError, e4.message ? e4.message : "Unknown reason")), e4;
|
|
1567
|
+
}
|
|
1568
|
+
});
|
|
1569
|
+
},
|
|
1570
|
+
onRequest: (e2, t2) => {
|
|
1571
|
+
X();
|
|
1572
|
+
let r2 = null;
|
|
1573
|
+
return Ue.is(e2) ? (r2 = void 0, T2 = e2) : n.string(e2) ? (r2 = null, t2 !== void 0 && (r2 = e2, E2.set(e2, {
|
|
1574
|
+
handler: t2,
|
|
1575
|
+
type: void 0
|
|
1576
|
+
}))) : t2 !== void 0 && (r2 = e2.method, E2.set(e2.method, {
|
|
1577
|
+
type: e2,
|
|
1578
|
+
handler: t2
|
|
1579
|
+
})), { dispose: () => {
|
|
1580
|
+
r2 !== null && (r2 === void 0 ? T2 = void 0 : E2.delete(r2));
|
|
1581
|
+
} };
|
|
1582
|
+
},
|
|
1583
|
+
hasPendingResponse: () => F.size > 0,
|
|
1584
|
+
trace: async (e2, t2, r2) => {
|
|
1585
|
+
let i2 = false, a2 = v.Text;
|
|
1586
|
+
r2 !== void 0 && (n.boolean(r2) ? i2 = r2 : (i2 = r2.sendNotification || false, a2 = r2.traceFormat || v.Text)), R = e2, z = a2, B = R === g.Off ? void 0 : t2, i2 && !$e() && !G() && await $.sendNotification(y.type, { value: g.toString(e2) });
|
|
1587
|
+
},
|
|
1588
|
+
onError: H.event,
|
|
1589
|
+
onClose: U.event,
|
|
1590
|
+
onUnhandledNotification: We.event,
|
|
1591
|
+
onDispose: Ke.event,
|
|
1592
|
+
end: () => {
|
|
1593
|
+
a.end();
|
|
1594
|
+
},
|
|
1595
|
+
dispose: () => {
|
|
1596
|
+
if (G()) return;
|
|
1597
|
+
V = j.Disposed, Ke.fire(void 0);
|
|
1598
|
+
let e2 = new r.ResponseError(r.ErrorCodes.PendingResponseRejected, "Pending response rejected since connection got disposed");
|
|
1599
|
+
for (let t2 of F.values()) t2.reject(e2);
|
|
1600
|
+
F = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Set(), P = new s.LinkedMap(), n.func(a.dispose) && a.dispose(), n.func(i.dispose) && i.dispose();
|
|
1601
|
+
},
|
|
1602
|
+
listen: () => {
|
|
1603
|
+
X(), ht(), V = j.Listening, i.listen(ot);
|
|
1604
|
+
},
|
|
1605
|
+
inspect: () => {
|
|
1606
|
+
(0, t.default)().console.log("inspect");
|
|
1607
|
+
}
|
|
1608
|
+
};
|
|
1609
|
+
return $.onNotification(b.type, (e2) => {
|
|
1610
|
+
if (R === g.Off || !B) return;
|
|
1611
|
+
let t2 = R === g.Verbose || R === g.Compact;
|
|
1612
|
+
B.log(e2.message, t2 ? e2.verbose : void 0);
|
|
1613
|
+
}), $.onNotification(h.type, (e2) => {
|
|
1614
|
+
let t2 = M2.get(e2.token);
|
|
1615
|
+
t2 ? t2(e2.value) : Ge.fire(e2);
|
|
1616
|
+
}), $;
|
|
1617
|
+
}
|
|
1618
|
+
e.createMessageConnection = M;
|
|
1619
|
+
})), require_api$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1620
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.ProgressType = e.ProgressToken = e.createMessageConnection = e.NullLogger = e.ConnectionOptions = e.ConnectionStrategy = e.AbstractMessageBuffer = e.WriteableStreamMessageWriter = e.AbstractMessageWriter = e.MessageWriter = e.ReadableStreamMessageReader = e.AbstractMessageReader = e.MessageReader = e.SharedArrayReceiverStrategy = e.SharedArraySenderStrategy = e.CancellationToken = e.CancellationTokenSource = e.Emitter = e.Event = e.Disposable = e.LRUCache = e.Touch = e.LinkedMap = e.ParameterStructures = e.NotificationType9 = e.NotificationType8 = e.NotificationType7 = e.NotificationType6 = e.NotificationType5 = e.NotificationType4 = e.NotificationType3 = e.NotificationType2 = e.NotificationType1 = e.NotificationType0 = e.NotificationType = e.ErrorCodes = e.ResponseError = e.RequestType9 = e.RequestType8 = e.RequestType7 = e.RequestType6 = e.RequestType5 = e.RequestType4 = e.RequestType3 = e.RequestType2 = e.RequestType1 = e.RequestType0 = e.RequestType = e.Message = e.RAL = void 0, e.MessageStrategy = e.CancellationStrategy = e.CancellationSenderStrategy = e.CancellationReceiverStrategy = e.ConnectionError = e.ConnectionErrors = e.LogTraceNotification = e.SetTraceNotification = e.TraceFormat = e.TraceValues = e.Trace = void 0;
|
|
1621
|
+
var t = require_messages$1();
|
|
1622
|
+
Object.defineProperty(e, "Message", {
|
|
1623
|
+
enumerable: true,
|
|
1624
|
+
get: function() {
|
|
1625
|
+
return t.Message;
|
|
1626
|
+
}
|
|
1627
|
+
}), Object.defineProperty(e, "RequestType", {
|
|
1628
|
+
enumerable: true,
|
|
1629
|
+
get: function() {
|
|
1630
|
+
return t.RequestType;
|
|
1631
|
+
}
|
|
1632
|
+
}), Object.defineProperty(e, "RequestType0", {
|
|
1633
|
+
enumerable: true,
|
|
1634
|
+
get: function() {
|
|
1635
|
+
return t.RequestType0;
|
|
1636
|
+
}
|
|
1637
|
+
}), Object.defineProperty(e, "RequestType1", {
|
|
1638
|
+
enumerable: true,
|
|
1639
|
+
get: function() {
|
|
1640
|
+
return t.RequestType1;
|
|
1641
|
+
}
|
|
1642
|
+
}), Object.defineProperty(e, "RequestType2", {
|
|
1643
|
+
enumerable: true,
|
|
1644
|
+
get: function() {
|
|
1645
|
+
return t.RequestType2;
|
|
1646
|
+
}
|
|
1647
|
+
}), Object.defineProperty(e, "RequestType3", {
|
|
1648
|
+
enumerable: true,
|
|
1649
|
+
get: function() {
|
|
1650
|
+
return t.RequestType3;
|
|
1651
|
+
}
|
|
1652
|
+
}), Object.defineProperty(e, "RequestType4", {
|
|
1653
|
+
enumerable: true,
|
|
1654
|
+
get: function() {
|
|
1655
|
+
return t.RequestType4;
|
|
1656
|
+
}
|
|
1657
|
+
}), Object.defineProperty(e, "RequestType5", {
|
|
1658
|
+
enumerable: true,
|
|
1659
|
+
get: function() {
|
|
1660
|
+
return t.RequestType5;
|
|
1661
|
+
}
|
|
1662
|
+
}), Object.defineProperty(e, "RequestType6", {
|
|
1663
|
+
enumerable: true,
|
|
1664
|
+
get: function() {
|
|
1665
|
+
return t.RequestType6;
|
|
1666
|
+
}
|
|
1667
|
+
}), Object.defineProperty(e, "RequestType7", {
|
|
1668
|
+
enumerable: true,
|
|
1669
|
+
get: function() {
|
|
1670
|
+
return t.RequestType7;
|
|
1671
|
+
}
|
|
1672
|
+
}), Object.defineProperty(e, "RequestType8", {
|
|
1673
|
+
enumerable: true,
|
|
1674
|
+
get: function() {
|
|
1675
|
+
return t.RequestType8;
|
|
1676
|
+
}
|
|
1677
|
+
}), Object.defineProperty(e, "RequestType9", {
|
|
1678
|
+
enumerable: true,
|
|
1679
|
+
get: function() {
|
|
1680
|
+
return t.RequestType9;
|
|
1681
|
+
}
|
|
1682
|
+
}), Object.defineProperty(e, "ResponseError", {
|
|
1683
|
+
enumerable: true,
|
|
1684
|
+
get: function() {
|
|
1685
|
+
return t.ResponseError;
|
|
1686
|
+
}
|
|
1687
|
+
}), Object.defineProperty(e, "ErrorCodes", {
|
|
1688
|
+
enumerable: true,
|
|
1689
|
+
get: function() {
|
|
1690
|
+
return t.ErrorCodes;
|
|
1691
|
+
}
|
|
1692
|
+
}), Object.defineProperty(e, "NotificationType", {
|
|
1693
|
+
enumerable: true,
|
|
1694
|
+
get: function() {
|
|
1695
|
+
return t.NotificationType;
|
|
1696
|
+
}
|
|
1697
|
+
}), Object.defineProperty(e, "NotificationType0", {
|
|
1698
|
+
enumerable: true,
|
|
1699
|
+
get: function() {
|
|
1700
|
+
return t.NotificationType0;
|
|
1701
|
+
}
|
|
1702
|
+
}), Object.defineProperty(e, "NotificationType1", {
|
|
1703
|
+
enumerable: true,
|
|
1704
|
+
get: function() {
|
|
1705
|
+
return t.NotificationType1;
|
|
1706
|
+
}
|
|
1707
|
+
}), Object.defineProperty(e, "NotificationType2", {
|
|
1708
|
+
enumerable: true,
|
|
1709
|
+
get: function() {
|
|
1710
|
+
return t.NotificationType2;
|
|
1711
|
+
}
|
|
1712
|
+
}), Object.defineProperty(e, "NotificationType3", {
|
|
1713
|
+
enumerable: true,
|
|
1714
|
+
get: function() {
|
|
1715
|
+
return t.NotificationType3;
|
|
1716
|
+
}
|
|
1717
|
+
}), Object.defineProperty(e, "NotificationType4", {
|
|
1718
|
+
enumerable: true,
|
|
1719
|
+
get: function() {
|
|
1720
|
+
return t.NotificationType4;
|
|
1721
|
+
}
|
|
1722
|
+
}), Object.defineProperty(e, "NotificationType5", {
|
|
1723
|
+
enumerable: true,
|
|
1724
|
+
get: function() {
|
|
1725
|
+
return t.NotificationType5;
|
|
1726
|
+
}
|
|
1727
|
+
}), Object.defineProperty(e, "NotificationType6", {
|
|
1728
|
+
enumerable: true,
|
|
1729
|
+
get: function() {
|
|
1730
|
+
return t.NotificationType6;
|
|
1731
|
+
}
|
|
1732
|
+
}), Object.defineProperty(e, "NotificationType7", {
|
|
1733
|
+
enumerable: true,
|
|
1734
|
+
get: function() {
|
|
1735
|
+
return t.NotificationType7;
|
|
1736
|
+
}
|
|
1737
|
+
}), Object.defineProperty(e, "NotificationType8", {
|
|
1738
|
+
enumerable: true,
|
|
1739
|
+
get: function() {
|
|
1740
|
+
return t.NotificationType8;
|
|
1741
|
+
}
|
|
1742
|
+
}), Object.defineProperty(e, "NotificationType9", {
|
|
1743
|
+
enumerable: true,
|
|
1744
|
+
get: function() {
|
|
1745
|
+
return t.NotificationType9;
|
|
1746
|
+
}
|
|
1747
|
+
}), Object.defineProperty(e, "ParameterStructures", {
|
|
1748
|
+
enumerable: true,
|
|
1749
|
+
get: function() {
|
|
1750
|
+
return t.ParameterStructures;
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
var n = require_linkedMap();
|
|
1754
|
+
Object.defineProperty(e, "LinkedMap", {
|
|
1755
|
+
enumerable: true,
|
|
1756
|
+
get: function() {
|
|
1757
|
+
return n.LinkedMap;
|
|
1758
|
+
}
|
|
1759
|
+
}), Object.defineProperty(e, "LRUCache", {
|
|
1760
|
+
enumerable: true,
|
|
1761
|
+
get: function() {
|
|
1762
|
+
return n.LRUCache;
|
|
1763
|
+
}
|
|
1764
|
+
}), Object.defineProperty(e, "Touch", {
|
|
1765
|
+
enumerable: true,
|
|
1766
|
+
get: function() {
|
|
1767
|
+
return n.Touch;
|
|
1768
|
+
}
|
|
1769
|
+
});
|
|
1770
|
+
var r = require_disposable();
|
|
1771
|
+
Object.defineProperty(e, "Disposable", {
|
|
1772
|
+
enumerable: true,
|
|
1773
|
+
get: function() {
|
|
1774
|
+
return r.Disposable;
|
|
1775
|
+
}
|
|
1776
|
+
});
|
|
1777
|
+
var i = require_events();
|
|
1778
|
+
Object.defineProperty(e, "Event", {
|
|
1779
|
+
enumerable: true,
|
|
1780
|
+
get: function() {
|
|
1781
|
+
return i.Event;
|
|
1782
|
+
}
|
|
1783
|
+
}), Object.defineProperty(e, "Emitter", {
|
|
1784
|
+
enumerable: true,
|
|
1785
|
+
get: function() {
|
|
1786
|
+
return i.Emitter;
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
var f = require_cancellation();
|
|
1790
|
+
Object.defineProperty(e, "CancellationTokenSource", {
|
|
1791
|
+
enumerable: true,
|
|
1792
|
+
get: function() {
|
|
1793
|
+
return f.CancellationTokenSource;
|
|
1794
|
+
}
|
|
1795
|
+
}), Object.defineProperty(e, "CancellationToken", {
|
|
1796
|
+
enumerable: true,
|
|
1797
|
+
get: function() {
|
|
1798
|
+
return f.CancellationToken;
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
var g = require_sharedArrayCancellation();
|
|
1802
|
+
Object.defineProperty(e, "SharedArraySenderStrategy", {
|
|
1803
|
+
enumerable: true,
|
|
1804
|
+
get: function() {
|
|
1805
|
+
return g.SharedArraySenderStrategy;
|
|
1806
|
+
}
|
|
1807
|
+
}), Object.defineProperty(e, "SharedArrayReceiverStrategy", {
|
|
1808
|
+
enumerable: true,
|
|
1809
|
+
get: function() {
|
|
1810
|
+
return g.SharedArrayReceiverStrategy;
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
var _ = require_messageReader();
|
|
1814
|
+
Object.defineProperty(e, "MessageReader", {
|
|
1815
|
+
enumerable: true,
|
|
1816
|
+
get: function() {
|
|
1817
|
+
return _.MessageReader;
|
|
1818
|
+
}
|
|
1819
|
+
}), Object.defineProperty(e, "AbstractMessageReader", {
|
|
1820
|
+
enumerable: true,
|
|
1821
|
+
get: function() {
|
|
1822
|
+
return _.AbstractMessageReader;
|
|
1823
|
+
}
|
|
1824
|
+
}), Object.defineProperty(e, "ReadableStreamMessageReader", {
|
|
1825
|
+
enumerable: true,
|
|
1826
|
+
get: function() {
|
|
1827
|
+
return _.ReadableStreamMessageReader;
|
|
1828
|
+
}
|
|
1829
|
+
});
|
|
1830
|
+
var v = require_messageWriter();
|
|
1831
|
+
Object.defineProperty(e, "MessageWriter", {
|
|
1832
|
+
enumerable: true,
|
|
1833
|
+
get: function() {
|
|
1834
|
+
return v.MessageWriter;
|
|
1835
|
+
}
|
|
1836
|
+
}), Object.defineProperty(e, "AbstractMessageWriter", {
|
|
1837
|
+
enumerable: true,
|
|
1838
|
+
get: function() {
|
|
1839
|
+
return v.AbstractMessageWriter;
|
|
1840
|
+
}
|
|
1841
|
+
}), Object.defineProperty(e, "WriteableStreamMessageWriter", {
|
|
1842
|
+
enumerable: true,
|
|
1843
|
+
get: function() {
|
|
1844
|
+
return v.WriteableStreamMessageWriter;
|
|
1845
|
+
}
|
|
1846
|
+
});
|
|
1847
|
+
var y = require_messageBuffer();
|
|
1848
|
+
Object.defineProperty(e, "AbstractMessageBuffer", {
|
|
1849
|
+
enumerable: true,
|
|
1850
|
+
get: function() {
|
|
1851
|
+
return y.AbstractMessageBuffer;
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1854
|
+
var b = require_connection$1();
|
|
1855
|
+
Object.defineProperty(e, "ConnectionStrategy", {
|
|
1856
|
+
enumerable: true,
|
|
1857
|
+
get: function() {
|
|
1858
|
+
return b.ConnectionStrategy;
|
|
1859
|
+
}
|
|
1860
|
+
}), Object.defineProperty(e, "ConnectionOptions", {
|
|
1861
|
+
enumerable: true,
|
|
1862
|
+
get: function() {
|
|
1863
|
+
return b.ConnectionOptions;
|
|
1864
|
+
}
|
|
1865
|
+
}), Object.defineProperty(e, "NullLogger", {
|
|
1866
|
+
enumerable: true,
|
|
1867
|
+
get: function() {
|
|
1868
|
+
return b.NullLogger;
|
|
1869
|
+
}
|
|
1870
|
+
}), Object.defineProperty(e, "createMessageConnection", {
|
|
1871
|
+
enumerable: true,
|
|
1872
|
+
get: function() {
|
|
1873
|
+
return b.createMessageConnection;
|
|
1874
|
+
}
|
|
1875
|
+
}), Object.defineProperty(e, "ProgressToken", {
|
|
1876
|
+
enumerable: true,
|
|
1877
|
+
get: function() {
|
|
1878
|
+
return b.ProgressToken;
|
|
1879
|
+
}
|
|
1880
|
+
}), Object.defineProperty(e, "ProgressType", {
|
|
1881
|
+
enumerable: true,
|
|
1882
|
+
get: function() {
|
|
1883
|
+
return b.ProgressType;
|
|
1884
|
+
}
|
|
1885
|
+
}), Object.defineProperty(e, "Trace", {
|
|
1886
|
+
enumerable: true,
|
|
1887
|
+
get: function() {
|
|
1888
|
+
return b.Trace;
|
|
1889
|
+
}
|
|
1890
|
+
}), Object.defineProperty(e, "TraceValues", {
|
|
1891
|
+
enumerable: true,
|
|
1892
|
+
get: function() {
|
|
1893
|
+
return b.TraceValues;
|
|
1894
|
+
}
|
|
1895
|
+
}), Object.defineProperty(e, "TraceFormat", {
|
|
1896
|
+
enumerable: true,
|
|
1897
|
+
get: function() {
|
|
1898
|
+
return b.TraceFormat;
|
|
1899
|
+
}
|
|
1900
|
+
}), Object.defineProperty(e, "SetTraceNotification", {
|
|
1901
|
+
enumerable: true,
|
|
1902
|
+
get: function() {
|
|
1903
|
+
return b.SetTraceNotification;
|
|
1904
|
+
}
|
|
1905
|
+
}), Object.defineProperty(e, "LogTraceNotification", {
|
|
1906
|
+
enumerable: true,
|
|
1907
|
+
get: function() {
|
|
1908
|
+
return b.LogTraceNotification;
|
|
1909
|
+
}
|
|
1910
|
+
}), Object.defineProperty(e, "ConnectionErrors", {
|
|
1911
|
+
enumerable: true,
|
|
1912
|
+
get: function() {
|
|
1913
|
+
return b.ConnectionErrors;
|
|
1914
|
+
}
|
|
1915
|
+
}), Object.defineProperty(e, "ConnectionError", {
|
|
1916
|
+
enumerable: true,
|
|
1917
|
+
get: function() {
|
|
1918
|
+
return b.ConnectionError;
|
|
1919
|
+
}
|
|
1920
|
+
}), Object.defineProperty(e, "CancellationReceiverStrategy", {
|
|
1921
|
+
enumerable: true,
|
|
1922
|
+
get: function() {
|
|
1923
|
+
return b.CancellationReceiverStrategy;
|
|
1924
|
+
}
|
|
1925
|
+
}), Object.defineProperty(e, "CancellationSenderStrategy", {
|
|
1926
|
+
enumerable: true,
|
|
1927
|
+
get: function() {
|
|
1928
|
+
return b.CancellationSenderStrategy;
|
|
1929
|
+
}
|
|
1930
|
+
}), Object.defineProperty(e, "CancellationStrategy", {
|
|
1931
|
+
enumerable: true,
|
|
1932
|
+
get: function() {
|
|
1933
|
+
return b.CancellationStrategy;
|
|
1934
|
+
}
|
|
1935
|
+
}), Object.defineProperty(e, "MessageStrategy", {
|
|
1936
|
+
enumerable: true,
|
|
1937
|
+
get: function() {
|
|
1938
|
+
return b.MessageStrategy;
|
|
1939
|
+
}
|
|
1940
|
+
}), e.RAL = require_ral().default;
|
|
1941
|
+
})), require_ril = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
1942
|
+
Object.defineProperty(e, "__esModule", { value: true });
|
|
1943
|
+
var t = require_api$1(), n = class e2 extends t.AbstractMessageBuffer {
|
|
1944
|
+
constructor(e3 = "utf-8") {
|
|
1945
|
+
super(e3), this.asciiDecoder = new TextDecoder("ascii");
|
|
1946
|
+
}
|
|
1947
|
+
emptyBuffer() {
|
|
1948
|
+
return e2.emptyBuffer;
|
|
1949
|
+
}
|
|
1950
|
+
fromString(e3, t2) {
|
|
1951
|
+
return new TextEncoder().encode(e3);
|
|
1952
|
+
}
|
|
1953
|
+
toString(e3, t2) {
|
|
1954
|
+
return t2 === "ascii" ? this.asciiDecoder.decode(e3) : new TextDecoder(t2).decode(e3);
|
|
1955
|
+
}
|
|
1956
|
+
asNative(e3, t2) {
|
|
1957
|
+
return t2 === void 0 ? e3 : e3.slice(0, t2);
|
|
1958
|
+
}
|
|
1959
|
+
allocNative(e3) {
|
|
1960
|
+
return new Uint8Array(e3);
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
n.emptyBuffer = new Uint8Array();
|
|
1964
|
+
var r = class {
|
|
1965
|
+
constructor(e2) {
|
|
1966
|
+
this.socket = e2, this._onData = new t.Emitter(), this._messageListener = (e3) => {
|
|
1967
|
+
e3.data.arrayBuffer().then((e4) => {
|
|
1968
|
+
this._onData.fire(new Uint8Array(e4));
|
|
1969
|
+
}, () => {
|
|
1970
|
+
(0, t.RAL)().console.error("Converting blob to array buffer failed.");
|
|
1971
|
+
});
|
|
1972
|
+
}, this.socket.addEventListener("message", this._messageListener);
|
|
1973
|
+
}
|
|
1974
|
+
onClose(e2) {
|
|
1975
|
+
return this.socket.addEventListener("close", e2), t.Disposable.create(() => this.socket.removeEventListener("close", e2));
|
|
1976
|
+
}
|
|
1977
|
+
onError(e2) {
|
|
1978
|
+
return this.socket.addEventListener("error", e2), t.Disposable.create(() => this.socket.removeEventListener("error", e2));
|
|
1979
|
+
}
|
|
1980
|
+
onEnd(e2) {
|
|
1981
|
+
return this.socket.addEventListener("end", e2), t.Disposable.create(() => this.socket.removeEventListener("end", e2));
|
|
1982
|
+
}
|
|
1983
|
+
onData(e2) {
|
|
1984
|
+
return this._onData.event(e2);
|
|
1985
|
+
}
|
|
1986
|
+
}, i = class {
|
|
1987
|
+
constructor(e2) {
|
|
1988
|
+
this.socket = e2;
|
|
1989
|
+
}
|
|
1990
|
+
onClose(e2) {
|
|
1991
|
+
return this.socket.addEventListener("close", e2), t.Disposable.create(() => this.socket.removeEventListener("close", e2));
|
|
1992
|
+
}
|
|
1993
|
+
onError(e2) {
|
|
1994
|
+
return this.socket.addEventListener("error", e2), t.Disposable.create(() => this.socket.removeEventListener("error", e2));
|
|
1995
|
+
}
|
|
1996
|
+
onEnd(e2) {
|
|
1997
|
+
return this.socket.addEventListener("end", e2), t.Disposable.create(() => this.socket.removeEventListener("end", e2));
|
|
1998
|
+
}
|
|
1999
|
+
write(e2, t2) {
|
|
2000
|
+
if (typeof e2 == "string") {
|
|
2001
|
+
if (t2 !== void 0 && t2 !== "utf-8") throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t2}`);
|
|
2002
|
+
this.socket.send(e2);
|
|
2003
|
+
} else this.socket.send(e2);
|
|
2004
|
+
return Promise.resolve();
|
|
2005
|
+
}
|
|
2006
|
+
end() {
|
|
2007
|
+
this.socket.close();
|
|
2008
|
+
}
|
|
2009
|
+
}, a = new TextEncoder(), o = Object.freeze({
|
|
2010
|
+
messageBuffer: Object.freeze({ create: (e2) => new n(e2) }),
|
|
2011
|
+
applicationJson: Object.freeze({
|
|
2012
|
+
encoder: Object.freeze({
|
|
2013
|
+
name: "application/json",
|
|
2014
|
+
encode: (e2, t2) => {
|
|
2015
|
+
if (t2.charset !== "utf-8") throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t2.charset}`);
|
|
2016
|
+
return Promise.resolve(a.encode(JSON.stringify(e2, void 0, 0)));
|
|
2017
|
+
}
|
|
2018
|
+
}),
|
|
2019
|
+
decoder: Object.freeze({
|
|
2020
|
+
name: "application/json",
|
|
2021
|
+
decode: (e2, t2) => {
|
|
2022
|
+
if (!(e2 instanceof Uint8Array)) throw Error("In a Browser environments only Uint8Arrays are supported.");
|
|
2023
|
+
return Promise.resolve(JSON.parse(new TextDecoder(t2.charset).decode(e2)));
|
|
2024
|
+
}
|
|
2025
|
+
})
|
|
2026
|
+
}),
|
|
2027
|
+
stream: Object.freeze({
|
|
2028
|
+
asReadableStream: (e2) => new r(e2),
|
|
2029
|
+
asWritableStream: (e2) => new i(e2)
|
|
2030
|
+
}),
|
|
2031
|
+
console,
|
|
2032
|
+
timer: Object.freeze({
|
|
2033
|
+
setTimeout(e2, t2, ...n2) {
|
|
2034
|
+
let r2 = setTimeout(e2, t2, ...n2);
|
|
2035
|
+
return { dispose: () => clearTimeout(r2) };
|
|
2036
|
+
},
|
|
2037
|
+
setImmediate(e2, ...t2) {
|
|
2038
|
+
let n2 = setTimeout(e2, 0, ...t2);
|
|
2039
|
+
return { dispose: () => clearTimeout(n2) };
|
|
2040
|
+
},
|
|
2041
|
+
setInterval(e2, t2, ...n2) {
|
|
2042
|
+
let r2 = setInterval(e2, t2, ...n2);
|
|
2043
|
+
return { dispose: () => clearInterval(r2) };
|
|
2044
|
+
}
|
|
2045
|
+
})
|
|
2046
|
+
});
|
|
2047
|
+
function s() {
|
|
2048
|
+
return o;
|
|
2049
|
+
}
|
|
2050
|
+
(function(e2) {
|
|
2051
|
+
function n2() {
|
|
2052
|
+
t.RAL.install(o);
|
|
2053
|
+
}
|
|
2054
|
+
e2.install = n2;
|
|
2055
|
+
})(s || (s = {})), e.default = s;
|
|
2056
|
+
})), require_main$1 = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
2057
|
+
var t = e && e.__createBinding || (Object.create ? (function(e2, t2, n2, r2) {
|
|
2058
|
+
r2 === void 0 && (r2 = n2);
|
|
2059
|
+
var i2 = Object.getOwnPropertyDescriptor(t2, n2);
|
|
2060
|
+
(!i2 || ("get" in i2 ? !t2.__esModule : i2.writable || i2.configurable)) && (i2 = {
|
|
2061
|
+
enumerable: true,
|
|
2062
|
+
get: function() {
|
|
2063
|
+
return t2[n2];
|
|
2064
|
+
}
|
|
2065
|
+
}), Object.defineProperty(e2, r2, i2);
|
|
2066
|
+
}) : (function(e2, t2, n2, r2) {
|
|
2067
|
+
r2 === void 0 && (r2 = n2), e2[r2] = t2[n2];
|
|
2068
|
+
})), n = e && e.__exportStar || function(e2, n2) {
|
|
2069
|
+
for (var r2 in e2) r2 !== "default" && !Object.prototype.hasOwnProperty.call(n2, r2) && t(n2, e2, r2);
|
|
2070
|
+
};
|
|
2071
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.createMessageConnection = e.BrowserMessageWriter = e.BrowserMessageReader = void 0, require_ril().default.install();
|
|
2072
|
+
var r = require_api$1();
|
|
2073
|
+
n(require_api$1(), e), e.BrowserMessageReader = class extends r.AbstractMessageReader {
|
|
2074
|
+
constructor(e2) {
|
|
2075
|
+
super(), this._onData = new r.Emitter(), this._messageListener = (e3) => {
|
|
2076
|
+
this._onData.fire(e3.data);
|
|
2077
|
+
}, e2.addEventListener("error", (e3) => this.fireError(e3)), e2.onmessage = this._messageListener;
|
|
2078
|
+
}
|
|
2079
|
+
listen(e2) {
|
|
2080
|
+
return this._onData.event(e2);
|
|
2081
|
+
}
|
|
2082
|
+
}, e.BrowserMessageWriter = class extends r.AbstractMessageWriter {
|
|
2083
|
+
constructor(e2) {
|
|
2084
|
+
super(), this.port = e2, this.errorCount = 0, e2.addEventListener("error", (e3) => this.fireError(e3));
|
|
2085
|
+
}
|
|
2086
|
+
write(e2) {
|
|
2087
|
+
try {
|
|
2088
|
+
return this.port.postMessage(e2), Promise.resolve();
|
|
2089
|
+
} catch (t2) {
|
|
2090
|
+
return this.handleError(t2, e2), Promise.reject(t2);
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
handleError(e2, t2) {
|
|
2094
|
+
this.errorCount++, this.fireError(e2, t2, this.errorCount);
|
|
2095
|
+
}
|
|
2096
|
+
end() {
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
function i(e2, t2, n2, i2) {
|
|
2100
|
+
return n2 === void 0 && (n2 = r.NullLogger), r.ConnectionStrategy.is(i2) && (i2 = { connectionStrategy: i2 }), (0, r.createMessageConnection)(e2, t2, n2, i2);
|
|
2101
|
+
}
|
|
2102
|
+
e.createMessageConnection = i;
|
|
2103
|
+
})), require_browser = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
2104
|
+
t.exports = require_main$1();
|
|
2105
|
+
})), main_exports = /* @__PURE__ */ __export({
|
|
2106
|
+
AnnotatedTextEdit: () => AnnotatedTextEdit,
|
|
2107
|
+
ChangeAnnotation: () => ChangeAnnotation,
|
|
2108
|
+
ChangeAnnotationIdentifier: () => ChangeAnnotationIdentifier,
|
|
2109
|
+
CodeAction: () => CodeAction,
|
|
2110
|
+
CodeActionContext: () => CodeActionContext,
|
|
2111
|
+
CodeActionKind: () => CodeActionKind,
|
|
2112
|
+
CodeActionTriggerKind: () => CodeActionTriggerKind,
|
|
2113
|
+
CodeDescription: () => CodeDescription,
|
|
2114
|
+
CodeLens: () => CodeLens,
|
|
2115
|
+
Color: () => Color,
|
|
2116
|
+
ColorInformation: () => ColorInformation,
|
|
2117
|
+
ColorPresentation: () => ColorPresentation,
|
|
2118
|
+
Command: () => Command,
|
|
2119
|
+
CompletionItem: () => CompletionItem,
|
|
2120
|
+
CompletionItemKind: () => CompletionItemKind,
|
|
2121
|
+
CompletionItemLabelDetails: () => CompletionItemLabelDetails,
|
|
2122
|
+
CompletionItemTag: () => CompletionItemTag,
|
|
2123
|
+
CompletionList: () => CompletionList,
|
|
2124
|
+
CreateFile: () => CreateFile,
|
|
2125
|
+
DeleteFile: () => DeleteFile,
|
|
2126
|
+
Diagnostic: () => Diagnostic,
|
|
2127
|
+
DiagnosticRelatedInformation: () => DiagnosticRelatedInformation,
|
|
2128
|
+
DiagnosticSeverity: () => DiagnosticSeverity,
|
|
2129
|
+
DiagnosticTag: () => DiagnosticTag,
|
|
2130
|
+
DocumentHighlight: () => DocumentHighlight,
|
|
2131
|
+
DocumentHighlightKind: () => DocumentHighlightKind,
|
|
2132
|
+
DocumentLink: () => DocumentLink,
|
|
2133
|
+
DocumentSymbol: () => DocumentSymbol,
|
|
2134
|
+
DocumentUri: () => DocumentUri,
|
|
2135
|
+
EOL: () => EOL,
|
|
2136
|
+
FoldingRange: () => FoldingRange,
|
|
2137
|
+
FoldingRangeKind: () => FoldingRangeKind,
|
|
2138
|
+
FormattingOptions: () => FormattingOptions,
|
|
2139
|
+
Hover: () => Hover,
|
|
2140
|
+
InlayHint: () => InlayHint,
|
|
2141
|
+
InlayHintKind: () => InlayHintKind,
|
|
2142
|
+
InlayHintLabelPart: () => InlayHintLabelPart,
|
|
2143
|
+
InlineCompletionContext: () => InlineCompletionContext,
|
|
2144
|
+
InlineCompletionItem: () => InlineCompletionItem,
|
|
2145
|
+
InlineCompletionList: () => InlineCompletionList,
|
|
2146
|
+
InlineCompletionTriggerKind: () => InlineCompletionTriggerKind,
|
|
2147
|
+
InlineValueContext: () => InlineValueContext,
|
|
2148
|
+
InlineValueEvaluatableExpression: () => InlineValueEvaluatableExpression,
|
|
2149
|
+
InlineValueText: () => InlineValueText,
|
|
2150
|
+
InlineValueVariableLookup: () => InlineValueVariableLookup,
|
|
2151
|
+
InsertReplaceEdit: () => InsertReplaceEdit,
|
|
2152
|
+
InsertTextFormat: () => InsertTextFormat,
|
|
2153
|
+
InsertTextMode: () => InsertTextMode,
|
|
2154
|
+
Location: () => Location,
|
|
2155
|
+
LocationLink: () => LocationLink,
|
|
2156
|
+
MarkedString: () => MarkedString,
|
|
2157
|
+
MarkupContent: () => MarkupContent,
|
|
2158
|
+
MarkupKind: () => MarkupKind,
|
|
2159
|
+
OptionalVersionedTextDocumentIdentifier: () => OptionalVersionedTextDocumentIdentifier,
|
|
2160
|
+
ParameterInformation: () => ParameterInformation,
|
|
2161
|
+
Position: () => Position,
|
|
2162
|
+
Range: () => Range,
|
|
2163
|
+
RenameFile: () => RenameFile,
|
|
2164
|
+
SelectedCompletionInfo: () => SelectedCompletionInfo,
|
|
2165
|
+
SelectionRange: () => SelectionRange,
|
|
2166
|
+
SemanticTokenModifiers: () => SemanticTokenModifiers,
|
|
2167
|
+
SemanticTokenTypes: () => SemanticTokenTypes,
|
|
2168
|
+
SemanticTokens: () => SemanticTokens,
|
|
2169
|
+
SignatureInformation: () => SignatureInformation,
|
|
2170
|
+
StringValue: () => StringValue,
|
|
2171
|
+
SymbolInformation: () => SymbolInformation,
|
|
2172
|
+
SymbolKind: () => SymbolKind,
|
|
2173
|
+
SymbolTag: () => SymbolTag,
|
|
2174
|
+
TextDocument: () => TextDocument,
|
|
2175
|
+
TextDocumentEdit: () => TextDocumentEdit,
|
|
2176
|
+
TextDocumentIdentifier: () => TextDocumentIdentifier,
|
|
2177
|
+
TextDocumentItem: () => TextDocumentItem,
|
|
2178
|
+
TextEdit: () => TextEdit,
|
|
2179
|
+
URI: () => URI,
|
|
2180
|
+
VersionedTextDocumentIdentifier: () => VersionedTextDocumentIdentifier,
|
|
2181
|
+
WorkspaceChange: () => WorkspaceChange,
|
|
2182
|
+
WorkspaceEdit: () => WorkspaceEdit,
|
|
2183
|
+
WorkspaceFolder: () => WorkspaceFolder,
|
|
2184
|
+
WorkspaceSymbol: () => WorkspaceSymbol,
|
|
2185
|
+
integer: () => integer,
|
|
2186
|
+
uinteger: () => uinteger
|
|
2187
|
+
}, 1), DocumentUri, URI, integer, uinteger, Position, Range, Location, LocationLink, Color, ColorInformation, ColorPresentation, FoldingRangeKind, FoldingRange, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, CodeDescription, Diagnostic, Command, TextEdit, ChangeAnnotation, ChangeAnnotationIdentifier, AnnotatedTextEdit, TextDocumentEdit, CreateFile, RenameFile, DeleteFile, WorkspaceEdit, TextEditChangeImpl, ChangeAnnotations, WorkspaceChange, TextDocumentIdentifier, VersionedTextDocumentIdentifier, OptionalVersionedTextDocumentIdentifier, TextDocumentItem, MarkupKind, MarkupContent, CompletionItemKind, InsertTextFormat, CompletionItemTag, InsertReplaceEdit, InsertTextMode, CompletionItemLabelDetails, CompletionItem, CompletionList, MarkedString, Hover, ParameterInformation, SignatureInformation, DocumentHighlightKind, DocumentHighlight, SymbolKind, SymbolTag, SymbolInformation, WorkspaceSymbol, DocumentSymbol, CodeActionKind, CodeActionTriggerKind, CodeActionContext, CodeAction, CodeLens, FormattingOptions, DocumentLink, SelectionRange, SemanticTokenTypes, SemanticTokenModifiers, SemanticTokens, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineValueContext, InlayHintKind, InlayHintLabelPart, InlayHint, StringValue, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, SelectedCompletionInfo, InlineCompletionContext, WorkspaceFolder, EOL, TextDocument, FullTextDocument, Is$3, init_main = __esmMin((() => {
|
|
2188
|
+
(function(e) {
|
|
2189
|
+
function t(e2) {
|
|
2190
|
+
return typeof e2 == "string";
|
|
2191
|
+
}
|
|
2192
|
+
e.is = t;
|
|
2193
|
+
})(DocumentUri || (DocumentUri = {})), (function(e) {
|
|
2194
|
+
function t(e2) {
|
|
2195
|
+
return typeof e2 == "string";
|
|
2196
|
+
}
|
|
2197
|
+
e.is = t;
|
|
2198
|
+
})(URI || (URI = {})), (function(e) {
|
|
2199
|
+
e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
|
|
2200
|
+
function t(t2) {
|
|
2201
|
+
return typeof t2 == "number" && e.MIN_VALUE <= t2 && t2 <= e.MAX_VALUE;
|
|
2202
|
+
}
|
|
2203
|
+
e.is = t;
|
|
2204
|
+
})(integer || (integer = {})), (function(e) {
|
|
2205
|
+
e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
|
|
2206
|
+
function t(t2) {
|
|
2207
|
+
return typeof t2 == "number" && e.MIN_VALUE <= t2 && t2 <= e.MAX_VALUE;
|
|
2208
|
+
}
|
|
2209
|
+
e.is = t;
|
|
2210
|
+
})(uinteger || (uinteger = {})), (function(e) {
|
|
2211
|
+
function t(e2, t2) {
|
|
2212
|
+
return e2 === Number.MAX_VALUE && (e2 = uinteger.MAX_VALUE), t2 === Number.MAX_VALUE && (t2 = uinteger.MAX_VALUE), {
|
|
2213
|
+
line: e2,
|
|
2214
|
+
character: t2
|
|
2215
|
+
};
|
|
2216
|
+
}
|
|
2217
|
+
e.create = t;
|
|
2218
|
+
function n(e2) {
|
|
2219
|
+
let t2 = e2;
|
|
2220
|
+
return Is$3.objectLiteral(t2) && Is$3.uinteger(t2.line) && Is$3.uinteger(t2.character);
|
|
2221
|
+
}
|
|
2222
|
+
e.is = n;
|
|
2223
|
+
})(Position || (Position = {})), (function(e) {
|
|
2224
|
+
function t(e2, t2, n2, r) {
|
|
2225
|
+
if (Is$3.uinteger(e2) && Is$3.uinteger(t2) && Is$3.uinteger(n2) && Is$3.uinteger(r)) return {
|
|
2226
|
+
start: Position.create(e2, t2),
|
|
2227
|
+
end: Position.create(n2, r)
|
|
2228
|
+
};
|
|
2229
|
+
if (Position.is(e2) && Position.is(t2)) return {
|
|
2230
|
+
start: e2,
|
|
2231
|
+
end: t2
|
|
2232
|
+
};
|
|
2233
|
+
throw Error(`Range#create called with invalid arguments[${e2}, ${t2}, ${n2}, ${r}]`);
|
|
2234
|
+
}
|
|
2235
|
+
e.create = t;
|
|
2236
|
+
function n(e2) {
|
|
2237
|
+
let t2 = e2;
|
|
2238
|
+
return Is$3.objectLiteral(t2) && Position.is(t2.start) && Position.is(t2.end);
|
|
2239
|
+
}
|
|
2240
|
+
e.is = n;
|
|
2241
|
+
})(Range || (Range = {})), (function(e) {
|
|
2242
|
+
function t(e2, t2) {
|
|
2243
|
+
return {
|
|
2244
|
+
uri: e2,
|
|
2245
|
+
range: t2
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2248
|
+
e.create = t;
|
|
2249
|
+
function n(e2) {
|
|
2250
|
+
let t2 = e2;
|
|
2251
|
+
return Is$3.objectLiteral(t2) && Range.is(t2.range) && (Is$3.string(t2.uri) || Is$3.undefined(t2.uri));
|
|
2252
|
+
}
|
|
2253
|
+
e.is = n;
|
|
2254
|
+
})(Location || (Location = {})), (function(e) {
|
|
2255
|
+
function t(e2, t2, n2, r) {
|
|
2256
|
+
return {
|
|
2257
|
+
targetUri: e2,
|
|
2258
|
+
targetRange: t2,
|
|
2259
|
+
targetSelectionRange: n2,
|
|
2260
|
+
originSelectionRange: r
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
e.create = t;
|
|
2264
|
+
function n(e2) {
|
|
2265
|
+
let t2 = e2;
|
|
2266
|
+
return Is$3.objectLiteral(t2) && Range.is(t2.targetRange) && Is$3.string(t2.targetUri) && Range.is(t2.targetSelectionRange) && (Range.is(t2.originSelectionRange) || Is$3.undefined(t2.originSelectionRange));
|
|
2267
|
+
}
|
|
2268
|
+
e.is = n;
|
|
2269
|
+
})(LocationLink || (LocationLink = {})), (function(e) {
|
|
2270
|
+
function t(e2, t2, n2, r) {
|
|
2271
|
+
return {
|
|
2272
|
+
red: e2,
|
|
2273
|
+
green: t2,
|
|
2274
|
+
blue: n2,
|
|
2275
|
+
alpha: r
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
e.create = t;
|
|
2279
|
+
function n(e2) {
|
|
2280
|
+
let t2 = e2;
|
|
2281
|
+
return Is$3.objectLiteral(t2) && Is$3.numberRange(t2.red, 0, 1) && Is$3.numberRange(t2.green, 0, 1) && Is$3.numberRange(t2.blue, 0, 1) && Is$3.numberRange(t2.alpha, 0, 1);
|
|
2282
|
+
}
|
|
2283
|
+
e.is = n;
|
|
2284
|
+
})(Color || (Color = {})), (function(e) {
|
|
2285
|
+
function t(e2, t2) {
|
|
2286
|
+
return {
|
|
2287
|
+
range: e2,
|
|
2288
|
+
color: t2
|
|
2289
|
+
};
|
|
2290
|
+
}
|
|
2291
|
+
e.create = t;
|
|
2292
|
+
function n(e2) {
|
|
2293
|
+
let t2 = e2;
|
|
2294
|
+
return Is$3.objectLiteral(t2) && Range.is(t2.range) && Color.is(t2.color);
|
|
2295
|
+
}
|
|
2296
|
+
e.is = n;
|
|
2297
|
+
})(ColorInformation || (ColorInformation = {})), (function(e) {
|
|
2298
|
+
function t(e2, t2, n2) {
|
|
2299
|
+
return {
|
|
2300
|
+
label: e2,
|
|
2301
|
+
textEdit: t2,
|
|
2302
|
+
additionalTextEdits: n2
|
|
2303
|
+
};
|
|
2304
|
+
}
|
|
2305
|
+
e.create = t;
|
|
2306
|
+
function n(e2) {
|
|
2307
|
+
let t2 = e2;
|
|
2308
|
+
return Is$3.objectLiteral(t2) && Is$3.string(t2.label) && (Is$3.undefined(t2.textEdit) || TextEdit.is(t2)) && (Is$3.undefined(t2.additionalTextEdits) || Is$3.typedArray(t2.additionalTextEdits, TextEdit.is));
|
|
2309
|
+
}
|
|
2310
|
+
e.is = n;
|
|
2311
|
+
})(ColorPresentation || (ColorPresentation = {})), (function(e) {
|
|
2312
|
+
e.Comment = "comment", e.Imports = "imports", e.Region = "region";
|
|
2313
|
+
})(FoldingRangeKind || (FoldingRangeKind = {})), (function(e) {
|
|
2314
|
+
function t(e2, t2, n2, r, i, a) {
|
|
2315
|
+
let o = {
|
|
2316
|
+
startLine: e2,
|
|
2317
|
+
endLine: t2
|
|
2318
|
+
};
|
|
2319
|
+
return Is$3.defined(n2) && (o.startCharacter = n2), Is$3.defined(r) && (o.endCharacter = r), Is$3.defined(i) && (o.kind = i), Is$3.defined(a) && (o.collapsedText = a), o;
|
|
2320
|
+
}
|
|
2321
|
+
e.create = t;
|
|
2322
|
+
function n(e2) {
|
|
2323
|
+
let t2 = e2;
|
|
2324
|
+
return Is$3.objectLiteral(t2) && Is$3.uinteger(t2.startLine) && Is$3.uinteger(t2.startLine) && (Is$3.undefined(t2.startCharacter) || Is$3.uinteger(t2.startCharacter)) && (Is$3.undefined(t2.endCharacter) || Is$3.uinteger(t2.endCharacter)) && (Is$3.undefined(t2.kind) || Is$3.string(t2.kind));
|
|
2325
|
+
}
|
|
2326
|
+
e.is = n;
|
|
2327
|
+
})(FoldingRange || (FoldingRange = {})), (function(e) {
|
|
2328
|
+
function t(e2, t2) {
|
|
2329
|
+
return {
|
|
2330
|
+
location: e2,
|
|
2331
|
+
message: t2
|
|
2332
|
+
};
|
|
2333
|
+
}
|
|
2334
|
+
e.create = t;
|
|
2335
|
+
function n(e2) {
|
|
2336
|
+
let t2 = e2;
|
|
2337
|
+
return Is$3.defined(t2) && Location.is(t2.location) && Is$3.string(t2.message);
|
|
2338
|
+
}
|
|
2339
|
+
e.is = n;
|
|
2340
|
+
})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {})), (function(e) {
|
|
2341
|
+
e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
|
|
2342
|
+
})(DiagnosticSeverity || (DiagnosticSeverity = {})), (function(e) {
|
|
2343
|
+
e.Unnecessary = 1, e.Deprecated = 2;
|
|
2344
|
+
})(DiagnosticTag || (DiagnosticTag = {})), (function(e) {
|
|
2345
|
+
function t(e2) {
|
|
2346
|
+
let t2 = e2;
|
|
2347
|
+
return Is$3.objectLiteral(t2) && Is$3.string(t2.href);
|
|
2348
|
+
}
|
|
2349
|
+
e.is = t;
|
|
2350
|
+
})(CodeDescription || (CodeDescription = {})), (function(e) {
|
|
2351
|
+
function t(e2, t2, n2, r, i, a) {
|
|
2352
|
+
let o = {
|
|
2353
|
+
range: e2,
|
|
2354
|
+
message: t2
|
|
2355
|
+
};
|
|
2356
|
+
return Is$3.defined(n2) && (o.severity = n2), Is$3.defined(r) && (o.code = r), Is$3.defined(i) && (o.source = i), Is$3.defined(a) && (o.relatedInformation = a), o;
|
|
2357
|
+
}
|
|
2358
|
+
e.create = t;
|
|
2359
|
+
function n(e2) {
|
|
2360
|
+
var _a;
|
|
2361
|
+
let t2 = e2;
|
|
2362
|
+
return Is$3.defined(t2) && Range.is(t2.range) && Is$3.string(t2.message) && (Is$3.number(t2.severity) || Is$3.undefined(t2.severity)) && (Is$3.integer(t2.code) || Is$3.string(t2.code) || Is$3.undefined(t2.code)) && (Is$3.undefined(t2.codeDescription) || Is$3.string((_a = t2.codeDescription) == null ? void 0 : _a.href)) && (Is$3.string(t2.source) || Is$3.undefined(t2.source)) && (Is$3.undefined(t2.relatedInformation) || Is$3.typedArray(t2.relatedInformation, DiagnosticRelatedInformation.is));
|
|
2363
|
+
}
|
|
2364
|
+
e.is = n;
|
|
2365
|
+
})(Diagnostic || (Diagnostic = {})), (function(e) {
|
|
2366
|
+
function t(e2, t2, ...n2) {
|
|
2367
|
+
let r = {
|
|
2368
|
+
title: e2,
|
|
2369
|
+
command: t2
|
|
2370
|
+
};
|
|
2371
|
+
return Is$3.defined(n2) && n2.length > 0 && (r.arguments = n2), r;
|
|
2372
|
+
}
|
|
2373
|
+
e.create = t;
|
|
2374
|
+
function n(e2) {
|
|
2375
|
+
let t2 = e2;
|
|
2376
|
+
return Is$3.defined(t2) && Is$3.string(t2.title) && Is$3.string(t2.command);
|
|
2377
|
+
}
|
|
2378
|
+
e.is = n;
|
|
2379
|
+
})(Command || (Command = {})), (function(e) {
|
|
2380
|
+
function t(e2, t2) {
|
|
2381
|
+
return {
|
|
2382
|
+
range: e2,
|
|
2383
|
+
newText: t2
|
|
2384
|
+
};
|
|
2385
|
+
}
|
|
2386
|
+
e.replace = t;
|
|
2387
|
+
function n(e2, t2) {
|
|
2388
|
+
return {
|
|
2389
|
+
range: {
|
|
2390
|
+
start: e2,
|
|
2391
|
+
end: e2
|
|
2392
|
+
},
|
|
2393
|
+
newText: t2
|
|
2394
|
+
};
|
|
2395
|
+
}
|
|
2396
|
+
e.insert = n;
|
|
2397
|
+
function r(e2) {
|
|
2398
|
+
return {
|
|
2399
|
+
range: e2,
|
|
2400
|
+
newText: ""
|
|
2401
|
+
};
|
|
2402
|
+
}
|
|
2403
|
+
e.del = r;
|
|
2404
|
+
function i(e2) {
|
|
2405
|
+
let t2 = e2;
|
|
2406
|
+
return Is$3.objectLiteral(t2) && Is$3.string(t2.newText) && Range.is(t2.range);
|
|
2407
|
+
}
|
|
2408
|
+
e.is = i;
|
|
2409
|
+
})(TextEdit || (TextEdit = {})), (function(e) {
|
|
2410
|
+
function t(e2, t2, n2) {
|
|
2411
|
+
let r = { label: e2 };
|
|
2412
|
+
return t2 !== void 0 && (r.needsConfirmation = t2), n2 !== void 0 && (r.description = n2), r;
|
|
2413
|
+
}
|
|
2414
|
+
e.create = t;
|
|
2415
|
+
function n(e2) {
|
|
2416
|
+
let t2 = e2;
|
|
2417
|
+
return Is$3.objectLiteral(t2) && Is$3.string(t2.label) && (Is$3.boolean(t2.needsConfirmation) || t2.needsConfirmation === void 0) && (Is$3.string(t2.description) || t2.description === void 0);
|
|
2418
|
+
}
|
|
2419
|
+
e.is = n;
|
|
2420
|
+
})(ChangeAnnotation || (ChangeAnnotation = {})), (function(e) {
|
|
2421
|
+
function t(e2) {
|
|
2422
|
+
let t2 = e2;
|
|
2423
|
+
return Is$3.string(t2);
|
|
2424
|
+
}
|
|
2425
|
+
e.is = t;
|
|
2426
|
+
})(ChangeAnnotationIdentifier || (ChangeAnnotationIdentifier = {})), (function(e) {
|
|
2427
|
+
function t(e2, t2, n2) {
|
|
2428
|
+
return {
|
|
2429
|
+
range: e2,
|
|
2430
|
+
newText: t2,
|
|
2431
|
+
annotationId: n2
|
|
2432
|
+
};
|
|
2433
|
+
}
|
|
2434
|
+
e.replace = t;
|
|
2435
|
+
function n(e2, t2, n2) {
|
|
2436
|
+
return {
|
|
2437
|
+
range: {
|
|
2438
|
+
start: e2,
|
|
2439
|
+
end: e2
|
|
2440
|
+
},
|
|
2441
|
+
newText: t2,
|
|
2442
|
+
annotationId: n2
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
e.insert = n;
|
|
2446
|
+
function r(e2, t2) {
|
|
2447
|
+
return {
|
|
2448
|
+
range: e2,
|
|
2449
|
+
newText: "",
|
|
2450
|
+
annotationId: t2
|
|
2451
|
+
};
|
|
2452
|
+
}
|
|
2453
|
+
e.del = r;
|
|
2454
|
+
function i(e2) {
|
|
2455
|
+
let t2 = e2;
|
|
2456
|
+
return TextEdit.is(t2) && (ChangeAnnotation.is(t2.annotationId) || ChangeAnnotationIdentifier.is(t2.annotationId));
|
|
2457
|
+
}
|
|
2458
|
+
e.is = i;
|
|
2459
|
+
})(AnnotatedTextEdit || (AnnotatedTextEdit = {})), (function(e) {
|
|
2460
|
+
function t(e2, t2) {
|
|
2461
|
+
return {
|
|
2462
|
+
textDocument: e2,
|
|
2463
|
+
edits: t2
|
|
2464
|
+
};
|
|
2465
|
+
}
|
|
2466
|
+
e.create = t;
|
|
2467
|
+
function n(e2) {
|
|
2468
|
+
let t2 = e2;
|
|
2469
|
+
return Is$3.defined(t2) && OptionalVersionedTextDocumentIdentifier.is(t2.textDocument) && Array.isArray(t2.edits);
|
|
2470
|
+
}
|
|
2471
|
+
e.is = n;
|
|
2472
|
+
})(TextDocumentEdit || (TextDocumentEdit = {})), (function(e) {
|
|
2473
|
+
function t(e2, t2, n2) {
|
|
2474
|
+
let r = {
|
|
2475
|
+
kind: "create",
|
|
2476
|
+
uri: e2
|
|
2477
|
+
};
|
|
2478
|
+
return t2 !== void 0 && (t2.overwrite !== void 0 || t2.ignoreIfExists !== void 0) && (r.options = t2), n2 !== void 0 && (r.annotationId = n2), r;
|
|
2479
|
+
}
|
|
2480
|
+
e.create = t;
|
|
2481
|
+
function n(e2) {
|
|
2482
|
+
let t2 = e2;
|
|
2483
|
+
return t2 && t2.kind === "create" && Is$3.string(t2.uri) && (t2.options === void 0 || (t2.options.overwrite === void 0 || Is$3.boolean(t2.options.overwrite)) && (t2.options.ignoreIfExists === void 0 || Is$3.boolean(t2.options.ignoreIfExists))) && (t2.annotationId === void 0 || ChangeAnnotationIdentifier.is(t2.annotationId));
|
|
2484
|
+
}
|
|
2485
|
+
e.is = n;
|
|
2486
|
+
})(CreateFile || (CreateFile = {})), (function(e) {
|
|
2487
|
+
function t(e2, t2, n2, r) {
|
|
2488
|
+
let i = {
|
|
2489
|
+
kind: "rename",
|
|
2490
|
+
oldUri: e2,
|
|
2491
|
+
newUri: t2
|
|
2492
|
+
};
|
|
2493
|
+
return n2 !== void 0 && (n2.overwrite !== void 0 || n2.ignoreIfExists !== void 0) && (i.options = n2), r !== void 0 && (i.annotationId = r), i;
|
|
2494
|
+
}
|
|
2495
|
+
e.create = t;
|
|
2496
|
+
function n(e2) {
|
|
2497
|
+
let t2 = e2;
|
|
2498
|
+
return t2 && t2.kind === "rename" && Is$3.string(t2.oldUri) && Is$3.string(t2.newUri) && (t2.options === void 0 || (t2.options.overwrite === void 0 || Is$3.boolean(t2.options.overwrite)) && (t2.options.ignoreIfExists === void 0 || Is$3.boolean(t2.options.ignoreIfExists))) && (t2.annotationId === void 0 || ChangeAnnotationIdentifier.is(t2.annotationId));
|
|
2499
|
+
}
|
|
2500
|
+
e.is = n;
|
|
2501
|
+
})(RenameFile || (RenameFile = {})), (function(e) {
|
|
2502
|
+
function t(e2, t2, n2) {
|
|
2503
|
+
let r = {
|
|
2504
|
+
kind: "delete",
|
|
2505
|
+
uri: e2
|
|
2506
|
+
};
|
|
2507
|
+
return t2 !== void 0 && (t2.recursive !== void 0 || t2.ignoreIfNotExists !== void 0) && (r.options = t2), n2 !== void 0 && (r.annotationId = n2), r;
|
|
2508
|
+
}
|
|
2509
|
+
e.create = t;
|
|
2510
|
+
function n(e2) {
|
|
2511
|
+
let t2 = e2;
|
|
2512
|
+
return t2 && t2.kind === "delete" && Is$3.string(t2.uri) && (t2.options === void 0 || (t2.options.recursive === void 0 || Is$3.boolean(t2.options.recursive)) && (t2.options.ignoreIfNotExists === void 0 || Is$3.boolean(t2.options.ignoreIfNotExists))) && (t2.annotationId === void 0 || ChangeAnnotationIdentifier.is(t2.annotationId));
|
|
2513
|
+
}
|
|
2514
|
+
e.is = n;
|
|
2515
|
+
})(DeleteFile || (DeleteFile = {})), (function(e) {
|
|
2516
|
+
function t(e2) {
|
|
2517
|
+
let t2 = e2;
|
|
2518
|
+
return t2 && (t2.changes !== void 0 || t2.documentChanges !== void 0) && (t2.documentChanges === void 0 || t2.documentChanges.every((e3) => Is$3.string(e3.kind) ? CreateFile.is(e3) || RenameFile.is(e3) || DeleteFile.is(e3) : TextDocumentEdit.is(e3)));
|
|
2519
|
+
}
|
|
2520
|
+
e.is = t;
|
|
2521
|
+
})(WorkspaceEdit || (WorkspaceEdit = {})), TextEditChangeImpl = class {
|
|
2522
|
+
constructor(e, t) {
|
|
2523
|
+
this.edits = e, this.changeAnnotations = t;
|
|
2524
|
+
}
|
|
2525
|
+
insert(e, t, n) {
|
|
2526
|
+
let r, i;
|
|
2527
|
+
if (n === void 0 ? r = TextEdit.insert(e, t) : ChangeAnnotationIdentifier.is(n) ? (i = n, r = AnnotatedTextEdit.insert(e, t, n)) : (this.assertChangeAnnotations(this.changeAnnotations), i = this.changeAnnotations.manage(n), r = AnnotatedTextEdit.insert(e, t, i)), this.edits.push(r), i !== void 0) return i;
|
|
2528
|
+
}
|
|
2529
|
+
replace(e, t, n) {
|
|
2530
|
+
let r, i;
|
|
2531
|
+
if (n === void 0 ? r = TextEdit.replace(e, t) : ChangeAnnotationIdentifier.is(n) ? (i = n, r = AnnotatedTextEdit.replace(e, t, n)) : (this.assertChangeAnnotations(this.changeAnnotations), i = this.changeAnnotations.manage(n), r = AnnotatedTextEdit.replace(e, t, i)), this.edits.push(r), i !== void 0) return i;
|
|
2532
|
+
}
|
|
2533
|
+
delete(e, t) {
|
|
2534
|
+
let n, r;
|
|
2535
|
+
if (t === void 0 ? n = TextEdit.del(e) : ChangeAnnotationIdentifier.is(t) ? (r = t, n = AnnotatedTextEdit.del(e, t)) : (this.assertChangeAnnotations(this.changeAnnotations), r = this.changeAnnotations.manage(t), n = AnnotatedTextEdit.del(e, r)), this.edits.push(n), r !== void 0) return r;
|
|
2536
|
+
}
|
|
2537
|
+
add(e) {
|
|
2538
|
+
this.edits.push(e);
|
|
2539
|
+
}
|
|
2540
|
+
all() {
|
|
2541
|
+
return this.edits;
|
|
2542
|
+
}
|
|
2543
|
+
clear() {
|
|
2544
|
+
this.edits.splice(0, this.edits.length);
|
|
2545
|
+
}
|
|
2546
|
+
assertChangeAnnotations(e) {
|
|
2547
|
+
if (e === void 0) throw Error("Text edit change is not configured to manage change annotations.");
|
|
2548
|
+
}
|
|
2549
|
+
}, ChangeAnnotations = class {
|
|
2550
|
+
constructor(e) {
|
|
2551
|
+
this._annotations = e === void 0 ? /* @__PURE__ */ Object.create(null) : e, this._counter = 0, this._size = 0;
|
|
2552
|
+
}
|
|
2553
|
+
all() {
|
|
2554
|
+
return this._annotations;
|
|
2555
|
+
}
|
|
2556
|
+
get size() {
|
|
2557
|
+
return this._size;
|
|
2558
|
+
}
|
|
2559
|
+
manage(e, t) {
|
|
2560
|
+
let n;
|
|
2561
|
+
if (ChangeAnnotationIdentifier.is(e) ? n = e : (n = this.nextId(), t = e), this._annotations[n] !== void 0) throw Error(`Id ${n} is already in use.`);
|
|
2562
|
+
if (t === void 0) throw Error(`No annotation provided for id ${n}`);
|
|
2563
|
+
return this._annotations[n] = t, this._size++, n;
|
|
2564
|
+
}
|
|
2565
|
+
nextId() {
|
|
2566
|
+
return this._counter++, this._counter.toString();
|
|
2567
|
+
}
|
|
2568
|
+
}, WorkspaceChange = class {
|
|
2569
|
+
constructor(e) {
|
|
2570
|
+
this._textEditChanges = /* @__PURE__ */ Object.create(null), e === void 0 ? this._workspaceEdit = {} : (this._workspaceEdit = e, e.documentChanges ? (this._changeAnnotations = new ChangeAnnotations(e.changeAnnotations), e.changeAnnotations = this._changeAnnotations.all(), e.documentChanges.forEach((e2) => {
|
|
2571
|
+
if (TextDocumentEdit.is(e2)) {
|
|
2572
|
+
let t = new TextEditChangeImpl(e2.edits, this._changeAnnotations);
|
|
2573
|
+
this._textEditChanges[e2.textDocument.uri] = t;
|
|
2574
|
+
}
|
|
2575
|
+
})) : e.changes && Object.keys(e.changes).forEach((t) => {
|
|
2576
|
+
let n = new TextEditChangeImpl(e.changes[t]);
|
|
2577
|
+
this._textEditChanges[t] = n;
|
|
2578
|
+
}));
|
|
2579
|
+
}
|
|
2580
|
+
get edit() {
|
|
2581
|
+
return this.initDocumentChanges(), this._changeAnnotations !== void 0 && (this._changeAnnotations.size === 0 ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit;
|
|
2582
|
+
}
|
|
2583
|
+
getTextEditChange(e) {
|
|
2584
|
+
if (OptionalVersionedTextDocumentIdentifier.is(e)) {
|
|
2585
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
|
|
2586
|
+
let t = {
|
|
2587
|
+
uri: e.uri,
|
|
2588
|
+
version: e.version
|
|
2589
|
+
}, n = this._textEditChanges[t.uri];
|
|
2590
|
+
if (!n) {
|
|
2591
|
+
let e2 = [], r = {
|
|
2592
|
+
textDocument: t,
|
|
2593
|
+
edits: e2
|
|
2594
|
+
};
|
|
2595
|
+
this._workspaceEdit.documentChanges.push(r), n = new TextEditChangeImpl(e2, this._changeAnnotations), this._textEditChanges[t.uri] = n;
|
|
2596
|
+
}
|
|
2597
|
+
return n;
|
|
2598
|
+
} else {
|
|
2599
|
+
if (this.initChanges(), this._workspaceEdit.changes === void 0) throw Error("Workspace edit is not configured for normal text edit changes.");
|
|
2600
|
+
let t = this._textEditChanges[e];
|
|
2601
|
+
if (!t) {
|
|
2602
|
+
let n = [];
|
|
2603
|
+
this._workspaceEdit.changes[e] = n, t = new TextEditChangeImpl(n), this._textEditChanges[e] = t;
|
|
2604
|
+
}
|
|
2605
|
+
return t;
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
initDocumentChanges() {
|
|
2609
|
+
this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._changeAnnotations = new ChangeAnnotations(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all());
|
|
2610
|
+
}
|
|
2611
|
+
initChanges() {
|
|
2612
|
+
this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = /* @__PURE__ */ Object.create(null));
|
|
2613
|
+
}
|
|
2614
|
+
createFile(e, t, n) {
|
|
2615
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
|
|
2616
|
+
let r;
|
|
2617
|
+
ChangeAnnotation.is(t) || ChangeAnnotationIdentifier.is(t) ? r = t : n = t;
|
|
2618
|
+
let i, a;
|
|
2619
|
+
if (r === void 0 ? i = CreateFile.create(e, n) : (a = ChangeAnnotationIdentifier.is(r) ? r : this._changeAnnotations.manage(r), i = CreateFile.create(e, n, a)), this._workspaceEdit.documentChanges.push(i), a !== void 0) return a;
|
|
2620
|
+
}
|
|
2621
|
+
renameFile(e, t, n, r) {
|
|
2622
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
|
|
2623
|
+
let i;
|
|
2624
|
+
ChangeAnnotation.is(n) || ChangeAnnotationIdentifier.is(n) ? i = n : r = n;
|
|
2625
|
+
let a, o;
|
|
2626
|
+
if (i === void 0 ? a = RenameFile.create(e, t, r) : (o = ChangeAnnotationIdentifier.is(i) ? i : this._changeAnnotations.manage(i), a = RenameFile.create(e, t, r, o)), this._workspaceEdit.documentChanges.push(a), o !== void 0) return o;
|
|
2627
|
+
}
|
|
2628
|
+
deleteFile(e, t, n) {
|
|
2629
|
+
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
|
|
2630
|
+
let r;
|
|
2631
|
+
ChangeAnnotation.is(t) || ChangeAnnotationIdentifier.is(t) ? r = t : n = t;
|
|
2632
|
+
let i, a;
|
|
2633
|
+
if (r === void 0 ? i = DeleteFile.create(e, n) : (a = ChangeAnnotationIdentifier.is(r) ? r : this._changeAnnotations.manage(r), i = DeleteFile.create(e, n, a)), this._workspaceEdit.documentChanges.push(i), a !== void 0) return a;
|
|
2634
|
+
}
|
|
2635
|
+
}, (function(e) {
|
|
2636
|
+
function t(e2) {
|
|
2637
|
+
return { uri: e2 };
|
|
2638
|
+
}
|
|
2639
|
+
e.create = t;
|
|
2640
|
+
function n(e2) {
|
|
2641
|
+
let t2 = e2;
|
|
2642
|
+
return Is$3.defined(t2) && Is$3.string(t2.uri);
|
|
2643
|
+
}
|
|
2644
|
+
e.is = n;
|
|
2645
|
+
})(TextDocumentIdentifier || (TextDocumentIdentifier = {})), (function(e) {
|
|
2646
|
+
function t(e2, t2) {
|
|
2647
|
+
return {
|
|
2648
|
+
uri: e2,
|
|
2649
|
+
version: t2
|
|
2650
|
+
};
|
|
2651
|
+
}
|
|
2652
|
+
e.create = t;
|
|
2653
|
+
function n(e2) {
|
|
2654
|
+
let t2 = e2;
|
|
2655
|
+
return Is$3.defined(t2) && Is$3.string(t2.uri) && Is$3.integer(t2.version);
|
|
2656
|
+
}
|
|
2657
|
+
e.is = n;
|
|
2658
|
+
})(VersionedTextDocumentIdentifier || (VersionedTextDocumentIdentifier = {})), (function(e) {
|
|
2659
|
+
function t(e2, t2) {
|
|
2660
|
+
return {
|
|
2661
|
+
uri: e2,
|
|
2662
|
+
version: t2
|
|
2663
|
+
};
|
|
2664
|
+
}
|
|
2665
|
+
e.create = t;
|
|
2666
|
+
function n(e2) {
|
|
2667
|
+
let t2 = e2;
|
|
2668
|
+
return Is$3.defined(t2) && Is$3.string(t2.uri) && (t2.version === null || Is$3.integer(t2.version));
|
|
2669
|
+
}
|
|
2670
|
+
e.is = n;
|
|
2671
|
+
})(OptionalVersionedTextDocumentIdentifier || (OptionalVersionedTextDocumentIdentifier = {})), (function(e) {
|
|
2672
|
+
function t(e2, t2, n2, r) {
|
|
2673
|
+
return {
|
|
2674
|
+
uri: e2,
|
|
2675
|
+
languageId: t2,
|
|
2676
|
+
version: n2,
|
|
2677
|
+
text: r
|
|
2678
|
+
};
|
|
2679
|
+
}
|
|
2680
|
+
e.create = t;
|
|
2681
|
+
function n(e2) {
|
|
2682
|
+
let t2 = e2;
|
|
2683
|
+
return Is$3.defined(t2) && Is$3.string(t2.uri) && Is$3.string(t2.languageId) && Is$3.integer(t2.version) && Is$3.string(t2.text);
|
|
2684
|
+
}
|
|
2685
|
+
e.is = n;
|
|
2686
|
+
})(TextDocumentItem || (TextDocumentItem = {})), (function(e) {
|
|
2687
|
+
e.PlainText = "plaintext", e.Markdown = "markdown";
|
|
2688
|
+
function t(t2) {
|
|
2689
|
+
let n = t2;
|
|
2690
|
+
return n === e.PlainText || n === e.Markdown;
|
|
2691
|
+
}
|
|
2692
|
+
e.is = t;
|
|
2693
|
+
})(MarkupKind || (MarkupKind = {})), (function(e) {
|
|
2694
|
+
function t(e2) {
|
|
2695
|
+
let t2 = e2;
|
|
2696
|
+
return Is$3.objectLiteral(e2) && MarkupKind.is(t2.kind) && Is$3.string(t2.value);
|
|
2697
|
+
}
|
|
2698
|
+
e.is = t;
|
|
2699
|
+
})(MarkupContent || (MarkupContent = {})), (function(e) {
|
|
2700
|
+
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
|
|
2701
|
+
})(CompletionItemKind || (CompletionItemKind = {})), (function(e) {
|
|
2702
|
+
e.PlainText = 1, e.Snippet = 2;
|
|
2703
|
+
})(InsertTextFormat || (InsertTextFormat = {})), (function(e) {
|
|
2704
|
+
e.Deprecated = 1;
|
|
2705
|
+
})(CompletionItemTag || (CompletionItemTag = {})), (function(e) {
|
|
2706
|
+
function t(e2, t2, n2) {
|
|
2707
|
+
return {
|
|
2708
|
+
newText: e2,
|
|
2709
|
+
insert: t2,
|
|
2710
|
+
replace: n2
|
|
2711
|
+
};
|
|
2712
|
+
}
|
|
2713
|
+
e.create = t;
|
|
2714
|
+
function n(e2) {
|
|
2715
|
+
let t2 = e2;
|
|
2716
|
+
return t2 && Is$3.string(t2.newText) && Range.is(t2.insert) && Range.is(t2.replace);
|
|
2717
|
+
}
|
|
2718
|
+
e.is = n;
|
|
2719
|
+
})(InsertReplaceEdit || (InsertReplaceEdit = {})), (function(e) {
|
|
2720
|
+
e.asIs = 1, e.adjustIndentation = 2;
|
|
2721
|
+
})(InsertTextMode || (InsertTextMode = {})), (function(e) {
|
|
2722
|
+
function t(e2) {
|
|
2723
|
+
let t2 = e2;
|
|
2724
|
+
return t2 && (Is$3.string(t2.detail) || t2.detail === void 0) && (Is$3.string(t2.description) || t2.description === void 0);
|
|
2725
|
+
}
|
|
2726
|
+
e.is = t;
|
|
2727
|
+
})(CompletionItemLabelDetails || (CompletionItemLabelDetails = {})), (function(e) {
|
|
2728
|
+
function t(e2) {
|
|
2729
|
+
return { label: e2 };
|
|
2730
|
+
}
|
|
2731
|
+
e.create = t;
|
|
2732
|
+
})(CompletionItem || (CompletionItem = {})), (function(e) {
|
|
2733
|
+
function t(e2, t2) {
|
|
2734
|
+
return {
|
|
2735
|
+
items: e2 || [],
|
|
2736
|
+
isIncomplete: !!t2
|
|
2737
|
+
};
|
|
2738
|
+
}
|
|
2739
|
+
e.create = t;
|
|
2740
|
+
})(CompletionList || (CompletionList = {})), (function(e) {
|
|
2741
|
+
function t(e2) {
|
|
2742
|
+
return e2.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
|
2743
|
+
}
|
|
2744
|
+
e.fromPlainText = t;
|
|
2745
|
+
function n(e2) {
|
|
2746
|
+
let t2 = e2;
|
|
2747
|
+
return Is$3.string(t2) || Is$3.objectLiteral(t2) && Is$3.string(t2.language) && Is$3.string(t2.value);
|
|
2748
|
+
}
|
|
2749
|
+
e.is = n;
|
|
2750
|
+
})(MarkedString || (MarkedString = {})), (function(e) {
|
|
2751
|
+
function t(e2) {
|
|
2752
|
+
let t2 = e2;
|
|
2753
|
+
return !!t2 && Is$3.objectLiteral(t2) && (MarkupContent.is(t2.contents) || MarkedString.is(t2.contents) || Is$3.typedArray(t2.contents, MarkedString.is)) && (e2.range === void 0 || Range.is(e2.range));
|
|
2754
|
+
}
|
|
2755
|
+
e.is = t;
|
|
2756
|
+
})(Hover || (Hover = {})), (function(e) {
|
|
2757
|
+
function t(e2, t2) {
|
|
2758
|
+
return t2 ? {
|
|
2759
|
+
label: e2,
|
|
2760
|
+
documentation: t2
|
|
2761
|
+
} : { label: e2 };
|
|
2762
|
+
}
|
|
2763
|
+
e.create = t;
|
|
2764
|
+
})(ParameterInformation || (ParameterInformation = {})), (function(e) {
|
|
2765
|
+
function t(e2, t2, ...n) {
|
|
2766
|
+
let r = { label: e2 };
|
|
2767
|
+
return Is$3.defined(t2) && (r.documentation = t2), Is$3.defined(n) ? r.parameters = n : r.parameters = [], r;
|
|
2768
|
+
}
|
|
2769
|
+
e.create = t;
|
|
2770
|
+
})(SignatureInformation || (SignatureInformation = {})), (function(e) {
|
|
2771
|
+
e.Text = 1, e.Read = 2, e.Write = 3;
|
|
2772
|
+
})(DocumentHighlightKind || (DocumentHighlightKind = {})), (function(e) {
|
|
2773
|
+
function t(e2, t2) {
|
|
2774
|
+
let n = { range: e2 };
|
|
2775
|
+
return Is$3.number(t2) && (n.kind = t2), n;
|
|
2776
|
+
}
|
|
2777
|
+
e.create = t;
|
|
2778
|
+
})(DocumentHighlight || (DocumentHighlight = {})), (function(e) {
|
|
2779
|
+
e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26;
|
|
2780
|
+
})(SymbolKind || (SymbolKind = {})), (function(e) {
|
|
2781
|
+
e.Deprecated = 1;
|
|
2782
|
+
})(SymbolTag || (SymbolTag = {})), (function(e) {
|
|
2783
|
+
function t(e2, t2, n, r, i) {
|
|
2784
|
+
let a = {
|
|
2785
|
+
name: e2,
|
|
2786
|
+
kind: t2,
|
|
2787
|
+
location: {
|
|
2788
|
+
uri: r,
|
|
2789
|
+
range: n
|
|
2790
|
+
}
|
|
2791
|
+
};
|
|
2792
|
+
return i && (a.containerName = i), a;
|
|
2793
|
+
}
|
|
2794
|
+
e.create = t;
|
|
2795
|
+
})(SymbolInformation || (SymbolInformation = {})), (function(e) {
|
|
2796
|
+
function t(e2, t2, n, r) {
|
|
2797
|
+
return r === void 0 ? {
|
|
2798
|
+
name: e2,
|
|
2799
|
+
kind: t2,
|
|
2800
|
+
location: { uri: n }
|
|
2801
|
+
} : {
|
|
2802
|
+
name: e2,
|
|
2803
|
+
kind: t2,
|
|
2804
|
+
location: {
|
|
2805
|
+
uri: n,
|
|
2806
|
+
range: r
|
|
2807
|
+
}
|
|
2808
|
+
};
|
|
2809
|
+
}
|
|
2810
|
+
e.create = t;
|
|
2811
|
+
})(WorkspaceSymbol || (WorkspaceSymbol = {})), (function(e) {
|
|
2812
|
+
function t(e2, t2, n2, r, i, a) {
|
|
2813
|
+
let o = {
|
|
2814
|
+
name: e2,
|
|
2815
|
+
detail: t2,
|
|
2816
|
+
kind: n2,
|
|
2817
|
+
range: r,
|
|
2818
|
+
selectionRange: i
|
|
2819
|
+
};
|
|
2820
|
+
return a !== void 0 && (o.children = a), o;
|
|
2821
|
+
}
|
|
2822
|
+
e.create = t;
|
|
2823
|
+
function n(e2) {
|
|
2824
|
+
let t2 = e2;
|
|
2825
|
+
return t2 && Is$3.string(t2.name) && Is$3.number(t2.kind) && Range.is(t2.range) && Range.is(t2.selectionRange) && (t2.detail === void 0 || Is$3.string(t2.detail)) && (t2.deprecated === void 0 || Is$3.boolean(t2.deprecated)) && (t2.children === void 0 || Array.isArray(t2.children)) && (t2.tags === void 0 || Array.isArray(t2.tags));
|
|
2826
|
+
}
|
|
2827
|
+
e.is = n;
|
|
2828
|
+
})(DocumentSymbol || (DocumentSymbol = {})), (function(e) {
|
|
2829
|
+
e.Empty = "", e.QuickFix = "quickfix", e.Refactor = "refactor", e.RefactorExtract = "refactor.extract", e.RefactorInline = "refactor.inline", e.RefactorRewrite = "refactor.rewrite", e.Source = "source", e.SourceOrganizeImports = "source.organizeImports", e.SourceFixAll = "source.fixAll";
|
|
2830
|
+
})(CodeActionKind || (CodeActionKind = {})), (function(e) {
|
|
2831
|
+
e.Invoked = 1, e.Automatic = 2;
|
|
2832
|
+
})(CodeActionTriggerKind || (CodeActionTriggerKind = {})), (function(e) {
|
|
2833
|
+
function t(e2, t2, n2) {
|
|
2834
|
+
let r = { diagnostics: e2 };
|
|
2835
|
+
return t2 != null && (r.only = t2), n2 != null && (r.triggerKind = n2), r;
|
|
2836
|
+
}
|
|
2837
|
+
e.create = t;
|
|
2838
|
+
function n(e2) {
|
|
2839
|
+
let t2 = e2;
|
|
2840
|
+
return Is$3.defined(t2) && Is$3.typedArray(t2.diagnostics, Diagnostic.is) && (t2.only === void 0 || Is$3.typedArray(t2.only, Is$3.string)) && (t2.triggerKind === void 0 || t2.triggerKind === CodeActionTriggerKind.Invoked || t2.triggerKind === CodeActionTriggerKind.Automatic);
|
|
2841
|
+
}
|
|
2842
|
+
e.is = n;
|
|
2843
|
+
})(CodeActionContext || (CodeActionContext = {})), (function(e) {
|
|
2844
|
+
function t(e2, t2, n2) {
|
|
2845
|
+
let r = { title: e2 }, i = true;
|
|
2846
|
+
return typeof t2 == "string" ? (i = false, r.kind = t2) : Command.is(t2) ? r.command = t2 : r.edit = t2, i && n2 !== void 0 && (r.kind = n2), r;
|
|
2847
|
+
}
|
|
2848
|
+
e.create = t;
|
|
2849
|
+
function n(e2) {
|
|
2850
|
+
let t2 = e2;
|
|
2851
|
+
return t2 && Is$3.string(t2.title) && (t2.diagnostics === void 0 || Is$3.typedArray(t2.diagnostics, Diagnostic.is)) && (t2.kind === void 0 || Is$3.string(t2.kind)) && (t2.edit !== void 0 || t2.command !== void 0) && (t2.command === void 0 || Command.is(t2.command)) && (t2.isPreferred === void 0 || Is$3.boolean(t2.isPreferred)) && (t2.edit === void 0 || WorkspaceEdit.is(t2.edit));
|
|
2852
|
+
}
|
|
2853
|
+
e.is = n;
|
|
2854
|
+
})(CodeAction || (CodeAction = {})), (function(e) {
|
|
2855
|
+
function t(e2, t2) {
|
|
2856
|
+
let n2 = { range: e2 };
|
|
2857
|
+
return Is$3.defined(t2) && (n2.data = t2), n2;
|
|
2858
|
+
}
|
|
2859
|
+
e.create = t;
|
|
2860
|
+
function n(e2) {
|
|
2861
|
+
let t2 = e2;
|
|
2862
|
+
return Is$3.defined(t2) && Range.is(t2.range) && (Is$3.undefined(t2.command) || Command.is(t2.command));
|
|
2863
|
+
}
|
|
2864
|
+
e.is = n;
|
|
2865
|
+
})(CodeLens || (CodeLens = {})), (function(e) {
|
|
2866
|
+
function t(e2, t2) {
|
|
2867
|
+
return {
|
|
2868
|
+
tabSize: e2,
|
|
2869
|
+
insertSpaces: t2
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
e.create = t;
|
|
2873
|
+
function n(e2) {
|
|
2874
|
+
let t2 = e2;
|
|
2875
|
+
return Is$3.defined(t2) && Is$3.uinteger(t2.tabSize) && Is$3.boolean(t2.insertSpaces);
|
|
2876
|
+
}
|
|
2877
|
+
e.is = n;
|
|
2878
|
+
})(FormattingOptions || (FormattingOptions = {})), (function(e) {
|
|
2879
|
+
function t(e2, t2, n2) {
|
|
2880
|
+
return {
|
|
2881
|
+
range: e2,
|
|
2882
|
+
target: t2,
|
|
2883
|
+
data: n2
|
|
2884
|
+
};
|
|
2885
|
+
}
|
|
2886
|
+
e.create = t;
|
|
2887
|
+
function n(e2) {
|
|
2888
|
+
let t2 = e2;
|
|
2889
|
+
return Is$3.defined(t2) && Range.is(t2.range) && (Is$3.undefined(t2.target) || Is$3.string(t2.target));
|
|
2890
|
+
}
|
|
2891
|
+
e.is = n;
|
|
2892
|
+
})(DocumentLink || (DocumentLink = {})), (function(e) {
|
|
2893
|
+
function t(e2, t2) {
|
|
2894
|
+
return {
|
|
2895
|
+
range: e2,
|
|
2896
|
+
parent: t2
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
e.create = t;
|
|
2900
|
+
function n(t2) {
|
|
2901
|
+
let n2 = t2;
|
|
2902
|
+
return Is$3.objectLiteral(n2) && Range.is(n2.range) && (n2.parent === void 0 || e.is(n2.parent));
|
|
2903
|
+
}
|
|
2904
|
+
e.is = n;
|
|
2905
|
+
})(SelectionRange || (SelectionRange = {})), (function(e) {
|
|
2906
|
+
e.namespace = "namespace", e.type = "type", e.class = "class", e.enum = "enum", e.interface = "interface", e.struct = "struct", e.typeParameter = "typeParameter", e.parameter = "parameter", e.variable = "variable", e.property = "property", e.enumMember = "enumMember", e.event = "event", e.function = "function", e.method = "method", e.macro = "macro", e.keyword = "keyword", e.modifier = "modifier", e.comment = "comment", e.string = "string", e.number = "number", e.regexp = "regexp", e.operator = "operator", e.decorator = "decorator";
|
|
2907
|
+
})(SemanticTokenTypes || (SemanticTokenTypes = {})), (function(e) {
|
|
2908
|
+
e.declaration = "declaration", e.definition = "definition", e.readonly = "readonly", e.static = "static", e.deprecated = "deprecated", e.abstract = "abstract", e.async = "async", e.modification = "modification", e.documentation = "documentation", e.defaultLibrary = "defaultLibrary";
|
|
2909
|
+
})(SemanticTokenModifiers || (SemanticTokenModifiers = {})), (function(e) {
|
|
2910
|
+
function t(e2) {
|
|
2911
|
+
let t2 = e2;
|
|
2912
|
+
return Is$3.objectLiteral(t2) && (t2.resultId === void 0 || typeof t2.resultId == "string") && Array.isArray(t2.data) && (t2.data.length === 0 || typeof t2.data[0] == "number");
|
|
2913
|
+
}
|
|
2914
|
+
e.is = t;
|
|
2915
|
+
})(SemanticTokens || (SemanticTokens = {})), (function(e) {
|
|
2916
|
+
function t(e2, t2) {
|
|
2917
|
+
return {
|
|
2918
|
+
range: e2,
|
|
2919
|
+
text: t2
|
|
2920
|
+
};
|
|
2921
|
+
}
|
|
2922
|
+
e.create = t;
|
|
2923
|
+
function n(e2) {
|
|
2924
|
+
let t2 = e2;
|
|
2925
|
+
return t2 != null && Range.is(t2.range) && Is$3.string(t2.text);
|
|
2926
|
+
}
|
|
2927
|
+
e.is = n;
|
|
2928
|
+
})(InlineValueText || (InlineValueText = {})), (function(e) {
|
|
2929
|
+
function t(e2, t2, n2) {
|
|
2930
|
+
return {
|
|
2931
|
+
range: e2,
|
|
2932
|
+
variableName: t2,
|
|
2933
|
+
caseSensitiveLookup: n2
|
|
2934
|
+
};
|
|
2935
|
+
}
|
|
2936
|
+
e.create = t;
|
|
2937
|
+
function n(e2) {
|
|
2938
|
+
let t2 = e2;
|
|
2939
|
+
return t2 != null && Range.is(t2.range) && Is$3.boolean(t2.caseSensitiveLookup) && (Is$3.string(t2.variableName) || t2.variableName === void 0);
|
|
2940
|
+
}
|
|
2941
|
+
e.is = n;
|
|
2942
|
+
})(InlineValueVariableLookup || (InlineValueVariableLookup = {})), (function(e) {
|
|
2943
|
+
function t(e2, t2) {
|
|
2944
|
+
return {
|
|
2945
|
+
range: e2,
|
|
2946
|
+
expression: t2
|
|
2947
|
+
};
|
|
2948
|
+
}
|
|
2949
|
+
e.create = t;
|
|
2950
|
+
function n(e2) {
|
|
2951
|
+
let t2 = e2;
|
|
2952
|
+
return t2 != null && Range.is(t2.range) && (Is$3.string(t2.expression) || t2.expression === void 0);
|
|
2953
|
+
}
|
|
2954
|
+
e.is = n;
|
|
2955
|
+
})(InlineValueEvaluatableExpression || (InlineValueEvaluatableExpression = {})), (function(e) {
|
|
2956
|
+
function t(e2, t2) {
|
|
2957
|
+
return {
|
|
2958
|
+
frameId: e2,
|
|
2959
|
+
stoppedLocation: t2
|
|
2960
|
+
};
|
|
2961
|
+
}
|
|
2962
|
+
e.create = t;
|
|
2963
|
+
function n(e2) {
|
|
2964
|
+
let t2 = e2;
|
|
2965
|
+
return Is$3.defined(t2) && Range.is(e2.stoppedLocation);
|
|
2966
|
+
}
|
|
2967
|
+
e.is = n;
|
|
2968
|
+
})(InlineValueContext || (InlineValueContext = {})), (function(e) {
|
|
2969
|
+
e.Type = 1, e.Parameter = 2;
|
|
2970
|
+
function t(e2) {
|
|
2971
|
+
return e2 === 1 || e2 === 2;
|
|
2972
|
+
}
|
|
2973
|
+
e.is = t;
|
|
2974
|
+
})(InlayHintKind || (InlayHintKind = {})), (function(e) {
|
|
2975
|
+
function t(e2) {
|
|
2976
|
+
return { value: e2 };
|
|
2977
|
+
}
|
|
2978
|
+
e.create = t;
|
|
2979
|
+
function n(e2) {
|
|
2980
|
+
let t2 = e2;
|
|
2981
|
+
return Is$3.objectLiteral(t2) && (t2.tooltip === void 0 || Is$3.string(t2.tooltip) || MarkupContent.is(t2.tooltip)) && (t2.location === void 0 || Location.is(t2.location)) && (t2.command === void 0 || Command.is(t2.command));
|
|
2982
|
+
}
|
|
2983
|
+
e.is = n;
|
|
2984
|
+
})(InlayHintLabelPart || (InlayHintLabelPart = {})), (function(e) {
|
|
2985
|
+
function t(e2, t2, n2) {
|
|
2986
|
+
let r = {
|
|
2987
|
+
position: e2,
|
|
2988
|
+
label: t2
|
|
2989
|
+
};
|
|
2990
|
+
return n2 !== void 0 && (r.kind = n2), r;
|
|
2991
|
+
}
|
|
2992
|
+
e.create = t;
|
|
2993
|
+
function n(e2) {
|
|
2994
|
+
let t2 = e2;
|
|
2995
|
+
return Is$3.objectLiteral(t2) && Position.is(t2.position) && (Is$3.string(t2.label) || Is$3.typedArray(t2.label, InlayHintLabelPart.is)) && (t2.kind === void 0 || InlayHintKind.is(t2.kind)) && t2.textEdits === void 0 || Is$3.typedArray(t2.textEdits, TextEdit.is) && (t2.tooltip === void 0 || Is$3.string(t2.tooltip) || MarkupContent.is(t2.tooltip)) && (t2.paddingLeft === void 0 || Is$3.boolean(t2.paddingLeft)) && (t2.paddingRight === void 0 || Is$3.boolean(t2.paddingRight));
|
|
2996
|
+
}
|
|
2997
|
+
e.is = n;
|
|
2998
|
+
})(InlayHint || (InlayHint = {})), (function(e) {
|
|
2999
|
+
function t(e2) {
|
|
3000
|
+
return {
|
|
3001
|
+
kind: "snippet",
|
|
3002
|
+
value: e2
|
|
3003
|
+
};
|
|
3004
|
+
}
|
|
3005
|
+
e.createSnippet = t;
|
|
3006
|
+
})(StringValue || (StringValue = {})), (function(e) {
|
|
3007
|
+
function t(e2, t2, n, r) {
|
|
3008
|
+
return {
|
|
3009
|
+
insertText: e2,
|
|
3010
|
+
filterText: t2,
|
|
3011
|
+
range: n,
|
|
3012
|
+
command: r
|
|
3013
|
+
};
|
|
3014
|
+
}
|
|
3015
|
+
e.create = t;
|
|
3016
|
+
})(InlineCompletionItem || (InlineCompletionItem = {})), (function(e) {
|
|
3017
|
+
function t(e2) {
|
|
3018
|
+
return { items: e2 };
|
|
3019
|
+
}
|
|
3020
|
+
e.create = t;
|
|
3021
|
+
})(InlineCompletionList || (InlineCompletionList = {})), (function(e) {
|
|
3022
|
+
e.Invoked = 0, e.Automatic = 1;
|
|
3023
|
+
})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {})), (function(e) {
|
|
3024
|
+
function t(e2, t2) {
|
|
3025
|
+
return {
|
|
3026
|
+
range: e2,
|
|
3027
|
+
text: t2
|
|
3028
|
+
};
|
|
3029
|
+
}
|
|
3030
|
+
e.create = t;
|
|
3031
|
+
})(SelectedCompletionInfo || (SelectedCompletionInfo = {})), (function(e) {
|
|
3032
|
+
function t(e2, t2) {
|
|
3033
|
+
return {
|
|
3034
|
+
triggerKind: e2,
|
|
3035
|
+
selectedCompletionInfo: t2
|
|
3036
|
+
};
|
|
3037
|
+
}
|
|
3038
|
+
e.create = t;
|
|
3039
|
+
})(InlineCompletionContext || (InlineCompletionContext = {})), (function(e) {
|
|
3040
|
+
function t(e2) {
|
|
3041
|
+
let t2 = e2;
|
|
3042
|
+
return Is$3.objectLiteral(t2) && URI.is(t2.uri) && Is$3.string(t2.name);
|
|
3043
|
+
}
|
|
3044
|
+
e.is = t;
|
|
3045
|
+
})(WorkspaceFolder || (WorkspaceFolder = {})), EOL = [
|
|
3046
|
+
"\n",
|
|
3047
|
+
"\r\n",
|
|
3048
|
+
"\r"
|
|
3049
|
+
], (function(e) {
|
|
3050
|
+
function t(e2, t2, n2, r2) {
|
|
3051
|
+
return new FullTextDocument(e2, t2, n2, r2);
|
|
3052
|
+
}
|
|
3053
|
+
e.create = t;
|
|
3054
|
+
function n(e2) {
|
|
3055
|
+
let t2 = e2;
|
|
3056
|
+
return !!(Is$3.defined(t2) && Is$3.string(t2.uri) && (Is$3.undefined(t2.languageId) || Is$3.string(t2.languageId)) && Is$3.uinteger(t2.lineCount) && Is$3.func(t2.getText) && Is$3.func(t2.positionAt) && Is$3.func(t2.offsetAt));
|
|
3057
|
+
}
|
|
3058
|
+
e.is = n;
|
|
3059
|
+
function r(e2, t2) {
|
|
3060
|
+
let n2 = e2.getText(), r2 = i(t2, (e3, t3) => {
|
|
3061
|
+
let n3 = e3.range.start.line - t3.range.start.line;
|
|
3062
|
+
return n3 === 0 ? e3.range.start.character - t3.range.start.character : n3;
|
|
3063
|
+
}), a = n2.length;
|
|
3064
|
+
for (let t3 = r2.length - 1; t3 >= 0; t3--) {
|
|
3065
|
+
let i2 = r2[t3], o = e2.offsetAt(i2.range.start), s = e2.offsetAt(i2.range.end);
|
|
3066
|
+
if (s <= a) n2 = n2.substring(0, o) + i2.newText + n2.substring(s, n2.length);
|
|
3067
|
+
else throw Error("Overlapping edit");
|
|
3068
|
+
a = o;
|
|
3069
|
+
}
|
|
3070
|
+
return n2;
|
|
3071
|
+
}
|
|
3072
|
+
e.applyEdits = r;
|
|
3073
|
+
function i(e2, t2) {
|
|
3074
|
+
if (e2.length <= 1) return e2;
|
|
3075
|
+
let n2 = e2.length / 2 | 0, r2 = e2.slice(0, n2), a = e2.slice(n2);
|
|
3076
|
+
i(r2, t2), i(a, t2);
|
|
3077
|
+
let o = 0, s = 0, c = 0;
|
|
3078
|
+
for (; o < r2.length && s < a.length; ) t2(r2[o], a[s]) <= 0 ? e2[c++] = r2[o++] : e2[c++] = a[s++];
|
|
3079
|
+
for (; o < r2.length; ) e2[c++] = r2[o++];
|
|
3080
|
+
for (; s < a.length; ) e2[c++] = a[s++];
|
|
3081
|
+
return e2;
|
|
3082
|
+
}
|
|
3083
|
+
})(TextDocument || (TextDocument = {})), FullTextDocument = class {
|
|
3084
|
+
constructor(e, t, n, r) {
|
|
3085
|
+
this._uri = e, this._languageId = t, this._version = n, this._content = r, this._lineOffsets = void 0;
|
|
3086
|
+
}
|
|
3087
|
+
get uri() {
|
|
3088
|
+
return this._uri;
|
|
3089
|
+
}
|
|
3090
|
+
get languageId() {
|
|
3091
|
+
return this._languageId;
|
|
3092
|
+
}
|
|
3093
|
+
get version() {
|
|
3094
|
+
return this._version;
|
|
3095
|
+
}
|
|
3096
|
+
getText(e) {
|
|
3097
|
+
if (e) {
|
|
3098
|
+
let t = this.offsetAt(e.start), n = this.offsetAt(e.end);
|
|
3099
|
+
return this._content.substring(t, n);
|
|
3100
|
+
}
|
|
3101
|
+
return this._content;
|
|
3102
|
+
}
|
|
3103
|
+
update(e, t) {
|
|
3104
|
+
this._content = e.text, this._version = t, this._lineOffsets = void 0;
|
|
3105
|
+
}
|
|
3106
|
+
getLineOffsets() {
|
|
3107
|
+
if (this._lineOffsets === void 0) {
|
|
3108
|
+
let e = [], t = this._content, n = true;
|
|
3109
|
+
for (let r = 0; r < t.length; r++) {
|
|
3110
|
+
n && (n = (e.push(r), false));
|
|
3111
|
+
let i = t.charAt(r);
|
|
3112
|
+
n = i === "\r" || i === "\n", i === "\r" && r + 1 < t.length && t.charAt(r + 1) === "\n" && r++;
|
|
3113
|
+
}
|
|
3114
|
+
n && t.length > 0 && e.push(t.length), this._lineOffsets = e;
|
|
3115
|
+
}
|
|
3116
|
+
return this._lineOffsets;
|
|
3117
|
+
}
|
|
3118
|
+
positionAt(e) {
|
|
3119
|
+
e = Math.max(Math.min(e, this._content.length), 0);
|
|
3120
|
+
let t = this.getLineOffsets(), n = 0, r = t.length;
|
|
3121
|
+
if (r === 0) return Position.create(0, e);
|
|
3122
|
+
for (; n < r; ) {
|
|
3123
|
+
let i2 = Math.floor((n + r) / 2);
|
|
3124
|
+
t[i2] > e ? r = i2 : n = i2 + 1;
|
|
3125
|
+
}
|
|
3126
|
+
let i = n - 1;
|
|
3127
|
+
return Position.create(i, e - t[i]);
|
|
3128
|
+
}
|
|
3129
|
+
offsetAt(e) {
|
|
3130
|
+
let t = this.getLineOffsets();
|
|
3131
|
+
if (e.line >= t.length) return this._content.length;
|
|
3132
|
+
if (e.line < 0) return 0;
|
|
3133
|
+
let n = t[e.line], r = e.line + 1 < t.length ? t[e.line + 1] : this._content.length;
|
|
3134
|
+
return Math.max(Math.min(n + e.character, r), n);
|
|
3135
|
+
}
|
|
3136
|
+
get lineCount() {
|
|
3137
|
+
return this.getLineOffsets().length;
|
|
3138
|
+
}
|
|
3139
|
+
}, (function(e) {
|
|
3140
|
+
let t = Object.prototype.toString;
|
|
3141
|
+
function n(e2) {
|
|
3142
|
+
return e2 !== void 0;
|
|
3143
|
+
}
|
|
3144
|
+
e.defined = n;
|
|
3145
|
+
function r(e2) {
|
|
3146
|
+
return e2 === void 0;
|
|
3147
|
+
}
|
|
3148
|
+
e.undefined = r;
|
|
3149
|
+
function i(e2) {
|
|
3150
|
+
return e2 === true || e2 === false;
|
|
3151
|
+
}
|
|
3152
|
+
e.boolean = i;
|
|
3153
|
+
function a(e2) {
|
|
3154
|
+
return t.call(e2) === "[object String]";
|
|
3155
|
+
}
|
|
3156
|
+
e.string = a;
|
|
3157
|
+
function o(e2) {
|
|
3158
|
+
return t.call(e2) === "[object Number]";
|
|
3159
|
+
}
|
|
3160
|
+
e.number = o;
|
|
3161
|
+
function s(e2, n2, r2) {
|
|
3162
|
+
return t.call(e2) === "[object Number]" && n2 <= e2 && e2 <= r2;
|
|
3163
|
+
}
|
|
3164
|
+
e.numberRange = s;
|
|
3165
|
+
function c(e2) {
|
|
3166
|
+
return t.call(e2) === "[object Number]" && -2147483648 <= e2 && e2 <= 2147483647;
|
|
3167
|
+
}
|
|
3168
|
+
e.integer = c;
|
|
3169
|
+
function l(e2) {
|
|
3170
|
+
return t.call(e2) === "[object Number]" && 0 <= e2 && e2 <= 2147483647;
|
|
3171
|
+
}
|
|
3172
|
+
e.uinteger = l;
|
|
3173
|
+
function u(e2) {
|
|
3174
|
+
return t.call(e2) === "[object Function]";
|
|
3175
|
+
}
|
|
3176
|
+
e.func = u;
|
|
3177
|
+
function d(e2) {
|
|
3178
|
+
return typeof e2 == "object" && !!e2;
|
|
3179
|
+
}
|
|
3180
|
+
e.objectLiteral = d;
|
|
3181
|
+
function f(e2, t2) {
|
|
3182
|
+
return Array.isArray(e2) && e2.every(t2);
|
|
3183
|
+
}
|
|
3184
|
+
e.typedArray = f;
|
|
3185
|
+
})(Is$3 || (Is$3 = {}));
|
|
3186
|
+
})), require_messages = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3187
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.ProtocolNotificationType = e.ProtocolNotificationType0 = e.ProtocolRequestType = e.ProtocolRequestType0 = e.RegistrationType = e.MessageDirection = void 0;
|
|
3188
|
+
var t = require_main$1(), n;
|
|
3189
|
+
(function(e2) {
|
|
3190
|
+
e2.clientToServer = "clientToServer", e2.serverToClient = "serverToClient", e2.both = "both";
|
|
3191
|
+
})(n || (e.MessageDirection = n = {})), e.RegistrationType = class {
|
|
3192
|
+
constructor(e2) {
|
|
3193
|
+
this.method = e2;
|
|
3194
|
+
}
|
|
3195
|
+
}, e.ProtocolRequestType0 = class extends t.RequestType0 {
|
|
3196
|
+
constructor(e2) {
|
|
3197
|
+
super(e2);
|
|
3198
|
+
}
|
|
3199
|
+
}, e.ProtocolRequestType = class extends t.RequestType {
|
|
3200
|
+
constructor(e2) {
|
|
3201
|
+
super(e2, t.ParameterStructures.byName);
|
|
3202
|
+
}
|
|
3203
|
+
}, e.ProtocolNotificationType0 = class extends t.NotificationType0 {
|
|
3204
|
+
constructor(e2) {
|
|
3205
|
+
super(e2);
|
|
3206
|
+
}
|
|
3207
|
+
}, e.ProtocolNotificationType = class extends t.NotificationType {
|
|
3208
|
+
constructor(e2) {
|
|
3209
|
+
super(e2, t.ParameterStructures.byName);
|
|
3210
|
+
}
|
|
3211
|
+
};
|
|
3212
|
+
})), require_is = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3213
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.objectLiteral = e.typedArray = e.stringArray = e.array = e.func = e.error = e.number = e.string = e.boolean = void 0;
|
|
3214
|
+
function t(e2) {
|
|
3215
|
+
return e2 === true || e2 === false;
|
|
3216
|
+
}
|
|
3217
|
+
e.boolean = t;
|
|
3218
|
+
function n(e2) {
|
|
3219
|
+
return typeof e2 == "string" || e2 instanceof String;
|
|
3220
|
+
}
|
|
3221
|
+
e.string = n;
|
|
3222
|
+
function r(e2) {
|
|
3223
|
+
return typeof e2 == "number" || e2 instanceof Number;
|
|
3224
|
+
}
|
|
3225
|
+
e.number = r;
|
|
3226
|
+
function i(e2) {
|
|
3227
|
+
return e2 instanceof Error;
|
|
3228
|
+
}
|
|
3229
|
+
e.error = i;
|
|
3230
|
+
function a(e2) {
|
|
3231
|
+
return typeof e2 == "function";
|
|
3232
|
+
}
|
|
3233
|
+
e.func = a;
|
|
3234
|
+
function o(e2) {
|
|
3235
|
+
return Array.isArray(e2);
|
|
3236
|
+
}
|
|
3237
|
+
e.array = o;
|
|
3238
|
+
function s(e2) {
|
|
3239
|
+
return o(e2) && e2.every((e3) => n(e3));
|
|
3240
|
+
}
|
|
3241
|
+
e.stringArray = s;
|
|
3242
|
+
function c(e2, t2) {
|
|
3243
|
+
return Array.isArray(e2) && e2.every(t2);
|
|
3244
|
+
}
|
|
3245
|
+
e.typedArray = c;
|
|
3246
|
+
function l(e2) {
|
|
3247
|
+
return typeof e2 == "object" && !!e2;
|
|
3248
|
+
}
|
|
3249
|
+
e.objectLiteral = l;
|
|
3250
|
+
})), require_protocol_implementation = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3251
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.ImplementationRequest = void 0;
|
|
3252
|
+
var t = require_messages(), n;
|
|
3253
|
+
(function(e2) {
|
|
3254
|
+
e2.method = "textDocument/implementation", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3255
|
+
})(n || (e.ImplementationRequest = n = {}));
|
|
3256
|
+
})), require_protocol_typeDefinition = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3257
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.TypeDefinitionRequest = void 0;
|
|
3258
|
+
var t = require_messages(), n;
|
|
3259
|
+
(function(e2) {
|
|
3260
|
+
e2.method = "textDocument/typeDefinition", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3261
|
+
})(n || (e.TypeDefinitionRequest = n = {}));
|
|
3262
|
+
})), require_protocol_workspaceFolder = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3263
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.DidChangeWorkspaceFoldersNotification = e.WorkspaceFoldersRequest = void 0;
|
|
3264
|
+
var t = require_messages(), n;
|
|
3265
|
+
(function(e2) {
|
|
3266
|
+
e2.method = "workspace/workspaceFolders", e2.messageDirection = t.MessageDirection.serverToClient, e2.type = new t.ProtocolRequestType0(e2.method);
|
|
3267
|
+
})(n || (e.WorkspaceFoldersRequest = n = {}));
|
|
3268
|
+
var r;
|
|
3269
|
+
(function(e2) {
|
|
3270
|
+
e2.method = "workspace/didChangeWorkspaceFolders", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolNotificationType(e2.method);
|
|
3271
|
+
})(r || (e.DidChangeWorkspaceFoldersNotification = r = {}));
|
|
3272
|
+
})), require_protocol_configuration = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3273
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.ConfigurationRequest = void 0;
|
|
3274
|
+
var t = require_messages(), n;
|
|
3275
|
+
(function(e2) {
|
|
3276
|
+
e2.method = "workspace/configuration", e2.messageDirection = t.MessageDirection.serverToClient, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3277
|
+
})(n || (e.ConfigurationRequest = n = {}));
|
|
3278
|
+
})), require_protocol_colorProvider = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3279
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.ColorPresentationRequest = e.DocumentColorRequest = void 0;
|
|
3280
|
+
var t = require_messages(), n;
|
|
3281
|
+
(function(e2) {
|
|
3282
|
+
e2.method = "textDocument/documentColor", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3283
|
+
})(n || (e.DocumentColorRequest = n = {}));
|
|
3284
|
+
var r;
|
|
3285
|
+
(function(e2) {
|
|
3286
|
+
e2.method = "textDocument/colorPresentation", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3287
|
+
})(r || (e.ColorPresentationRequest = r = {}));
|
|
3288
|
+
})), require_protocol_foldingRange = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3289
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.FoldingRangeRefreshRequest = e.FoldingRangeRequest = void 0;
|
|
3290
|
+
var t = require_messages(), n;
|
|
3291
|
+
(function(e2) {
|
|
3292
|
+
e2.method = "textDocument/foldingRange", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3293
|
+
})(n || (e.FoldingRangeRequest = n = {}));
|
|
3294
|
+
var r;
|
|
3295
|
+
(function(e2) {
|
|
3296
|
+
e2.method = "workspace/foldingRange/refresh", e2.messageDirection = t.MessageDirection.serverToClient, e2.type = new t.ProtocolRequestType0(e2.method);
|
|
3297
|
+
})(r || (e.FoldingRangeRefreshRequest = r = {}));
|
|
3298
|
+
})), require_protocol_declaration = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3299
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.DeclarationRequest = void 0;
|
|
3300
|
+
var t = require_messages(), n;
|
|
3301
|
+
(function(e2) {
|
|
3302
|
+
e2.method = "textDocument/declaration", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3303
|
+
})(n || (e.DeclarationRequest = n = {}));
|
|
3304
|
+
})), require_protocol_selectionRange = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3305
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.SelectionRangeRequest = void 0;
|
|
3306
|
+
var t = require_messages(), n;
|
|
3307
|
+
(function(e2) {
|
|
3308
|
+
e2.method = "textDocument/selectionRange", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3309
|
+
})(n || (e.SelectionRangeRequest = n = {}));
|
|
3310
|
+
})), require_protocol_progress = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3311
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.WorkDoneProgressCancelNotification = e.WorkDoneProgressCreateRequest = e.WorkDoneProgress = void 0;
|
|
3312
|
+
var t = require_main$1(), n = require_messages(), r;
|
|
3313
|
+
(function(e2) {
|
|
3314
|
+
e2.type = new t.ProgressType();
|
|
3315
|
+
function n2(t2) {
|
|
3316
|
+
return t2 === e2.type;
|
|
3317
|
+
}
|
|
3318
|
+
e2.is = n2;
|
|
3319
|
+
})(r || (e.WorkDoneProgress = r = {}));
|
|
3320
|
+
var i;
|
|
3321
|
+
(function(e2) {
|
|
3322
|
+
e2.method = "window/workDoneProgress/create", e2.messageDirection = n.MessageDirection.serverToClient, e2.type = new n.ProtocolRequestType(e2.method);
|
|
3323
|
+
})(i || (e.WorkDoneProgressCreateRequest = i = {}));
|
|
3324
|
+
var a;
|
|
3325
|
+
(function(e2) {
|
|
3326
|
+
e2.method = "window/workDoneProgress/cancel", e2.messageDirection = n.MessageDirection.clientToServer, e2.type = new n.ProtocolNotificationType(e2.method);
|
|
3327
|
+
})(a || (e.WorkDoneProgressCancelNotification = a = {}));
|
|
3328
|
+
})), require_protocol_callHierarchy = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3329
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.CallHierarchyOutgoingCallsRequest = e.CallHierarchyIncomingCallsRequest = e.CallHierarchyPrepareRequest = void 0;
|
|
3330
|
+
var t = require_messages(), n;
|
|
3331
|
+
(function(e2) {
|
|
3332
|
+
e2.method = "textDocument/prepareCallHierarchy", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3333
|
+
})(n || (e.CallHierarchyPrepareRequest = n = {}));
|
|
3334
|
+
var r;
|
|
3335
|
+
(function(e2) {
|
|
3336
|
+
e2.method = "callHierarchy/incomingCalls", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3337
|
+
})(r || (e.CallHierarchyIncomingCallsRequest = r = {}));
|
|
3338
|
+
var i;
|
|
3339
|
+
(function(e2) {
|
|
3340
|
+
e2.method = "callHierarchy/outgoingCalls", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3341
|
+
})(i || (e.CallHierarchyOutgoingCallsRequest = i = {}));
|
|
3342
|
+
})), require_protocol_semanticTokens = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3343
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.SemanticTokensRefreshRequest = e.SemanticTokensRangeRequest = e.SemanticTokensDeltaRequest = e.SemanticTokensRequest = e.SemanticTokensRegistrationType = e.TokenFormat = void 0;
|
|
3344
|
+
var t = require_messages(), n;
|
|
3345
|
+
(function(e2) {
|
|
3346
|
+
e2.Relative = "relative";
|
|
3347
|
+
})(n || (e.TokenFormat = n = {}));
|
|
3348
|
+
var r;
|
|
3349
|
+
(function(e2) {
|
|
3350
|
+
e2.method = "textDocument/semanticTokens", e2.type = new t.RegistrationType(e2.method);
|
|
3351
|
+
})(r || (e.SemanticTokensRegistrationType = r = {}));
|
|
3352
|
+
var i;
|
|
3353
|
+
(function(e2) {
|
|
3354
|
+
e2.method = "textDocument/semanticTokens/full", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method), e2.registrationMethod = r.method;
|
|
3355
|
+
})(i || (e.SemanticTokensRequest = i = {}));
|
|
3356
|
+
var a;
|
|
3357
|
+
(function(e2) {
|
|
3358
|
+
e2.method = "textDocument/semanticTokens/full/delta", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method), e2.registrationMethod = r.method;
|
|
3359
|
+
})(a || (e.SemanticTokensDeltaRequest = a = {}));
|
|
3360
|
+
var o;
|
|
3361
|
+
(function(e2) {
|
|
3362
|
+
e2.method = "textDocument/semanticTokens/range", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method), e2.registrationMethod = r.method;
|
|
3363
|
+
})(o || (e.SemanticTokensRangeRequest = o = {}));
|
|
3364
|
+
var s;
|
|
3365
|
+
(function(e2) {
|
|
3366
|
+
e2.method = "workspace/semanticTokens/refresh", e2.messageDirection = t.MessageDirection.serverToClient, e2.type = new t.ProtocolRequestType0(e2.method);
|
|
3367
|
+
})(s || (e.SemanticTokensRefreshRequest = s = {}));
|
|
3368
|
+
})), require_protocol_showDocument = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3369
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.ShowDocumentRequest = void 0;
|
|
3370
|
+
var t = require_messages(), n;
|
|
3371
|
+
(function(e2) {
|
|
3372
|
+
e2.method = "window/showDocument", e2.messageDirection = t.MessageDirection.serverToClient, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3373
|
+
})(n || (e.ShowDocumentRequest = n = {}));
|
|
3374
|
+
})), require_protocol_linkedEditingRange = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3375
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.LinkedEditingRangeRequest = void 0;
|
|
3376
|
+
var t = require_messages(), n;
|
|
3377
|
+
(function(e2) {
|
|
3378
|
+
e2.method = "textDocument/linkedEditingRange", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3379
|
+
})(n || (e.LinkedEditingRangeRequest = n = {}));
|
|
3380
|
+
})), require_protocol_fileOperations = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3381
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.WillDeleteFilesRequest = e.DidDeleteFilesNotification = e.DidRenameFilesNotification = e.WillRenameFilesRequest = e.DidCreateFilesNotification = e.WillCreateFilesRequest = e.FileOperationPatternKind = void 0;
|
|
3382
|
+
var t = require_messages(), n;
|
|
3383
|
+
(function(e2) {
|
|
3384
|
+
e2.file = "file", e2.folder = "folder";
|
|
3385
|
+
})(n || (e.FileOperationPatternKind = n = {}));
|
|
3386
|
+
var r;
|
|
3387
|
+
(function(e2) {
|
|
3388
|
+
e2.method = "workspace/willCreateFiles", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3389
|
+
})(r || (e.WillCreateFilesRequest = r = {}));
|
|
3390
|
+
var i;
|
|
3391
|
+
(function(e2) {
|
|
3392
|
+
e2.method = "workspace/didCreateFiles", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolNotificationType(e2.method);
|
|
3393
|
+
})(i || (e.DidCreateFilesNotification = i = {}));
|
|
3394
|
+
var a;
|
|
3395
|
+
(function(e2) {
|
|
3396
|
+
e2.method = "workspace/willRenameFiles", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3397
|
+
})(a || (e.WillRenameFilesRequest = a = {}));
|
|
3398
|
+
var o;
|
|
3399
|
+
(function(e2) {
|
|
3400
|
+
e2.method = "workspace/didRenameFiles", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolNotificationType(e2.method);
|
|
3401
|
+
})(o || (e.DidRenameFilesNotification = o = {}));
|
|
3402
|
+
var s;
|
|
3403
|
+
(function(e2) {
|
|
3404
|
+
e2.method = "workspace/didDeleteFiles", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolNotificationType(e2.method);
|
|
3405
|
+
})(s || (e.DidDeleteFilesNotification = s = {}));
|
|
3406
|
+
var c;
|
|
3407
|
+
(function(e2) {
|
|
3408
|
+
e2.method = "workspace/willDeleteFiles", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3409
|
+
})(c || (e.WillDeleteFilesRequest = c = {}));
|
|
3410
|
+
})), require_protocol_moniker = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3411
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.MonikerRequest = e.MonikerKind = e.UniquenessLevel = void 0;
|
|
3412
|
+
var t = require_messages(), n;
|
|
3413
|
+
(function(e2) {
|
|
3414
|
+
e2.document = "document", e2.project = "project", e2.group = "group", e2.scheme = "scheme", e2.global = "global";
|
|
3415
|
+
})(n || (e.UniquenessLevel = n = {}));
|
|
3416
|
+
var r;
|
|
3417
|
+
(function(e2) {
|
|
3418
|
+
e2.$import = "import", e2.$export = "export", e2.local = "local";
|
|
3419
|
+
})(r || (e.MonikerKind = r = {}));
|
|
3420
|
+
var i;
|
|
3421
|
+
(function(e2) {
|
|
3422
|
+
e2.method = "textDocument/moniker", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3423
|
+
})(i || (e.MonikerRequest = i = {}));
|
|
3424
|
+
})), require_protocol_typeHierarchy = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3425
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.TypeHierarchySubtypesRequest = e.TypeHierarchySupertypesRequest = e.TypeHierarchyPrepareRequest = void 0;
|
|
3426
|
+
var t = require_messages(), n;
|
|
3427
|
+
(function(e2) {
|
|
3428
|
+
e2.method = "textDocument/prepareTypeHierarchy", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3429
|
+
})(n || (e.TypeHierarchyPrepareRequest = n = {}));
|
|
3430
|
+
var r;
|
|
3431
|
+
(function(e2) {
|
|
3432
|
+
e2.method = "typeHierarchy/supertypes", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3433
|
+
})(r || (e.TypeHierarchySupertypesRequest = r = {}));
|
|
3434
|
+
var i;
|
|
3435
|
+
(function(e2) {
|
|
3436
|
+
e2.method = "typeHierarchy/subtypes", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3437
|
+
})(i || (e.TypeHierarchySubtypesRequest = i = {}));
|
|
3438
|
+
})), require_protocol_inlineValue = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3439
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.InlineValueRefreshRequest = e.InlineValueRequest = void 0;
|
|
3440
|
+
var t = require_messages(), n;
|
|
3441
|
+
(function(e2) {
|
|
3442
|
+
e2.method = "textDocument/inlineValue", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3443
|
+
})(n || (e.InlineValueRequest = n = {}));
|
|
3444
|
+
var r;
|
|
3445
|
+
(function(e2) {
|
|
3446
|
+
e2.method = "workspace/inlineValue/refresh", e2.messageDirection = t.MessageDirection.serverToClient, e2.type = new t.ProtocolRequestType0(e2.method);
|
|
3447
|
+
})(r || (e.InlineValueRefreshRequest = r = {}));
|
|
3448
|
+
})), require_protocol_inlayHint = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3449
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.InlayHintRefreshRequest = e.InlayHintResolveRequest = e.InlayHintRequest = void 0;
|
|
3450
|
+
var t = require_messages(), n;
|
|
3451
|
+
(function(e2) {
|
|
3452
|
+
e2.method = "textDocument/inlayHint", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3453
|
+
})(n || (e.InlayHintRequest = n = {}));
|
|
3454
|
+
var r;
|
|
3455
|
+
(function(e2) {
|
|
3456
|
+
e2.method = "inlayHint/resolve", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3457
|
+
})(r || (e.InlayHintResolveRequest = r = {}));
|
|
3458
|
+
var i;
|
|
3459
|
+
(function(e2) {
|
|
3460
|
+
e2.method = "workspace/inlayHint/refresh", e2.messageDirection = t.MessageDirection.serverToClient, e2.type = new t.ProtocolRequestType0(e2.method);
|
|
3461
|
+
})(i || (e.InlayHintRefreshRequest = i = {}));
|
|
3462
|
+
})), require_protocol_diagnostic = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3463
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.DiagnosticRefreshRequest = e.WorkspaceDiagnosticRequest = e.DocumentDiagnosticRequest = e.DocumentDiagnosticReportKind = e.DiagnosticServerCancellationData = void 0;
|
|
3464
|
+
var t = require_main$1(), n = require_is(), r = require_messages(), i;
|
|
3465
|
+
(function(e2) {
|
|
3466
|
+
function t2(e3) {
|
|
3467
|
+
let t3 = e3;
|
|
3468
|
+
return t3 && n.boolean(t3.retriggerRequest);
|
|
3469
|
+
}
|
|
3470
|
+
e2.is = t2;
|
|
3471
|
+
})(i || (e.DiagnosticServerCancellationData = i = {}));
|
|
3472
|
+
var a;
|
|
3473
|
+
(function(e2) {
|
|
3474
|
+
e2.Full = "full", e2.Unchanged = "unchanged";
|
|
3475
|
+
})(a || (e.DocumentDiagnosticReportKind = a = {}));
|
|
3476
|
+
var o;
|
|
3477
|
+
(function(e2) {
|
|
3478
|
+
e2.method = "textDocument/diagnostic", e2.messageDirection = r.MessageDirection.clientToServer, e2.type = new r.ProtocolRequestType(e2.method), e2.partialResult = new t.ProgressType();
|
|
3479
|
+
})(o || (e.DocumentDiagnosticRequest = o = {}));
|
|
3480
|
+
var s;
|
|
3481
|
+
(function(e2) {
|
|
3482
|
+
e2.method = "workspace/diagnostic", e2.messageDirection = r.MessageDirection.clientToServer, e2.type = new r.ProtocolRequestType(e2.method), e2.partialResult = new t.ProgressType();
|
|
3483
|
+
})(s || (e.WorkspaceDiagnosticRequest = s = {}));
|
|
3484
|
+
var c;
|
|
3485
|
+
(function(e2) {
|
|
3486
|
+
e2.method = "workspace/diagnostic/refresh", e2.messageDirection = r.MessageDirection.serverToClient, e2.type = new r.ProtocolRequestType0(e2.method);
|
|
3487
|
+
})(c || (e.DiagnosticRefreshRequest = c = {}));
|
|
3488
|
+
})), require_protocol_notebook = /* @__PURE__ */ __commonJSMin(((t) => {
|
|
3489
|
+
Object.defineProperty(t, "__esModule", { value: true }), t.DidCloseNotebookDocumentNotification = t.DidSaveNotebookDocumentNotification = t.DidChangeNotebookDocumentNotification = t.NotebookCellArrayChange = t.DidOpenNotebookDocumentNotification = t.NotebookDocumentSyncRegistrationType = t.NotebookDocument = t.NotebookCell = t.ExecutionSummary = t.NotebookCellKind = void 0;
|
|
3490
|
+
var n = (init_main(), __toCommonJS(main_exports)), r = require_is(), i = require_messages(), a;
|
|
3491
|
+
(function(e) {
|
|
3492
|
+
e.Markup = 1, e.Code = 2;
|
|
3493
|
+
function t2(e2) {
|
|
3494
|
+
return e2 === 1 || e2 === 2;
|
|
3495
|
+
}
|
|
3496
|
+
e.is = t2;
|
|
3497
|
+
})(a || (t.NotebookCellKind = a = {}));
|
|
3498
|
+
var o;
|
|
3499
|
+
(function(e) {
|
|
3500
|
+
function t2(e2, t3) {
|
|
3501
|
+
let n2 = { executionOrder: e2 };
|
|
3502
|
+
return (t3 === true || t3 === false) && (n2.success = t3), n2;
|
|
3503
|
+
}
|
|
3504
|
+
e.create = t2;
|
|
3505
|
+
function i2(e2) {
|
|
3506
|
+
let t3 = e2;
|
|
3507
|
+
return r.objectLiteral(t3) && n.uinteger.is(t3.executionOrder) && (t3.success === void 0 || r.boolean(t3.success));
|
|
3508
|
+
}
|
|
3509
|
+
e.is = i2;
|
|
3510
|
+
function a2(e2, t3) {
|
|
3511
|
+
return e2 === t3 ? true : e2 == null || t3 == null ? false : e2.executionOrder === t3.executionOrder && e2.success === t3.success;
|
|
3512
|
+
}
|
|
3513
|
+
e.equals = a2;
|
|
3514
|
+
})(o || (t.ExecutionSummary = o = {}));
|
|
3515
|
+
var s;
|
|
3516
|
+
(function(e) {
|
|
3517
|
+
function t2(e2, t3) {
|
|
3518
|
+
return {
|
|
3519
|
+
kind: e2,
|
|
3520
|
+
document: t3
|
|
3521
|
+
};
|
|
3522
|
+
}
|
|
3523
|
+
e.create = t2;
|
|
3524
|
+
function i2(e2) {
|
|
3525
|
+
let t3 = e2;
|
|
3526
|
+
return r.objectLiteral(t3) && a.is(t3.kind) && n.DocumentUri.is(t3.document) && (t3.metadata === void 0 || r.objectLiteral(t3.metadata));
|
|
3527
|
+
}
|
|
3528
|
+
e.is = i2;
|
|
3529
|
+
function s2(e2, t3) {
|
|
3530
|
+
let n2 = /* @__PURE__ */ new Set();
|
|
3531
|
+
return e2.document !== t3.document && n2.add("document"), e2.kind !== t3.kind && n2.add("kind"), e2.executionSummary !== t3.executionSummary && n2.add("executionSummary"), (e2.metadata !== void 0 || t3.metadata !== void 0) && !c2(e2.metadata, t3.metadata) && n2.add("metadata"), (e2.executionSummary !== void 0 || t3.executionSummary !== void 0) && !o.equals(e2.executionSummary, t3.executionSummary) && n2.add("executionSummary"), n2;
|
|
3532
|
+
}
|
|
3533
|
+
e.diff = s2;
|
|
3534
|
+
function c2(e2, t3) {
|
|
3535
|
+
if (e2 === t3) return true;
|
|
3536
|
+
if (e2 == null || t3 == null || typeof e2 != typeof t3 || typeof e2 != "object") return false;
|
|
3537
|
+
let n2 = Array.isArray(e2), i3 = Array.isArray(t3);
|
|
3538
|
+
if (n2 !== i3) return false;
|
|
3539
|
+
if (n2 && i3) {
|
|
3540
|
+
if (e2.length !== t3.length) return false;
|
|
3541
|
+
for (let n3 = 0; n3 < e2.length; n3++) if (!c2(e2[n3], t3[n3])) return false;
|
|
3542
|
+
}
|
|
3543
|
+
if (r.objectLiteral(e2) && r.objectLiteral(t3)) {
|
|
3544
|
+
let n3 = Object.keys(e2), r2 = Object.keys(t3);
|
|
3545
|
+
if (n3.length !== r2.length || (n3.sort(), r2.sort(), !c2(n3, r2))) return false;
|
|
3546
|
+
for (let r3 = 0; r3 < n3.length; r3++) {
|
|
3547
|
+
let i4 = n3[r3];
|
|
3548
|
+
if (!c2(e2[i4], t3[i4])) return false;
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
return true;
|
|
3552
|
+
}
|
|
3553
|
+
})(s || (t.NotebookCell = s = {}));
|
|
3554
|
+
var c;
|
|
3555
|
+
(function(e) {
|
|
3556
|
+
function t2(e2, t3, n2, r2) {
|
|
3557
|
+
return {
|
|
3558
|
+
uri: e2,
|
|
3559
|
+
notebookType: t3,
|
|
3560
|
+
version: n2,
|
|
3561
|
+
cells: r2
|
|
3562
|
+
};
|
|
3563
|
+
}
|
|
3564
|
+
e.create = t2;
|
|
3565
|
+
function i2(e2) {
|
|
3566
|
+
let t3 = e2;
|
|
3567
|
+
return r.objectLiteral(t3) && r.string(t3.uri) && n.integer.is(t3.version) && r.typedArray(t3.cells, s.is);
|
|
3568
|
+
}
|
|
3569
|
+
e.is = i2;
|
|
3570
|
+
})(c || (t.NotebookDocument = c = {}));
|
|
3571
|
+
var l;
|
|
3572
|
+
(function(e) {
|
|
3573
|
+
e.method = "notebookDocument/sync", e.messageDirection = i.MessageDirection.clientToServer, e.type = new i.RegistrationType(e.method);
|
|
3574
|
+
})(l || (t.NotebookDocumentSyncRegistrationType = l = {}));
|
|
3575
|
+
var u;
|
|
3576
|
+
(function(e) {
|
|
3577
|
+
e.method = "notebookDocument/didOpen", e.messageDirection = i.MessageDirection.clientToServer, e.type = new i.ProtocolNotificationType(e.method), e.registrationMethod = l.method;
|
|
3578
|
+
})(u || (t.DidOpenNotebookDocumentNotification = u = {}));
|
|
3579
|
+
var d;
|
|
3580
|
+
(function(e) {
|
|
3581
|
+
function t2(e2) {
|
|
3582
|
+
let t3 = e2;
|
|
3583
|
+
return r.objectLiteral(t3) && n.uinteger.is(t3.start) && n.uinteger.is(t3.deleteCount) && (t3.cells === void 0 || r.typedArray(t3.cells, s.is));
|
|
3584
|
+
}
|
|
3585
|
+
e.is = t2;
|
|
3586
|
+
function i2(e2, t3, n2) {
|
|
3587
|
+
let r2 = {
|
|
3588
|
+
start: e2,
|
|
3589
|
+
deleteCount: t3
|
|
3590
|
+
};
|
|
3591
|
+
return n2 !== void 0 && (r2.cells = n2), r2;
|
|
3592
|
+
}
|
|
3593
|
+
e.create = i2;
|
|
3594
|
+
})(d || (t.NotebookCellArrayChange = d = {}));
|
|
3595
|
+
var f;
|
|
3596
|
+
(function(e) {
|
|
3597
|
+
e.method = "notebookDocument/didChange", e.messageDirection = i.MessageDirection.clientToServer, e.type = new i.ProtocolNotificationType(e.method), e.registrationMethod = l.method;
|
|
3598
|
+
})(f || (t.DidChangeNotebookDocumentNotification = f = {}));
|
|
3599
|
+
var p;
|
|
3600
|
+
(function(e) {
|
|
3601
|
+
e.method = "notebookDocument/didSave", e.messageDirection = i.MessageDirection.clientToServer, e.type = new i.ProtocolNotificationType(e.method), e.registrationMethod = l.method;
|
|
3602
|
+
})(p || (t.DidSaveNotebookDocumentNotification = p = {}));
|
|
3603
|
+
var m;
|
|
3604
|
+
(function(e) {
|
|
3605
|
+
e.method = "notebookDocument/didClose", e.messageDirection = i.MessageDirection.clientToServer, e.type = new i.ProtocolNotificationType(e.method), e.registrationMethod = l.method;
|
|
3606
|
+
})(m || (t.DidCloseNotebookDocumentNotification = m = {}));
|
|
3607
|
+
})), require_protocol_inlineCompletion = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
3608
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.InlineCompletionRequest = void 0;
|
|
3609
|
+
var t = require_messages(), n;
|
|
3610
|
+
(function(e2) {
|
|
3611
|
+
e2.method = "textDocument/inlineCompletion", e2.messageDirection = t.MessageDirection.clientToServer, e2.type = new t.ProtocolRequestType(e2.method);
|
|
3612
|
+
})(n || (e.InlineCompletionRequest = n = {}));
|
|
3613
|
+
})), require_protocol = /* @__PURE__ */ __commonJSMin(((t) => {
|
|
3614
|
+
Object.defineProperty(t, "__esModule", { value: true }), t.WorkspaceSymbolRequest = t.CodeActionResolveRequest = t.CodeActionRequest = t.DocumentSymbolRequest = t.DocumentHighlightRequest = t.ReferencesRequest = t.DefinitionRequest = t.SignatureHelpRequest = t.SignatureHelpTriggerKind = t.HoverRequest = t.CompletionResolveRequest = t.CompletionRequest = t.CompletionTriggerKind = t.PublishDiagnosticsNotification = t.WatchKind = t.RelativePattern = t.FileChangeType = t.DidChangeWatchedFilesNotification = t.WillSaveTextDocumentWaitUntilRequest = t.WillSaveTextDocumentNotification = t.TextDocumentSaveReason = t.DidSaveTextDocumentNotification = t.DidCloseTextDocumentNotification = t.DidChangeTextDocumentNotification = t.TextDocumentContentChangeEvent = t.DidOpenTextDocumentNotification = t.TextDocumentSyncKind = t.TelemetryEventNotification = t.LogMessageNotification = t.ShowMessageRequest = t.ShowMessageNotification = t.MessageType = t.DidChangeConfigurationNotification = t.ExitNotification = t.ShutdownRequest = t.InitializedNotification = t.InitializeErrorCodes = t.InitializeRequest = t.WorkDoneProgressOptions = t.TextDocumentRegistrationOptions = t.StaticRegistrationOptions = t.PositionEncodingKind = t.FailureHandlingKind = t.ResourceOperationKind = t.UnregistrationRequest = t.RegistrationRequest = t.DocumentSelector = t.NotebookCellTextDocumentFilter = t.NotebookDocumentFilter = t.TextDocumentFilter = void 0, t.MonikerRequest = t.MonikerKind = t.UniquenessLevel = t.WillDeleteFilesRequest = t.DidDeleteFilesNotification = t.WillRenameFilesRequest = t.DidRenameFilesNotification = t.WillCreateFilesRequest = t.DidCreateFilesNotification = t.FileOperationPatternKind = t.LinkedEditingRangeRequest = t.ShowDocumentRequest = t.SemanticTokensRegistrationType = t.SemanticTokensRefreshRequest = t.SemanticTokensRangeRequest = t.SemanticTokensDeltaRequest = t.SemanticTokensRequest = t.TokenFormat = t.CallHierarchyPrepareRequest = t.CallHierarchyOutgoingCallsRequest = t.CallHierarchyIncomingCallsRequest = t.WorkDoneProgressCancelNotification = t.WorkDoneProgressCreateRequest = t.WorkDoneProgress = t.SelectionRangeRequest = t.DeclarationRequest = t.FoldingRangeRefreshRequest = t.FoldingRangeRequest = t.ColorPresentationRequest = t.DocumentColorRequest = t.ConfigurationRequest = t.DidChangeWorkspaceFoldersNotification = t.WorkspaceFoldersRequest = t.TypeDefinitionRequest = t.ImplementationRequest = t.ApplyWorkspaceEditRequest = t.ExecuteCommandRequest = t.PrepareRenameRequest = t.RenameRequest = t.PrepareSupportDefaultBehavior = t.DocumentOnTypeFormattingRequest = t.DocumentRangesFormattingRequest = t.DocumentRangeFormattingRequest = t.DocumentFormattingRequest = t.DocumentLinkResolveRequest = t.DocumentLinkRequest = t.CodeLensRefreshRequest = t.CodeLensResolveRequest = t.CodeLensRequest = t.WorkspaceSymbolResolveRequest = void 0, t.InlineCompletionRequest = t.DidCloseNotebookDocumentNotification = t.DidSaveNotebookDocumentNotification = t.DidChangeNotebookDocumentNotification = t.NotebookCellArrayChange = t.DidOpenNotebookDocumentNotification = t.NotebookDocumentSyncRegistrationType = t.NotebookDocument = t.NotebookCell = t.ExecutionSummary = t.NotebookCellKind = t.DiagnosticRefreshRequest = t.WorkspaceDiagnosticRequest = t.DocumentDiagnosticRequest = t.DocumentDiagnosticReportKind = t.DiagnosticServerCancellationData = t.InlayHintRefreshRequest = t.InlayHintResolveRequest = t.InlayHintRequest = t.InlineValueRefreshRequest = t.InlineValueRequest = t.TypeHierarchySupertypesRequest = t.TypeHierarchySubtypesRequest = t.TypeHierarchyPrepareRequest = void 0;
|
|
3615
|
+
var n = require_messages(), r = (init_main(), __toCommonJS(main_exports)), i = require_is(), a = require_protocol_implementation();
|
|
3616
|
+
Object.defineProperty(t, "ImplementationRequest", {
|
|
3617
|
+
enumerable: true,
|
|
3618
|
+
get: function() {
|
|
3619
|
+
return a.ImplementationRequest;
|
|
3620
|
+
}
|
|
3621
|
+
});
|
|
3622
|
+
var o = require_protocol_typeDefinition();
|
|
3623
|
+
Object.defineProperty(t, "TypeDefinitionRequest", {
|
|
3624
|
+
enumerable: true,
|
|
3625
|
+
get: function() {
|
|
3626
|
+
return o.TypeDefinitionRequest;
|
|
3627
|
+
}
|
|
3628
|
+
});
|
|
3629
|
+
var s = require_protocol_workspaceFolder();
|
|
3630
|
+
Object.defineProperty(t, "WorkspaceFoldersRequest", {
|
|
3631
|
+
enumerable: true,
|
|
3632
|
+
get: function() {
|
|
3633
|
+
return s.WorkspaceFoldersRequest;
|
|
3634
|
+
}
|
|
3635
|
+
}), Object.defineProperty(t, "DidChangeWorkspaceFoldersNotification", {
|
|
3636
|
+
enumerable: true,
|
|
3637
|
+
get: function() {
|
|
3638
|
+
return s.DidChangeWorkspaceFoldersNotification;
|
|
3639
|
+
}
|
|
3640
|
+
});
|
|
3641
|
+
var c = require_protocol_configuration();
|
|
3642
|
+
Object.defineProperty(t, "ConfigurationRequest", {
|
|
3643
|
+
enumerable: true,
|
|
3644
|
+
get: function() {
|
|
3645
|
+
return c.ConfigurationRequest;
|
|
3646
|
+
}
|
|
3647
|
+
});
|
|
3648
|
+
var l = require_protocol_colorProvider();
|
|
3649
|
+
Object.defineProperty(t, "DocumentColorRequest", {
|
|
3650
|
+
enumerable: true,
|
|
3651
|
+
get: function() {
|
|
3652
|
+
return l.DocumentColorRequest;
|
|
3653
|
+
}
|
|
3654
|
+
}), Object.defineProperty(t, "ColorPresentationRequest", {
|
|
3655
|
+
enumerable: true,
|
|
3656
|
+
get: function() {
|
|
3657
|
+
return l.ColorPresentationRequest;
|
|
3658
|
+
}
|
|
3659
|
+
});
|
|
3660
|
+
var u = require_protocol_foldingRange();
|
|
3661
|
+
Object.defineProperty(t, "FoldingRangeRequest", {
|
|
3662
|
+
enumerable: true,
|
|
3663
|
+
get: function() {
|
|
3664
|
+
return u.FoldingRangeRequest;
|
|
3665
|
+
}
|
|
3666
|
+
}), Object.defineProperty(t, "FoldingRangeRefreshRequest", {
|
|
3667
|
+
enumerable: true,
|
|
3668
|
+
get: function() {
|
|
3669
|
+
return u.FoldingRangeRefreshRequest;
|
|
3670
|
+
}
|
|
3671
|
+
});
|
|
3672
|
+
var d = require_protocol_declaration();
|
|
3673
|
+
Object.defineProperty(t, "DeclarationRequest", {
|
|
3674
|
+
enumerable: true,
|
|
3675
|
+
get: function() {
|
|
3676
|
+
return d.DeclarationRequest;
|
|
3677
|
+
}
|
|
3678
|
+
});
|
|
3679
|
+
var f = require_protocol_selectionRange();
|
|
3680
|
+
Object.defineProperty(t, "SelectionRangeRequest", {
|
|
3681
|
+
enumerable: true,
|
|
3682
|
+
get: function() {
|
|
3683
|
+
return f.SelectionRangeRequest;
|
|
3684
|
+
}
|
|
3685
|
+
});
|
|
3686
|
+
var p = require_protocol_progress();
|
|
3687
|
+
Object.defineProperty(t, "WorkDoneProgress", {
|
|
3688
|
+
enumerable: true,
|
|
3689
|
+
get: function() {
|
|
3690
|
+
return p.WorkDoneProgress;
|
|
3691
|
+
}
|
|
3692
|
+
}), Object.defineProperty(t, "WorkDoneProgressCreateRequest", {
|
|
3693
|
+
enumerable: true,
|
|
3694
|
+
get: function() {
|
|
3695
|
+
return p.WorkDoneProgressCreateRequest;
|
|
3696
|
+
}
|
|
3697
|
+
}), Object.defineProperty(t, "WorkDoneProgressCancelNotification", {
|
|
3698
|
+
enumerable: true,
|
|
3699
|
+
get: function() {
|
|
3700
|
+
return p.WorkDoneProgressCancelNotification;
|
|
3701
|
+
}
|
|
3702
|
+
});
|
|
3703
|
+
var m = require_protocol_callHierarchy();
|
|
3704
|
+
Object.defineProperty(t, "CallHierarchyIncomingCallsRequest", {
|
|
3705
|
+
enumerable: true,
|
|
3706
|
+
get: function() {
|
|
3707
|
+
return m.CallHierarchyIncomingCallsRequest;
|
|
3708
|
+
}
|
|
3709
|
+
}), Object.defineProperty(t, "CallHierarchyOutgoingCallsRequest", {
|
|
3710
|
+
enumerable: true,
|
|
3711
|
+
get: function() {
|
|
3712
|
+
return m.CallHierarchyOutgoingCallsRequest;
|
|
3713
|
+
}
|
|
3714
|
+
}), Object.defineProperty(t, "CallHierarchyPrepareRequest", {
|
|
3715
|
+
enumerable: true,
|
|
3716
|
+
get: function() {
|
|
3717
|
+
return m.CallHierarchyPrepareRequest;
|
|
3718
|
+
}
|
|
3719
|
+
});
|
|
3720
|
+
var h = require_protocol_semanticTokens();
|
|
3721
|
+
Object.defineProperty(t, "TokenFormat", {
|
|
3722
|
+
enumerable: true,
|
|
3723
|
+
get: function() {
|
|
3724
|
+
return h.TokenFormat;
|
|
3725
|
+
}
|
|
3726
|
+
}), Object.defineProperty(t, "SemanticTokensRequest", {
|
|
3727
|
+
enumerable: true,
|
|
3728
|
+
get: function() {
|
|
3729
|
+
return h.SemanticTokensRequest;
|
|
3730
|
+
}
|
|
3731
|
+
}), Object.defineProperty(t, "SemanticTokensDeltaRequest", {
|
|
3732
|
+
enumerable: true,
|
|
3733
|
+
get: function() {
|
|
3734
|
+
return h.SemanticTokensDeltaRequest;
|
|
3735
|
+
}
|
|
3736
|
+
}), Object.defineProperty(t, "SemanticTokensRangeRequest", {
|
|
3737
|
+
enumerable: true,
|
|
3738
|
+
get: function() {
|
|
3739
|
+
return h.SemanticTokensRangeRequest;
|
|
3740
|
+
}
|
|
3741
|
+
}), Object.defineProperty(t, "SemanticTokensRefreshRequest", {
|
|
3742
|
+
enumerable: true,
|
|
3743
|
+
get: function() {
|
|
3744
|
+
return h.SemanticTokensRefreshRequest;
|
|
3745
|
+
}
|
|
3746
|
+
}), Object.defineProperty(t, "SemanticTokensRegistrationType", {
|
|
3747
|
+
enumerable: true,
|
|
3748
|
+
get: function() {
|
|
3749
|
+
return h.SemanticTokensRegistrationType;
|
|
3750
|
+
}
|
|
3751
|
+
});
|
|
3752
|
+
var Ue = require_protocol_showDocument();
|
|
3753
|
+
Object.defineProperty(t, "ShowDocumentRequest", {
|
|
3754
|
+
enumerable: true,
|
|
3755
|
+
get: function() {
|
|
3756
|
+
return Ue.ShowDocumentRequest;
|
|
3757
|
+
}
|
|
3758
|
+
});
|
|
3759
|
+
var g = require_protocol_linkedEditingRange();
|
|
3760
|
+
Object.defineProperty(t, "LinkedEditingRangeRequest", {
|
|
3761
|
+
enumerable: true,
|
|
3762
|
+
get: function() {
|
|
3763
|
+
return g.LinkedEditingRangeRequest;
|
|
3764
|
+
}
|
|
3765
|
+
});
|
|
3766
|
+
var _ = require_protocol_fileOperations();
|
|
3767
|
+
Object.defineProperty(t, "FileOperationPatternKind", {
|
|
3768
|
+
enumerable: true,
|
|
3769
|
+
get: function() {
|
|
3770
|
+
return _.FileOperationPatternKind;
|
|
3771
|
+
}
|
|
3772
|
+
}), Object.defineProperty(t, "DidCreateFilesNotification", {
|
|
3773
|
+
enumerable: true,
|
|
3774
|
+
get: function() {
|
|
3775
|
+
return _.DidCreateFilesNotification;
|
|
3776
|
+
}
|
|
3777
|
+
}), Object.defineProperty(t, "WillCreateFilesRequest", {
|
|
3778
|
+
enumerable: true,
|
|
3779
|
+
get: function() {
|
|
3780
|
+
return _.WillCreateFilesRequest;
|
|
3781
|
+
}
|
|
3782
|
+
}), Object.defineProperty(t, "DidRenameFilesNotification", {
|
|
3783
|
+
enumerable: true,
|
|
3784
|
+
get: function() {
|
|
3785
|
+
return _.DidRenameFilesNotification;
|
|
3786
|
+
}
|
|
3787
|
+
}), Object.defineProperty(t, "WillRenameFilesRequest", {
|
|
3788
|
+
enumerable: true,
|
|
3789
|
+
get: function() {
|
|
3790
|
+
return _.WillRenameFilesRequest;
|
|
3791
|
+
}
|
|
3792
|
+
}), Object.defineProperty(t, "DidDeleteFilesNotification", {
|
|
3793
|
+
enumerable: true,
|
|
3794
|
+
get: function() {
|
|
3795
|
+
return _.DidDeleteFilesNotification;
|
|
3796
|
+
}
|
|
3797
|
+
}), Object.defineProperty(t, "WillDeleteFilesRequest", {
|
|
3798
|
+
enumerable: true,
|
|
3799
|
+
get: function() {
|
|
3800
|
+
return _.WillDeleteFilesRequest;
|
|
3801
|
+
}
|
|
3802
|
+
});
|
|
3803
|
+
var v = require_protocol_moniker();
|
|
3804
|
+
Object.defineProperty(t, "UniquenessLevel", {
|
|
3805
|
+
enumerable: true,
|
|
3806
|
+
get: function() {
|
|
3807
|
+
return v.UniquenessLevel;
|
|
3808
|
+
}
|
|
3809
|
+
}), Object.defineProperty(t, "MonikerKind", {
|
|
3810
|
+
enumerable: true,
|
|
3811
|
+
get: function() {
|
|
3812
|
+
return v.MonikerKind;
|
|
3813
|
+
}
|
|
3814
|
+
}), Object.defineProperty(t, "MonikerRequest", {
|
|
3815
|
+
enumerable: true,
|
|
3816
|
+
get: function() {
|
|
3817
|
+
return v.MonikerRequest;
|
|
3818
|
+
}
|
|
3819
|
+
});
|
|
3820
|
+
var y = require_protocol_typeHierarchy();
|
|
3821
|
+
Object.defineProperty(t, "TypeHierarchyPrepareRequest", {
|
|
3822
|
+
enumerable: true,
|
|
3823
|
+
get: function() {
|
|
3824
|
+
return y.TypeHierarchyPrepareRequest;
|
|
3825
|
+
}
|
|
3826
|
+
}), Object.defineProperty(t, "TypeHierarchySubtypesRequest", {
|
|
3827
|
+
enumerable: true,
|
|
3828
|
+
get: function() {
|
|
3829
|
+
return y.TypeHierarchySubtypesRequest;
|
|
3830
|
+
}
|
|
3831
|
+
}), Object.defineProperty(t, "TypeHierarchySupertypesRequest", {
|
|
3832
|
+
enumerable: true,
|
|
3833
|
+
get: function() {
|
|
3834
|
+
return y.TypeHierarchySupertypesRequest;
|
|
3835
|
+
}
|
|
3836
|
+
});
|
|
3837
|
+
var x = require_protocol_inlineValue();
|
|
3838
|
+
Object.defineProperty(t, "InlineValueRequest", {
|
|
3839
|
+
enumerable: true,
|
|
3840
|
+
get: function() {
|
|
3841
|
+
return x.InlineValueRequest;
|
|
3842
|
+
}
|
|
3843
|
+
}), Object.defineProperty(t, "InlineValueRefreshRequest", {
|
|
3844
|
+
enumerable: true,
|
|
3845
|
+
get: function() {
|
|
3846
|
+
return x.InlineValueRefreshRequest;
|
|
3847
|
+
}
|
|
3848
|
+
});
|
|
3849
|
+
var S = require_protocol_inlayHint();
|
|
3850
|
+
Object.defineProperty(t, "InlayHintRequest", {
|
|
3851
|
+
enumerable: true,
|
|
3852
|
+
get: function() {
|
|
3853
|
+
return S.InlayHintRequest;
|
|
3854
|
+
}
|
|
3855
|
+
}), Object.defineProperty(t, "InlayHintResolveRequest", {
|
|
3856
|
+
enumerable: true,
|
|
3857
|
+
get: function() {
|
|
3858
|
+
return S.InlayHintResolveRequest;
|
|
3859
|
+
}
|
|
3860
|
+
}), Object.defineProperty(t, "InlayHintRefreshRequest", {
|
|
3861
|
+
enumerable: true,
|
|
3862
|
+
get: function() {
|
|
3863
|
+
return S.InlayHintRefreshRequest;
|
|
3864
|
+
}
|
|
3865
|
+
});
|
|
3866
|
+
var C = require_protocol_diagnostic();
|
|
3867
|
+
Object.defineProperty(t, "DiagnosticServerCancellationData", {
|
|
3868
|
+
enumerable: true,
|
|
3869
|
+
get: function() {
|
|
3870
|
+
return C.DiagnosticServerCancellationData;
|
|
3871
|
+
}
|
|
3872
|
+
}), Object.defineProperty(t, "DocumentDiagnosticReportKind", {
|
|
3873
|
+
enumerable: true,
|
|
3874
|
+
get: function() {
|
|
3875
|
+
return C.DocumentDiagnosticReportKind;
|
|
3876
|
+
}
|
|
3877
|
+
}), Object.defineProperty(t, "DocumentDiagnosticRequest", {
|
|
3878
|
+
enumerable: true,
|
|
3879
|
+
get: function() {
|
|
3880
|
+
return C.DocumentDiagnosticRequest;
|
|
3881
|
+
}
|
|
3882
|
+
}), Object.defineProperty(t, "WorkspaceDiagnosticRequest", {
|
|
3883
|
+
enumerable: true,
|
|
3884
|
+
get: function() {
|
|
3885
|
+
return C.WorkspaceDiagnosticRequest;
|
|
3886
|
+
}
|
|
3887
|
+
}), Object.defineProperty(t, "DiagnosticRefreshRequest", {
|
|
3888
|
+
enumerable: true,
|
|
3889
|
+
get: function() {
|
|
3890
|
+
return C.DiagnosticRefreshRequest;
|
|
3891
|
+
}
|
|
3892
|
+
});
|
|
3893
|
+
var w = require_protocol_notebook();
|
|
3894
|
+
Object.defineProperty(t, "NotebookCellKind", {
|
|
3895
|
+
enumerable: true,
|
|
3896
|
+
get: function() {
|
|
3897
|
+
return w.NotebookCellKind;
|
|
3898
|
+
}
|
|
3899
|
+
}), Object.defineProperty(t, "ExecutionSummary", {
|
|
3900
|
+
enumerable: true,
|
|
3901
|
+
get: function() {
|
|
3902
|
+
return w.ExecutionSummary;
|
|
3903
|
+
}
|
|
3904
|
+
}), Object.defineProperty(t, "NotebookCell", {
|
|
3905
|
+
enumerable: true,
|
|
3906
|
+
get: function() {
|
|
3907
|
+
return w.NotebookCell;
|
|
3908
|
+
}
|
|
3909
|
+
}), Object.defineProperty(t, "NotebookDocument", {
|
|
3910
|
+
enumerable: true,
|
|
3911
|
+
get: function() {
|
|
3912
|
+
return w.NotebookDocument;
|
|
3913
|
+
}
|
|
3914
|
+
}), Object.defineProperty(t, "NotebookDocumentSyncRegistrationType", {
|
|
3915
|
+
enumerable: true,
|
|
3916
|
+
get: function() {
|
|
3917
|
+
return w.NotebookDocumentSyncRegistrationType;
|
|
3918
|
+
}
|
|
3919
|
+
}), Object.defineProperty(t, "DidOpenNotebookDocumentNotification", {
|
|
3920
|
+
enumerable: true,
|
|
3921
|
+
get: function() {
|
|
3922
|
+
return w.DidOpenNotebookDocumentNotification;
|
|
3923
|
+
}
|
|
3924
|
+
}), Object.defineProperty(t, "NotebookCellArrayChange", {
|
|
3925
|
+
enumerable: true,
|
|
3926
|
+
get: function() {
|
|
3927
|
+
return w.NotebookCellArrayChange;
|
|
3928
|
+
}
|
|
3929
|
+
}), Object.defineProperty(t, "DidChangeNotebookDocumentNotification", {
|
|
3930
|
+
enumerable: true,
|
|
3931
|
+
get: function() {
|
|
3932
|
+
return w.DidChangeNotebookDocumentNotification;
|
|
3933
|
+
}
|
|
3934
|
+
}), Object.defineProperty(t, "DidSaveNotebookDocumentNotification", {
|
|
3935
|
+
enumerable: true,
|
|
3936
|
+
get: function() {
|
|
3937
|
+
return w.DidSaveNotebookDocumentNotification;
|
|
3938
|
+
}
|
|
3939
|
+
}), Object.defineProperty(t, "DidCloseNotebookDocumentNotification", {
|
|
3940
|
+
enumerable: true,
|
|
3941
|
+
get: function() {
|
|
3942
|
+
return w.DidCloseNotebookDocumentNotification;
|
|
3943
|
+
}
|
|
3944
|
+
});
|
|
3945
|
+
var T = require_protocol_inlineCompletion();
|
|
3946
|
+
Object.defineProperty(t, "InlineCompletionRequest", {
|
|
3947
|
+
enumerable: true,
|
|
3948
|
+
get: function() {
|
|
3949
|
+
return T.InlineCompletionRequest;
|
|
3950
|
+
}
|
|
3951
|
+
});
|
|
3952
|
+
var E;
|
|
3953
|
+
(function(e) {
|
|
3954
|
+
function t2(e2) {
|
|
3955
|
+
let t3 = e2;
|
|
3956
|
+
return i.string(t3) || i.string(t3.language) || i.string(t3.scheme) || i.string(t3.pattern);
|
|
3957
|
+
}
|
|
3958
|
+
e.is = t2;
|
|
3959
|
+
})(E || (t.TextDocumentFilter = E = {}));
|
|
3960
|
+
var D;
|
|
3961
|
+
(function(e) {
|
|
3962
|
+
function t2(e2) {
|
|
3963
|
+
let t3 = e2;
|
|
3964
|
+
return i.objectLiteral(t3) && (i.string(t3.notebookType) || i.string(t3.scheme) || i.string(t3.pattern));
|
|
3965
|
+
}
|
|
3966
|
+
e.is = t2;
|
|
3967
|
+
})(D || (t.NotebookDocumentFilter = D = {}));
|
|
3968
|
+
var O;
|
|
3969
|
+
(function(e) {
|
|
3970
|
+
function t2(e2) {
|
|
3971
|
+
let t3 = e2;
|
|
3972
|
+
return i.objectLiteral(t3) && (i.string(t3.notebook) || D.is(t3.notebook)) && (t3.language === void 0 || i.string(t3.language));
|
|
3973
|
+
}
|
|
3974
|
+
e.is = t2;
|
|
3975
|
+
})(O || (t.NotebookCellTextDocumentFilter = O = {}));
|
|
3976
|
+
var k;
|
|
3977
|
+
(function(e) {
|
|
3978
|
+
function t2(e2) {
|
|
3979
|
+
if (!Array.isArray(e2)) return false;
|
|
3980
|
+
for (let t3 of e2) if (!i.string(t3) && !E.is(t3) && !O.is(t3)) return false;
|
|
3981
|
+
return true;
|
|
3982
|
+
}
|
|
3983
|
+
e.is = t2;
|
|
3984
|
+
})(k || (t.DocumentSelector = k = {}));
|
|
3985
|
+
var A;
|
|
3986
|
+
(function(e) {
|
|
3987
|
+
e.method = "client/registerCapability", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolRequestType(e.method);
|
|
3988
|
+
})(A || (t.RegistrationRequest = A = {}));
|
|
3989
|
+
var j;
|
|
3990
|
+
(function(e) {
|
|
3991
|
+
e.method = "client/unregisterCapability", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolRequestType(e.method);
|
|
3992
|
+
})(j || (t.UnregistrationRequest = j = {}));
|
|
3993
|
+
var M;
|
|
3994
|
+
(function(e) {
|
|
3995
|
+
e.Create = "create", e.Rename = "rename", e.Delete = "delete";
|
|
3996
|
+
})(M || (t.ResourceOperationKind = M = {}));
|
|
3997
|
+
var N;
|
|
3998
|
+
(function(e) {
|
|
3999
|
+
e.Abort = "abort", e.Transactional = "transactional", e.TextOnlyTransactional = "textOnlyTransactional", e.Undo = "undo";
|
|
4000
|
+
})(N || (t.FailureHandlingKind = N = {}));
|
|
4001
|
+
var P;
|
|
4002
|
+
(function(e) {
|
|
4003
|
+
e.UTF8 = "utf-8", e.UTF16 = "utf-16", e.UTF32 = "utf-32";
|
|
4004
|
+
})(P || (t.PositionEncodingKind = P = {}));
|
|
4005
|
+
var F;
|
|
4006
|
+
(function(e) {
|
|
4007
|
+
function t2(e2) {
|
|
4008
|
+
let t3 = e2;
|
|
4009
|
+
return t3 && i.string(t3.id) && t3.id.length > 0;
|
|
4010
|
+
}
|
|
4011
|
+
e.hasId = t2;
|
|
4012
|
+
})(F || (t.StaticRegistrationOptions = F = {}));
|
|
4013
|
+
var I;
|
|
4014
|
+
(function(e) {
|
|
4015
|
+
function t2(e2) {
|
|
4016
|
+
let t3 = e2;
|
|
4017
|
+
return t3 && (t3.documentSelector === null || k.is(t3.documentSelector));
|
|
4018
|
+
}
|
|
4019
|
+
e.is = t2;
|
|
4020
|
+
})(I || (t.TextDocumentRegistrationOptions = I = {}));
|
|
4021
|
+
var L;
|
|
4022
|
+
(function(e) {
|
|
4023
|
+
function t2(e2) {
|
|
4024
|
+
let t3 = e2;
|
|
4025
|
+
return i.objectLiteral(t3) && (t3.workDoneProgress === void 0 || i.boolean(t3.workDoneProgress));
|
|
4026
|
+
}
|
|
4027
|
+
e.is = t2;
|
|
4028
|
+
function n2(e2) {
|
|
4029
|
+
let t3 = e2;
|
|
4030
|
+
return t3 && i.boolean(t3.workDoneProgress);
|
|
4031
|
+
}
|
|
4032
|
+
e.hasWorkDoneProgress = n2;
|
|
4033
|
+
})(L || (t.WorkDoneProgressOptions = L = {}));
|
|
4034
|
+
var R;
|
|
4035
|
+
(function(e) {
|
|
4036
|
+
e.method = "initialize", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4037
|
+
})(R || (t.InitializeRequest = R = {}));
|
|
4038
|
+
var z;
|
|
4039
|
+
(function(e) {
|
|
4040
|
+
e.unknownProtocolVersion = 1;
|
|
4041
|
+
})(z || (t.InitializeErrorCodes = z = {}));
|
|
4042
|
+
var B;
|
|
4043
|
+
(function(e) {
|
|
4044
|
+
e.method = "initialized", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4045
|
+
})(B || (t.InitializedNotification = B = {}));
|
|
4046
|
+
var V;
|
|
4047
|
+
(function(e) {
|
|
4048
|
+
e.method = "shutdown", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType0(e.method);
|
|
4049
|
+
})(V || (t.ShutdownRequest = V = {}));
|
|
4050
|
+
var H;
|
|
4051
|
+
(function(e) {
|
|
4052
|
+
e.method = "exit", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType0(e.method);
|
|
4053
|
+
})(H || (t.ExitNotification = H = {}));
|
|
4054
|
+
var U;
|
|
4055
|
+
(function(e) {
|
|
4056
|
+
e.method = "workspace/didChangeConfiguration", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4057
|
+
})(U || (t.DidChangeConfigurationNotification = U = {}));
|
|
4058
|
+
var We;
|
|
4059
|
+
(function(e) {
|
|
4060
|
+
e.Error = 1, e.Warning = 2, e.Info = 3, e.Log = 4, e.Debug = 5;
|
|
4061
|
+
})(We || (t.MessageType = We = {}));
|
|
4062
|
+
var Ge;
|
|
4063
|
+
(function(e) {
|
|
4064
|
+
e.method = "window/showMessage", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolNotificationType(e.method);
|
|
4065
|
+
})(Ge || (t.ShowMessageNotification = Ge = {}));
|
|
4066
|
+
var Ke;
|
|
4067
|
+
(function(e) {
|
|
4068
|
+
e.method = "window/showMessageRequest", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolRequestType(e.method);
|
|
4069
|
+
})(Ke || (t.ShowMessageRequest = Ke = {}));
|
|
4070
|
+
var W;
|
|
4071
|
+
(function(e) {
|
|
4072
|
+
e.method = "window/logMessage", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolNotificationType(e.method);
|
|
4073
|
+
})(W || (t.LogMessageNotification = W = {}));
|
|
4074
|
+
var qe;
|
|
4075
|
+
(function(e) {
|
|
4076
|
+
e.method = "telemetry/event", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolNotificationType(e.method);
|
|
4077
|
+
})(qe || (t.TelemetryEventNotification = qe = {}));
|
|
4078
|
+
var Je;
|
|
4079
|
+
(function(e) {
|
|
4080
|
+
e.None = 0, e.Full = 1, e.Incremental = 2;
|
|
4081
|
+
})(Je || (t.TextDocumentSyncKind = Je = {}));
|
|
4082
|
+
var Ye;
|
|
4083
|
+
(function(e) {
|
|
4084
|
+
e.method = "textDocument/didOpen", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4085
|
+
})(Ye || (t.DidOpenTextDocumentNotification = Ye = {}));
|
|
4086
|
+
var Xe;
|
|
4087
|
+
(function(e) {
|
|
4088
|
+
function t2(e2) {
|
|
4089
|
+
let t3 = e2;
|
|
4090
|
+
return t3 != null && typeof t3.text == "string" && t3.range !== void 0 && (t3.rangeLength === void 0 || typeof t3.rangeLength == "number");
|
|
4091
|
+
}
|
|
4092
|
+
e.isIncremental = t2;
|
|
4093
|
+
function n2(e2) {
|
|
4094
|
+
let t3 = e2;
|
|
4095
|
+
return t3 != null && typeof t3.text == "string" && t3.range === void 0 && t3.rangeLength === void 0;
|
|
4096
|
+
}
|
|
4097
|
+
e.isFull = n2;
|
|
4098
|
+
})(Xe || (t.TextDocumentContentChangeEvent = Xe = {}));
|
|
4099
|
+
var Ze;
|
|
4100
|
+
(function(e) {
|
|
4101
|
+
e.method = "textDocument/didChange", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4102
|
+
})(Ze || (t.DidChangeTextDocumentNotification = Ze = {}));
|
|
4103
|
+
var Qe;
|
|
4104
|
+
(function(e) {
|
|
4105
|
+
e.method = "textDocument/didClose", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4106
|
+
})(Qe || (t.DidCloseTextDocumentNotification = Qe = {}));
|
|
4107
|
+
var $e;
|
|
4108
|
+
(function(e) {
|
|
4109
|
+
e.method = "textDocument/didSave", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4110
|
+
})($e || (t.DidSaveTextDocumentNotification = $e = {}));
|
|
4111
|
+
var G;
|
|
4112
|
+
(function(e) {
|
|
4113
|
+
e.Manual = 1, e.AfterDelay = 2, e.FocusOut = 3;
|
|
4114
|
+
})(G || (t.TextDocumentSaveReason = G = {}));
|
|
4115
|
+
var et;
|
|
4116
|
+
(function(e) {
|
|
4117
|
+
e.method = "textDocument/willSave", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4118
|
+
})(et || (t.WillSaveTextDocumentNotification = et = {}));
|
|
4119
|
+
var tt;
|
|
4120
|
+
(function(e) {
|
|
4121
|
+
e.method = "textDocument/willSaveWaitUntil", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4122
|
+
})(tt || (t.WillSaveTextDocumentWaitUntilRequest = tt = {}));
|
|
4123
|
+
var nt;
|
|
4124
|
+
(function(e) {
|
|
4125
|
+
e.method = "workspace/didChangeWatchedFiles", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolNotificationType(e.method);
|
|
4126
|
+
})(nt || (t.DidChangeWatchedFilesNotification = nt = {}));
|
|
4127
|
+
var rt;
|
|
4128
|
+
(function(e) {
|
|
4129
|
+
e.Created = 1, e.Changed = 2, e.Deleted = 3;
|
|
4130
|
+
})(rt || (t.FileChangeType = rt = {}));
|
|
4131
|
+
var it;
|
|
4132
|
+
(function(e) {
|
|
4133
|
+
function t2(e2) {
|
|
4134
|
+
let t3 = e2;
|
|
4135
|
+
return i.objectLiteral(t3) && (r.URI.is(t3.baseUri) || r.WorkspaceFolder.is(t3.baseUri)) && i.string(t3.pattern);
|
|
4136
|
+
}
|
|
4137
|
+
e.is = t2;
|
|
4138
|
+
})(it || (t.RelativePattern = it = {}));
|
|
4139
|
+
var at;
|
|
4140
|
+
(function(e) {
|
|
4141
|
+
e.Create = 1, e.Change = 2, e.Delete = 4;
|
|
4142
|
+
})(at || (t.WatchKind = at = {}));
|
|
4143
|
+
var ot;
|
|
4144
|
+
(function(e) {
|
|
4145
|
+
e.method = "textDocument/publishDiagnostics", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolNotificationType(e.method);
|
|
4146
|
+
})(ot || (t.PublishDiagnosticsNotification = ot = {}));
|
|
4147
|
+
var st;
|
|
4148
|
+
(function(e) {
|
|
4149
|
+
e.Invoked = 1, e.TriggerCharacter = 2, e.TriggerForIncompleteCompletions = 3;
|
|
4150
|
+
})(st || (t.CompletionTriggerKind = st = {}));
|
|
4151
|
+
var ct;
|
|
4152
|
+
(function(e) {
|
|
4153
|
+
e.method = "textDocument/completion", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4154
|
+
})(ct || (t.CompletionRequest = ct = {}));
|
|
4155
|
+
var lt;
|
|
4156
|
+
(function(e) {
|
|
4157
|
+
e.method = "completionItem/resolve", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4158
|
+
})(lt || (t.CompletionResolveRequest = lt = {}));
|
|
4159
|
+
var ut;
|
|
4160
|
+
(function(e) {
|
|
4161
|
+
e.method = "textDocument/hover", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4162
|
+
})(ut || (t.HoverRequest = ut = {}));
|
|
4163
|
+
var K;
|
|
4164
|
+
(function(e) {
|
|
4165
|
+
e.Invoked = 1, e.TriggerCharacter = 2, e.ContentChange = 3;
|
|
4166
|
+
})(K || (t.SignatureHelpTriggerKind = K = {}));
|
|
4167
|
+
var dt;
|
|
4168
|
+
(function(e) {
|
|
4169
|
+
e.method = "textDocument/signatureHelp", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4170
|
+
})(dt || (t.SignatureHelpRequest = dt = {}));
|
|
4171
|
+
var ft;
|
|
4172
|
+
(function(e) {
|
|
4173
|
+
e.method = "textDocument/definition", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4174
|
+
})(ft || (t.DefinitionRequest = ft = {}));
|
|
4175
|
+
var q;
|
|
4176
|
+
(function(e) {
|
|
4177
|
+
e.method = "textDocument/references", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4178
|
+
})(q || (t.ReferencesRequest = q = {}));
|
|
4179
|
+
var pt;
|
|
4180
|
+
(function(e) {
|
|
4181
|
+
e.method = "textDocument/documentHighlight", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4182
|
+
})(pt || (t.DocumentHighlightRequest = pt = {}));
|
|
4183
|
+
var J;
|
|
4184
|
+
(function(e) {
|
|
4185
|
+
e.method = "textDocument/documentSymbol", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4186
|
+
})(J || (t.DocumentSymbolRequest = J = {}));
|
|
4187
|
+
var mt;
|
|
4188
|
+
(function(e) {
|
|
4189
|
+
e.method = "textDocument/codeAction", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4190
|
+
})(mt || (t.CodeActionRequest = mt = {}));
|
|
4191
|
+
var Y;
|
|
4192
|
+
(function(e) {
|
|
4193
|
+
e.method = "codeAction/resolve", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4194
|
+
})(Y || (t.CodeActionResolveRequest = Y = {}));
|
|
4195
|
+
var X;
|
|
4196
|
+
(function(e) {
|
|
4197
|
+
e.method = "workspace/symbol", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4198
|
+
})(X || (t.WorkspaceSymbolRequest = X = {}));
|
|
4199
|
+
var ht;
|
|
4200
|
+
(function(e) {
|
|
4201
|
+
e.method = "workspaceSymbol/resolve", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4202
|
+
})(ht || (t.WorkspaceSymbolResolveRequest = ht = {}));
|
|
4203
|
+
var gt;
|
|
4204
|
+
(function(e) {
|
|
4205
|
+
e.method = "textDocument/codeLens", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4206
|
+
})(gt || (t.CodeLensRequest = gt = {}));
|
|
4207
|
+
var Z;
|
|
4208
|
+
(function(e) {
|
|
4209
|
+
e.method = "codeLens/resolve", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4210
|
+
})(Z || (t.CodeLensResolveRequest = Z = {}));
|
|
4211
|
+
var _t;
|
|
4212
|
+
(function(e) {
|
|
4213
|
+
e.method = "workspace/codeLens/refresh", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolRequestType0(e.method);
|
|
4214
|
+
})(_t || (t.CodeLensRefreshRequest = _t = {}));
|
|
4215
|
+
var vt;
|
|
4216
|
+
(function(e) {
|
|
4217
|
+
e.method = "textDocument/documentLink", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4218
|
+
})(vt || (t.DocumentLinkRequest = vt = {}));
|
|
4219
|
+
var Q;
|
|
4220
|
+
(function(e) {
|
|
4221
|
+
e.method = "documentLink/resolve", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4222
|
+
})(Q || (t.DocumentLinkResolveRequest = Q = {}));
|
|
4223
|
+
var yt;
|
|
4224
|
+
(function(e) {
|
|
4225
|
+
e.method = "textDocument/formatting", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4226
|
+
})(yt || (t.DocumentFormattingRequest = yt = {}));
|
|
4227
|
+
var $;
|
|
4228
|
+
(function(e) {
|
|
4229
|
+
e.method = "textDocument/rangeFormatting", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4230
|
+
})($ || (t.DocumentRangeFormattingRequest = $ = {}));
|
|
4231
|
+
var bt;
|
|
4232
|
+
(function(e) {
|
|
4233
|
+
e.method = "textDocument/rangesFormatting", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4234
|
+
})(bt || (t.DocumentRangesFormattingRequest = bt = {}));
|
|
4235
|
+
var xt;
|
|
4236
|
+
(function(e) {
|
|
4237
|
+
e.method = "textDocument/onTypeFormatting", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4238
|
+
})(xt || (t.DocumentOnTypeFormattingRequest = xt = {}));
|
|
4239
|
+
var St;
|
|
4240
|
+
(function(e) {
|
|
4241
|
+
e.Identifier = 1;
|
|
4242
|
+
})(St || (t.PrepareSupportDefaultBehavior = St = {}));
|
|
4243
|
+
var Ct;
|
|
4244
|
+
(function(e) {
|
|
4245
|
+
e.method = "textDocument/rename", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4246
|
+
})(Ct || (t.RenameRequest = Ct = {}));
|
|
4247
|
+
var wt;
|
|
4248
|
+
(function(e) {
|
|
4249
|
+
e.method = "textDocument/prepareRename", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4250
|
+
})(wt || (t.PrepareRenameRequest = wt = {}));
|
|
4251
|
+
var Tt;
|
|
4252
|
+
(function(e) {
|
|
4253
|
+
e.method = "workspace/executeCommand", e.messageDirection = n.MessageDirection.clientToServer, e.type = new n.ProtocolRequestType(e.method);
|
|
4254
|
+
})(Tt || (t.ExecuteCommandRequest = Tt = {}));
|
|
4255
|
+
var Et;
|
|
4256
|
+
(function(e) {
|
|
4257
|
+
e.method = "workspace/applyEdit", e.messageDirection = n.MessageDirection.serverToClient, e.type = new n.ProtocolRequestType("workspace/applyEdit");
|
|
4258
|
+
})(Et || (t.ApplyWorkspaceEditRequest = Et = {}));
|
|
4259
|
+
})), require_connection = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
4260
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.createProtocolConnection = void 0;
|
|
4261
|
+
var t = require_main$1();
|
|
4262
|
+
function n(e2, n2, r, i) {
|
|
4263
|
+
return t.ConnectionStrategy.is(i) && (i = { connectionStrategy: i }), (0, t.createMessageConnection)(e2, n2, r, i);
|
|
4264
|
+
}
|
|
4265
|
+
e.createProtocolConnection = n;
|
|
4266
|
+
})), require_api = /* @__PURE__ */ __commonJSMin(((t) => {
|
|
4267
|
+
var n = t && t.__createBinding || (Object.create ? (function(e, t2, n2, r2) {
|
|
4268
|
+
r2 === void 0 && (r2 = n2);
|
|
4269
|
+
var i2 = Object.getOwnPropertyDescriptor(t2, n2);
|
|
4270
|
+
(!i2 || ("get" in i2 ? !t2.__esModule : i2.writable || i2.configurable)) && (i2 = {
|
|
4271
|
+
enumerable: true,
|
|
4272
|
+
get: function() {
|
|
4273
|
+
return t2[n2];
|
|
4274
|
+
}
|
|
4275
|
+
}), Object.defineProperty(e, r2, i2);
|
|
4276
|
+
}) : (function(e, t2, n2, r2) {
|
|
4277
|
+
r2 === void 0 && (r2 = n2), e[r2] = t2[n2];
|
|
4278
|
+
})), r = t && t.__exportStar || function(e, t2) {
|
|
4279
|
+
for (var r2 in e) r2 !== "default" && !Object.prototype.hasOwnProperty.call(t2, r2) && n(t2, e, r2);
|
|
4280
|
+
};
|
|
4281
|
+
Object.defineProperty(t, "__esModule", { value: true }), t.LSPErrorCodes = t.createProtocolConnection = void 0, r(require_main$1(), t), r((init_main(), __toCommonJS(main_exports)), t), r(require_messages(), t), r(require_protocol(), t);
|
|
4282
|
+
var i = require_connection();
|
|
4283
|
+
Object.defineProperty(t, "createProtocolConnection", {
|
|
4284
|
+
enumerable: true,
|
|
4285
|
+
get: function() {
|
|
4286
|
+
return i.createProtocolConnection;
|
|
4287
|
+
}
|
|
4288
|
+
});
|
|
4289
|
+
var a;
|
|
4290
|
+
(function(e) {
|
|
4291
|
+
e.lspReservedErrorRangeStart = -32899, e.RequestFailed = -32803, e.ServerCancelled = -32802, e.ContentModified = -32801, e.RequestCancelled = -32800, e.lspReservedErrorRangeEnd = -32800;
|
|
4292
|
+
})(a || (t.LSPErrorCodes = a = {}));
|
|
4293
|
+
})), require_main = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
4294
|
+
var t = e && e.__createBinding || (Object.create ? (function(e2, t2, n2, r2) {
|
|
4295
|
+
r2 === void 0 && (r2 = n2);
|
|
4296
|
+
var i2 = Object.getOwnPropertyDescriptor(t2, n2);
|
|
4297
|
+
(!i2 || ("get" in i2 ? !t2.__esModule : i2.writable || i2.configurable)) && (i2 = {
|
|
4298
|
+
enumerable: true,
|
|
4299
|
+
get: function() {
|
|
4300
|
+
return t2[n2];
|
|
4301
|
+
}
|
|
4302
|
+
}), Object.defineProperty(e2, r2, i2);
|
|
4303
|
+
}) : (function(e2, t2, n2, r2) {
|
|
4304
|
+
r2 === void 0 && (r2 = n2), e2[r2] = t2[n2];
|
|
4305
|
+
})), n = e && e.__exportStar || function(e2, n2) {
|
|
4306
|
+
for (var r2 in e2) r2 !== "default" && !Object.prototype.hasOwnProperty.call(n2, r2) && t(n2, e2, r2);
|
|
4307
|
+
};
|
|
4308
|
+
Object.defineProperty(e, "__esModule", { value: true }), e.createProtocolConnection = void 0;
|
|
4309
|
+
var r = require_browser();
|
|
4310
|
+
n(require_browser(), e), n(require_api(), e);
|
|
4311
|
+
function i(e2, t2, n2, i2) {
|
|
4312
|
+
return (0, r.createMessageConnection)(e2, t2, n2, i2);
|
|
4313
|
+
}
|
|
4314
|
+
e.createProtocolConnection = i;
|
|
4315
|
+
}));
|
|
4316
|
+
export {
|
|
4317
|
+
init_main as i,
|
|
4318
|
+
Position as n,
|
|
4319
|
+
Range as r,
|
|
4320
|
+
require_main as t
|
|
4321
|
+
};
|