@plumile/ui 0.1.113 → 0.1.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/_virtual/_rolldown/runtime.js +5 -5
- package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7EHR7CIX.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js +37 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-LIHQZDEY.js → chunk-BR22UD5L.js} +18 -21
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +32 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +56 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20648 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +33 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-WXDBUCRP.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-BLDUP644.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js.map +1 -1
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +105 -105
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +6 -6
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +53 -53
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +5 -5
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +26 -26
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/util.js +54 -54
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +45 -45
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/json.js +18 -18
- package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseAssign.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseClone.js +24 -24
- package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseGetAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +12 -12
- package/lib/esm/node_modules/lodash-es/_baseIteratee.js +4 -4
- package/lib/esm/node_modules/lodash-es/_baseMatchesProperty.js +9 -9
- package/lib/esm/node_modules/lodash-es/_baseMerge.js +6 -6
- package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +15 -15
- package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +14 -14
- package/lib/esm/node_modules/lodash-es/_baseSet.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseSetToString.js +5 -5
- package/lib/esm/node_modules/lodash-es/_baseToString.js +11 -11
- package/lib/esm/node_modules/lodash-es/_baseUniq.js +7 -7
- package/lib/esm/node_modules/lodash-es/_copySymbols.js +3 -3
- package/lib/esm/node_modules/lodash-es/_createSet.js +6 -6
- package/lib/esm/node_modules/lodash-es/_equalByTag.js +18 -18
- package/lib/esm/node_modules/lodash-es/_flatRest.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_hasPath.js +5 -5
- package/lib/esm/node_modules/lodash-es/_initCloneObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
- package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +6 -6
- package/lib/esm/node_modules/lodash-es/_mapCacheClear.js +6 -6
- package/lib/esm/node_modules/lodash-es/findIndex.js +4 -4
- package/lib/esm/node_modules/lodash-es/forEach.js +3 -3
- package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/isEmpty.js +8 -8
- package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/isString.js +3 -3
- package/lib/esm/node_modules/lodash-es/keys.js +4 -4
- package/lib/esm/node_modules/lodash-es/keysIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/map.js +3 -3
- package/lib/esm/node_modules/lodash-es/mapValues.js +5 -5
- package/lib/esm/node_modules/lodash-es/max.js +3 -3
- package/lib/esm/node_modules/lodash-es/min.js +3 -3
- package/lib/esm/node_modules/lodash-es/minBy.js +3 -3
- package/lib/esm/node_modules/lodash-es/reduce.js +5 -5
- package/lib/esm/node_modules/lodash-es/size.js +4 -4
- package/lib/esm/node_modules/lodash-es/sortBy.js +6 -6
- package/lib/esm/node_modules/lodash-es/union.js +6 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +146 -146
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +1 -1
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +374 -374
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
- package/package.json +2 -2
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -27
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -155
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -45
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -89
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -39
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -600
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -29
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -13
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -12
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -14
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +0 -40
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -35
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1210
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -36
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/lib/esm/node_modules/chevrotain/lib/src/api.js +0 -10
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -14
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -17
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -53
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -81
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -37
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -279
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -27
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -32
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -18
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -269
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -8
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -45
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -245
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -34
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -60
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -118
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -50
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -170
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -47
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -111
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -25
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -316
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -291
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -147
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -96
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -15
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -439
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -13
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -257
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -157
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -19
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -68
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -43
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -365
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -197
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -35
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/lib/esm/node_modules/langium/lib/default-module.js +0 -89
- package/lib/esm/node_modules/langium/lib/default-module.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/dependency-injection.js +0 -62
- package/lib/esm/node_modules/langium/lib/dependency-injection.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -15
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -40
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -307
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js +0 -900
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js +0 -17
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js +0 -13
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -11
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -164
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -15
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js +0 -397
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/lexer.js +0 -54
- package/lib/esm/node_modules/langium/lib/parser/lexer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -278
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js +0 -65
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js +0 -82
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/linker.js +0 -195
- package/lib/esm/node_modules/langium/lib/references/linker.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/name-provider.js +0 -17
- package/lib/esm/node_modules/langium/lib/references/name-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/references.js +0 -80
- package/lib/esm/node_modules/langium/lib/references/references.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js +0 -39
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js +0 -38
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope.js +0 -46
- package/lib/esm/node_modules/langium/lib/references/scope.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js +0 -129
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -149
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/service-registry.js +0 -41
- package/lib/esm/node_modules/langium/lib/service-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/syntax-tree.js +0 -74
- package/lib/esm/node_modules/langium/lib/syntax-tree.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js +0 -124
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/caching.js +0 -84
- package/lib/esm/node_modules/langium/lib/utils/caching.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/collections.js +0 -89
- package/lib/esm/node_modules/langium/lib/utils/collections.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js +0 -77
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/disposable.js +0 -12
- package/lib/esm/node_modules/langium/lib/utils/disposable.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/errors.js +0 -13
- package/lib/esm/node_modules/langium/lib/utils/errors.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/event.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/event.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -26
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -221
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js +0 -31
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -146
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/stream.js +0 -331
- package/lib/esm/node_modules/langium/lib/utils/stream.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js +0 -111
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js +0 -213
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js +0 -90
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -61
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -32
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js +0 -55
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js +0 -200
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/documents.js +0 -146
- package/lib/esm/node_modules/langium/lib/workspace/documents.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -37
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js +0 -53
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -46
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -70
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/flatMap.js +0 -10
- package/lib/esm/node_modules/lodash-es/flatMap.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/uniqBy.js +0 -10
- package/lib/esm/node_modules/lodash-es/uniqBy.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -32
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -40
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -16
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -37
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -39
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -678
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -130
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -28
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -11
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -56
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -124
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -341
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -651
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -17
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -239
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -97
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -133
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -89
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -165
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -48
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -62
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -142
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1088
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js +0 -377
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js.map +0 -1
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractMessageBuffer = void 0;
|
|
5
|
-
var t = 13, n = 10, r = "\r\n";
|
|
6
|
-
e.AbstractMessageBuffer = class {
|
|
7
|
-
constructor(e = "utf-8") {
|
|
8
|
-
this._encoding = e, this._chunks = [], this._totalLength = 0;
|
|
9
|
-
}
|
|
10
|
-
get encoding() {
|
|
11
|
-
return this._encoding;
|
|
12
|
-
}
|
|
13
|
-
append(e) {
|
|
14
|
-
let t = typeof e == "string" ? this.fromString(e, this._encoding) : e;
|
|
15
|
-
this._chunks.push(t), this._totalLength += t.byteLength;
|
|
16
|
-
}
|
|
17
|
-
tryReadHeaders(e = !1) {
|
|
18
|
-
if (this._chunks.length === 0) return;
|
|
19
|
-
let i = 0, a = 0, o = 0, s = 0;
|
|
20
|
-
row: for (; a < this._chunks.length;) {
|
|
21
|
-
let e = this._chunks[a];
|
|
22
|
-
o = 0;
|
|
23
|
-
column: for (; o < e.length;) {
|
|
24
|
-
switch (e[o]) {
|
|
25
|
-
case t:
|
|
26
|
-
switch (i) {
|
|
27
|
-
case 0:
|
|
28
|
-
i = 1;
|
|
29
|
-
break;
|
|
30
|
-
case 2:
|
|
31
|
-
i = 3;
|
|
32
|
-
break;
|
|
33
|
-
default: i = 0;
|
|
34
|
-
}
|
|
35
|
-
break;
|
|
36
|
-
case n:
|
|
37
|
-
switch (i) {
|
|
38
|
-
case 1:
|
|
39
|
-
i = 2;
|
|
40
|
-
break;
|
|
41
|
-
case 3:
|
|
42
|
-
i = 4, o++;
|
|
43
|
-
break row;
|
|
44
|
-
default: i = 0;
|
|
45
|
-
}
|
|
46
|
-
break;
|
|
47
|
-
default: i = 0;
|
|
48
|
-
}
|
|
49
|
-
o++;
|
|
50
|
-
}
|
|
51
|
-
s += e.byteLength, a++;
|
|
52
|
-
}
|
|
53
|
-
if (i !== 4) return;
|
|
54
|
-
let c = this._read(s + o), l = /* @__PURE__ */ new Map(), u = this.toString(c, "ascii").split(r);
|
|
55
|
-
if (u.length < 2) return l;
|
|
56
|
-
for (let t = 0; t < u.length - 2; t++) {
|
|
57
|
-
let n = u[t], r = n.indexOf(":");
|
|
58
|
-
if (r === -1) throw Error(`Message header must separate key and value using ':'\n${n}`);
|
|
59
|
-
let i = n.substr(0, r), a = n.substr(r + 1).trim();
|
|
60
|
-
l.set(e ? i.toLowerCase() : i, a);
|
|
61
|
-
}
|
|
62
|
-
return l;
|
|
63
|
-
}
|
|
64
|
-
tryReadBody(e) {
|
|
65
|
-
if (!(this._totalLength < e)) return this._read(e);
|
|
66
|
-
}
|
|
67
|
-
get numberOfBytes() {
|
|
68
|
-
return this._totalLength;
|
|
69
|
-
}
|
|
70
|
-
_read(e) {
|
|
71
|
-
if (e === 0) return this.emptyBuffer();
|
|
72
|
-
if (e > this._totalLength) throw Error("Cannot read so many bytes!");
|
|
73
|
-
if (this._chunks[0].byteLength === e) {
|
|
74
|
-
let t = this._chunks[0];
|
|
75
|
-
return this._chunks.shift(), this._totalLength -= e, this.asNative(t);
|
|
76
|
-
}
|
|
77
|
-
if (this._chunks[0].byteLength > e) {
|
|
78
|
-
let t = this._chunks[0], n = this.asNative(t, e);
|
|
79
|
-
return this._chunks[0] = t.slice(e), this._totalLength -= e, n;
|
|
80
|
-
}
|
|
81
|
-
let t = this.allocNative(e), n = 0;
|
|
82
|
-
for (; e > 0;) {
|
|
83
|
-
let r = this._chunks[0];
|
|
84
|
-
if (r.byteLength > e) {
|
|
85
|
-
let i = r.slice(0, e);
|
|
86
|
-
t.set(i, n), n += e, this._chunks[0] = r.slice(e), this._totalLength -= e, e -= e;
|
|
87
|
-
} else t.set(r, n), n += r.byteLength, this._chunks.shift(), this._totalLength -= r.byteLength, e -= r.byteLength;
|
|
88
|
-
}
|
|
89
|
-
return t;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
}));
|
|
93
|
-
//#endregion
|
|
94
|
-
export default t();
|
|
95
|
-
export { t as require_messageBuffer };
|
|
96
|
-
|
|
97
|
-
//# sourceMappingURL=messageBuffer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messageBuffer.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"],"sourcesContent":["\"use strict\";\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AbstractMessageBuffer = void 0;\nconst CR = 13;\nconst LF = 10;\nconst CRLF = '\\r\\n';\nclass AbstractMessageBuffer {\n constructor(encoding = 'utf-8') {\n this._encoding = encoding;\n this._chunks = [];\n this._totalLength = 0;\n }\n get encoding() {\n return this._encoding;\n }\n append(chunk) {\n const toAppend = typeof chunk === 'string' ? this.fromString(chunk, this._encoding) : chunk;\n this._chunks.push(toAppend);\n this._totalLength += toAppend.byteLength;\n }\n tryReadHeaders(lowerCaseKeys = false) {\n if (this._chunks.length === 0) {\n return undefined;\n }\n let state = 0;\n let chunkIndex = 0;\n let offset = 0;\n let chunkBytesRead = 0;\n row: while (chunkIndex < this._chunks.length) {\n const chunk = this._chunks[chunkIndex];\n offset = 0;\n column: while (offset < chunk.length) {\n const value = chunk[offset];\n switch (value) {\n case CR:\n switch (state) {\n case 0:\n state = 1;\n break;\n case 2:\n state = 3;\n break;\n default:\n state = 0;\n }\n break;\n case LF:\n switch (state) {\n case 1:\n state = 2;\n break;\n case 3:\n state = 4;\n offset++;\n break row;\n default:\n state = 0;\n }\n break;\n default:\n state = 0;\n }\n offset++;\n }\n chunkBytesRead += chunk.byteLength;\n chunkIndex++;\n }\n if (state !== 4) {\n return undefined;\n }\n // The buffer contains the two CRLF at the end. So we will\n // have two empty lines after the split at the end as well.\n const buffer = this._read(chunkBytesRead + offset);\n const result = new Map();\n const headers = this.toString(buffer, 'ascii').split(CRLF);\n if (headers.length < 2) {\n return result;\n }\n for (let i = 0; i < headers.length - 2; i++) {\n const header = headers[i];\n const index = header.indexOf(':');\n if (index === -1) {\n throw new Error(`Message header must separate key and value using ':'\\n${header}`);\n }\n const key = header.substr(0, index);\n const value = header.substr(index + 1).trim();\n result.set(lowerCaseKeys ? key.toLowerCase() : key, value);\n }\n return result;\n }\n tryReadBody(length) {\n if (this._totalLength < length) {\n return undefined;\n }\n return this._read(length);\n }\n get numberOfBytes() {\n return this._totalLength;\n }\n _read(byteCount) {\n if (byteCount === 0) {\n return this.emptyBuffer();\n }\n if (byteCount > this._totalLength) {\n throw new Error(`Cannot read so many bytes!`);\n }\n if (this._chunks[0].byteLength === byteCount) {\n // super fast path, precisely first chunk must be returned\n const chunk = this._chunks[0];\n this._chunks.shift();\n this._totalLength -= byteCount;\n return this.asNative(chunk);\n }\n if (this._chunks[0].byteLength > byteCount) {\n // fast path, the reading is entirely within the first chunk\n const chunk = this._chunks[0];\n const result = this.asNative(chunk, byteCount);\n this._chunks[0] = chunk.slice(byteCount);\n this._totalLength -= byteCount;\n return result;\n }\n const result = this.allocNative(byteCount);\n let resultOffset = 0;\n let chunkIndex = 0;\n while (byteCount > 0) {\n const chunk = this._chunks[chunkIndex];\n if (chunk.byteLength > byteCount) {\n // this chunk will survive\n const chunkPart = chunk.slice(0, byteCount);\n result.set(chunkPart, resultOffset);\n resultOffset += byteCount;\n this._chunks[chunkIndex] = chunk.slice(byteCount);\n this._totalLength -= byteCount;\n byteCount -= byteCount;\n }\n else {\n // this chunk will be entirely read\n result.set(chunk, resultOffset);\n resultOffset += chunk.byteLength;\n this._chunks.shift();\n this._totalLength -= chunk.byteLength;\n byteCount -= chunk.byteLength;\n }\n }\n return result;\n }\n}\nexports.AbstractMessageBuffer = AbstractMessageBuffer;\n"],"x_google_ignoreList":[0],"mappings":";;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,wBAAwB,KAAK;CACrC,IAAM,IAAK,IACL,IAAK,IACL,IAAO;CA8Ib,EAAQ,wBAAwB,MA7IJ;EACxB,YAAY,IAAW,SAAS;GAG5B,AAFA,KAAK,YAAY,GACjB,KAAK,UAAU,EAAE,EACjB,KAAK,eAAe;;EAExB,IAAI,WAAW;GACX,OAAO,KAAK;;EAEhB,OAAO,GAAO;GACV,IAAM,IAAW,OAAO,KAAU,WAAW,KAAK,WAAW,GAAO,KAAK,UAAU,GAAG;GAEtF,AADA,KAAK,QAAQ,KAAK,EAAS,EAC3B,KAAK,gBAAgB,EAAS;;EAElC,eAAe,IAAgB,IAAO;GAClC,IAAI,KAAK,QAAQ,WAAW,GACxB;GAEJ,IAAI,IAAQ,GACR,IAAa,GACb,IAAS,GACT,IAAiB;GACrB,KAAK,OAAO,IAAa,KAAK,QAAQ,SAAQ;IAC1C,IAAM,IAAQ,KAAK,QAAQ;IAC3B,IAAS;IACT,QAAQ,OAAO,IAAS,EAAM,SAAQ;KAElC,QADc,EAAM,IACpB;MACI,KAAK;OACD,QAAQ,GAAR;QACI,KAAK;SACD,IA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IACrB,IAAS,KAAK,SAAS,GAAO,EAAU;IAG9C,OAFA,KAAK,QAAQ,KAAK,EAAM,MAAM,EAAU,EACxC,KAAK,gBAAgB,GACd;;GAEX,IAAM,IAAS,KAAK,YAAY,EAAU,EACtC,IAAe;GAEnB,OAAO,IAAY,IAAG;IAClB,IAAM,IAAQ,KAAK,QAAQ;IAC3B,IAAI,EAAM,aAAa,GAAW;KAE9B,IAAM,IAAY,EAAM,MAAM,GAAG,EAAU;KAK3C,AAJA,EAAO,IAAI,GAAW,EAAa,EACnC,KAAgB,GAChB,KAAK,QAAQ,KAAc,EAAM,MAAM,EAAU,EACjD,KAAK,gBAAgB,GACrB,KAAa;WAQb,AAJA,EAAO,IAAI,GAAO,EAAa,EAC/B,KAAgB,EAAM,YACtB,KAAK,QAAQ,OAAO,EACpB,KAAK,gBAAgB,EAAM,YAC3B,KAAa,EAAM;;GAG3B,OAAO"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_is as t } from "./is.js";
|
|
3
|
-
import { require_ral as n } from "./ral.js";
|
|
4
|
-
import { require_events as r } from "./events.js";
|
|
5
|
-
import { require_semaphore as i } from "./semaphore.js";
|
|
6
|
-
//#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js
|
|
7
|
-
var a = /* @__PURE__ */ e(((e) => {
|
|
8
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ReadableStreamMessageReader = e.AbstractMessageReader = e.MessageReader = void 0;
|
|
9
|
-
var a = n(), o = t(), s = r(), c = i(), l;
|
|
10
|
-
(function(e) {
|
|
11
|
-
function t(e) {
|
|
12
|
-
let t = e;
|
|
13
|
-
return t && o.func(t.listen) && o.func(t.dispose) && o.func(t.onError) && o.func(t.onClose) && o.func(t.onPartialMessage);
|
|
14
|
-
}
|
|
15
|
-
e.is = t;
|
|
16
|
-
})(l || (e.MessageReader = l = {}));
|
|
17
|
-
var u = class {
|
|
18
|
-
constructor() {
|
|
19
|
-
this.errorEmitter = new s.Emitter(), this.closeEmitter = new s.Emitter(), this.partialMessageEmitter = new s.Emitter();
|
|
20
|
-
}
|
|
21
|
-
dispose() {
|
|
22
|
-
this.errorEmitter.dispose(), this.closeEmitter.dispose();
|
|
23
|
-
}
|
|
24
|
-
get onError() {
|
|
25
|
-
return this.errorEmitter.event;
|
|
26
|
-
}
|
|
27
|
-
fireError(e) {
|
|
28
|
-
this.errorEmitter.fire(this.asError(e));
|
|
29
|
-
}
|
|
30
|
-
get onClose() {
|
|
31
|
-
return this.closeEmitter.event;
|
|
32
|
-
}
|
|
33
|
-
fireClose() {
|
|
34
|
-
this.closeEmitter.fire(void 0);
|
|
35
|
-
}
|
|
36
|
-
get onPartialMessage() {
|
|
37
|
-
return this.partialMessageEmitter.event;
|
|
38
|
-
}
|
|
39
|
-
firePartialMessage(e) {
|
|
40
|
-
this.partialMessageEmitter.fire(e);
|
|
41
|
-
}
|
|
42
|
-
asError(e) {
|
|
43
|
-
return e instanceof Error ? e : /* @__PURE__ */ Error(`Reader received error. Reason: ${o.string(e.message) ? e.message : "unknown"}`);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
e.AbstractMessageReader = u;
|
|
47
|
-
var d;
|
|
48
|
-
(function(e) {
|
|
49
|
-
function t(e) {
|
|
50
|
-
let t, n, r = /* @__PURE__ */ new Map(), i, o = /* @__PURE__ */ new Map();
|
|
51
|
-
if (e === void 0 || typeof e == "string") t = e ?? "utf-8";
|
|
52
|
-
else {
|
|
53
|
-
if (t = e.charset ?? "utf-8", e.contentDecoder !== void 0 && (n = e.contentDecoder, r.set(n.name, n)), e.contentDecoders !== void 0) for (let t of e.contentDecoders) r.set(t.name, t);
|
|
54
|
-
if (e.contentTypeDecoder !== void 0 && (i = e.contentTypeDecoder, o.set(i.name, i)), e.contentTypeDecoders !== void 0) for (let t of e.contentTypeDecoders) o.set(t.name, t);
|
|
55
|
-
}
|
|
56
|
-
return i === void 0 && (i = (0, a.default)().applicationJson.decoder, o.set(i.name, i)), {
|
|
57
|
-
charset: t,
|
|
58
|
-
contentDecoder: n,
|
|
59
|
-
contentDecoders: r,
|
|
60
|
-
contentTypeDecoder: i,
|
|
61
|
-
contentTypeDecoders: o
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
e.fromOptions = t;
|
|
65
|
-
})(d ||= {}), e.ReadableStreamMessageReader = class extends u {
|
|
66
|
-
constructor(e, t) {
|
|
67
|
-
super(), this.readable = e, this.options = d.fromOptions(t), this.buffer = (0, a.default)().messageBuffer.create(this.options.charset), this._partialMessageTimeout = 1e4, this.nextMessageLength = -1, this.messageToken = 0, this.readSemaphore = new c.Semaphore(1);
|
|
68
|
-
}
|
|
69
|
-
set partialMessageTimeout(e) {
|
|
70
|
-
this._partialMessageTimeout = e;
|
|
71
|
-
}
|
|
72
|
-
get partialMessageTimeout() {
|
|
73
|
-
return this._partialMessageTimeout;
|
|
74
|
-
}
|
|
75
|
-
listen(e) {
|
|
76
|
-
this.nextMessageLength = -1, this.messageToken = 0, this.partialMessageTimer = void 0, this.callback = e;
|
|
77
|
-
let t = this.readable.onData((e) => {
|
|
78
|
-
this.onData(e);
|
|
79
|
-
});
|
|
80
|
-
return this.readable.onError((e) => this.fireError(e)), this.readable.onClose(() => this.fireClose()), t;
|
|
81
|
-
}
|
|
82
|
-
onData(e) {
|
|
83
|
-
try {
|
|
84
|
-
for (this.buffer.append(e);;) {
|
|
85
|
-
if (this.nextMessageLength === -1) {
|
|
86
|
-
let e = this.buffer.tryReadHeaders(!0);
|
|
87
|
-
if (!e) return;
|
|
88
|
-
let t = e.get("content-length");
|
|
89
|
-
if (!t) {
|
|
90
|
-
this.fireError(/* @__PURE__ */ Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
let n = parseInt(t);
|
|
94
|
-
if (isNaN(n)) {
|
|
95
|
-
this.fireError(/* @__PURE__ */ Error(`Content-Length value must be a number. Got ${t}`));
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
this.nextMessageLength = n;
|
|
99
|
-
}
|
|
100
|
-
let e = this.buffer.tryReadBody(this.nextMessageLength);
|
|
101
|
-
if (e === void 0) {
|
|
102
|
-
this.setPartialMessageTimer();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
this.clearPartialMessageTimer(), this.nextMessageLength = -1, this.readSemaphore.lock(async () => {
|
|
106
|
-
let t = this.options.contentDecoder === void 0 ? e : await this.options.contentDecoder.decode(e), n = await this.options.contentTypeDecoder.decode(t, this.options);
|
|
107
|
-
this.callback(n);
|
|
108
|
-
}).catch((e) => {
|
|
109
|
-
this.fireError(e);
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
} catch (e) {
|
|
113
|
-
this.fireError(e);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
clearPartialMessageTimer() {
|
|
117
|
-
this.partialMessageTimer &&= (this.partialMessageTimer.dispose(), void 0);
|
|
118
|
-
}
|
|
119
|
-
setPartialMessageTimer() {
|
|
120
|
-
this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0, a.default)().timer.setTimeout((e, t) => {
|
|
121
|
-
this.partialMessageTimer = void 0, e === this.messageToken && (this.firePartialMessage({
|
|
122
|
-
messageToken: e,
|
|
123
|
-
waitingTime: t
|
|
124
|
-
}), this.setPartialMessageTimer());
|
|
125
|
-
}, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout));
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
}));
|
|
129
|
-
//#endregion
|
|
130
|
-
export default a();
|
|
131
|
-
export { a as require_messageReader };
|
|
132
|
-
|
|
133
|
-
//# sourceMappingURL=messageReader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messageReader.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReadableStreamMessageReader = exports.AbstractMessageReader = exports.MessageReader = void 0;\nconst ral_1 = require(\"./ral\");\nconst Is = require(\"./is\");\nconst events_1 = require(\"./events\");\nconst semaphore_1 = require(\"./semaphore\");\nvar MessageReader;\n(function (MessageReader) {\n function is(value) {\n let candidate = value;\n return candidate && Is.func(candidate.listen) && Is.func(candidate.dispose) &&\n Is.func(candidate.onError) && Is.func(candidate.onClose) && Is.func(candidate.onPartialMessage);\n }\n MessageReader.is = is;\n})(MessageReader || (exports.MessageReader = MessageReader = {}));\nclass AbstractMessageReader {\n constructor() {\n this.errorEmitter = new events_1.Emitter();\n this.closeEmitter = new events_1.Emitter();\n this.partialMessageEmitter = new events_1.Emitter();\n }\n dispose() {\n this.errorEmitter.dispose();\n this.closeEmitter.dispose();\n }\n get onError() {\n return this.errorEmitter.event;\n }\n fireError(error) {\n this.errorEmitter.fire(this.asError(error));\n }\n get onClose() {\n return this.closeEmitter.event;\n }\n fireClose() {\n this.closeEmitter.fire(undefined);\n }\n get onPartialMessage() {\n return this.partialMessageEmitter.event;\n }\n firePartialMessage(info) {\n this.partialMessageEmitter.fire(info);\n }\n asError(error) {\n if (error instanceof Error) {\n return error;\n }\n else {\n return new Error(`Reader received error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);\n }\n }\n}\nexports.AbstractMessageReader = AbstractMessageReader;\nvar ResolvedMessageReaderOptions;\n(function (ResolvedMessageReaderOptions) {\n function fromOptions(options) {\n let charset;\n let result;\n let contentDecoder;\n const contentDecoders = new Map();\n let contentTypeDecoder;\n const contentTypeDecoders = new Map();\n if (options === undefined || typeof options === 'string') {\n charset = options ?? 'utf-8';\n }\n else {\n charset = options.charset ?? 'utf-8';\n if (options.contentDecoder !== undefined) {\n contentDecoder = options.contentDecoder;\n contentDecoders.set(contentDecoder.name, contentDecoder);\n }\n if (options.contentDecoders !== undefined) {\n for (const decoder of options.contentDecoders) {\n contentDecoders.set(decoder.name, decoder);\n }\n }\n if (options.contentTypeDecoder !== undefined) {\n contentTypeDecoder = options.contentTypeDecoder;\n contentTypeDecoders.set(contentTypeDecoder.name, contentTypeDecoder);\n }\n if (options.contentTypeDecoders !== undefined) {\n for (const decoder of options.contentTypeDecoders) {\n contentTypeDecoders.set(decoder.name, decoder);\n }\n }\n }\n if (contentTypeDecoder === undefined) {\n contentTypeDecoder = (0, ral_1.default)().applicationJson.decoder;\n contentTypeDecoders.set(contentTypeDecoder.name, contentTypeDecoder);\n }\n return { charset, contentDecoder, contentDecoders, contentTypeDecoder, contentTypeDecoders };\n }\n ResolvedMessageReaderOptions.fromOptions = fromOptions;\n})(ResolvedMessageReaderOptions || (ResolvedMessageReaderOptions = {}));\nclass ReadableStreamMessageReader extends AbstractMessageReader {\n constructor(readable, options) {\n super();\n this.readable = readable;\n this.options = ResolvedMessageReaderOptions.fromOptions(options);\n this.buffer = (0, ral_1.default)().messageBuffer.create(this.options.charset);\n this._partialMessageTimeout = 10000;\n this.nextMessageLength = -1;\n this.messageToken = 0;\n this.readSemaphore = new semaphore_1.Semaphore(1);\n }\n set partialMessageTimeout(timeout) {\n this._partialMessageTimeout = timeout;\n }\n get partialMessageTimeout() {\n return this._partialMessageTimeout;\n }\n listen(callback) {\n this.nextMessageLength = -1;\n this.messageToken = 0;\n this.partialMessageTimer = undefined;\n this.callback = callback;\n const result = this.readable.onData((data) => {\n this.onData(data);\n });\n this.readable.onError((error) => this.fireError(error));\n this.readable.onClose(() => this.fireClose());\n return result;\n }\n onData(data) {\n try {\n this.buffer.append(data);\n while (true) {\n if (this.nextMessageLength === -1) {\n const headers = this.buffer.tryReadHeaders(true);\n if (!headers) {\n return;\n }\n const contentLength = headers.get('content-length');\n if (!contentLength) {\n this.fireError(new Error(`Header must provide a Content-Length property.\\n${JSON.stringify(Object.fromEntries(headers))}`));\n return;\n }\n const length = parseInt(contentLength);\n if (isNaN(length)) {\n this.fireError(new Error(`Content-Length value must be a number. Got ${contentLength}`));\n return;\n }\n this.nextMessageLength = length;\n }\n const body = this.buffer.tryReadBody(this.nextMessageLength);\n if (body === undefined) {\n /** We haven't received the full message yet. */\n this.setPartialMessageTimer();\n return;\n }\n this.clearPartialMessageTimer();\n this.nextMessageLength = -1;\n // Make sure that we convert one received message after the\n // other. Otherwise it could happen that a decoding of a second\n // smaller message finished before the decoding of a first larger\n // message and then we would deliver the second message first.\n this.readSemaphore.lock(async () => {\n const bytes = this.options.contentDecoder !== undefined\n ? await this.options.contentDecoder.decode(body)\n : body;\n const message = await this.options.contentTypeDecoder.decode(bytes, this.options);\n this.callback(message);\n }).catch((error) => {\n this.fireError(error);\n });\n }\n }\n catch (error) {\n this.fireError(error);\n }\n }\n clearPartialMessageTimer() {\n if (this.partialMessageTimer) {\n this.partialMessageTimer.dispose();\n this.partialMessageTimer = undefined;\n }\n }\n setPartialMessageTimer() {\n this.clearPartialMessageTimer();\n if (this._partialMessageTimeout <= 0) {\n return;\n }\n this.partialMessageTimer = (0, ral_1.default)().timer.setTimeout((token, timeout) => {\n this.partialMessageTimer = undefined;\n if (token === this.messageToken) {\n this.firePartialMessage({ messageToken: token, waitingTime: timeout });\n this.setPartialMessageTimer();\n }\n }, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout);\n }\n}\nexports.ReadableStreamMessageReader = ReadableStreamMessageReader;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,8BAA8B,EAAQ,wBAAwB,EAAQ,gBAAgB,KAAK;CACnG,IAAM,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAA,GAAA,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MAAY;IAEjF,AADA,KAAK,sBAAsB,KAAA,GACvB,MAAU,KAAK,iBACf,KAAK,mBAAmB;KAAE,cAAc;KAAO,aAAa;KAAS,CAAC,EACtE,KAAK,wBAAwB;MAElC,KAAK,wBAAwB,KAAK,cAAc,KAAK,uBAAuB"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_is as t } from "./is.js";
|
|
3
|
-
import { require_ral as n } from "./ral.js";
|
|
4
|
-
import { require_events as r } from "./events.js";
|
|
5
|
-
import { require_semaphore as i } from "./semaphore.js";
|
|
6
|
-
//#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js
|
|
7
|
-
var a = /* @__PURE__ */ e(((e) => {
|
|
8
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.WriteableStreamMessageWriter = e.AbstractMessageWriter = e.MessageWriter = void 0;
|
|
9
|
-
var a = n(), o = t(), s = i(), c = r(), l = "Content-Length: ", u = "\r\n", d;
|
|
10
|
-
(function(e) {
|
|
11
|
-
function t(e) {
|
|
12
|
-
let t = e;
|
|
13
|
-
return t && o.func(t.dispose) && o.func(t.onClose) && o.func(t.onError) && o.func(t.write);
|
|
14
|
-
}
|
|
15
|
-
e.is = t;
|
|
16
|
-
})(d || (e.MessageWriter = d = {}));
|
|
17
|
-
var f = class {
|
|
18
|
-
constructor() {
|
|
19
|
-
this.errorEmitter = new c.Emitter(), this.closeEmitter = new c.Emitter();
|
|
20
|
-
}
|
|
21
|
-
dispose() {
|
|
22
|
-
this.errorEmitter.dispose(), this.closeEmitter.dispose();
|
|
23
|
-
}
|
|
24
|
-
get onError() {
|
|
25
|
-
return this.errorEmitter.event;
|
|
26
|
-
}
|
|
27
|
-
fireError(e, t, n) {
|
|
28
|
-
this.errorEmitter.fire([
|
|
29
|
-
this.asError(e),
|
|
30
|
-
t,
|
|
31
|
-
n
|
|
32
|
-
]);
|
|
33
|
-
}
|
|
34
|
-
get onClose() {
|
|
35
|
-
return this.closeEmitter.event;
|
|
36
|
-
}
|
|
37
|
-
fireClose() {
|
|
38
|
-
this.closeEmitter.fire(void 0);
|
|
39
|
-
}
|
|
40
|
-
asError(e) {
|
|
41
|
-
return e instanceof Error ? e : /* @__PURE__ */ Error(`Writer received error. Reason: ${o.string(e.message) ? e.message : "unknown"}`);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
e.AbstractMessageWriter = f;
|
|
45
|
-
var p;
|
|
46
|
-
(function(e) {
|
|
47
|
-
function t(e) {
|
|
48
|
-
return e === void 0 || typeof e == "string" ? {
|
|
49
|
-
charset: e ?? "utf-8",
|
|
50
|
-
contentTypeEncoder: (0, a.default)().applicationJson.encoder
|
|
51
|
-
} : {
|
|
52
|
-
charset: e.charset ?? "utf-8",
|
|
53
|
-
contentEncoder: e.contentEncoder,
|
|
54
|
-
contentTypeEncoder: e.contentTypeEncoder ?? (0, a.default)().applicationJson.encoder
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
e.fromOptions = t;
|
|
58
|
-
})(p ||= {}), e.WriteableStreamMessageWriter = class extends f {
|
|
59
|
-
constructor(e, t) {
|
|
60
|
-
super(), this.writable = e, this.options = p.fromOptions(t), this.errorCount = 0, this.writeSemaphore = new s.Semaphore(1), this.writable.onError((e) => this.fireError(e)), this.writable.onClose(() => this.fireClose());
|
|
61
|
-
}
|
|
62
|
-
async write(e) {
|
|
63
|
-
return this.writeSemaphore.lock(async () => this.options.contentTypeEncoder.encode(e, this.options).then((e) => this.options.contentEncoder === void 0 ? e : this.options.contentEncoder.encode(e)).then((t) => {
|
|
64
|
-
let n = [];
|
|
65
|
-
return n.push(l, t.byteLength.toString(), u), n.push(u), this.doWrite(e, n, t);
|
|
66
|
-
}, (e) => {
|
|
67
|
-
throw this.fireError(e), e;
|
|
68
|
-
}));
|
|
69
|
-
}
|
|
70
|
-
async doWrite(e, t, n) {
|
|
71
|
-
try {
|
|
72
|
-
return await this.writable.write(t.join(""), "ascii"), this.writable.write(n);
|
|
73
|
-
} catch (t) {
|
|
74
|
-
return this.handleError(t, e), Promise.reject(t);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
handleError(e, t) {
|
|
78
|
-
this.errorCount++, this.fireError(e, t, this.errorCount);
|
|
79
|
-
}
|
|
80
|
-
end() {
|
|
81
|
-
this.writable.end();
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
}));
|
|
85
|
-
//#endregion
|
|
86
|
-
export default a();
|
|
87
|
-
export { a as require_messageWriter };
|
|
88
|
-
|
|
89
|
-
//# sourceMappingURL=messageWriter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messageWriter.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WriteableStreamMessageWriter = exports.AbstractMessageWriter = exports.MessageWriter = void 0;\nconst ral_1 = require(\"./ral\");\nconst Is = require(\"./is\");\nconst semaphore_1 = require(\"./semaphore\");\nconst events_1 = require(\"./events\");\nconst ContentLength = 'Content-Length: ';\nconst CRLF = '\\r\\n';\nvar MessageWriter;\n(function (MessageWriter) {\n function is(value) {\n let candidate = value;\n return candidate && Is.func(candidate.dispose) && Is.func(candidate.onClose) &&\n Is.func(candidate.onError) && Is.func(candidate.write);\n }\n MessageWriter.is = is;\n})(MessageWriter || (exports.MessageWriter = MessageWriter = {}));\nclass AbstractMessageWriter {\n constructor() {\n this.errorEmitter = new events_1.Emitter();\n this.closeEmitter = new events_1.Emitter();\n }\n dispose() {\n this.errorEmitter.dispose();\n this.closeEmitter.dispose();\n }\n get onError() {\n return this.errorEmitter.event;\n }\n fireError(error, message, count) {\n this.errorEmitter.fire([this.asError(error), message, count]);\n }\n get onClose() {\n return this.closeEmitter.event;\n }\n fireClose() {\n this.closeEmitter.fire(undefined);\n }\n asError(error) {\n if (error instanceof Error) {\n return error;\n }\n else {\n return new Error(`Writer received error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);\n }\n }\n}\nexports.AbstractMessageWriter = AbstractMessageWriter;\nvar ResolvedMessageWriterOptions;\n(function (ResolvedMessageWriterOptions) {\n function fromOptions(options) {\n if (options === undefined || typeof options === 'string') {\n return { charset: options ?? 'utf-8', contentTypeEncoder: (0, ral_1.default)().applicationJson.encoder };\n }\n else {\n return { charset: options.charset ?? 'utf-8', contentEncoder: options.contentEncoder, contentTypeEncoder: options.contentTypeEncoder ?? (0, ral_1.default)().applicationJson.encoder };\n }\n }\n ResolvedMessageWriterOptions.fromOptions = fromOptions;\n})(ResolvedMessageWriterOptions || (ResolvedMessageWriterOptions = {}));\nclass WriteableStreamMessageWriter extends AbstractMessageWriter {\n constructor(writable, options) {\n super();\n this.writable = writable;\n this.options = ResolvedMessageWriterOptions.fromOptions(options);\n this.errorCount = 0;\n this.writeSemaphore = new semaphore_1.Semaphore(1);\n this.writable.onError((error) => this.fireError(error));\n this.writable.onClose(() => this.fireClose());\n }\n async write(msg) {\n return this.writeSemaphore.lock(async () => {\n const payload = this.options.contentTypeEncoder.encode(msg, this.options).then((buffer) => {\n if (this.options.contentEncoder !== undefined) {\n return this.options.contentEncoder.encode(buffer);\n }\n else {\n return buffer;\n }\n });\n return payload.then((buffer) => {\n const headers = [];\n headers.push(ContentLength, buffer.byteLength.toString(), CRLF);\n headers.push(CRLF);\n return this.doWrite(msg, headers, buffer);\n }, (error) => {\n this.fireError(error);\n throw error;\n });\n });\n }\n async doWrite(msg, headers, data) {\n try {\n await this.writable.write(headers.join(''), 'ascii');\n return this.writable.write(data);\n }\n catch (error) {\n this.handleError(error, msg);\n return Promise.reject(error);\n }\n }\n handleError(error, msg) {\n this.errorCount++;\n this.fireError(error, msg, this.errorCount);\n }\n end() {\n this.writable.end();\n }\n}\nexports.WriteableStreamMessageWriter = WriteableStreamMessageWriter;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,+BAA+B,EAAQ,wBAAwB,EAAQ,gBAAgB,KAAK;CACpG,IAAM,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAgB,oBAChB,IAAO,QACT;CACJ,CAAC,SAAU,GAAe;EACtB,SAAS,EAAG,GAAO;GACf,IAAI,IAAY;GAChB,OAAO,KAAa,EAAG,KAAK,EAAU,QAAQ,IAAI,EAAG,KAAK,EAAU,QAAQ,IACxE,EAAG,KAAK,EAAU,QAAQ,IAAI,EAAG,KAAK,EAAU,MAAM;;EAE9D,EAAc,KAAK;IACpB,MAAkB,EAAQ,gBAAgB,IAAgB,EAAE,EAAE;CACjE,IAAM,IAAN,MAA4B;EACxB,cAAc;GAEV,AADA,KAAK,eAAe,IAAI,EAAS,SAAS,EAC1C,KAAK,eAAe,IAAI,EAAS,SAAS;;EAE9C,UAAU;GAEN,AADA,KAAK,aAAa,SAAS,EAC3B,KAAK,aAAa,SAAS;;EAE/B,IAAI,UAAU;GACV,OAAO,KAAK,aAAa;;EAE7B,UAAU,GAAO,GAAS,GAAO;GAC7B,KAAK,aAAa,KAAK;IAAC,KAAK,QAAQ,EAAM;IAAE;IAAS;IAAM,CAAC;;EAEjE,IAAI,UAAU;GACV,OAAO,KAAK,aAAa;;EAE7B,YAAY;GACR,KAAK,aAAa,KAAK,KAAA,EAAU;;EAErC,QAAQ,GAAO;GAKP,OAJA,aAAiB,QACV,IAGA,gBAAI,MAAM,kCAAkC,EAAG,OAAO,EAAM,QAAQ,GAAG,EAAM,UAAU,YAAY;;;CAItH,EAAQ,wBAAwB;CAChC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AAK;YAE7B,GAAO;IAEV,OADA,KAAK,YAAY,GAAO,EAAI,EACrB,QAAQ,OAAO,EAAM;;;EAGpC,YAAY,GAAO,GAAK;GAEpB,AADA,KAAK,cACL,KAAK,UAAU,GAAO,GAAK,KAAK,WAAW;;EAE/C,MAAM;GACF,KAAK,SAAS,KAAK"}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_is as t } from "./is.js";
|
|
3
|
-
//#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e) => {
|
|
5
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), 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;
|
|
6
|
-
var n = t(), r;
|
|
7
|
-
(function(e) {
|
|
8
|
-
e.ParseError = -32700, e.InvalidRequest = -32600, e.MethodNotFound = -32601, e.InvalidParams = -32602, e.InternalError = -32603, e.jsonrpcReservedErrorRangeStart = -32099, e.serverErrorStart = -32099, e.MessageWriteError = -32099, e.MessageReadError = -32098, e.PendingResponseRejected = -32097, e.ConnectionInactive = -32096, e.ServerNotInitialized = -32002, e.UnknownErrorCode = -32001, e.jsonrpcReservedErrorRangeEnd = -32e3, e.serverErrorEnd = -32e3;
|
|
9
|
-
})(r || (e.ErrorCodes = r = {})), e.ResponseError = class e extends Error {
|
|
10
|
-
constructor(t, i, a) {
|
|
11
|
-
super(i), this.code = n.number(t) ? t : r.UnknownErrorCode, this.data = a, Object.setPrototypeOf(this, e.prototype);
|
|
12
|
-
}
|
|
13
|
-
toJson() {
|
|
14
|
-
let e = {
|
|
15
|
-
code: this.code,
|
|
16
|
-
message: this.message
|
|
17
|
-
};
|
|
18
|
-
return this.data !== void 0 && (e.data = this.data), e;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var i = class e {
|
|
22
|
-
constructor(e) {
|
|
23
|
-
this.kind = e;
|
|
24
|
-
}
|
|
25
|
-
static is(t) {
|
|
26
|
-
return t === e.auto || t === e.byName || t === e.byPosition;
|
|
27
|
-
}
|
|
28
|
-
toString() {
|
|
29
|
-
return this.kind;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
e.ParameterStructures = i, i.auto = new i("auto"), i.byPosition = new i("byPosition"), i.byName = new i("byName");
|
|
33
|
-
var a = class {
|
|
34
|
-
constructor(e, t) {
|
|
35
|
-
this.method = e, this.numberOfParams = t;
|
|
36
|
-
}
|
|
37
|
-
get parameterStructures() {
|
|
38
|
-
return i.auto;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
e.AbstractMessageSignature = a, e.RequestType0 = class extends a {
|
|
42
|
-
constructor(e) {
|
|
43
|
-
super(e, 0);
|
|
44
|
-
}
|
|
45
|
-
}, e.RequestType = class extends a {
|
|
46
|
-
constructor(e, t = i.auto) {
|
|
47
|
-
super(e, 1), this._parameterStructures = t;
|
|
48
|
-
}
|
|
49
|
-
get parameterStructures() {
|
|
50
|
-
return this._parameterStructures;
|
|
51
|
-
}
|
|
52
|
-
}, e.RequestType1 = class extends a {
|
|
53
|
-
constructor(e, t = i.auto) {
|
|
54
|
-
super(e, 1), this._parameterStructures = t;
|
|
55
|
-
}
|
|
56
|
-
get parameterStructures() {
|
|
57
|
-
return this._parameterStructures;
|
|
58
|
-
}
|
|
59
|
-
}, e.RequestType2 = class extends a {
|
|
60
|
-
constructor(e) {
|
|
61
|
-
super(e, 2);
|
|
62
|
-
}
|
|
63
|
-
}, e.RequestType3 = class extends a {
|
|
64
|
-
constructor(e) {
|
|
65
|
-
super(e, 3);
|
|
66
|
-
}
|
|
67
|
-
}, e.RequestType4 = class extends a {
|
|
68
|
-
constructor(e) {
|
|
69
|
-
super(e, 4);
|
|
70
|
-
}
|
|
71
|
-
}, e.RequestType5 = class extends a {
|
|
72
|
-
constructor(e) {
|
|
73
|
-
super(e, 5);
|
|
74
|
-
}
|
|
75
|
-
}, e.RequestType6 = class extends a {
|
|
76
|
-
constructor(e) {
|
|
77
|
-
super(e, 6);
|
|
78
|
-
}
|
|
79
|
-
}, e.RequestType7 = class extends a {
|
|
80
|
-
constructor(e) {
|
|
81
|
-
super(e, 7);
|
|
82
|
-
}
|
|
83
|
-
}, e.RequestType8 = class extends a {
|
|
84
|
-
constructor(e) {
|
|
85
|
-
super(e, 8);
|
|
86
|
-
}
|
|
87
|
-
}, e.RequestType9 = class extends a {
|
|
88
|
-
constructor(e) {
|
|
89
|
-
super(e, 9);
|
|
90
|
-
}
|
|
91
|
-
}, e.NotificationType = class extends a {
|
|
92
|
-
constructor(e, t = i.auto) {
|
|
93
|
-
super(e, 1), this._parameterStructures = t;
|
|
94
|
-
}
|
|
95
|
-
get parameterStructures() {
|
|
96
|
-
return this._parameterStructures;
|
|
97
|
-
}
|
|
98
|
-
}, e.NotificationType0 = class extends a {
|
|
99
|
-
constructor(e) {
|
|
100
|
-
super(e, 0);
|
|
101
|
-
}
|
|
102
|
-
}, e.NotificationType1 = class extends a {
|
|
103
|
-
constructor(e, t = i.auto) {
|
|
104
|
-
super(e, 1), this._parameterStructures = t;
|
|
105
|
-
}
|
|
106
|
-
get parameterStructures() {
|
|
107
|
-
return this._parameterStructures;
|
|
108
|
-
}
|
|
109
|
-
}, e.NotificationType2 = class extends a {
|
|
110
|
-
constructor(e) {
|
|
111
|
-
super(e, 2);
|
|
112
|
-
}
|
|
113
|
-
}, e.NotificationType3 = class extends a {
|
|
114
|
-
constructor(e) {
|
|
115
|
-
super(e, 3);
|
|
116
|
-
}
|
|
117
|
-
}, e.NotificationType4 = class extends a {
|
|
118
|
-
constructor(e) {
|
|
119
|
-
super(e, 4);
|
|
120
|
-
}
|
|
121
|
-
}, e.NotificationType5 = class extends a {
|
|
122
|
-
constructor(e) {
|
|
123
|
-
super(e, 5);
|
|
124
|
-
}
|
|
125
|
-
}, e.NotificationType6 = class extends a {
|
|
126
|
-
constructor(e) {
|
|
127
|
-
super(e, 6);
|
|
128
|
-
}
|
|
129
|
-
}, e.NotificationType7 = class extends a {
|
|
130
|
-
constructor(e) {
|
|
131
|
-
super(e, 7);
|
|
132
|
-
}
|
|
133
|
-
}, e.NotificationType8 = class extends a {
|
|
134
|
-
constructor(e) {
|
|
135
|
-
super(e, 8);
|
|
136
|
-
}
|
|
137
|
-
}, e.NotificationType9 = class extends a {
|
|
138
|
-
constructor(e) {
|
|
139
|
-
super(e, 9);
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
var o;
|
|
143
|
-
(function(e) {
|
|
144
|
-
function t(e) {
|
|
145
|
-
let t = e;
|
|
146
|
-
return t && n.string(t.method) && (n.string(t.id) || n.number(t.id));
|
|
147
|
-
}
|
|
148
|
-
e.isRequest = t;
|
|
149
|
-
function r(e) {
|
|
150
|
-
let t = e;
|
|
151
|
-
return t && n.string(t.method) && e.id === void 0;
|
|
152
|
-
}
|
|
153
|
-
e.isNotification = r;
|
|
154
|
-
function i(e) {
|
|
155
|
-
let t = e;
|
|
156
|
-
return t && (t.result !== void 0 || !!t.error) && (n.string(t.id) || n.number(t.id) || t.id === null);
|
|
157
|
-
}
|
|
158
|
-
e.isResponse = i;
|
|
159
|
-
})(o || (e.Message = o = {}));
|
|
160
|
-
}));
|
|
161
|
-
//#endregion
|
|
162
|
-
export default n();
|
|
163
|
-
export { n as require_messages };
|
|
164
|
-
|
|
165
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Message = exports.NotificationType9 = exports.NotificationType8 = exports.NotificationType7 = exports.NotificationType6 = exports.NotificationType5 = exports.NotificationType4 = exports.NotificationType3 = exports.NotificationType2 = exports.NotificationType1 = exports.NotificationType0 = exports.NotificationType = exports.RequestType9 = exports.RequestType8 = exports.RequestType7 = exports.RequestType6 = exports.RequestType5 = exports.RequestType4 = exports.RequestType3 = exports.RequestType2 = exports.RequestType1 = exports.RequestType = exports.RequestType0 = exports.AbstractMessageSignature = exports.ParameterStructures = exports.ResponseError = exports.ErrorCodes = void 0;\nconst is = require(\"./is\");\n/**\n * Predefined error codes.\n */\nvar ErrorCodes;\n(function (ErrorCodes) {\n // Defined by JSON RPC\n ErrorCodes.ParseError = -32700;\n ErrorCodes.InvalidRequest = -32600;\n ErrorCodes.MethodNotFound = -32601;\n ErrorCodes.InvalidParams = -32602;\n ErrorCodes.InternalError = -32603;\n /**\n * This is the start range of JSON RPC reserved error codes.\n * It doesn't denote a real error code. No application error codes should\n * be defined between the start and end range. For backwards\n * compatibility the `ServerNotInitialized` and the `UnknownErrorCode`\n * are left in the range.\n *\n * @since 3.16.0\n */\n ErrorCodes.jsonrpcReservedErrorRangeStart = -32099;\n /** @deprecated use jsonrpcReservedErrorRangeStart */\n ErrorCodes.serverErrorStart = -32099;\n /**\n * An error occurred when write a message to the transport layer.\n */\n ErrorCodes.MessageWriteError = -32099;\n /**\n * An error occurred when reading a message from the transport layer.\n */\n ErrorCodes.MessageReadError = -32098;\n /**\n * The connection got disposed or lost and all pending responses got\n * rejected.\n */\n ErrorCodes.PendingResponseRejected = -32097;\n /**\n * The connection is inactive and a use of it failed.\n */\n ErrorCodes.ConnectionInactive = -32096;\n /**\n * Error code indicating that a server received a notification or\n * request before the server has received the `initialize` request.\n */\n ErrorCodes.ServerNotInitialized = -32002;\n ErrorCodes.UnknownErrorCode = -32001;\n /**\n * This is the end range of JSON RPC reserved error codes.\n * It doesn't denote a real error code.\n *\n * @since 3.16.0\n */\n ErrorCodes.jsonrpcReservedErrorRangeEnd = -32000;\n /** @deprecated use jsonrpcReservedErrorRangeEnd */\n ErrorCodes.serverErrorEnd = -32000;\n})(ErrorCodes || (exports.ErrorCodes = ErrorCodes = {}));\n/**\n * An error object return in a response in case a request\n * has failed.\n */\nclass ResponseError extends Error {\n constructor(code, message, data) {\n super(message);\n this.code = is.number(code) ? code : ErrorCodes.UnknownErrorCode;\n this.data = data;\n Object.setPrototypeOf(this, ResponseError.prototype);\n }\n toJson() {\n const result = {\n code: this.code,\n message: this.message\n };\n if (this.data !== undefined) {\n result.data = this.data;\n }\n return result;\n }\n}\nexports.ResponseError = ResponseError;\nclass ParameterStructures {\n constructor(kind) {\n this.kind = kind;\n }\n static is(value) {\n return value === ParameterStructures.auto || value === ParameterStructures.byName || value === ParameterStructures.byPosition;\n }\n toString() {\n return this.kind;\n }\n}\nexports.ParameterStructures = ParameterStructures;\n/**\n * The parameter structure is automatically inferred on the number of parameters\n * and the parameter type in case of a single param.\n */\nParameterStructures.auto = new ParameterStructures('auto');\n/**\n * Forces `byPosition` parameter structure. This is useful if you have a single\n * parameter which has a literal type.\n */\nParameterStructures.byPosition = new ParameterStructures('byPosition');\n/**\n * Forces `byName` parameter structure. This is only useful when having a single\n * parameter. The library will report errors if used with a different number of\n * parameters.\n */\nParameterStructures.byName = new ParameterStructures('byName');\n/**\n * An abstract implementation of a MessageType.\n */\nclass AbstractMessageSignature {\n constructor(method, numberOfParams) {\n this.method = method;\n this.numberOfParams = numberOfParams;\n }\n get parameterStructures() {\n return ParameterStructures.auto;\n }\n}\nexports.AbstractMessageSignature = AbstractMessageSignature;\n/**\n * Classes to type request response pairs\n */\nclass RequestType0 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 0);\n }\n}\nexports.RequestType0 = RequestType0;\nclass RequestType extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.RequestType = RequestType;\nclass RequestType1 extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.RequestType1 = RequestType1;\nclass RequestType2 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 2);\n }\n}\nexports.RequestType2 = RequestType2;\nclass RequestType3 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 3);\n }\n}\nexports.RequestType3 = RequestType3;\nclass RequestType4 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 4);\n }\n}\nexports.RequestType4 = RequestType4;\nclass RequestType5 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 5);\n }\n}\nexports.RequestType5 = RequestType5;\nclass RequestType6 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 6);\n }\n}\nexports.RequestType6 = RequestType6;\nclass RequestType7 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 7);\n }\n}\nexports.RequestType7 = RequestType7;\nclass RequestType8 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 8);\n }\n}\nexports.RequestType8 = RequestType8;\nclass RequestType9 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 9);\n }\n}\nexports.RequestType9 = RequestType9;\nclass NotificationType extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.NotificationType = NotificationType;\nclass NotificationType0 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 0);\n }\n}\nexports.NotificationType0 = NotificationType0;\nclass NotificationType1 extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.NotificationType1 = NotificationType1;\nclass NotificationType2 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 2);\n }\n}\nexports.NotificationType2 = NotificationType2;\nclass NotificationType3 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 3);\n }\n}\nexports.NotificationType3 = NotificationType3;\nclass NotificationType4 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 4);\n }\n}\nexports.NotificationType4 = NotificationType4;\nclass NotificationType5 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 5);\n }\n}\nexports.NotificationType5 = NotificationType5;\nclass NotificationType6 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 6);\n }\n}\nexports.NotificationType6 = NotificationType6;\nclass NotificationType7 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 7);\n }\n}\nexports.NotificationType7 = NotificationType7;\nclass NotificationType8 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 8);\n }\n}\nexports.NotificationType8 = NotificationType8;\nclass NotificationType9 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 9);\n }\n}\nexports.NotificationType9 = NotificationType9;\nvar Message;\n(function (Message) {\n /**\n * Tests if the given message is a request message\n */\n function isRequest(message) {\n const candidate = message;\n return candidate && is.string(candidate.method) && (is.string(candidate.id) || is.number(candidate.id));\n }\n Message.isRequest = isRequest;\n /**\n * Tests if the given message is a notification message\n */\n function isNotification(message) {\n const candidate = message;\n return candidate && is.string(candidate.method) && message.id === void 0;\n }\n Message.isNotification = isNotification;\n /**\n * Tests if the given message is a response message\n */\n function isResponse(message) {\n const candidate = message;\n return candidate && (candidate.result !== void 0 || !!candidate.error) && (is.string(candidate.id) || is.number(candidate.id) || candidate.id === null);\n }\n Message.isResponse = isResponse;\n})(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ChB,MAAM,GAAQ,EAAE;;IASxB,EAAQ,oBAAoB,cALI,EAAyB;EACrD,YAAY,GAAQ;GAChB,MAAM,GAAQ,EAAE;;IASxB,EAAQ,oBAAoB,cALI,EAAyB;EACrD,YAAY,GAAQ;GAChB,MAAM,GAAQ,EAAE;;;CAIxB,IAAI;CACJ,CAAC,SAAU,GAAS;EAIhB,SAAS,EAAU,GAAS;GACxB,IAAM,IAAY;GAClB,OAAO,KAAa,EAAG,OAAO,EAAU,OAAO,KAAK,EAAG,OAAO,EAAU,GAAG,IAAI,EAAG,OAAO,EAAU,GAAG;;EAE1G,EAAQ,YAAY;EAIpB,SAAS,EAAe,GAAS;GAC7B,IAAM,IAAY;GAClB,OAAO,KAAa,EAAG,OAAO,EAAU,OAAO,IAAI,EAAQ,OAAO,KAAK;;EAE3E,EAAQ,iBAAiB;EAIzB,SAAS,EAAW,GAAS;GACzB,IAAM,IAAY;GAClB,OAAO,MAAc,EAAU,WAAW,KAAK,KAAK,CAAC,CAAC,EAAU,WAAW,EAAG,OAAO,EAAU,GAAG,IAAI,EAAG,OAAO,EAAU,GAAG,IAAI,EAAU,OAAO;;EAEtJ,EAAQ,aAAa;IACtB,MAAY,EAAQ,UAAU,IAAU,EAAE,EAAE"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e) => {
|
|
4
|
-
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
5
|
-
var t;
|
|
6
|
-
function n() {
|
|
7
|
-
if (t === void 0) throw Error("No runtime abstraction layer installed");
|
|
8
|
-
return t;
|
|
9
|
-
}
|
|
10
|
-
(function(e) {
|
|
11
|
-
function n(e) {
|
|
12
|
-
if (e === void 0) throw Error("No runtime abstraction layer provided");
|
|
13
|
-
t = e;
|
|
14
|
-
}
|
|
15
|
-
e.install = n;
|
|
16
|
-
})(n ||= {}), e.default = n;
|
|
17
|
-
}));
|
|
18
|
-
//#endregion
|
|
19
|
-
export default t();
|
|
20
|
-
export { t as require_ral };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=ral.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ral.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nlet _ral;\nfunction RAL() {\n if (_ral === undefined) {\n throw new Error(`No runtime abstraction layer installed`);\n }\n return _ral;\n}\n(function (RAL) {\n function install(ral) {\n if (ral === undefined) {\n throw new Error(`No runtime abstraction layer provided`);\n }\n _ral = ral;\n }\n RAL.install = install;\n})(RAL || (RAL = {}));\nexports.default = RAL;\n"],"x_google_ignoreList":[0],"mappings":";;;CAKA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC;CAC7D,IAAI;CACJ,SAAS,IAAM;EACX,IAAI,MAAS,KAAA,GACT,MAAU,MAAM,yCAAyC;EAE7D,OAAO;;CAWX,CATC,SAAU,GAAK;EACZ,SAAS,EAAQ,GAAK;GAClB,IAAI,MAAQ,KAAA,GACR,MAAU,MAAM,wCAAwC;GAE5D,IAAO;;EAEX,EAAI,UAAU;IACf,AAAQ,MAAM,EAAE,CAAE,EACrB,EAAQ,UAAU"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_ral as t } from "./ral.js";
|
|
3
|
-
//#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e) => {
|
|
5
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.Semaphore = void 0;
|
|
6
|
-
var n = t();
|
|
7
|
-
e.Semaphore = class {
|
|
8
|
-
constructor(e = 1) {
|
|
9
|
-
if (e <= 0) throw Error("Capacity must be greater than 0");
|
|
10
|
-
this._capacity = e, this._active = 0, this._waiting = [];
|
|
11
|
-
}
|
|
12
|
-
lock(e) {
|
|
13
|
-
return new Promise((t, n) => {
|
|
14
|
-
this._waiting.push({
|
|
15
|
-
thunk: e,
|
|
16
|
-
resolve: t,
|
|
17
|
-
reject: n
|
|
18
|
-
}), this.runNext();
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
get active() {
|
|
22
|
-
return this._active;
|
|
23
|
-
}
|
|
24
|
-
runNext() {
|
|
25
|
-
this._waiting.length === 0 || this._active === this._capacity || (0, n.default)().timer.setImmediate(() => this.doRunNext());
|
|
26
|
-
}
|
|
27
|
-
doRunNext() {
|
|
28
|
-
if (this._waiting.length === 0 || this._active === this._capacity) return;
|
|
29
|
-
let e = this._waiting.shift();
|
|
30
|
-
if (this._active++, this._active > this._capacity) throw Error("To many thunks active");
|
|
31
|
-
try {
|
|
32
|
-
let t = e.thunk();
|
|
33
|
-
t instanceof Promise ? t.then((t) => {
|
|
34
|
-
this._active--, e.resolve(t), this.runNext();
|
|
35
|
-
}, (t) => {
|
|
36
|
-
this._active--, e.reject(t), this.runNext();
|
|
37
|
-
}) : (this._active--, e.resolve(t), this.runNext());
|
|
38
|
-
} catch (t) {
|
|
39
|
-
this._active--, e.reject(t), this.runNext();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}));
|
|
44
|
-
//#endregion
|
|
45
|
-
export default n();
|
|
46
|
-
export { n as require_semaphore };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=semaphore.js.map
|