@codingame/monaco-editor-wrapper 1.15.0 → 2.1.1
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/COBOL.tmLanguage.js +2 -2
- package/dist/META.js +100 -0
- package/dist/atd.js +114 -0
- package/dist/atd2.js +110 -0
- package/dist/cobol-snippets.js +2 -2117
- package/dist/cobol2.js +46 -0
- package/dist/cram.js +257 -0
- package/dist/dune-project.js +65 -0
- package/dist/dune-project2.js +481 -0
- package/dist/dune-workspace.js +65 -0
- package/dist/dune-workspace2.js +298 -0
- package/dist/dune.js +65 -0
- package/dist/dune2.js +2962 -0
- package/dist/index.js +31 -1
- package/dist/main.js +490 -391
- package/dist/menhir-action.js +51 -0
- package/dist/menhir.js +597 -0
- package/dist/merlin.js +23 -23
- package/dist/monaco.d.ts +1 -1
- package/dist/oasis.js +99 -0
- package/dist/ocaml-dune-project.js +38 -0
- package/dist/ocaml-dune.js +53 -0
- package/dist/ocaml-markdown-codeblock.js +1 -1
- package/dist/ocaml-ocaml.js +88 -0
- package/dist/ocaml-ocamllex.js +12 -0
- package/dist/ocaml.META.js +29 -0
- package/dist/ocaml.interface.js +114 -0
- package/dist/ocaml.interface2.js +292 -0
- package/dist/ocaml.js +40 -8
- package/dist/ocaml.menhir.js +81 -0
- package/dist/ocaml.oasis.js +18 -0
- package/dist/ocaml.ocamlbuild.js +45 -0
- package/dist/ocaml.ocamlformat.js +8 -0
- package/dist/ocaml.ocamllex.js +60 -0
- package/dist/ocaml.opam-install.js +49 -0
- package/dist/ocaml.opam.js +69 -0
- package/dist/ocaml2.js +600 -2676
- package/dist/ocaml3.js +89 -105
- package/dist/ocamlbuild.js +142 -192
- package/dist/ocamldoc.js +54 -0
- package/dist/ocamlformat.js +206 -0
- package/dist/ocamllex.js +133 -0
- package/dist/opam-install.js +40 -0
- package/dist/opam.js +100 -109
- package/dist/reason-markdown-codeblock.js +1 -1
- package/dist/reason.js +0 -4
- package/dist/scalameta.js +1 -1
- package/dist/tools/EditorOpenHandlerRegistry.d.ts +8 -0
- package/package.json +47 -3
- package/stats.html +1 -1
- package/dist/ocaml-hover-info.js +0 -34
- package/dist/ocaml-hover-type.js +0 -24
- package/dist/ocaml-reason.js +0 -100
- package/dist/reason-hover-info.js +0 -34
- package/dist/reason-hover-signature.js +0 -21
- package/dist/reason-hover-type.js +0 -21
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -9
- package/dist/services/TextModelService.d.ts +0 -25
package/dist/main.js
CHANGED
|
@@ -5,6 +5,8 @@ import onigFile from 'vscode-oniguruma/release/onig.wasm';
|
|
|
5
5
|
import { loadWASM, createOnigScanner, createOnigString } from 'vscode-oniguruma';
|
|
6
6
|
import { e as extensions, g as getConfiguration$1, o as onConfigurationChanged } from './index.js';
|
|
7
7
|
export { g as getConfiguration, o as onConfigurationChanged, r as registerConfigurations, a as registerDefaultConfigurations, u as updateUserConfiguration } from './index.js';
|
|
8
|
+
import getModelEditorServiceOverride from 'vscode/service-override/modelEditor';
|
|
9
|
+
import getMessageServiceOverride from 'vscode/service-override/messages';
|
|
8
10
|
import './worker.js';
|
|
9
11
|
import 'monaco-editor/esm/vs/editor/editor.all';
|
|
10
12
|
import 'monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp';
|
|
@@ -787,40 +789,86 @@ var rawGrammars = [
|
|
|
787
789
|
}
|
|
788
790
|
},
|
|
789
791
|
{
|
|
790
|
-
"language": "
|
|
791
|
-
"scopeName": "source.
|
|
792
|
+
"language": "dune",
|
|
793
|
+
"scopeName": "source.dune"
|
|
792
794
|
},
|
|
793
795
|
{
|
|
794
|
-
"language": "
|
|
795
|
-
"scopeName": "source.
|
|
796
|
+
"language": "dune-project",
|
|
797
|
+
"scopeName": "source.dune-project"
|
|
796
798
|
},
|
|
797
799
|
{
|
|
798
|
-
"language": "
|
|
799
|
-
"scopeName": "source.
|
|
800
|
+
"language": "dune-workspace",
|
|
801
|
+
"scopeName": "source.dune-workspace"
|
|
800
802
|
},
|
|
801
803
|
{
|
|
802
804
|
"language": "ocaml.merlin",
|
|
803
805
|
"scopeName": "source.ocaml.merlin"
|
|
804
806
|
},
|
|
807
|
+
{
|
|
808
|
+
"scopeName": "markdown.ocaml.codeblock",
|
|
809
|
+
"injectTo": [
|
|
810
|
+
"text.html.markdown"
|
|
811
|
+
],
|
|
812
|
+
"embeddedLanguages": {
|
|
813
|
+
"meta.embedded.block.ocaml": "ocaml"
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"language": "ocaml",
|
|
818
|
+
"scopeName": "source.ocaml"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"language": "ocaml.interface",
|
|
822
|
+
"scopeName": "source.ocaml.interface"
|
|
823
|
+
},
|
|
805
824
|
{
|
|
806
825
|
"language": "ocaml.ocamlbuild",
|
|
807
826
|
"scopeName": "source.ocaml.ocamlbuild"
|
|
808
827
|
},
|
|
828
|
+
{
|
|
829
|
+
"language": "ocaml.ocamldoc",
|
|
830
|
+
"scopeName": "source.ocaml.ocamldoc"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"language": "ocaml.ocamlformat",
|
|
834
|
+
"scopeName": "source.ocaml.ocamlformat"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"language": "ocaml.ocamllex",
|
|
838
|
+
"scopeName": "source.ocaml.ocamllex"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"scopeName": "source.action.menhir",
|
|
842
|
+
"injectTo": [
|
|
843
|
+
"source.ocaml"
|
|
844
|
+
]
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"language": "ocaml.menhir",
|
|
848
|
+
"scopeName": "source.ocaml.menhir",
|
|
849
|
+
"embeddedLanguages": {
|
|
850
|
+
"source.embedded-action.menhir": "source.action.menhir"
|
|
851
|
+
}
|
|
852
|
+
},
|
|
809
853
|
{
|
|
810
854
|
"language": "ocaml.opam",
|
|
811
855
|
"scopeName": "source.ocaml.opam"
|
|
812
856
|
},
|
|
813
857
|
{
|
|
814
|
-
"language": "
|
|
815
|
-
"scopeName": "source.
|
|
858
|
+
"language": "ocaml.opam-install",
|
|
859
|
+
"scopeName": "source.ocaml.opam-install"
|
|
816
860
|
},
|
|
817
861
|
{
|
|
818
|
-
"language": "
|
|
819
|
-
"scopeName": "source.
|
|
862
|
+
"language": "ocaml.META",
|
|
863
|
+
"scopeName": "source.ocaml.META"
|
|
820
864
|
},
|
|
821
865
|
{
|
|
822
|
-
"language": "
|
|
823
|
-
"scopeName": "source.
|
|
866
|
+
"language": "ocaml.oasis",
|
|
867
|
+
"scopeName": "source.ocaml.oasis"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"language": "atd",
|
|
871
|
+
"scopeName": "source.atd"
|
|
824
872
|
},
|
|
825
873
|
{
|
|
826
874
|
"scopeName": "markdown.reason.codeblock",
|
|
@@ -832,13 +880,8 @@ var rawGrammars = [
|
|
|
832
880
|
}
|
|
833
881
|
},
|
|
834
882
|
{
|
|
835
|
-
"
|
|
836
|
-
"
|
|
837
|
-
"text.html.markdown"
|
|
838
|
-
],
|
|
839
|
-
"embeddedLanguages": {
|
|
840
|
-
"meta.embedded.block.ocaml": "ocaml"
|
|
841
|
-
}
|
|
883
|
+
"language": "cram",
|
|
884
|
+
"scopeName": "source.cram"
|
|
842
885
|
},
|
|
843
886
|
{
|
|
844
887
|
"language": "pascal",
|
|
@@ -1480,61 +1523,106 @@ const loader$3 = {
|
|
|
1480
1523
|
|
|
1481
1524
|
/* webpackMode: "lazy" */
|
|
1482
1525
|
'./codeblock2.js').then(module => module)).default,
|
|
1483
|
-
'source.
|
|
1484
|
-
/* webpackChunkName: "grammar-source-
|
|
1526
|
+
'source.dune': async () => (await import(
|
|
1527
|
+
/* webpackChunkName: "grammar-source-dune" */
|
|
1485
1528
|
|
|
1486
1529
|
/* webpackMode: "lazy" */
|
|
1487
|
-
'./
|
|
1488
|
-
'source.
|
|
1489
|
-
/* webpackChunkName: "grammar-source-
|
|
1530
|
+
'./dune2.js').then(module => module)).default,
|
|
1531
|
+
'source.dune-project': async () => (await import(
|
|
1532
|
+
/* webpackChunkName: "grammar-source-dune-project" */
|
|
1490
1533
|
|
|
1491
1534
|
/* webpackMode: "lazy" */
|
|
1492
|
-
'./
|
|
1493
|
-
'source.
|
|
1494
|
-
/* webpackChunkName: "grammar-source-
|
|
1535
|
+
'./dune-project2.js').then(module => module)).default,
|
|
1536
|
+
'source.dune-workspace': async () => (await import(
|
|
1537
|
+
/* webpackChunkName: "grammar-source-dune-workspace" */
|
|
1495
1538
|
|
|
1496
1539
|
/* webpackMode: "lazy" */
|
|
1497
|
-
'./
|
|
1540
|
+
'./dune-workspace2.js').then(module => module)).default,
|
|
1498
1541
|
'source.ocaml.merlin': async () => (await import(
|
|
1499
1542
|
/* webpackChunkName: "grammar-source-ocaml-merlin" */
|
|
1500
1543
|
|
|
1501
1544
|
/* webpackMode: "lazy" */
|
|
1502
1545
|
'./merlin.js').then(module => module)).default,
|
|
1546
|
+
'markdown.ocaml.codeblock': async () => (await import(
|
|
1547
|
+
/* webpackChunkName: "grammar-markdown-ocaml-codeblock" */
|
|
1548
|
+
|
|
1549
|
+
/* webpackMode: "lazy" */
|
|
1550
|
+
'./ocaml-markdown-codeblock.js').then(module => module)).default,
|
|
1551
|
+
'source.ocaml': async () => (await import(
|
|
1552
|
+
/* webpackChunkName: "grammar-source-ocaml" */
|
|
1553
|
+
|
|
1554
|
+
/* webpackMode: "lazy" */
|
|
1555
|
+
'./ocaml2.js').then(module => module)).default,
|
|
1556
|
+
'source.ocaml.interface': async () => (await import(
|
|
1557
|
+
/* webpackChunkName: "grammar-source-ocaml-interface" */
|
|
1558
|
+
|
|
1559
|
+
/* webpackMode: "lazy" */
|
|
1560
|
+
'./ocaml.interface2.js').then(module => module)).default,
|
|
1503
1561
|
'source.ocaml.ocamlbuild': async () => (await import(
|
|
1504
1562
|
/* webpackChunkName: "grammar-source-ocaml-ocamlbuild" */
|
|
1505
1563
|
|
|
1506
1564
|
/* webpackMode: "lazy" */
|
|
1507
1565
|
'./ocamlbuild.js').then(module => module)).default,
|
|
1566
|
+
'source.ocaml.ocamldoc': async () => (await import(
|
|
1567
|
+
/* webpackChunkName: "grammar-source-ocaml-ocamldoc" */
|
|
1568
|
+
|
|
1569
|
+
/* webpackMode: "lazy" */
|
|
1570
|
+
'./ocamldoc.js').then(module => module)).default,
|
|
1571
|
+
'source.ocaml.ocamlformat': async () => (await import(
|
|
1572
|
+
/* webpackChunkName: "grammar-source-ocaml-ocamlformat" */
|
|
1573
|
+
|
|
1574
|
+
/* webpackMode: "lazy" */
|
|
1575
|
+
'./ocamlformat.js').then(module => module)).default,
|
|
1576
|
+
'source.ocaml.ocamllex': async () => (await import(
|
|
1577
|
+
/* webpackChunkName: "grammar-source-ocaml-ocamllex" */
|
|
1578
|
+
|
|
1579
|
+
/* webpackMode: "lazy" */
|
|
1580
|
+
'./ocamllex.js').then(module => module)).default,
|
|
1581
|
+
'source.action.menhir': async () => (await import(
|
|
1582
|
+
/* webpackChunkName: "grammar-source-action-menhir" */
|
|
1583
|
+
|
|
1584
|
+
/* webpackMode: "lazy" */
|
|
1585
|
+
'./menhir-action.js').then(module => module)).default,
|
|
1586
|
+
'source.ocaml.menhir': async () => (await import(
|
|
1587
|
+
/* webpackChunkName: "grammar-source-ocaml-menhir" */
|
|
1588
|
+
|
|
1589
|
+
/* webpackMode: "lazy" */
|
|
1590
|
+
'./menhir.js').then(module => module)).default,
|
|
1508
1591
|
'source.ocaml.opam': async () => (await import(
|
|
1509
1592
|
/* webpackChunkName: "grammar-source-ocaml-opam" */
|
|
1510
1593
|
|
|
1511
1594
|
/* webpackMode: "lazy" */
|
|
1512
1595
|
'./opam.js').then(module => module)).default,
|
|
1513
|
-
'source.
|
|
1514
|
-
/* webpackChunkName: "grammar-source-
|
|
1596
|
+
'source.ocaml.opam-install': async () => (await import(
|
|
1597
|
+
/* webpackChunkName: "grammar-source-ocaml-opam-install" */
|
|
1515
1598
|
|
|
1516
1599
|
/* webpackMode: "lazy" */
|
|
1517
|
-
'./
|
|
1518
|
-
'source.
|
|
1519
|
-
/* webpackChunkName: "grammar-source-
|
|
1600
|
+
'./opam-install.js').then(module => module)).default,
|
|
1601
|
+
'source.ocaml.META': async () => (await import(
|
|
1602
|
+
/* webpackChunkName: "grammar-source-ocaml-META" */
|
|
1520
1603
|
|
|
1521
1604
|
/* webpackMode: "lazy" */
|
|
1522
|
-
'./
|
|
1523
|
-
'source.
|
|
1524
|
-
/* webpackChunkName: "grammar-source-
|
|
1605
|
+
'./META.js').then(module => module)).default,
|
|
1606
|
+
'source.ocaml.oasis': async () => (await import(
|
|
1607
|
+
/* webpackChunkName: "grammar-source-ocaml-oasis" */
|
|
1525
1608
|
|
|
1526
1609
|
/* webpackMode: "lazy" */
|
|
1527
|
-
'./
|
|
1610
|
+
'./oasis.js').then(module => module)).default,
|
|
1611
|
+
'source.atd': async () => (await import(
|
|
1612
|
+
/* webpackChunkName: "grammar-source-atd" */
|
|
1613
|
+
|
|
1614
|
+
/* webpackMode: "lazy" */
|
|
1615
|
+
'./atd2.js').then(module => module)).default,
|
|
1528
1616
|
'markdown.reason.codeblock': async () => (await import(
|
|
1529
1617
|
/* webpackChunkName: "grammar-markdown-reason-codeblock" */
|
|
1530
1618
|
|
|
1531
1619
|
/* webpackMode: "lazy" */
|
|
1532
1620
|
'./reason-markdown-codeblock.js').then(module => module)).default,
|
|
1533
|
-
'
|
|
1534
|
-
/* webpackChunkName: "grammar-
|
|
1621
|
+
'source.cram': async () => (await import(
|
|
1622
|
+
/* webpackChunkName: "grammar-source-cram" */
|
|
1535
1623
|
|
|
1536
1624
|
/* webpackMode: "lazy" */
|
|
1537
|
-
'./
|
|
1625
|
+
'./cram.js').then(module => module)).default,
|
|
1538
1626
|
'source.pascal': async () => (await import(
|
|
1539
1627
|
/* webpackChunkName: "grammar-source-pascal" */
|
|
1540
1628
|
|
|
@@ -2673,67 +2761,196 @@ var textMateLanguages = [
|
|
|
2673
2761
|
".kts"
|
|
2674
2762
|
]
|
|
2675
2763
|
},
|
|
2764
|
+
{
|
|
2765
|
+
"id": "dune",
|
|
2766
|
+
"aliases": [
|
|
2767
|
+
"dune"
|
|
2768
|
+
],
|
|
2769
|
+
"extensions": [
|
|
2770
|
+
"dune",
|
|
2771
|
+
"jbuild"
|
|
2772
|
+
]
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"id": "dune-project",
|
|
2776
|
+
"aliases": [
|
|
2777
|
+
"dune project"
|
|
2778
|
+
],
|
|
2779
|
+
"extensions": [
|
|
2780
|
+
"dune-project"
|
|
2781
|
+
]
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"id": "dune-workspace",
|
|
2785
|
+
"aliases": [
|
|
2786
|
+
"dune workspace"
|
|
2787
|
+
],
|
|
2788
|
+
"filenames": [
|
|
2789
|
+
"dune-workspace"
|
|
2790
|
+
],
|
|
2791
|
+
"filenamePatterns": [
|
|
2792
|
+
"dune-workspace.*"
|
|
2793
|
+
]
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"id": "ocaml.merlin",
|
|
2797
|
+
"aliases": [
|
|
2798
|
+
"Merlin",
|
|
2799
|
+
"merlin"
|
|
2800
|
+
],
|
|
2801
|
+
"extensions": [
|
|
2802
|
+
".merlin"
|
|
2803
|
+
]
|
|
2804
|
+
},
|
|
2676
2805
|
{
|
|
2677
2806
|
"id": "ocaml",
|
|
2678
2807
|
"aliases": [
|
|
2679
|
-
"OCaml"
|
|
2808
|
+
"OCaml",
|
|
2809
|
+
"ocaml"
|
|
2680
2810
|
],
|
|
2681
2811
|
"extensions": [
|
|
2682
2812
|
".ml",
|
|
2683
|
-
".
|
|
2813
|
+
".eliom",
|
|
2814
|
+
".ocamlinit"
|
|
2684
2815
|
]
|
|
2685
2816
|
},
|
|
2686
2817
|
{
|
|
2687
|
-
"id": "ocaml.
|
|
2818
|
+
"id": "ocaml.interface",
|
|
2819
|
+
"aliases": [
|
|
2820
|
+
"OCaml Interface",
|
|
2821
|
+
"ocaml interface"
|
|
2822
|
+
],
|
|
2823
|
+
"extensions": [
|
|
2824
|
+
".mli",
|
|
2825
|
+
".eliomi"
|
|
2826
|
+
]
|
|
2688
2827
|
},
|
|
2689
2828
|
{
|
|
2690
|
-
"id": "ocaml.
|
|
2829
|
+
"id": "ocaml.opam",
|
|
2830
|
+
"aliases": [
|
|
2831
|
+
"opam"
|
|
2832
|
+
],
|
|
2833
|
+
"filenames": [
|
|
2834
|
+
"opam"
|
|
2835
|
+
],
|
|
2836
|
+
"extensions": [
|
|
2837
|
+
".opam",
|
|
2838
|
+
".opam.locked",
|
|
2839
|
+
".opam.template"
|
|
2840
|
+
]
|
|
2691
2841
|
},
|
|
2692
2842
|
{
|
|
2693
|
-
"id": "ocaml.
|
|
2843
|
+
"id": "ocaml.opam-install",
|
|
2694
2844
|
"aliases": [
|
|
2695
|
-
"
|
|
2845
|
+
"opam install"
|
|
2696
2846
|
],
|
|
2697
2847
|
"extensions": [
|
|
2698
|
-
"
|
|
2848
|
+
".install"
|
|
2849
|
+
]
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
"id": "ocaml.META",
|
|
2853
|
+
"aliases": [
|
|
2854
|
+
"META",
|
|
2855
|
+
"meta"
|
|
2856
|
+
],
|
|
2857
|
+
"filenames": [
|
|
2858
|
+
"META"
|
|
2699
2859
|
]
|
|
2700
2860
|
},
|
|
2701
2861
|
{
|
|
2702
2862
|
"id": "ocaml.ocamlbuild",
|
|
2703
2863
|
"aliases": [
|
|
2704
|
-
"OCamlbuild"
|
|
2864
|
+
"OCamlbuild",
|
|
2865
|
+
"ocamlbuild"
|
|
2705
2866
|
],
|
|
2706
2867
|
"extensions": [
|
|
2707
2868
|
"_tags"
|
|
2708
2869
|
]
|
|
2709
2870
|
},
|
|
2710
2871
|
{
|
|
2711
|
-
"id": "ocaml.
|
|
2872
|
+
"id": "ocaml.oasis",
|
|
2712
2873
|
"aliases": [
|
|
2713
|
-
"
|
|
2874
|
+
"OASIS",
|
|
2875
|
+
"oasis"
|
|
2714
2876
|
],
|
|
2715
2877
|
"extensions": [
|
|
2716
|
-
"
|
|
2878
|
+
"_oasis"
|
|
2717
2879
|
]
|
|
2718
2880
|
},
|
|
2719
2881
|
{
|
|
2720
|
-
"id": "
|
|
2882
|
+
"id": "ocaml.ocamldoc",
|
|
2721
2883
|
"aliases": [
|
|
2722
|
-
"
|
|
2884
|
+
"OCamldoc",
|
|
2885
|
+
"ocamldoc"
|
|
2723
2886
|
],
|
|
2724
2887
|
"extensions": [
|
|
2725
|
-
".
|
|
2726
|
-
".rei"
|
|
2888
|
+
".mld"
|
|
2727
2889
|
]
|
|
2728
2890
|
},
|
|
2729
2891
|
{
|
|
2730
|
-
"id": "
|
|
2892
|
+
"id": "ocaml.ocamlformat",
|
|
2893
|
+
"aliases": [
|
|
2894
|
+
"OCamlFormat",
|
|
2895
|
+
"ocamlformat"
|
|
2896
|
+
],
|
|
2897
|
+
"extensions": [
|
|
2898
|
+
".ocamlformat"
|
|
2899
|
+
]
|
|
2731
2900
|
},
|
|
2732
2901
|
{
|
|
2733
|
-
"id": "
|
|
2902
|
+
"id": "ocaml.ocamllex",
|
|
2903
|
+
"aliases": [
|
|
2904
|
+
"OCamllex",
|
|
2905
|
+
"ocamllex"
|
|
2906
|
+
],
|
|
2907
|
+
"extensions": [
|
|
2908
|
+
".mll"
|
|
2909
|
+
]
|
|
2734
2910
|
},
|
|
2735
2911
|
{
|
|
2736
|
-
"id": "
|
|
2912
|
+
"id": "ocaml.menhir",
|
|
2913
|
+
"aliases": [
|
|
2914
|
+
"Menhir",
|
|
2915
|
+
"menhir",
|
|
2916
|
+
"OCamlyacc",
|
|
2917
|
+
"ocamlyacc"
|
|
2918
|
+
],
|
|
2919
|
+
"extensions": [
|
|
2920
|
+
".mly"
|
|
2921
|
+
]
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"id": "atd",
|
|
2925
|
+
"aliases": [
|
|
2926
|
+
"ATD",
|
|
2927
|
+
"atd"
|
|
2928
|
+
],
|
|
2929
|
+
"extensions": [
|
|
2930
|
+
".atd"
|
|
2931
|
+
]
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
"id": "reason",
|
|
2935
|
+
"aliases": [
|
|
2936
|
+
"Reason",
|
|
2937
|
+
"reason"
|
|
2938
|
+
],
|
|
2939
|
+
"extensions": [
|
|
2940
|
+
".re",
|
|
2941
|
+
".rei"
|
|
2942
|
+
]
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"id": "cram",
|
|
2946
|
+
"aliases": [
|
|
2947
|
+
"Cram Test",
|
|
2948
|
+
"Cram",
|
|
2949
|
+
"cram"
|
|
2950
|
+
],
|
|
2951
|
+
"extensions": [
|
|
2952
|
+
".t"
|
|
2953
|
+
]
|
|
2737
2954
|
},
|
|
2738
2955
|
{
|
|
2739
2956
|
"id": "pascal",
|
|
@@ -2812,6 +3029,9 @@ var textMateLanguages = [
|
|
|
2812
3029
|
"extensions": [
|
|
2813
3030
|
".cpy",
|
|
2814
3031
|
".copy"
|
|
3032
|
+
],
|
|
3033
|
+
"filenamePatterns": [
|
|
3034
|
+
"**/*copybook*/**"
|
|
2815
3035
|
]
|
|
2816
3036
|
},
|
|
2817
3037
|
{
|
|
@@ -3475,11 +3695,76 @@ const loader$2 = {
|
|
|
3475
3695
|
|
|
3476
3696
|
/* webpackMode: "lazy" */
|
|
3477
3697
|
'./kotlinscript.js').then(module => module)).default,
|
|
3698
|
+
'dune': async () => (await import(
|
|
3699
|
+
/* webpackChunkName: "language-configuration-dune" */
|
|
3700
|
+
|
|
3701
|
+
/* webpackMode: "lazy" */
|
|
3702
|
+
'./dune.js').then(module => module)).default,
|
|
3703
|
+
'dune-project': async () => (await import(
|
|
3704
|
+
/* webpackChunkName: "language-configuration-dune-project" */
|
|
3705
|
+
|
|
3706
|
+
/* webpackMode: "lazy" */
|
|
3707
|
+
'./dune-project.js').then(module => module)).default,
|
|
3708
|
+
'dune-workspace': async () => (await import(
|
|
3709
|
+
/* webpackChunkName: "language-configuration-dune-workspace" */
|
|
3710
|
+
|
|
3711
|
+
/* webpackMode: "lazy" */
|
|
3712
|
+
'./dune-workspace.js').then(module => module)).default,
|
|
3478
3713
|
'ocaml': async () => (await import(
|
|
3479
3714
|
/* webpackChunkName: "language-configuration-ocaml" */
|
|
3480
3715
|
|
|
3481
3716
|
/* webpackMode: "lazy" */
|
|
3482
3717
|
'./ocaml.js').then(module => module)).default,
|
|
3718
|
+
'ocaml.interface': async () => (await import(
|
|
3719
|
+
/* webpackChunkName: "language-configuration-ocaml.interface" */
|
|
3720
|
+
|
|
3721
|
+
/* webpackMode: "lazy" */
|
|
3722
|
+
'./ocaml.interface.js').then(module => module)).default,
|
|
3723
|
+
'ocaml.opam': async () => (await import(
|
|
3724
|
+
/* webpackChunkName: "language-configuration-ocaml.opam" */
|
|
3725
|
+
|
|
3726
|
+
/* webpackMode: "lazy" */
|
|
3727
|
+
'./ocaml.opam.js').then(module => module)).default,
|
|
3728
|
+
'ocaml.opam-install': async () => (await import(
|
|
3729
|
+
/* webpackChunkName: "language-configuration-ocaml.opam-install" */
|
|
3730
|
+
|
|
3731
|
+
/* webpackMode: "lazy" */
|
|
3732
|
+
'./ocaml.opam-install.js').then(module => module)).default,
|
|
3733
|
+
'ocaml.META': async () => (await import(
|
|
3734
|
+
/* webpackChunkName: "language-configuration-ocaml.META" */
|
|
3735
|
+
|
|
3736
|
+
/* webpackMode: "lazy" */
|
|
3737
|
+
'./ocaml.META.js').then(module => module)).default,
|
|
3738
|
+
'ocaml.ocamlbuild': async () => (await import(
|
|
3739
|
+
/* webpackChunkName: "language-configuration-ocaml.ocamlbuild" */
|
|
3740
|
+
|
|
3741
|
+
/* webpackMode: "lazy" */
|
|
3742
|
+
'./ocaml.ocamlbuild.js').then(module => module)).default,
|
|
3743
|
+
'ocaml.oasis': async () => (await import(
|
|
3744
|
+
/* webpackChunkName: "language-configuration-ocaml.oasis" */
|
|
3745
|
+
|
|
3746
|
+
/* webpackMode: "lazy" */
|
|
3747
|
+
'./ocaml.oasis.js').then(module => module)).default,
|
|
3748
|
+
'ocaml.ocamlformat': async () => (await import(
|
|
3749
|
+
/* webpackChunkName: "language-configuration-ocaml.ocamlformat" */
|
|
3750
|
+
|
|
3751
|
+
/* webpackMode: "lazy" */
|
|
3752
|
+
'./ocaml.ocamlformat.js').then(module => module)).default,
|
|
3753
|
+
'ocaml.ocamllex': async () => (await import(
|
|
3754
|
+
/* webpackChunkName: "language-configuration-ocaml.ocamllex" */
|
|
3755
|
+
|
|
3756
|
+
/* webpackMode: "lazy" */
|
|
3757
|
+
'./ocaml.ocamllex.js').then(module => module)).default,
|
|
3758
|
+
'ocaml.menhir': async () => (await import(
|
|
3759
|
+
/* webpackChunkName: "language-configuration-ocaml.menhir" */
|
|
3760
|
+
|
|
3761
|
+
/* webpackMode: "lazy" */
|
|
3762
|
+
'./ocaml.menhir.js').then(module => module)).default,
|
|
3763
|
+
'atd': async () => (await import(
|
|
3764
|
+
/* webpackChunkName: "language-configuration-atd" */
|
|
3765
|
+
|
|
3766
|
+
/* webpackMode: "lazy" */
|
|
3767
|
+
'./atd.js').then(module => module)).default,
|
|
3483
3768
|
'reason': async () => (await import(
|
|
3484
3769
|
/* webpackChunkName: "language-configuration-reason" */
|
|
3485
3770
|
|
|
@@ -3691,11 +3976,26 @@ const loader$1 = {
|
|
|
3691
3976
|
|
|
3692
3977
|
/* webpackMode: "lazy" */
|
|
3693
3978
|
'./kotlin-kotlin.js').then(module => module)).default,
|
|
3694
|
-
'
|
|
3695
|
-
/* webpackChunkName: "snippet-
|
|
3979
|
+
'dune': async () => (await import(
|
|
3980
|
+
/* webpackChunkName: "snippet-dune" */
|
|
3981
|
+
|
|
3982
|
+
/* webpackMode: "lazy" */
|
|
3983
|
+
'./ocaml-dune.js').then(module => module)).default,
|
|
3984
|
+
'dune-project': async () => (await import(
|
|
3985
|
+
/* webpackChunkName: "snippet-dune-project" */
|
|
3986
|
+
|
|
3987
|
+
/* webpackMode: "lazy" */
|
|
3988
|
+
'./ocaml-dune-project.js').then(module => module)).default,
|
|
3989
|
+
'ocaml': async () => (await import(
|
|
3990
|
+
/* webpackChunkName: "snippet-ocaml" */
|
|
3991
|
+
|
|
3992
|
+
/* webpackMode: "lazy" */
|
|
3993
|
+
'./ocaml-ocaml.js').then(module => module)).default,
|
|
3994
|
+
'ocaml.ocamllex': async () => (await import(
|
|
3995
|
+
/* webpackChunkName: "snippet-ocaml.ocamllex" */
|
|
3696
3996
|
|
|
3697
3997
|
/* webpackMode: "lazy" */
|
|
3698
|
-
'./ocaml-
|
|
3998
|
+
'./ocaml-ocamllex.js').then(module => module)).default,
|
|
3699
3999
|
'pascal': async () => (await import(
|
|
3700
4000
|
/* webpackChunkName: "snippet-pascal" */
|
|
3701
4001
|
|
|
@@ -4080,326 +4380,6 @@ for (const themeExtensionPoint of defaultThemes) {
|
|
|
4080
4380
|
});
|
|
4081
4381
|
}
|
|
4082
4382
|
|
|
4083
|
-
let popupEditorDisposable = null;
|
|
4084
|
-
|
|
4085
|
-
function openNewCodeEditor(model) {
|
|
4086
|
-
if (popupEditorDisposable != null) {
|
|
4087
|
-
popupEditorDisposable.dispose();
|
|
4088
|
-
popupEditorDisposable = null;
|
|
4089
|
-
}
|
|
4090
|
-
|
|
4091
|
-
const container = document.createElement('div');
|
|
4092
|
-
container.style.position = 'fixed';
|
|
4093
|
-
container.style.zIndex = '10000';
|
|
4094
|
-
container.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
|
|
4095
|
-
container.style.top = container.style.bottom = container.style.left = container.style.right = '0';
|
|
4096
|
-
container.style.cursor = 'pointer';
|
|
4097
|
-
const editorElem = document.createElement('div');
|
|
4098
|
-
editorElem.style.position = 'absolute';
|
|
4099
|
-
editorElem.style.top = editorElem.style.bottom = editorElem.style.left = editorElem.style.right = '0';
|
|
4100
|
-
editorElem.style.margin = 'auto';
|
|
4101
|
-
editorElem.style.width = '80%';
|
|
4102
|
-
editorElem.style.height = '80%';
|
|
4103
|
-
container.appendChild(editorElem);
|
|
4104
|
-
document.body.appendChild(container);
|
|
4105
|
-
const editor = createEditor(editorElem, _objectSpread2({
|
|
4106
|
-
model,
|
|
4107
|
-
readOnly: true,
|
|
4108
|
-
automaticLayout: true
|
|
4109
|
-
}, getConfiguration$1(model.getLanguageId(), 'editor')));
|
|
4110
|
-
popupEditorDisposable = {
|
|
4111
|
-
dispose: () => {
|
|
4112
|
-
editor.dispose();
|
|
4113
|
-
document.body.removeChild(container);
|
|
4114
|
-
popupEditorDisposable = null;
|
|
4115
|
-
}
|
|
4116
|
-
};
|
|
4117
|
-
container.addEventListener('mousedown', event => {
|
|
4118
|
-
var _popupEditorDisposabl;
|
|
4119
|
-
|
|
4120
|
-
if (event.target !== container) {
|
|
4121
|
-
return;
|
|
4122
|
-
}
|
|
4123
|
-
|
|
4124
|
-
(_popupEditorDisposabl = popupEditorDisposable) === null || _popupEditorDisposabl === void 0 ? void 0 : _popupEditorDisposabl.dispose();
|
|
4125
|
-
});
|
|
4126
|
-
return editor;
|
|
4127
|
-
}
|
|
4128
|
-
|
|
4129
|
-
class MultiEditorStandaloneCodeEditorServiceImpl extends monaco$2.extra.StandaloneCodeEditorService {
|
|
4130
|
-
constructor(contextKeyService, themeService, textModelService) {
|
|
4131
|
-
super(contextKeyService, themeService);
|
|
4132
|
-
|
|
4133
|
-
_defineProperty(this, "textModelService", void 0);
|
|
4134
|
-
|
|
4135
|
-
_defineProperty(this, "handlers", []);
|
|
4136
|
-
|
|
4137
|
-
this.textModelService = textModelService;
|
|
4138
|
-
}
|
|
4139
|
-
|
|
4140
|
-
registerEditorOpenHandler(handler) {
|
|
4141
|
-
this.handlers.push(handler);
|
|
4142
|
-
return {
|
|
4143
|
-
dispose: () => {
|
|
4144
|
-
const index = this.handlers.indexOf(handler);
|
|
4145
|
-
|
|
4146
|
-
if (index >= 0) {
|
|
4147
|
-
this.handlers.splice(index, 1);
|
|
4148
|
-
}
|
|
4149
|
-
}
|
|
4150
|
-
};
|
|
4151
|
-
}
|
|
4152
|
-
|
|
4153
|
-
async openCodeEditor(input, editor, sideBySide) {
|
|
4154
|
-
var _modelEditor$getDomNo;
|
|
4155
|
-
|
|
4156
|
-
const reference = await this.textModelService.createModelReference(input.resource);
|
|
4157
|
-
const model = reference.object.textEditorModel;
|
|
4158
|
-
let modelEditor;
|
|
4159
|
-
|
|
4160
|
-
if (editor != null && editor.getModel() === model) {
|
|
4161
|
-
modelEditor = editor;
|
|
4162
|
-
}
|
|
4163
|
-
|
|
4164
|
-
if (modelEditor == null) {
|
|
4165
|
-
const codeEditors = monaco$2.extra.StandaloneServices.get(monaco$2.extra.ICodeEditorService).listCodeEditors();
|
|
4166
|
-
modelEditor = codeEditors.find(editor => editor.getModel() === model);
|
|
4167
|
-
}
|
|
4168
|
-
|
|
4169
|
-
if (modelEditor == null) {
|
|
4170
|
-
for (const handler of this.handlers) {
|
|
4171
|
-
const handlerEditor = await handler(model, input, editor, sideBySide);
|
|
4172
|
-
|
|
4173
|
-
if (handlerEditor != null) {
|
|
4174
|
-
modelEditor = handlerEditor;
|
|
4175
|
-
break;
|
|
4176
|
-
}
|
|
4177
|
-
}
|
|
4178
|
-
}
|
|
4179
|
-
|
|
4180
|
-
if (modelEditor == null) {
|
|
4181
|
-
modelEditor = openNewCodeEditor(model);
|
|
4182
|
-
}
|
|
4183
|
-
|
|
4184
|
-
super.doOpenEditor(modelEditor, input);
|
|
4185
|
-
modelEditor.focus();
|
|
4186
|
-
|
|
4187
|
-
if (((_modelEditor$getDomNo = modelEditor.getDomNode()) === null || _modelEditor$getDomNo === void 0 ? void 0 : _modelEditor$getDomNo.scrollIntoView) != null) {
|
|
4188
|
-
var _modelEditor$getDomNo2;
|
|
4189
|
-
|
|
4190
|
-
(_modelEditor$getDomNo2 = modelEditor.getDomNode()) === null || _modelEditor$getDomNo2 === void 0 ? void 0 : _modelEditor$getDomNo2.scrollIntoView({
|
|
4191
|
-
block: 'nearest',
|
|
4192
|
-
inline: 'nearest'
|
|
4193
|
-
});
|
|
4194
|
-
}
|
|
4195
|
-
|
|
4196
|
-
const onModelUnmount = () => {
|
|
4197
|
-
reference.dispose();
|
|
4198
|
-
};
|
|
4199
|
-
|
|
4200
|
-
const onDidDisposeDisposable = modelEditor.onDidDispose(() => {
|
|
4201
|
-
onModelUnmount();
|
|
4202
|
-
});
|
|
4203
|
-
const onDidChangeModelDisposable = modelEditor.onDidChangeModel(e => {
|
|
4204
|
-
if (e.newModelUrl == null || e.newModelUrl.toString() !== model.uri.toString()) {
|
|
4205
|
-
onModelUnmount();
|
|
4206
|
-
onDidDisposeDisposable.dispose();
|
|
4207
|
-
onDidChangeModelDisposable.dispose();
|
|
4208
|
-
}
|
|
4209
|
-
});
|
|
4210
|
-
return modelEditor;
|
|
4211
|
-
}
|
|
4212
|
-
|
|
4213
|
-
}
|
|
4214
|
-
|
|
4215
|
-
class SimpleResolvedModel {
|
|
4216
|
-
constructor(model, readonly) {
|
|
4217
|
-
this.model = model;
|
|
4218
|
-
this.readonly = readonly;
|
|
4219
|
-
|
|
4220
|
-
_defineProperty(this, "_onWillDispose", void 0);
|
|
4221
|
-
|
|
4222
|
-
_defineProperty(this, "disposed", false);
|
|
4223
|
-
|
|
4224
|
-
this._onWillDispose = new monaco$2.Emitter();
|
|
4225
|
-
}
|
|
4226
|
-
|
|
4227
|
-
getLanguageId() {
|
|
4228
|
-
return this.model.getLanguageId();
|
|
4229
|
-
}
|
|
4230
|
-
|
|
4231
|
-
get onWillDispose() {
|
|
4232
|
-
return this._onWillDispose.event;
|
|
4233
|
-
}
|
|
4234
|
-
|
|
4235
|
-
resolve() {
|
|
4236
|
-
return Promise.resolve();
|
|
4237
|
-
}
|
|
4238
|
-
|
|
4239
|
-
get textEditorModel() {
|
|
4240
|
-
return this.model;
|
|
4241
|
-
}
|
|
4242
|
-
|
|
4243
|
-
createSnapshot() {
|
|
4244
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4245
|
-
return this.model.createSnapshot();
|
|
4246
|
-
}
|
|
4247
|
-
|
|
4248
|
-
isReadonly() {
|
|
4249
|
-
return this.readonly;
|
|
4250
|
-
}
|
|
4251
|
-
|
|
4252
|
-
dispose() {
|
|
4253
|
-
this.disposed = true;
|
|
4254
|
-
|
|
4255
|
-
this._onWillDispose.fire();
|
|
4256
|
-
}
|
|
4257
|
-
|
|
4258
|
-
isDisposed() {
|
|
4259
|
-
return this.disposed;
|
|
4260
|
-
}
|
|
4261
|
-
|
|
4262
|
-
isResolved() {
|
|
4263
|
-
return true;
|
|
4264
|
-
}
|
|
4265
|
-
|
|
4266
|
-
getMode() {
|
|
4267
|
-
return this.model.getLanguageId();
|
|
4268
|
-
}
|
|
4269
|
-
|
|
4270
|
-
}
|
|
4271
|
-
|
|
4272
|
-
class ResourceModelCollection extends monaco$2.extra.ReferenceCollection {
|
|
4273
|
-
constructor() {
|
|
4274
|
-
super(...arguments);
|
|
4275
|
-
|
|
4276
|
-
_defineProperty(this, "providers", new Map());
|
|
4277
|
-
|
|
4278
|
-
_defineProperty(this, "modelsToDispose", new Set());
|
|
4279
|
-
}
|
|
4280
|
-
|
|
4281
|
-
async createReferencedObject(key) {
|
|
4282
|
-
// Untrack as being disposed
|
|
4283
|
-
this.modelsToDispose.delete(key);
|
|
4284
|
-
const resource = monaco$2.Uri.parse(key);
|
|
4285
|
-
const existingModel = monaco$2.editor.getModel(resource);
|
|
4286
|
-
|
|
4287
|
-
if (existingModel != null) {
|
|
4288
|
-
return new SimpleResolvedModel(existingModel, false);
|
|
4289
|
-
}
|
|
4290
|
-
|
|
4291
|
-
if (this.providers.has(resource.scheme)) {
|
|
4292
|
-
const model = await this.resolveTextModelContent(key);
|
|
4293
|
-
const resolvedModel = new SimpleResolvedModel(model, true);
|
|
4294
|
-
resolvedModel.onWillDispose(() => {
|
|
4295
|
-
model.dispose();
|
|
4296
|
-
});
|
|
4297
|
-
return resolvedModel;
|
|
4298
|
-
}
|
|
4299
|
-
|
|
4300
|
-
throw new Error("Unable to resolve resource ".concat(key));
|
|
4301
|
-
}
|
|
4302
|
-
|
|
4303
|
-
destroyReferencedObject(key, modelPromise) {
|
|
4304
|
-
const resource = monaco$2.Uri.parse(key);
|
|
4305
|
-
|
|
4306
|
-
if (resource.scheme === 'untitled' || resource.scheme === 'inMemory') {
|
|
4307
|
-
return;
|
|
4308
|
-
}
|
|
4309
|
-
|
|
4310
|
-
this.modelsToDispose.add(key);
|
|
4311
|
-
(async () => {
|
|
4312
|
-
try {
|
|
4313
|
-
const model = await modelPromise;
|
|
4314
|
-
|
|
4315
|
-
if (!this.modelsToDispose.has(key)) {
|
|
4316
|
-
// return if model has been acquired again meanwhile
|
|
4317
|
-
return;
|
|
4318
|
-
} // Finally we can dispose the model
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
model.dispose();
|
|
4322
|
-
} finally {
|
|
4323
|
-
this.modelsToDispose.delete(key); // Untrack as being disposed
|
|
4324
|
-
}
|
|
4325
|
-
})().catch(() => {// ignore
|
|
4326
|
-
});
|
|
4327
|
-
}
|
|
4328
|
-
|
|
4329
|
-
registerTextModelContentProvider(scheme, provider) {
|
|
4330
|
-
let providers = this.providers.get(scheme);
|
|
4331
|
-
|
|
4332
|
-
if (providers == null) {
|
|
4333
|
-
providers = [];
|
|
4334
|
-
this.providers.set(scheme, providers);
|
|
4335
|
-
}
|
|
4336
|
-
|
|
4337
|
-
providers.unshift(provider);
|
|
4338
|
-
return monaco$2.extra.toDisposable(() => {
|
|
4339
|
-
const providersForScheme = this.providers.get(scheme);
|
|
4340
|
-
|
|
4341
|
-
if (providersForScheme == null) {
|
|
4342
|
-
return;
|
|
4343
|
-
}
|
|
4344
|
-
|
|
4345
|
-
const index = providersForScheme.indexOf(provider);
|
|
4346
|
-
|
|
4347
|
-
if (index === -1) {
|
|
4348
|
-
return;
|
|
4349
|
-
}
|
|
4350
|
-
|
|
4351
|
-
providersForScheme.splice(index, 1);
|
|
4352
|
-
|
|
4353
|
-
if (providersForScheme.length === 0) {
|
|
4354
|
-
this.providers.delete(scheme);
|
|
4355
|
-
}
|
|
4356
|
-
});
|
|
4357
|
-
}
|
|
4358
|
-
|
|
4359
|
-
hasTextModelContentProvider(scheme) {
|
|
4360
|
-
return this.providers.get(scheme) !== undefined;
|
|
4361
|
-
}
|
|
4362
|
-
|
|
4363
|
-
async resolveTextModelContent(key) {
|
|
4364
|
-
var _this$providers$get;
|
|
4365
|
-
|
|
4366
|
-
const resource = monaco$2.Uri.parse(key);
|
|
4367
|
-
const providersForScheme = (_this$providers$get = this.providers.get(resource.scheme)) !== null && _this$providers$get !== void 0 ? _this$providers$get : [];
|
|
4368
|
-
|
|
4369
|
-
for (const provider of providersForScheme) {
|
|
4370
|
-
const value = await provider.provideTextContent(resource);
|
|
4371
|
-
|
|
4372
|
-
if (value != null) {
|
|
4373
|
-
return value;
|
|
4374
|
-
}
|
|
4375
|
-
}
|
|
4376
|
-
|
|
4377
|
-
throw new Error("Unable to resolve text model content for resource ".concat(key));
|
|
4378
|
-
}
|
|
4379
|
-
|
|
4380
|
-
}
|
|
4381
|
-
|
|
4382
|
-
class TextModelService extends monaco$2.extra.StandaloneTextModelService {
|
|
4383
|
-
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
4384
|
-
constructor(modelService) {
|
|
4385
|
-
super(modelService);
|
|
4386
|
-
|
|
4387
|
-
_defineProperty(this, "resourceModelCollection", new ResourceModelCollection());
|
|
4388
|
-
|
|
4389
|
-
_defineProperty(this, "asyncModelCollection", new monaco$2.extra.AsyncReferenceCollection(this.resourceModelCollection));
|
|
4390
|
-
}
|
|
4391
|
-
|
|
4392
|
-
registerTextModelContentProvider(scheme, provider) {
|
|
4393
|
-
return this.resourceModelCollection.registerTextModelContentProvider(scheme, provider);
|
|
4394
|
-
}
|
|
4395
|
-
|
|
4396
|
-
async createModelReference(resource) {
|
|
4397
|
-
const result = await this.asyncModelCollection.acquire(resource.toString());
|
|
4398
|
-
return result;
|
|
4399
|
-
}
|
|
4400
|
-
|
|
4401
|
-
}
|
|
4402
|
-
|
|
4403
4383
|
const fixedPositions = [0, 6, 7, 11];
|
|
4404
4384
|
const lastFixedPosition = fixedPositions[fixedPositions.length - 1];
|
|
4405
4385
|
|
|
@@ -4519,16 +4499,136 @@ function setup(editor) {
|
|
|
4519
4499
|
setup$1(editor);
|
|
4520
4500
|
}
|
|
4521
4501
|
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4502
|
+
let currentEditor = null;
|
|
4503
|
+
|
|
4504
|
+
function openNewCodeEditor(model) {
|
|
4505
|
+
if (currentEditor != null && model === currentEditor.model) {
|
|
4506
|
+
return currentEditor.editor;
|
|
4507
|
+
}
|
|
4508
|
+
|
|
4509
|
+
if (currentEditor != null) {
|
|
4510
|
+
currentEditor.dispose();
|
|
4511
|
+
currentEditor = null;
|
|
4512
|
+
}
|
|
4513
|
+
|
|
4514
|
+
const container = document.createElement('div');
|
|
4515
|
+
container.style.position = 'fixed';
|
|
4516
|
+
container.style.zIndex = '10000';
|
|
4517
|
+
container.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
|
|
4518
|
+
container.style.top = container.style.bottom = container.style.left = container.style.right = '0';
|
|
4519
|
+
container.style.cursor = 'pointer';
|
|
4520
|
+
const editorElem = document.createElement('div');
|
|
4521
|
+
editorElem.style.position = 'absolute';
|
|
4522
|
+
editorElem.style.top = editorElem.style.bottom = editorElem.style.left = editorElem.style.right = '0';
|
|
4523
|
+
editorElem.style.margin = 'auto';
|
|
4524
|
+
editorElem.style.width = '80%';
|
|
4525
|
+
editorElem.style.height = '80%';
|
|
4526
|
+
container.appendChild(editorElem);
|
|
4527
|
+
document.body.appendChild(container);
|
|
4528
|
+
|
|
4529
|
+
try {
|
|
4530
|
+
const editor = createEditor(editorElem, _objectSpread2({
|
|
4531
|
+
model,
|
|
4532
|
+
readOnly: true,
|
|
4533
|
+
automaticLayout: true
|
|
4534
|
+
}, getConfiguration$1(model.getLanguageId(), 'editor')));
|
|
4535
|
+
currentEditor = {
|
|
4536
|
+
dispose: () => {
|
|
4537
|
+
editor.dispose();
|
|
4538
|
+
document.body.removeChild(container);
|
|
4539
|
+
currentEditor = null;
|
|
4540
|
+
},
|
|
4541
|
+
model,
|
|
4542
|
+
editor
|
|
4543
|
+
};
|
|
4544
|
+
container.addEventListener('mousedown', event => {
|
|
4545
|
+
var _currentEditor;
|
|
4546
|
+
|
|
4547
|
+
if (event.target !== container) {
|
|
4548
|
+
return;
|
|
4549
|
+
}
|
|
4526
4550
|
|
|
4527
|
-
|
|
4528
|
-
|
|
4551
|
+
(_currentEditor = currentEditor) === null || _currentEditor === void 0 ? void 0 : _currentEditor.dispose();
|
|
4552
|
+
});
|
|
4553
|
+
return editor;
|
|
4554
|
+
} catch (error) {
|
|
4555
|
+
document.body.removeChild(container);
|
|
4556
|
+
currentEditor = null;
|
|
4557
|
+
throw error;
|
|
4529
4558
|
}
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
class EditorOpenHandlerRegistry {
|
|
4562
|
+
constructor() {
|
|
4563
|
+
_defineProperty(this, "handlers", []);
|
|
4564
|
+
|
|
4565
|
+
_defineProperty(this, "openCodeEditor", async (model, options, sideBySide) => {
|
|
4566
|
+
var _modelEditor$getDomNo;
|
|
4567
|
+
|
|
4568
|
+
let modelEditor;
|
|
4569
|
+
|
|
4570
|
+
for (const handler of this.handlers) {
|
|
4571
|
+
const handlerEditor = await handler(model, options, null, sideBySide);
|
|
4572
|
+
|
|
4573
|
+
if (handlerEditor != null) {
|
|
4574
|
+
modelEditor = handlerEditor;
|
|
4575
|
+
break;
|
|
4576
|
+
}
|
|
4577
|
+
}
|
|
4578
|
+
|
|
4579
|
+
if (modelEditor == null) {
|
|
4580
|
+
modelEditor = openNewCodeEditor(model); // Destroy model ref when we close the editor popup
|
|
4581
|
+
|
|
4582
|
+
const onModelUnmount = () => {
|
|
4583
|
+
model.dispose();
|
|
4584
|
+
};
|
|
4585
|
+
|
|
4586
|
+
const onDidDisposeDisposable = modelEditor.onDidDispose(() => {
|
|
4587
|
+
onModelUnmount();
|
|
4588
|
+
});
|
|
4589
|
+
const onDidChangeModelDisposable = modelEditor.onDidChangeModel(e => {
|
|
4590
|
+
if (e.newModelUrl == null || e.newModelUrl.toString() !== model.uri.toString()) {
|
|
4591
|
+
onModelUnmount();
|
|
4592
|
+
onDidDisposeDisposable.dispose();
|
|
4593
|
+
onDidChangeModelDisposable.dispose();
|
|
4594
|
+
}
|
|
4595
|
+
});
|
|
4596
|
+
}
|
|
4597
|
+
|
|
4598
|
+
modelEditor.focus();
|
|
4599
|
+
|
|
4600
|
+
if (((_modelEditor$getDomNo = modelEditor.getDomNode()) === null || _modelEditor$getDomNo === void 0 ? void 0 : _modelEditor$getDomNo.scrollIntoView) != null) {
|
|
4601
|
+
var _modelEditor$getDomNo2;
|
|
4602
|
+
|
|
4603
|
+
(_modelEditor$getDomNo2 = modelEditor.getDomNode()) === null || _modelEditor$getDomNo2 === void 0 ? void 0 : _modelEditor$getDomNo2.scrollIntoView({
|
|
4604
|
+
block: 'nearest',
|
|
4605
|
+
inline: 'nearest'
|
|
4606
|
+
});
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4609
|
+
return modelEditor;
|
|
4610
|
+
});
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
registerEditorOpenHandler(handler) {
|
|
4614
|
+
this.handlers.push(handler);
|
|
4615
|
+
return {
|
|
4616
|
+
dispose: () => {
|
|
4617
|
+
const index = this.handlers.indexOf(handler);
|
|
4618
|
+
|
|
4619
|
+
if (index >= 0) {
|
|
4620
|
+
this.handlers.splice(index, 1);
|
|
4621
|
+
}
|
|
4622
|
+
}
|
|
4623
|
+
};
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
}
|
|
4530
4627
|
|
|
4531
|
-
|
|
4628
|
+
const editorOpenHandlerRegistry = new EditorOpenHandlerRegistry();
|
|
4629
|
+
monaco$2.extra.StandaloneServices.initialize(_objectSpread2(_objectSpread2({}, getModelEditorServiceOverride((model, input, sideBySide) => {
|
|
4630
|
+
return editorOpenHandlerRegistry.openCodeEditor(model, input, sideBySide);
|
|
4631
|
+
})), getMessageServiceOverride(document.body))); // Disable high contrast autodetection because it fallbacks on the hc-black no matter what
|
|
4532
4632
|
|
|
4533
4633
|
monaco$2.extra.StandaloneServices.get(monaco$2.editor.IStandaloneThemeService).setAutoDetectHighContrast(false); // Force EOL to be '\n' even on Windows
|
|
4534
4634
|
|
|
@@ -4554,8 +4654,7 @@ function registerTextModelContentProvider(scheme, provider) {
|
|
|
4554
4654
|
}
|
|
4555
4655
|
|
|
4556
4656
|
function registerEditorOpenHandler(handler) {
|
|
4557
|
-
|
|
4558
|
-
return codeEditorService.registerEditorOpenHandler(handler);
|
|
4657
|
+
return editorOpenHandlerRegistry.registerEditorOpenHandler(handler);
|
|
4559
4658
|
}
|
|
4560
4659
|
|
|
4561
4660
|
var lib$1 = {};
|
|
@@ -16393,8 +16492,8 @@ function initVimMode(editor, statusBarElement) {
|
|
|
16393
16492
|
return lib.initVimMode(editor, statusBarElement);
|
|
16394
16493
|
}
|
|
16395
16494
|
|
|
16396
|
-
const keybindingService = monaco$2.extra.StandaloneServices.get(monaco$2.extra.IKeybindingService);
|
|
16397
16495
|
function updateKeybindings(bindings) {
|
|
16496
|
+
const keybindingService = monaco$2.extra.StandaloneServices.get(monaco$2.extra.IKeybindingService);
|
|
16398
16497
|
keybindingService.setUserKeybindings(bindings);
|
|
16399
16498
|
}
|
|
16400
16499
|
function updateEditorKeybindingsMode(editor) {
|