@codingame/monaco-editor-wrapper 3.9.3 → 3.10.0-monaco-update.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.
Files changed (638) hide show
  1. package/README.md +0 -15
  2. package/dist/{_monaco-editor_commonjs-external.js → _virtual/_commonjsHelpers.js} +2 -9
  3. package/dist/_virtual/_monaco-editor.js +6 -0
  4. package/dist/_virtual/actions.js +3 -0
  5. package/dist/_virtual/basicInput.js +3 -0
  6. package/dist/_virtual/cm_adapter.js +3 -0
  7. package/dist/_virtual/commands.js +3 -0
  8. package/dist/_virtual/editor.api.js +6 -0
  9. package/dist/_virtual/index.js +3 -0
  10. package/dist/_virtual/index2.js +3 -0
  11. package/dist/_virtual/index3.js +3 -0
  12. package/dist/_virtual/keymap_vim.js +3 -0
  13. package/dist/_virtual/shiftCommand.js +6 -0
  14. package/dist/_virtual/state.js +3 -0
  15. package/dist/_virtual/statusbar.js +3 -0
  16. package/dist/_virtual/util.js +3 -0
  17. package/dist/assets/Angular.ng-template-16.1.8.vsix/expression-c051cd51.json +834 -0
  18. package/dist/assets/Angular.ng-template-16.1.8.vsix/inline-styles-59ea31e9.json +92 -0
  19. package/dist/assets/Angular.ng-template-16.1.8.vsix/inline-template-f0c3f556.json +76 -0
  20. package/dist/assets/Angular.ng-template-16.1.8.vsix/template-e24e3ba1.json +195 -0
  21. package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/dart-bea1db40.json +534 -0
  22. package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/dart-language-configuration-c4b1f694.json +29 -0
  23. package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/flutter_activity_bar-17811551.svg +14 -0
  24. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/codeblock-67e70f41.json +81 -0
  25. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/language-configuration-3467c3a6.json +57 -0
  26. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog-ff001e9f.json +349 -0
  27. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog.tmLanguage-31a99a46.json +1246 -0
  28. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/tasks.schema-832643df.json +30 -0
  29. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/eex-e9a5e762.json +41 -0
  30. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/eex-language-configuration-6fb789e3.json +58 -0
  31. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/elixir-7cb5db44.json +2580 -0
  32. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/elixir-language-configuration-4bd217f4.json +74 -0
  33. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/html-eex-3079072a.json +25 -0
  34. package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity-1f693465.json +213 -0
  35. package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity-642a30e7.json +1215 -0
  36. package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity.configuration-d0229207.json +32 -0
  37. package/dist/assets/REditorSupport.r-2.8.2.vsix/Markdown Redcarpet-12881a56.json +146 -0
  38. package/dist/assets/REditorSupport.r-2.8.2.vsix/RMarkdown-0bbb72c0.json +13 -0
  39. package/dist/assets/REditorSupport.r-2.8.2.vsix/Rcpp-cea57c6d.json +34 -0
  40. package/dist/assets/REditorSupport.r-2.8.2.vsix/Rd (R Documentation)-555f4e62.json +117 -0
  41. package/dist/assets/REditorSupport.r-2.8.2.vsix/Rlogo-6d3318a6.svg +14 -0
  42. package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf-3d561f42.json +82 -0
  43. package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf-configuration-d58bba2d.json +24 -0
  44. package/dist/assets/REditorSupport.r-2.8.2.vsix/r-configuration-78e137e5.json +33 -0
  45. package/dist/assets/REditorSupport.r-2.8.2.vsix/r-fe2a45c3.json +647 -0
  46. package/dist/assets/REditorSupport.r-2.8.2.vsix/r-snippets-9e46c45c.json +475 -0
  47. package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore-9cfe22f1.json +27 -0
  48. package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore-configuration-8eb95bcb.json +2 -0
  49. package/dist/assets/REditorSupport.r-2.8.2.vsix/rd-configuration-194dd9d9.json +27 -0
  50. package/dist/assets/REditorSupport.r-2.8.2.vsix/rmarkdown-dea1e283.json +459 -0
  51. package/dist/assets/REditorSupport.r-2.8.2.vsix/rmd-configuration-b4c6dc23.json +27 -0
  52. package/dist/assets/REditorSupport.r-2.8.2.vsix/rnamespace-290042cd.json +222 -0
  53. package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls-8c1cec26.json +24 -0
  54. package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls.pt-br-50a237c2.json +24 -0
  55. package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal-365151a8.json +414 -0
  56. package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal-93ca5af8.tmLanguage +243 -0
  57. package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal.configuration-650e481b.json +32 -0
  58. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/django-html.tmLanguage-a755b992.json +701 -0
  59. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/django-txt.tmLanguage-856346a9.json +255 -0
  60. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/filters-f60b575d.json +339 -0
  61. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/language-configuration-f8af0b2f.json +63 -0
  62. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/tags-43e8b685.json +496 -0
  63. package/dist/assets/bitwisecook.tcl-0.4.3.vsix/language-configuration-e9539ff0.json +75 -0
  64. package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl-10fb1e40.json +142 -0
  65. package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl-d73ae460.json +5474 -0
  66. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/COBOL.tmLanguage-67e1eefb.json +216 -0
  67. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/lang-config-a301d1b9.json +27 -0
  68. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/pgm_conf.schema-f8558717.json +24 -0
  69. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/proc_grps.schema-428d2a80.json +55 -0
  70. package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/language-configuration-b3cf7aac.json +25 -0
  71. package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/pgsql-a84fddae.tmLanguage +413 -0
  72. package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/postgres-explorer-ce4bf408.svg +100 -0
  73. package/dist/assets/golang.Go-0.39.1.vsix/go-71588b74.json +274 -0
  74. package/dist/assets/golang.Go-0.39.1.vsix/go.mod.language-configuration-0301a994.json +5 -0
  75. package/dist/assets/golang.Go-0.39.1.vsix/go.mod.tmGrammar-6cbef28b.json +171 -0
  76. package/dist/assets/golang.Go-0.39.1.vsix/go.sum.tmGrammar-36d4acfd.json +44 -0
  77. package/dist/assets/golang.Go-0.39.1.vsix/govulncheck.tmGrammar-3741e2c9.json +123 -0
  78. package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-directives-77c45bf9.json +123 -0
  79. package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-interpolations-b1f89745.json +44 -0
  80. package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-template-language-configuration-4cd1b761.json +8 -0
  81. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs-c12145c8.json +23 -0
  82. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs-configuration-dc72a3f0.json +29 -0
  83. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs-685ef114.json +23 -0
  84. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs-configuration-15e5e5c3.json +30 -0
  85. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/alex-07217e37.json +236 -0
  86. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal-8f2b8b9f.json +53 -0
  87. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal-configuration-64e517a3.json +6 -0
  88. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-cabal-34484e34.json +28 -0
  89. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-haskell-138d661e.json +28 -0
  90. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-literate-haskell-90d8db8f.json +28 -0
  91. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/happy-3cd8fa35.json +196 -0
  92. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell-192ef944.json +2525 -0
  93. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell-configuration-54079281.json +29 -0
  94. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literate-haskell-configuration-23cbb80e.json +29 -0
  95. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literateHaskell-0a08d9f7.json +56 -0
  96. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/Kotlin-5d2aa580.tmLanguage +1067 -0
  97. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/codeblock-8be87145.json +22 -0
  98. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin-9f43cb02.json +107 -0
  99. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin.configuration-1d328649.json +35 -0
  100. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/aspnetcorerazor.tmLanguage-7002af3f.json +1812 -0
  101. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/csharp-a17ace76.json +493 -0
  102. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/language-configuration-f8b16509.json +24 -0
  103. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls-b9937871.json +419 -0
  104. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.cs-80b9e0b3.json +201 -0
  105. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.de-2f7710c0.json +201 -0
  106. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.es-d1bd829b.json +201 -0
  107. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.fr-e0bc41f9.json +201 -0
  108. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.it-0e21bedf.json +201 -0
  109. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ja-2384013f.json +201 -0
  110. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ko-621d3dfe.json +201 -0
  111. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.pl-bd72e09e.json +201 -0
  112. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.pt-br-a446b36f.json +201 -0
  113. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ru-923ade42.json +201 -0
  114. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.tr-10253fa3.json +201 -0
  115. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.zh-cn-00cb169d.json +201 -0
  116. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.zh-tw-1c34b33a.json +201 -0
  117. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/vs2019_dark-a56f6e51.json +783 -0
  118. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/vs2019_light-fd29b4ae.json +807 -0
  119. package/dist/assets/ms-python.python-2023.19.12861011.vsix/conda-environment-3aa03e16.json +1 -0
  120. package/dist/assets/ms-python.python-2023.19.12861011.vsix/conda-meta-e7f42ee0.json +1 -0
  121. package/dist/assets/ms-python.python-2023.19.12861011.vsix/condarc-8ad258e5.json +1 -0
  122. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls-c97ce436.json +1 -0
  123. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.cs-5dee4ffc.json +1 -0
  124. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.de-b852e3ec.json +1 -0
  125. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.es-66adbb9e.json +1 -0
  126. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.fr-6abf0276.json +1 -0
  127. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.it-12650beb.json +1 -0
  128. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ja-de4ee3bd.json +1 -0
  129. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ko-254d6467.json +1 -0
  130. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.pl-f957d6c6.json +1 -0
  131. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.pt-br-d02ca4d9.json +1 -0
  132. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.qps-ploc-f24b5e76.json +1 -0
  133. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ru-e6ba5e62.json +1 -0
  134. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.tr-05d98040.json +1 -0
  135. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.zh-cn-f41941e0.json +1 -0
  136. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.zh-tw-02c30e90.json +1 -0
  137. package/dist/assets/ms-python.python-2023.19.12861011.vsix/pip-requirements-85cd5b06.json +1 -0
  138. package/dist/assets/ms-python.python-2023.19.12861011.vsix/pip-requirements.tmLanguage-5dcdde1f.json +1 -0
  139. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls-faad5326.json +1006 -0
  140. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.cs-1c63e64b.json +441 -0
  141. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.de-a80f3548.json +441 -0
  142. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.es-ed5f9669.json +441 -0
  143. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.fr-0a6f6680.json +441 -0
  144. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.it-690d744e.json +441 -0
  145. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ja-9e548ee8.json +441 -0
  146. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ko-b7c6d97d.json +441 -0
  147. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.pl-fac1f880.json +441 -0
  148. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.pt-br-618e6fff.json +441 -0
  149. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ru-b8aa8e97.json +441 -0
  150. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.tr-61b293ea.json +441 -0
  151. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.zh-cn-2fb473f1.json +441 -0
  152. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.zh-tw-bd960e98.json +441 -0
  153. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/META-a4e7fa6f.json +56 -0
  154. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/META-e71a284d.json +10 -0
  155. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/atd-03beef93.json +57 -0
  156. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/cram-947e10d8.json +167 -0
  157. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-3f9df928.json +24 -0
  158. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-ac59c79b.json +2949 -0
  159. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-b84b8558.json +30 -0
  160. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-project-1f8165b1.json +26 -0
  161. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-project-c3d6414c.json +326 -0
  162. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-workspace-714d48f4.json +191 -0
  163. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/logo-1ec58c70.svg +3 -0
  164. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-318b208e.json +349 -0
  165. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-action-1de9ecfe.json +29 -0
  166. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-ba3ffd84.json +27 -0
  167. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/merlin-68658127.json +73 -0
  168. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/oasis-6cb9104d.json +6 -0
  169. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/oasis-b3731651.json +69 -0
  170. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-2b852e88.json +54 -0
  171. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-721ae493.json +654 -0
  172. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-8263d04c.json +49 -0
  173. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-markdown-codeblock-d59b1879.json +24 -0
  174. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml.interface-82c9d397.json +161 -0
  175. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlbuild-28c2016d.json +110 -0
  176. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlbuild-68c3ee9d.json +16 -0
  177. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamldoc-68623cf8.json +31 -0
  178. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlformat-12d00ff4.json +5 -0
  179. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlformat-566f44ca.json +191 -0
  180. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-16f56b53.json +6 -0
  181. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-2f54f6a7.json +21 -0
  182. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-9eea3c0f.json +108 -0
  183. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-051cc018.json +24 -0
  184. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-a3126c97.json +111 -0
  185. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-install-24f044a3.json +23 -0
  186. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-install-5c433c27.json +19 -0
  187. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-46868a8a.json +2357 -0
  188. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-e5da4a73.json +25 -0
  189. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-markdown-codeblock-80e4eeb5.json +24 -0
  190. package/dist/assets/pgourlain.erlang-0.9.7.vsix/Erlang-dc87abbd.plist +2719 -0
  191. package/dist/assets/pgourlain.erlang-0.9.7.vsix/erlang-ceac2319.json +197 -0
  192. package/dist/assets/pgourlain.erlang-0.9.7.vsix/erlang.configuration-52d0fdab.json +25 -0
  193. package/dist/assets/redhat.java-1.24.2023101604.vsix/JavaProperties.tmLanguage-0a8c48eb.json +103 -0
  194. package/dist/assets/redhat.java-1.24.2023101604.vsix/java-properties-configuration-97f1db18.json +67 -0
  195. package/dist/assets/redhat.java-1.24.2023101604.vsix/java.tmLanguage-7cffeca4.json +1892 -0
  196. package/dist/assets/redhat.java-1.24.2023101604.vsix/language-configuration-054e92b8.json +92 -0
  197. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls-2147d73e.json +29 -0
  198. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.ko-a7811004.json +26 -0
  199. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.zh-cn-5b3edff8.json +27 -0
  200. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.zh-tw-236ee4a0.json +26 -0
  201. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.schema-58232c4f.json +28 -0
  202. package/dist/assets/scala-lang.scala-0.5.7.vsix/Scala.tmLanguage-e9b79520.json +1 -0
  203. package/dist/assets/scala-lang.scala-0.5.7.vsix/language-configuration-acc80ed1.json +33 -0
  204. package/dist/assets/scalameta.metals-1.25.2.vsix/book-dark-6f0d6908.svg +5 -0
  205. package/dist/assets/scalameta.metals-1.25.2.vsix/book-light-ba883494.svg +1 -0
  206. package/dist/assets/scalameta.metals-1.25.2.vsix/buildtarget-73bbface.json +37 -0
  207. package/dist/assets/scalameta.metals-1.25.2.vsix/file_type_java-36bb31ca.svg +1 -0
  208. package/dist/assets/scalameta.metals-1.25.2.vsix/file_type_scala-b6c14b23.svg +1 -0
  209. package/dist/assets/scalameta.metals-1.25.2.vsix/jvm-bytecode-cab4d04e.json +395 -0
  210. package/dist/assets/scalameta.metals-1.25.2.vsix/jvm-bytecode-verbose-3611fa8e.json +745 -0
  211. package/dist/assets/scalameta.metals-1.25.2.vsix/scalameta-5e510695.svg +11 -0
  212. package/dist/assets/scalameta.metals-1.25.2.vsix/scalameta-logo-f3b7b0bf.png +0 -0
  213. package/dist/assets/scalameta.metals-1.25.2.vsix/semanticdb-44c14f33.json +37 -0
  214. package/dist/assets/scalameta.metals-1.25.2.vsix/tasty-c2b151f2.json +56 -0
  215. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls-f1576108.json +231 -0
  216. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.pt-br-44d0849d.json +231 -0
  217. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.zh-cn-3f634909.json +231 -0
  218. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.zh-tw-144dc848.json +231 -0
  219. package/dist/assets/sumneko.lua-3.7.0.vsix/schema-dedfd658.json +3421 -0
  220. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/javascript-7aebc91a.json +43 -0
  221. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/language-configuration-3cb1f78d.json +38 -0
  222. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-4cd58a41.json +45 -0
  223. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-css-0fdc510e.json +23 -0
  224. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-js-cd568059.json +23 -0
  225. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/package-json-schema-ec2f7bd4.json +9 -0
  226. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/postcss-05883dcd.json +377 -0
  227. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/prettier-options-schema-9e36a684.json +112 -0
  228. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-04246371.json +293 -0
  229. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-dotblock-b92db507.json +55 -0
  230. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-tags-65124af1.json +201 -0
  231. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/svelte-a1bb47f3.json +22 -0
  232. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/svelte.tmLanguage-aec82be9.json +1163 -0
  233. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/typescript-bd1c0ff1.json +37 -0
  234. package/dist/assets/webfreak.code-d-0.23.2.vsix/d-2da26fd0.json +3163 -0
  235. package/dist/assets/webfreak.code-d-0.23.2.vsix/d-316cb838.json +90 -0
  236. package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-0b761e76.json +87 -0
  237. package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-7fe4fdb7.json +92 -0
  238. package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-83c1bebc.json +742 -0
  239. package/dist/assets/webfreak.code-d-0.23.2.vsix/dml-ef6957d3.json +157 -0
  240. package/dist/assets/webfreak.code-d-0.23.2.vsix/dub.schema-77c2f417.json +377 -0
  241. package/dist/assets/webfreak.code-d-0.23.2.vsix/general-7b927912.json +84 -0
  242. package/dist/assets/webfreak.code-d-0.23.2.vsix/sdl-b6c61596.json +149 -0
  243. package/dist/configuration/index.d.ts +1 -2
  244. package/dist/configuration/index.js +45 -0
  245. package/dist/editor/autofold.js +24 -0
  246. package/dist/editor/cobol.js +67 -0
  247. package/dist/editor/index.js +9 -0
  248. package/dist/extensions/Angular.ng-template-16.1.8.vsix.js +16 -0
  249. package/dist/extensions/Dart-Code.dart-code-3.75.20231009.vsix.js +14 -0
  250. package/dist/extensions/IMCTradingBV.svlangserver-0.4.1.vsix.js +18 -0
  251. package/dist/extensions/JakeBecker.elixir-ls-0.17.1.vsix.js +18 -0
  252. package/dist/extensions/JuanBlanco.solidity-0.0.165.vsix.js +14 -0
  253. package/dist/extensions/REditorSupport.r-2.8.2.vsix.js +42 -0
  254. package/dist/extensions/alefragnani.pascal-9.6.0.vsix.js +18 -0
  255. package/dist/extensions/batisteo.vscode-django-1.14.0.vsix.js +18 -0
  256. package/dist/extensions/bitwisecook.tcl-0.4.3.vsix.js +14 -0
  257. package/dist/extensions/broadcomMFD.cobol-language-support-2.0.3.vsix.js +16 -0
  258. package/dist/extensions/castwide.solargraph-0.24.0.vsix.js +5 -0
  259. package/dist/extensions/ckolkman.vscode-postgres-1.4.3.vsix.js +14 -0
  260. package/dist/extensions/golang.Go-0.39.1.vsix.js +18 -0
  261. package/dist/extensions/johnsoncodehk.vscode-angular-1.0.22.vsix.js +14 -0
  262. package/dist/extensions/justusadam.language-haskell-3.6.0.vsix.js +38 -0
  263. package/dist/extensions/mathiasfrohlich.Kotlin-1.7.1.vsix.js +16 -0
  264. package/dist/extensions/ms-dotnettools.csharp-2.6.24.vsix.js +46 -0
  265. package/dist/extensions/ms-python.python-2023.19.12861011.vsix.js +48 -0
  266. package/dist/extensions/ms-vscode.cpptools-1.18.0.vsix.js +36 -0
  267. package/dist/extensions/ocamllabs.ocaml-platform-1.13.1.vsix.js +82 -0
  268. package/dist/extensions/pgourlain.erlang-0.9.7.vsix.js +14 -0
  269. package/dist/extensions/redhat.java-1.24.2023101604.vsix.js +26 -0
  270. package/dist/extensions/scala-lang.scala-0.5.7.vsix.js +12 -0
  271. package/dist/extensions/scalameta.metals-1.25.2.vsix.js +30 -0
  272. package/dist/extensions/sumneko.lua-3.7.0.vsix.js +18 -0
  273. package/dist/extensions/svelte.svelte-vscode-107.12.0.vsix.js +36 -0
  274. package/dist/extensions/webfreak.code-d-0.23.2.vsix.js +26 -0
  275. package/dist/extensions.d.ts +36 -0
  276. package/dist/features/debug.js +6 -0
  277. package/dist/features/extensionHostWorker.js +11 -0
  278. package/dist/features/search.d.ts +1 -0
  279. package/dist/features/search.js +7 -0
  280. package/dist/features/viewPanels.d.ts +1 -0
  281. package/dist/features/viewPanels.js +11 -0
  282. package/dist/features/views.d.ts +4 -0
  283. package/dist/features/views.js +27 -0
  284. package/dist/index.d.ts +3 -3
  285. package/dist/keybindings/index.js +36 -0
  286. package/dist/keybindings/vim.js +82 -0
  287. package/dist/languages/index.d.ts +0 -2
  288. package/dist/languages/index.js +40 -0
  289. package/dist/main.js +9 -3564
  290. package/dist/monaco.d.ts +6 -10
  291. package/dist/monaco.js +93 -0
  292. package/dist/node_modules/lodash.kebabcase/index.js +439 -0
  293. package/dist/node_modules/lodash.throttle/index.js +443 -0
  294. package/dist/node_modules/monaco-emacs/lib/emacs/actions.js +596 -0
  295. package/dist/node_modules/monaco-emacs/lib/emacs/basicInput.js +113 -0
  296. package/dist/node_modules/monaco-emacs/lib/emacs/commands.js +184 -0
  297. package/dist/node_modules/monaco-emacs/lib/emacs/index.js +186 -0
  298. package/dist/node_modules/monaco-emacs/lib/emacs/state.js +116 -0
  299. package/dist/node_modules/monaco-emacs/lib/emacs/util.js +112 -0
  300. package/dist/node_modules/monaco-emacs/lib/index.js +31 -0
  301. package/dist/{vim.js → node_modules/monaco-vim/lib/cm/keymap_vim.js} +4 -1790
  302. package/dist/node_modules/monaco-vim/lib/cm_adapter.js +1393 -0
  303. package/dist/node_modules/monaco-vim/lib/index.js +71 -0
  304. package/dist/node_modules/monaco-vim/lib/statusbar.js +239 -0
  305. package/dist/services.d.ts +8 -0
  306. package/dist/services.js +73 -0
  307. package/dist/style.js +12 -0
  308. package/dist/theme/index.d.ts +1 -4
  309. package/dist/theme/index.js +21 -0
  310. package/dist/tools/EditorOpenHandlerRegistry.d.ts +3 -2
  311. package/dist/tools/EditorOpenHandlerRegistry.js +108 -0
  312. package/dist/tools/FakeWorker.d.ts +5 -0
  313. package/dist/tools/FakeWorker.js +8 -0
  314. package/dist/tools.js +235 -0
  315. package/dist/worker.d.ts +1 -10
  316. package/dist/worker.js +11 -43
  317. package/package.json +127 -67
  318. package/stats.html +90 -1429
  319. package/dist/COBOL.tmLanguage.js +0 -172
  320. package/dist/Erlang.plist.js +0 -1752
  321. package/dist/HTML (Eex)2.js +0 -100
  322. package/dist/JSON.tmLanguage.js +0 -221
  323. package/dist/JSONC.tmLanguage.js +0 -221
  324. package/dist/JavaProperties.tmLanguage.js +0 -116
  325. package/dist/JavaScript.tmLanguage.js +0 -5929
  326. package/dist/JavaScriptReact.tmLanguage.js +0 -5929
  327. package/dist/Kotlin.tmLanguage.js +0 -724
  328. package/dist/META.js +0 -100
  329. package/dist/MagicPython.tmLanguage.js +0 -4221
  330. package/dist/MagicRegExp.tmLanguage.js +0 -505
  331. package/dist/Markdown Redcarpet.js +0 -221
  332. package/dist/RMarkdown.js +0 -25
  333. package/dist/Rcpp.js +0 -50
  334. package/dist/Rd (R Documentation).js +0 -131
  335. package/dist/Regular Expressions (JavaScript).tmLanguage.js +0 -166
  336. package/dist/Scala.tmLanguage.js +0 -1324
  337. package/dist/TypeScript.tmLanguage.js +0 -5680
  338. package/dist/TypeScriptReact.tmLanguage.js +0 -5929
  339. package/dist/_rollupPluginBabelHelpers.js +0 -51
  340. package/dist/angular.js +0 -62
  341. package/dist/asp-vb-net.tmlanguage.js +0 -247
  342. package/dist/aspnetcorerazor.js +0 -72
  343. package/dist/aspnetcorerazor.tmLanguage.js +0 -1825
  344. package/dist/atd.js +0 -110
  345. package/dist/atd2.js +0 -114
  346. package/dist/buildignore.r.js +0 -5
  347. package/dist/buildtarget.js +0 -53
  348. package/dist/c.js +0 -101
  349. package/dist/c.tmLanguage.js +0 -3565
  350. package/dist/cabal.js +0 -10
  351. package/dist/cabal.tmLanguage.js +0 -66
  352. package/dist/clojure.js +0 -68
  353. package/dist/clojure.tmLanguage.js +0 -439
  354. package/dist/cobol.js +0 -6
  355. package/dist/cobol2.js +0 -341
  356. package/dist/codeblock-cabal.js +0 -42
  357. package/dist/codeblock-haskell.js +0 -42
  358. package/dist/codeblock-literate-haskell.js +0 -42
  359. package/dist/codeblock.js +0 -59
  360. package/dist/codeblock2.js +0 -36
  361. package/dist/codeblock3.js +0 -95
  362. package/dist/coffeescript-coffeescript.code-snippets.js +0 -18
  363. package/dist/coffeescript.js +0 -91
  364. package/dist/coffeescript.tmLanguage.js +0 -1324
  365. package/dist/configuration/files.d.ts +0 -6
  366. package/dist/cpp-c.code-snippets.js +0 -18
  367. package/dist/cpp-cpp.code-snippets.js +0 -18
  368. package/dist/cpp.js +0 -101
  369. package/dist/cpp.tmLanguage.js +0 -16648
  370. package/dist/cpptools.js +0 -2631
  371. package/dist/cram.js +0 -257
  372. package/dist/csharp.js +0 -92
  373. package/dist/csharp.tmLanguage.js +0 -4992
  374. package/dist/css.js +0 -106
  375. package/dist/css.tmLanguage.js +0 -1873
  376. package/dist/css.worker.js +0 -6
  377. package/dist/cuda-cpp.js +0 -101
  378. package/dist/cuda-cpp.tmLanguage.js +0 -19993
  379. package/dist/d-diet.js +0 -92
  380. package/dist/d.js +0 -3212
  381. package/dist/d2.js +0 -97
  382. package/dist/d3.js +0 -609
  383. package/dist/dart.js +0 -543
  384. package/dist/dart2.js +0 -103
  385. package/dist/dart3.js +0 -1130
  386. package/dist/dcf.js +0 -93
  387. package/dist/debian-control.r.js +0 -69
  388. package/dist/diet.js +0 -758
  389. package/dist/diet2.js +0 -100
  390. package/dist/django-html.js +0 -155
  391. package/dist/django-html.tmLanguage.js +0 -715
  392. package/dist/django-txt.js +0 -155
  393. package/dist/django-txt.tmLanguage.js +0 -269
  394. package/dist/dml.js +0 -169
  395. package/dist/dml2.js +0 -90
  396. package/dist/dockercompose.js +0 -82
  397. package/dist/dpp.js +0 -97
  398. package/dist/dscript.js +0 -90
  399. package/dist/dune-project.js +0 -481
  400. package/dist/dune-project2.js +0 -65
  401. package/dist/dune-workspace.js +0 -298
  402. package/dist/dune-workspace2.js +0 -65
  403. package/dist/dune.js +0 -2962
  404. package/dist/dune2.js +0 -65
  405. package/dist/eex.js +0 -55
  406. package/dist/elixir-snippets.js +0 -184
  407. package/dist/elixir.js +0 -2341
  408. package/dist/elixir2.js +0 -69
  409. package/dist/elixir3.js +0 -40
  410. package/dist/erlang-erlang.js +0 -195
  411. package/dist/erlang.js +0 -81
  412. package/dist/erlang2.js +0 -86
  413. package/dist/expression.js +0 -846
  414. package/dist/features/cssContribution.d.ts +0 -1
  415. package/dist/features/cssContribution.js +0 -7
  416. package/dist/features/extensionConfigurations.d.ts +0 -1
  417. package/dist/features/extensionConfigurations.js +0 -44
  418. package/dist/features/htmlContribution.d.ts +0 -4
  419. package/dist/features/htmlContribution.js +0 -112
  420. package/dist/features/jsonContribution.d.ts +0 -6
  421. package/dist/features/jsonContribution.js +0 -43
  422. package/dist/features/typescriptContribution.d.ts +0 -1
  423. package/dist/features/typescriptContribution.js +0 -32
  424. package/dist/fsharp-fsharp.code-snippets.js +0 -18
  425. package/dist/fsharp.js +0 -80
  426. package/dist/fsharp.tmLanguage.js +0 -1844
  427. package/dist/go.js +0 -103
  428. package/dist/go.mod.js +0 -8
  429. package/dist/go.mod.tmGrammar.js +0 -182
  430. package/dist/go.sum.tmGrammar.js +0 -55
  431. package/dist/go.tmLanguage.js +0 -1025
  432. package/dist/go.work.js +0 -8
  433. package/dist/govulncheck.tmGrammar.js +0 -138
  434. package/dist/groovy-groovy.code-snippets.js +0 -229
  435. package/dist/groovy.js +0 -79
  436. package/dist/groovy.tmLanguage.js +0 -1391
  437. package/dist/haskell.js +0 -88
  438. package/dist/haskell.tmLanguage.js +0 -629
  439. package/dist/haskell2.js +0 -16
  440. package/dist/html (eex).js +0 -31
  441. package/dist/html-derivative.tmLanguage.js +0 -57
  442. package/dist/html-html.code-snippets.js +0 -20
  443. package/dist/html.js +0 -11
  444. package/dist/html.tmLanguage.js +0 -2652
  445. package/dist/html.tmLanguage2.js +0 -107
  446. package/dist/html.worker.js +0 -6
  447. package/dist/index.js +0 -2207
  448. package/dist/index2.js +0 -1398
  449. package/dist/inline-styles.js +0 -104
  450. package/dist/inline-template.js +0 -88
  451. package/dist/jade.js +0 -11
  452. package/dist/java-java.js +0 -125
  453. package/dist/java-properties.js +0 -73
  454. package/dist/java.js +0 -98
  455. package/dist/java.tmLanguage.js +0 -1863
  456. package/dist/java2.js +0 -917
  457. package/dist/javascript-javascript.code-snippets.js +0 -205
  458. package/dist/javascript.js +0 -197
  459. package/dist/javascriptreact.js +0 -197
  460. package/dist/jsdoc.js.injection.tmLanguage.js +0 -32
  461. package/dist/jsdoc.ts.injection.tmLanguage.js +0 -32
  462. package/dist/json.js +0 -75
  463. package/dist/json.worker.js +0 -6
  464. package/dist/jsonc.js +0 -75
  465. package/dist/jsx-tags.js +0 -158
  466. package/dist/julia.js +0 -89
  467. package/dist/julia.tmLanguage.js +0 -954
  468. package/dist/jvm-bytecode-verbose.js +0 -1231
  469. package/dist/jvm-bytecode.js +0 -565
  470. package/dist/kotlin-kotlin.js +0 -117
  471. package/dist/kotlin.js +0 -103
  472. package/dist/kotlinscript.js +0 -103
  473. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +0 -3
  474. package/dist/languages/extensions/grammarLoader.d.ts +0 -2
  475. package/dist/languages/extensions/languageConfigurationLoader.d.ts +0 -2
  476. package/dist/languages/extensions/snippetLoader.d.ts +0 -2
  477. package/dist/languages/extensions/themeLoader.d.ts +0 -2
  478. package/dist/languages/textMate/index.d.ts +0 -1
  479. package/dist/literate haskell.js +0 -88
  480. package/dist/literateHaskell.tmLanguage.js +0 -70
  481. package/dist/lua.js +0 -84
  482. package/dist/lua.tmLanguage.js +0 -914
  483. package/dist/lua2.js +0 -2853
  484. package/dist/markdown-basics-markdown.code-snippets.js +0 -121
  485. package/dist/markdown-svelte-css.js +0 -37
  486. package/dist/markdown-svelte-js.js +0 -37
  487. package/dist/markdown-svelte.js +0 -59
  488. package/dist/markdown-vue.js +0 -54
  489. package/dist/markdown.js +0 -49
  490. package/dist/markdown.tmLanguage.js +0 -3042
  491. package/dist/menhir-action.js +0 -51
  492. package/dist/menhir.js +0 -597
  493. package/dist/merlin.js +0 -111
  494. package/dist/namespace.r.js +0 -88
  495. package/dist/oasis.js +0 -99
  496. package/dist/objective-c.js +0 -79
  497. package/dist/objective-c.tmLanguage.js +0 -3763
  498. package/dist/objective-cpp.js +0 -79
  499. package/dist/ocaml-dune-project.js +0 -38
  500. package/dist/ocaml-dune.js +0 -53
  501. package/dist/ocaml-markdown-codeblock.js +0 -42
  502. package/dist/ocaml-ocaml.js +0 -88
  503. package/dist/ocaml-ocamllex.js +0 -12
  504. package/dist/ocaml.META.js +0 -29
  505. package/dist/ocaml.interface.js +0 -292
  506. package/dist/ocaml.interface2.js +0 -114
  507. package/dist/ocaml.js +0 -903
  508. package/dist/ocaml.menhir.js +0 -81
  509. package/dist/ocaml.oasis.js +0 -18
  510. package/dist/ocaml.ocamlbuild.js +0 -45
  511. package/dist/ocaml.ocamlformat.js +0 -8
  512. package/dist/ocaml.ocamllex.js +0 -60
  513. package/dist/ocaml.opam-install.js +0 -49
  514. package/dist/ocaml.opam.js +0 -69
  515. package/dist/ocaml2.js +0 -114
  516. package/dist/ocaml3.js +0 -136
  517. package/dist/ocamlbuild.js +0 -189
  518. package/dist/ocamldoc.js +0 -54
  519. package/dist/ocamlformat.js +0 -206
  520. package/dist/ocamllex.js +0 -133
  521. package/dist/omnisharp-csharp.js +0 -508
  522. package/dist/omnisharp.js +0 -594
  523. package/dist/opam-install.js +0 -40
  524. package/dist/opam.js +0 -140
  525. package/dist/pascal-pascal.js +0 -382
  526. package/dist/pascal.js +0 -80
  527. package/dist/pascal.tmLanguage.js +0 -169
  528. package/dist/pascal2.js +0 -26
  529. package/dist/perl.js +0 -93
  530. package/dist/perl.tmLanguage.js +0 -2986
  531. package/dist/perl6.js +0 -86
  532. package/dist/perl6.tmLanguage.js +0 -323
  533. package/dist/pgsql.tmLanguage.js +0 -284
  534. package/dist/php-php.code-snippets.js +0 -267
  535. package/dist/php.js +0 -154
  536. package/dist/php.tmLanguage.js +0 -4036
  537. package/dist/pip-requirements.js +0 -8
  538. package/dist/pip-requirements.tmLanguage.js +0 -89
  539. package/dist/plaintext.js +0 -11
  540. package/dist/platform.tmLanguage.js +0 -1135
  541. package/dist/postcss.src.yaml.js +0 -393
  542. package/dist/postgres.js +0 -80
  543. package/dist/postgresql.js +0 -75
  544. package/dist/powershell.js +0 -107
  545. package/dist/powershell.tmLanguage.js +0 -1037
  546. package/dist/pug-svelte-dotblock.js +0 -69
  547. package/dist/pug-svelte-tags.js +0 -215
  548. package/dist/pug-svelte.js +0 -307
  549. package/dist/python.js +0 -236
  550. package/dist/r.js +0 -664
  551. package/dist/r2.js +0 -88
  552. package/dist/rbuildignore.js +0 -39
  553. package/dist/rd.js +0 -81
  554. package/dist/reason-markdown-codeblock.js +0 -42
  555. package/dist/reason.js +0 -79
  556. package/dist/rmd.js +0 -84
  557. package/dist/rnamespace.js +0 -283
  558. package/dist/ruby.js +0 -95
  559. package/dist/ruby.tmLanguage.js +0 -2784
  560. package/dist/rust.js +0 -84
  561. package/dist/rust.tmLanguage.js +0 -1178
  562. package/dist/sassdoc.tmLanguage.js +0 -362
  563. package/dist/scala.js +0 -85
  564. package/dist/scalameta.js +0 -224
  565. package/dist/scss.js +0 -117
  566. package/dist/scss.tmLanguage.js +0 -1887
  567. package/dist/sdl.js +0 -162
  568. package/dist/sdl2.js +0 -90
  569. package/dist/semanticdb.js +0 -62
  570. package/dist/shell-unix-bash.tmLanguage.js +0 -2038
  571. package/dist/shellscript.js +0 -93
  572. package/dist/solargraph.js +0 -192
  573. package/dist/solidity-solidity.js +0 -213
  574. package/dist/solidity.js +0 -1224
  575. package/dist/solidity2.js +0 -71
  576. package/dist/solidity3.js +0 -143
  577. package/dist/sql.js +0 -99
  578. package/dist/sql.tmLanguage.js +0 -636
  579. package/dist/svelte.js +0 -120
  580. package/dist/svelte.svelte-vscode-javascript.js +0 -45
  581. package/dist/svelte.svelte-vscode-svelte.js +0 -46
  582. package/dist/svelte.svelte-vscode-typescript.js +0 -43
  583. package/dist/svelte.svelte-vscode.js +0 -383
  584. package/dist/svelte.tmLanguage.src.yaml.js +0 -1099
  585. package/dist/svlangserver-systemverilog.js +0 -395
  586. package/dist/svlangserver.js +0 -85
  587. package/dist/swift-swift.code-snippets.js +0 -183
  588. package/dist/swift.js +0 -90
  589. package/dist/swift.tmLanguage.js +0 -3312
  590. package/dist/systemverilog.js +0 -187
  591. package/dist/systemverilog.tmLanguage.js +0 -1259
  592. package/dist/tasty.js +0 -72
  593. package/dist/tcl-tcl.js +0 -151
  594. package/dist/tcl.js +0 -78
  595. package/dist/tcl.tmlanguage.yaml.js +0 -5490
  596. package/dist/template.js +0 -207
  597. package/dist/theme-defaults~dark_plus.js +0 -210
  598. package/dist/theme-defaults~dark_plus_experimental.js +0 -145
  599. package/dist/theme-defaults~dark_vs.js +0 -412
  600. package/dist/theme-defaults~hc_black.js +0 -471
  601. package/dist/theme-defaults~hc_light.js +0 -595
  602. package/dist/theme-defaults~light_plus.js +0 -212
  603. package/dist/theme-defaults~light_plus_experimental.js +0 -158
  604. package/dist/theme-defaults~light_vs.js +0 -441
  605. package/dist/ts.worker.js +0 -6
  606. package/dist/typescript-basics-typescript.code-snippets.js +0 -313
  607. package/dist/typescript-language-features.js +0 -1103
  608. package/dist/typescript.js +0 -216
  609. package/dist/typescriptreact.js +0 -216
  610. package/dist/vb-vb.code-snippets.js +0 -88
  611. package/dist/vb.js +0 -79
  612. package/dist/verilog.js +0 -187
  613. package/dist/volar-vue.js +0 -289
  614. package/dist/vscode-R-r-snippets.js +0 -534
  615. package/dist/vscode-R-rmarkdown.js +0 -461
  616. package/dist/vscode-R.js +0 -660
  617. package/dist/vscode-django-filters.js +0 -340
  618. package/dist/vscode-django.js +0 -37
  619. package/dist/vscode-go-go.js +0 -276
  620. package/dist/vscode-go.js +0 -1610
  621. package/dist/vscode-groovy.js +0 -28
  622. package/dist/vscode-python.js +0 -706
  623. package/dist/vue-directives.js +0 -25
  624. package/dist/vue-interpolations.js +0 -25
  625. package/dist/vue-sfc-style-variable-injection.js +0 -63
  626. package/dist/vue.js +0 -151
  627. package/dist/vue.tmLanguage.js +0 -1218
  628. package/dist/xml.js +0 -116
  629. package/dist/xml.tmLanguage.js +0 -395
  630. package/dist/xsl.js +0 -39
  631. package/dist/xsl.tmLanguage.js +0 -102
  632. package/dist/yaml.js +0 -82
  633. package/dist/yaml.tmLanguage.js +0 -629
  634. /package/dist/{extensions → editor}/autofold.d.ts +0 -0
  635. /package/dist/{extensions → editor}/cobol.d.ts +0 -0
  636. /package/dist/{extensions → editor}/index.d.ts +0 -0
  637. /package/dist/{languages/snippets/index.d.ts → features/debug.d.ts} +0 -0
  638. /package/dist/{languages/textMate/semanticTokens.d.ts → features/extensionHostWorker.d.ts} +0 -0
@@ -0,0 +1,1393 @@
1
+ import { __exports as cm_adapter } from '../../../_virtual/cm_adapter.js';
2
+ import require$$0 from '../../../_virtual/editor.api.js';
3
+ import require$$1 from '../../../_virtual/shiftCommand.js';
4
+
5
+ (function (exports) {
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _editor = require$$0;
13
+
14
+ var _shiftCommand = require$$1;
15
+
16
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
+
18
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
+
20
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
+
22
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
+
24
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
+
26
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
+
28
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
29
+
30
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
+
32
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
+
34
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
+
36
+ var VerticalRevealType = {
37
+ Bottom: 4
38
+ }; // for monaco 0.19.x where x < 3
39
+
40
+ var EditorOptConstants = {
41
+ readOnly: 65,
42
+ cursorWidth: 20,
43
+ fontInfo: 32
44
+ };
45
+ var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
46
+
47
+ function isWordCharBasic(ch) {
48
+ return /\w/.test(ch) || ch > "\x80" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
49
+ }
50
+
51
+ function Pos(line, column) {
52
+ if (!(this instanceof Pos)) {
53
+ return new Pos(line, column);
54
+ }
55
+
56
+ this.line = line;
57
+ this.ch = column;
58
+ }
59
+
60
+ function signal(cm, signal, args) {
61
+ cm.dispatch(signal, args);
62
+ }
63
+
64
+ function dummy(key) {
65
+ return function () {// console.log(key, 'dummy function called with', Array.prototype.slice.call(arguments));
66
+ };
67
+ }
68
+
69
+ var StringStream = function StringStream(string, tabSize) {
70
+ this.pos = this.start = 0;
71
+ this.string = string;
72
+ this.tabSize = tabSize || 8;
73
+ this.lastColumnPos = this.lastColumnValue = 0;
74
+ this.lineStart = 0;
75
+ };
76
+
77
+ StringStream.prototype = {
78
+ eol: function eol() {
79
+ return this.pos >= this.string.length;
80
+ },
81
+ sol: function sol() {
82
+ return this.pos == this.lineStart;
83
+ },
84
+ peek: function peek() {
85
+ return this.string.charAt(this.pos) || undefined;
86
+ },
87
+ next: function next() {
88
+ if (this.pos < this.string.length) return this.string.charAt(this.pos++);
89
+ },
90
+ eat: function eat(match) {
91
+ var ch = this.string.charAt(this.pos);
92
+ if (typeof match == "string") var ok = ch == match;else var ok = ch && (match.test ? match.test(ch) : match(ch));
93
+
94
+ if (ok) {
95
+ ++this.pos;
96
+ return ch;
97
+ }
98
+ },
99
+ eatWhile: function eatWhile(match) {
100
+ var start = this.pos;
101
+
102
+ while (this.eat(match)) {}
103
+
104
+ return this.pos > start;
105
+ },
106
+ eatSpace: function eatSpace() {
107
+ var start = this.pos;
108
+
109
+ while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) {
110
+ ++this.pos;
111
+ }
112
+
113
+ return this.pos > start;
114
+ },
115
+ skipToEnd: function skipToEnd() {
116
+ this.pos = this.string.length;
117
+ },
118
+ skipTo: function skipTo(ch) {
119
+ var found = this.string.indexOf(ch, this.pos);
120
+
121
+ if (found > -1) {
122
+ this.pos = found;
123
+ return true;
124
+ }
125
+ },
126
+ backUp: function backUp(n) {
127
+ this.pos -= n;
128
+ },
129
+ column: function column() {
130
+ throw "not implemented";
131
+ },
132
+ indentation: function indentation() {
133
+ throw "not implemented";
134
+ },
135
+ match: function match(pattern, consume, caseInsensitive) {
136
+ if (typeof pattern == "string") {
137
+ var cased = function cased(str) {
138
+ return caseInsensitive ? str.toLowerCase() : str;
139
+ };
140
+
141
+ var substr = this.string.substr(this.pos, pattern.length);
142
+
143
+ if (cased(substr) == cased(pattern)) {
144
+ if (consume !== false) this.pos += pattern.length;
145
+ return true;
146
+ }
147
+ } else {
148
+ var match = this.string.slice(this.pos).match(pattern);
149
+ if (match && match.index > 0) return null;
150
+ if (match && consume !== false) this.pos += match[0].length;
151
+ return match;
152
+ }
153
+ },
154
+ current: function current() {
155
+ return this.string.slice(this.start, this.pos);
156
+ },
157
+ hideFirstChars: function hideFirstChars(n, inner) {
158
+ this.lineStart += n;
159
+
160
+ try {
161
+ return inner();
162
+ } finally {
163
+ this.lineStart -= n;
164
+ }
165
+ }
166
+ };
167
+
168
+ function toCmPos(pos) {
169
+ return new Pos(pos.lineNumber - 1, pos.column - 1);
170
+ }
171
+
172
+ function toMonacoPos(pos) {
173
+ return new _editor.Position(pos.line + 1, pos.ch + 1);
174
+ }
175
+
176
+ var Marker = /*#__PURE__*/function () {
177
+ function Marker(cm, id, line, ch) {
178
+ _classCallCheck(this, Marker);
179
+
180
+ this.cm = cm;
181
+ this.id = id;
182
+ this.lineNumber = line + 1;
183
+ this.column = ch + 1;
184
+ cm.marks[this.id] = this;
185
+ }
186
+
187
+ _createClass(Marker, [{
188
+ key: "clear",
189
+ value: function clear() {
190
+ delete this.cm.marks[this.id];
191
+ }
192
+ }, {
193
+ key: "find",
194
+ value: function find() {
195
+ return toCmPos(this);
196
+ }
197
+ }]);
198
+
199
+ return Marker;
200
+ }();
201
+
202
+ function monacoToCmKey(e) {
203
+ var skip = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
204
+ var addQuotes = true;
205
+ var keyName = _editor.KeyCode[e.keyCode];
206
+
207
+ if (e.key) {
208
+ keyName = e.key;
209
+ addQuotes = false;
210
+ }
211
+
212
+ var key = keyName;
213
+ var skipOnlyShiftCheck = skip;
214
+
215
+ switch (e.keyCode) {
216
+ case _editor.KeyCode.Shift:
217
+ case _editor.KeyCode.Meta:
218
+ case _editor.KeyCode.Alt:
219
+ case _editor.KeyCode.Ctrl:
220
+ return key;
221
+
222
+ case _editor.KeyCode.Escape:
223
+ skipOnlyShiftCheck = true;
224
+ key = "Esc";
225
+ break;
226
+
227
+ case _editor.KeyCode.Space:
228
+ skipOnlyShiftCheck = true;
229
+ break;
230
+ } // `Key` check for monaco >= 0.30.0
231
+
232
+
233
+ if (keyName.startsWith("Key") || keyName.startsWith("KEY_")) {
234
+ key = keyName[keyName.length - 1].toLowerCase();
235
+ } else if (keyName.startsWith("Digit")) {
236
+ key = keyName.slice(5, 6);
237
+ } else if (keyName.startsWith("Numpad")) {
238
+ key = keyName.slice(6, 7);
239
+ } else if (keyName.endsWith("Arrow")) {
240
+ skipOnlyShiftCheck = true;
241
+ key = keyName.substring(0, keyName.length - 5);
242
+ } else if (keyName.startsWith("US_") || // `Bracket` check for monaco >= 0.30.0
243
+ keyName.startsWith("Bracket") || !key) {
244
+ key = e.browserEvent.key;
245
+ }
246
+
247
+ if (!skipOnlyShiftCheck && !e.altKey && !e.ctrlKey && !e.metaKey) {
248
+ key = e.key || e.browserEvent.key;
249
+ } else {
250
+ if (e.altKey) {
251
+ key = "Alt-".concat(key);
252
+ }
253
+
254
+ if (e.ctrlKey) {
255
+ key = "Ctrl-".concat(key);
256
+ }
257
+
258
+ if (e.metaKey) {
259
+ key = "Meta-".concat(key);
260
+ }
261
+
262
+ if (e.shiftKey) {
263
+ key = "Shift-".concat(key);
264
+ }
265
+ }
266
+
267
+ if (key.length === 1 && addQuotes) {
268
+ key = "'".concat(key, "'");
269
+ }
270
+
271
+ return key;
272
+ }
273
+
274
+ var CMAdapter = /*#__PURE__*/function () {
275
+ function CMAdapter(editor) {
276
+ _classCallCheck(this, CMAdapter);
277
+
278
+ _initialiseProps.call(this);
279
+
280
+ this.editor = editor;
281
+ this.state = {
282
+ keyMap: "vim"
283
+ };
284
+ this.marks = {};
285
+ this.$uid = 0;
286
+ this.disposables = [];
287
+ this.listeners = {};
288
+ this.curOp = {};
289
+ this.attached = false;
290
+ this.statusBar = null;
291
+ this.options = {};
292
+ this.addLocalListeners();
293
+ this.ctxInsert = this.editor.createContextKey("insertMode", true);
294
+ }
295
+
296
+ _createClass(CMAdapter, [{
297
+ key: "attach",
298
+ value: function attach() {
299
+ CMAdapter.keyMap.vim.attach(this);
300
+ }
301
+ }, {
302
+ key: "addLocalListeners",
303
+ value: function addLocalListeners() {
304
+ this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange), this.editor.onDidChangeModelContent(this.handleChange), this.editor.onKeyDown(this.handleKeyDown));
305
+ }
306
+ }, {
307
+ key: "handleReplaceMode",
308
+ value: function handleReplaceMode(key, e) {
309
+ var fromReplace = false;
310
+ var _char = key;
311
+ var pos = this.editor.getPosition();
312
+ var range = new _editor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column + 1);
313
+ var forceMoveMarkers = true;
314
+
315
+ if (key.startsWith("'")) {
316
+ _char = key[1];
317
+ } else if (_char === "Enter") {
318
+ _char = "\n";
319
+ } else if (_char === "Backspace") {
320
+ var lastItem = this.replaceStack.pop();
321
+
322
+ if (!lastItem) {
323
+ return;
324
+ }
325
+
326
+ fromReplace = true;
327
+ _char = lastItem;
328
+ range = new _editor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column - 1);
329
+ } else {
330
+ return;
331
+ }
332
+
333
+ e.preventDefault();
334
+ e.stopPropagation();
335
+
336
+ if (!this.replaceStack) {
337
+ this.replaceStack = [];
338
+ }
339
+
340
+ if (!fromReplace) {
341
+ this.replaceStack.push(this.editor.getModel().getValueInRange(range));
342
+ }
343
+
344
+ this.editor.executeEdits("vim", [{
345
+ text: _char,
346
+ range: range,
347
+ forceMoveMarkers: forceMoveMarkers
348
+ }]);
349
+
350
+ if (fromReplace) {
351
+ this.editor.setPosition(range.getStartPosition());
352
+ }
353
+ }
354
+ }, {
355
+ key: "setOption",
356
+ value: function setOption(key, value) {
357
+ this.state[key] = value;
358
+
359
+ if (key === "theme") {
360
+ _editor.editor.setTheme(value);
361
+ }
362
+ }
363
+ }, {
364
+ key: "getConfiguration",
365
+ value: function getConfiguration() {
366
+ var editor = this.editor;
367
+ var opts = EditorOptConstants;
368
+
369
+ if (typeof editor.getConfiguration === "function") {
370
+ return editor.getConfiguration();
371
+ } else if ("EditorOption" in _editor.editor) {
372
+ // for monaco 0.19.3 onwards
373
+ opts = _editor.editor.EditorOption;
374
+ }
375
+
376
+ return {
377
+ readOnly: editor.getOption(opts.readOnly),
378
+ viewInfo: {
379
+ cursorWidth: editor.getOption(opts.cursorWidth)
380
+ },
381
+ fontInfo: editor.getOption(opts.fontInfo)
382
+ };
383
+ }
384
+ }, {
385
+ key: "getOption",
386
+ value: function getOption(key) {
387
+ if (key === "readOnly") {
388
+ return this.getConfiguration().readOnly;
389
+ } else if (key === "firstLineNumber") {
390
+ return this.firstLine() + 1;
391
+ } else if (key === "indentWithTabs") {
392
+ return !this.editor.getModel().getOptions().insertSpaces;
393
+ } else {
394
+ if (typeof this.editor.getConfiguration === "function") {
395
+ return this.editor.getRawConfiguration()[key];
396
+ }
397
+
398
+ return this.editor.getRawOptions()[key];
399
+ }
400
+ }
401
+ }, {
402
+ key: "dispatch",
403
+ value: function dispatch(signal) {
404
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
405
+ args[_key - 1] = arguments[_key];
406
+ }
407
+
408
+ var listeners = this.listeners[signal];
409
+
410
+ if (!listeners) {
411
+ return;
412
+ }
413
+
414
+ listeners.forEach(function (handler) {
415
+ return handler.apply(void 0, args);
416
+ });
417
+ }
418
+ }, {
419
+ key: "on",
420
+ value: function on(event, handler) {
421
+ if (!this.listeners[event]) {
422
+ this.listeners[event] = [];
423
+ }
424
+
425
+ this.listeners[event].push(handler);
426
+ }
427
+ }, {
428
+ key: "off",
429
+ value: function off(event, handler) {
430
+ var listeners = this.listeners[event];
431
+
432
+ if (!listeners) {
433
+ return;
434
+ }
435
+
436
+ this.listeners[event] = listeners.filter(function (l) {
437
+ return l !== handler;
438
+ });
439
+ }
440
+ }, {
441
+ key: "firstLine",
442
+ value: function firstLine() {
443
+ return 0;
444
+ }
445
+ }, {
446
+ key: "lastLine",
447
+ value: function lastLine() {
448
+ return this.lineCount() - 1;
449
+ }
450
+ }, {
451
+ key: "lineCount",
452
+ value: function lineCount() {
453
+ return this.editor.getModel().getLineCount();
454
+ }
455
+ }, {
456
+ key: "defaultTextHeight",
457
+ value: function defaultTextHeight() {
458
+ return 1;
459
+ }
460
+ }, {
461
+ key: "getLine",
462
+ value: function getLine(line) {
463
+ if (line < 0) {
464
+ return "";
465
+ }
466
+
467
+ var model = this.editor.getModel();
468
+ var maxLines = model.getLineCount();
469
+
470
+ if (line + 1 > maxLines) {
471
+ line = maxLines - 1;
472
+ }
473
+
474
+ return this.editor.getModel().getLineContent(line + 1);
475
+ }
476
+ }, {
477
+ key: "getAnchorForSelection",
478
+ value: function getAnchorForSelection(selection) {
479
+ if (selection.isEmpty()) {
480
+ return selection.getPosition();
481
+ }
482
+
483
+ var selDir = selection.getDirection();
484
+ return selDir === _editor.SelectionDirection.LTR ? selection.getStartPosition() : selection.getEndPosition();
485
+ }
486
+ }, {
487
+ key: "getHeadForSelection",
488
+ value: function getHeadForSelection(selection) {
489
+ if (selection.isEmpty()) {
490
+ return selection.getPosition();
491
+ }
492
+
493
+ var selDir = selection.getDirection();
494
+ return selDir === _editor.SelectionDirection.LTR ? selection.getEndPosition() : selection.getStartPosition();
495
+ }
496
+ }, {
497
+ key: "getCursor",
498
+ value: function getCursor() {
499
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
500
+
501
+ if (!type) {
502
+ return toCmPos(this.editor.getPosition());
503
+ }
504
+
505
+ var sel = this.editor.getSelection();
506
+ var pos;
507
+
508
+ if (sel.isEmpty()) {
509
+ pos = sel.getPosition();
510
+ } else if (type === "anchor") {
511
+ pos = this.getAnchorForSelection(sel);
512
+ } else {
513
+ pos = this.getHeadForSelection(sel);
514
+ }
515
+
516
+ return toCmPos(pos);
517
+ }
518
+ }, {
519
+ key: "getRange",
520
+ value: function getRange(start, end) {
521
+ var p1 = toMonacoPos(start);
522
+ var p2 = toMonacoPos(end);
523
+ return this.editor.getModel().getValueInRange(_editor.Range.fromPositions(p1, p2));
524
+ }
525
+ }, {
526
+ key: "getSelection",
527
+ value: function getSelection() {
528
+ var list = [];
529
+ var editor = this.editor;
530
+ editor.getSelections().map(function (sel) {
531
+ list.push(editor.getModel().getValueInRange(sel));
532
+ });
533
+ return list.join("\n");
534
+ }
535
+ }, {
536
+ key: "replaceRange",
537
+ value: function replaceRange(text, start, end) {
538
+ var p1 = toMonacoPos(start);
539
+ var p2 = !end ? p1 : toMonacoPos(end);
540
+ this.editor.executeEdits("vim", [{
541
+ text: text,
542
+ range: _editor.Range.fromPositions(p1, p2)
543
+ }]); // @TODO - Check if this breaks any other expectation
544
+
545
+ this.pushUndoStop();
546
+ }
547
+ }, {
548
+ key: "pushUndoStop",
549
+ value: function pushUndoStop() {
550
+ this.editor.pushUndoStop();
551
+ }
552
+ }, {
553
+ key: "setCursor",
554
+ value: function setCursor(line, ch) {
555
+ var pos = line;
556
+
557
+ if (_typeof(line) !== "object") {
558
+ pos = {};
559
+ pos.line = line;
560
+ pos.ch = ch;
561
+ }
562
+
563
+ var monacoPos = this.editor.getModel().validatePosition(toMonacoPos(pos));
564
+ this.editor.setPosition(toMonacoPos(pos));
565
+ this.editor.revealPosition(monacoPos);
566
+ }
567
+ }, {
568
+ key: "somethingSelected",
569
+ value: function somethingSelected() {
570
+ return !this.editor.getSelection().isEmpty();
571
+ }
572
+ }, {
573
+ key: "operation",
574
+ value: function operation(fn, force) {
575
+ return fn();
576
+ }
577
+ }, {
578
+ key: "listSelections",
579
+ value: function listSelections() {
580
+ var _this = this;
581
+
582
+ var selections = this.editor.getSelections();
583
+
584
+ if (!selections.length || this.inVirtualSelectionMode) {
585
+ return [{
586
+ anchor: this.getCursor("anchor"),
587
+ head: this.getCursor("head")
588
+ }];
589
+ }
590
+
591
+ return selections.map(function (sel) {
592
+ sel.getPosition();
593
+ sel.getStartPosition();
594
+ sel.getEndPosition();
595
+ return {
596
+ anchor: _this.clipPos(toCmPos(_this.getAnchorForSelection(sel))),
597
+ head: _this.clipPos(toCmPos(_this.getHeadForSelection(sel)))
598
+ };
599
+ });
600
+ }
601
+ }, {
602
+ key: "focus",
603
+ value: function focus() {
604
+ this.editor.focus();
605
+ }
606
+ }, {
607
+ key: "setSelections",
608
+ value: function setSelections(selections, primIndex) {
609
+ var hasSel = !!this.editor.getSelections().length;
610
+ var sels = selections.map(function (sel, index) {
611
+ var anchor = sel.anchor,
612
+ head = sel.head;
613
+
614
+ if (hasSel) {
615
+ return _editor.Selection.fromPositions(toMonacoPos(anchor), toMonacoPos(head));
616
+ } else {
617
+ return _editor.Selection.fromPositions(toMonacoPos(head), toMonacoPos(anchor));
618
+ }
619
+ });
620
+
621
+ if (!primIndex) ; else if (sels[primIndex]) {
622
+ sels.push(sels.splice(primIndex, 1)[0]);
623
+ }
624
+
625
+ if (!sels.length) {
626
+ return;
627
+ }
628
+
629
+ var sel = sels[0];
630
+ var posToReveal;
631
+
632
+ if (sel.getDirection() === _editor.SelectionDirection.LTR) {
633
+ posToReveal = sel.getEndPosition();
634
+ } else {
635
+ posToReveal = sel.getStartPosition();
636
+ }
637
+
638
+ this.editor.setSelections(sels);
639
+ this.editor.revealPosition(posToReveal);
640
+ }
641
+ }, {
642
+ key: "setSelection",
643
+ value: function setSelection(frm, to) {
644
+ var range = _editor.Range.fromPositions(toMonacoPos(frm), toMonacoPos(to));
645
+
646
+ this.editor.setSelection(range);
647
+ }
648
+ }, {
649
+ key: "getSelections",
650
+ value: function getSelections() {
651
+ var editor = this.editor;
652
+ return editor.getSelections().map(function (sel) {
653
+ return editor.getModel().getValueInRange(sel);
654
+ });
655
+ }
656
+ }, {
657
+ key: "replaceSelections",
658
+ value: function replaceSelections(texts) {
659
+ var editor = this.editor;
660
+ editor.getSelections().forEach(function (sel, index) {
661
+ editor.executeEdits("vim", [{
662
+ range: sel,
663
+ text: texts[index],
664
+ forceMoveMarkers: false
665
+ }]);
666
+ });
667
+ }
668
+ }, {
669
+ key: "toggleOverwrite",
670
+ value: function toggleOverwrite(toggle) {
671
+ if (toggle) {
672
+ this.enterVimMode();
673
+ this.replaceMode = true;
674
+ } else {
675
+ this.leaveVimMode();
676
+ this.replaceMode = false;
677
+ this.replaceStack = [];
678
+ }
679
+ }
680
+ }, {
681
+ key: "charCoords",
682
+ value: function charCoords(pos, mode) {
683
+ return {
684
+ top: pos.line,
685
+ left: pos.ch
686
+ };
687
+ }
688
+ }, {
689
+ key: "coordsChar",
690
+ value: function coordsChar(pos, mode) {
691
+ }
692
+ }, {
693
+ key: "clipPos",
694
+ value: function clipPos(p) {
695
+ var pos = this.editor.getModel().validatePosition(toMonacoPos(p));
696
+ return toCmPos(pos);
697
+ }
698
+ }, {
699
+ key: "setBookmark",
700
+ value: function setBookmark(cursor, options) {
701
+ var bm = new Marker(this, this.$uid++, cursor.line, cursor.ch);
702
+
703
+ if (!options || !options.insertLeft) {
704
+ bm.$insertRight = true;
705
+ }
706
+
707
+ this.marks[bm.id] = bm;
708
+ return bm;
709
+ }
710
+ }, {
711
+ key: "getScrollInfo",
712
+ value: function getScrollInfo() {
713
+ var editor = this.editor;
714
+
715
+ var _editor$getVisibleRan = editor.getVisibleRanges(),
716
+ _editor$getVisibleRan2 = _slicedToArray(_editor$getVisibleRan, 1),
717
+ range = _editor$getVisibleRan2[0];
718
+
719
+ return {
720
+ left: 0,
721
+ top: range.startLineNumber - 1,
722
+ height: editor.getModel().getLineCount(),
723
+ clientHeight: range.endLineNumber - range.startLineNumber + 1
724
+ };
725
+ }
726
+ }, {
727
+ key: "triggerEditorAction",
728
+ value: function triggerEditorAction(action) {
729
+ this.editor.trigger("vim", action);
730
+ }
731
+ }, {
732
+ key: "dispose",
733
+ value: function dispose() {
734
+ this.dispatch("dispose");
735
+ this.removeOverlay();
736
+
737
+ if (CMAdapter.keyMap.vim) {
738
+ CMAdapter.keyMap.vim.detach(this);
739
+ }
740
+
741
+ this.disposables.forEach(function (d) {
742
+ return d.dispose();
743
+ });
744
+ }
745
+ }, {
746
+ key: "getInputField",
747
+ value: function getInputField() {}
748
+ }, {
749
+ key: "getWrapperElement",
750
+ value: function getWrapperElement() {}
751
+ }, {
752
+ key: "enterVimMode",
753
+ value: function enterVimMode() {
754
+ this.ctxInsert.set(false);
755
+ var config = this.getConfiguration();
756
+ this.initialCursorWidth = config.viewInfo.cursorWidth || 0;
757
+ this.editor.updateOptions({
758
+ cursorWidth: config.fontInfo.typicalFullwidthCharacterWidth,
759
+ cursorBlinking: "solid"
760
+ });
761
+ }
762
+ }, {
763
+ key: "leaveVimMode",
764
+ value: function leaveVimMode() {
765
+ this.ctxInsert.set(true);
766
+ this.editor.updateOptions({
767
+ cursorWidth: this.initialCursorWidth || 0,
768
+ cursorBlinking: "blink"
769
+ });
770
+ }
771
+ }, {
772
+ key: "virtualSelectionMode",
773
+ value: function virtualSelectionMode() {
774
+ return this.inVirtualSelectionMode;
775
+ }
776
+ }, {
777
+ key: "markText",
778
+ value: function markText() {
779
+ // only used for fat-cursor, not needed
780
+ return {
781
+ clear: function clear() {},
782
+ find: function find() {}
783
+ };
784
+ }
785
+ }, {
786
+ key: "getUserVisibleLines",
787
+ value: function getUserVisibleLines() {
788
+ var ranges = this.editor.getVisibleRanges();
789
+
790
+ if (!ranges.length) {
791
+ return {
792
+ top: 0,
793
+ bottom: 0
794
+ };
795
+ }
796
+
797
+ var res = {
798
+ top: Infinity,
799
+ bottom: 0
800
+ };
801
+ ranges.reduce(function (acc, range) {
802
+ if (range.startLineNumber < acc.top) {
803
+ acc.top = range.startLineNumber;
804
+ }
805
+
806
+ if (range.endLineNumber > acc.bottom) {
807
+ acc.bottom = range.endLineNumber;
808
+ }
809
+
810
+ return acc;
811
+ }, res);
812
+ res.top -= 1;
813
+ res.bottom -= 1;
814
+ return res;
815
+ }
816
+ }, {
817
+ key: "findPosV",
818
+ value: function findPosV(startPos, amount, unit) {
819
+ var editor = this.editor;
820
+ var finalAmount = amount;
821
+ var finalUnit = unit;
822
+ var pos = toMonacoPos(startPos);
823
+
824
+ if (unit === "page") {
825
+ var editorHeight = editor.getLayoutInfo().height;
826
+ var lineHeight = this.getConfiguration().fontInfo.lineHeight;
827
+ finalAmount = finalAmount * Math.floor(editorHeight / lineHeight);
828
+ finalUnit = "line";
829
+ }
830
+
831
+ if (finalUnit === "line") {
832
+ pos.lineNumber += finalAmount;
833
+ }
834
+
835
+ return toCmPos(pos);
836
+ }
837
+ }, {
838
+ key: "findMatchingBracket",
839
+ value: function findMatchingBracket(pos) {
840
+ var mPos = toMonacoPos(pos);
841
+ var model = this.editor.getModel();
842
+ var res; // for monaco versions >= 0.28.0
843
+
844
+ if (model.bracketPairs) {
845
+ res = model.bracketPairs.matchBracket(mPos);
846
+ } else {
847
+ var _model$matchBracket;
848
+
849
+ res = (_model$matchBracket = model.matchBracket) === null || _model$matchBracket === void 0 ? void 0 : _model$matchBracket.call(model, mPos);
850
+ }
851
+
852
+ if (!res || !(res.length === 2)) {
853
+ return {
854
+ to: null
855
+ };
856
+ }
857
+
858
+ return {
859
+ to: toCmPos(res[1].getStartPosition())
860
+ };
861
+ }
862
+ }, {
863
+ key: "findFirstNonWhiteSpaceCharacter",
864
+ value: function findFirstNonWhiteSpaceCharacter(line) {
865
+ return this.editor.getModel().getLineFirstNonWhitespaceColumn(line + 1) - 1;
866
+ }
867
+ }, {
868
+ key: "scrollTo",
869
+ value: function scrollTo(x, y) {
870
+ if (!x && !y) {
871
+ return;
872
+ }
873
+
874
+ if (!x) {
875
+ if (y < 0) {
876
+ y = this.editor.getPosition().lineNumber - y;
877
+ }
878
+
879
+ this.editor.setScrollTop(this.editor.getTopForLineNumber(y + 1));
880
+ }
881
+ }
882
+ }, {
883
+ key: "moveCurrentLineTo",
884
+ value: function moveCurrentLineTo(viewPosition) {
885
+ var _editor$_revealRange;
886
+
887
+ var editor = this.editor;
888
+ var pos = editor.getPosition();
889
+
890
+ var range = _editor.Range.fromPositions(pos, pos);
891
+
892
+ switch (viewPosition) {
893
+ case "top":
894
+ editor.revealRangeAtTop(range);
895
+ return;
896
+
897
+ case "center":
898
+ editor.revealRangeInCenter(range);
899
+ return;
900
+
901
+ case "bottom":
902
+ // private api. no other way
903
+ (_editor$_revealRange = editor._revealRange) === null || _editor$_revealRange === void 0 ? void 0 : _editor$_revealRange.call(editor, range, VerticalRevealType.Bottom);
904
+ return;
905
+ }
906
+ }
907
+ }, {
908
+ key: "getSearchCursor",
909
+ value: function getSearchCursor(query, pos) {
910
+ var matchCase = false;
911
+ var isRegex = false;
912
+
913
+ if (query instanceof RegExp && !query.global) {
914
+ matchCase = !query.ignoreCase;
915
+ query = query.source;
916
+ isRegex = true;
917
+ }
918
+
919
+ if (pos.ch == undefined) pos.ch = Number.MAX_VALUE;
920
+ var monacoPos = toMonacoPos(pos);
921
+ var context = this;
922
+ var editor = this.editor;
923
+ var lastSearch = null;
924
+ var model = editor.getModel();
925
+ var matches = model.findMatches(query, false, isRegex, matchCase) || [];
926
+ return {
927
+ getMatches: function getMatches() {
928
+ return matches;
929
+ },
930
+ findNext: function findNext() {
931
+ return this.find(false);
932
+ },
933
+ findPrevious: function findPrevious() {
934
+ return this.find(true);
935
+ },
936
+ jumpTo: function jumpTo(index) {
937
+ if (!matches || !matches.length) {
938
+ return false;
939
+ }
940
+
941
+ var match = matches[index];
942
+ lastSearch = match.range;
943
+ context.highlightRanges([lastSearch], "currentFindMatch");
944
+ context.highlightRanges(matches.map(function (m) {
945
+ return m.range;
946
+ }).filter(function (r) {
947
+ return !r.equalsRange(lastSearch);
948
+ }));
949
+ return lastSearch;
950
+ },
951
+ find: function find(back) {
952
+ if (!matches || !matches.length) {
953
+ return false;
954
+ }
955
+
956
+ var match;
957
+
958
+ if (back) {
959
+ var _pos = lastSearch ? lastSearch.getStartPosition() : monacoPos;
960
+
961
+ match = model.findPreviousMatch(query, _pos, isRegex, matchCase);
962
+
963
+ if (!match || !match.range.getStartPosition().isBeforeOrEqual(_pos)) {
964
+ return false;
965
+ }
966
+ } else {
967
+ var _pos2 = lastSearch ? model.getPositionAt(model.getOffsetAt(lastSearch.getStartPosition()) + 1) : monacoPos;
968
+
969
+ match = model.findNextMatch(query, _pos2, isRegex, matchCase);
970
+
971
+ if (!match || !_pos2.isBeforeOrEqual(match.range.getStartPosition())) {
972
+ return false;
973
+ }
974
+ }
975
+
976
+ lastSearch = match.range;
977
+ context.highlightRanges([lastSearch], "currentFindMatch");
978
+ context.highlightRanges(matches.map(function (m) {
979
+ return m.range;
980
+ }).filter(function (r) {
981
+ return !r.equalsRange(lastSearch);
982
+ }));
983
+ return lastSearch;
984
+ },
985
+ from: function from() {
986
+ return lastSearch && toCmPos(lastSearch.getStartPosition());
987
+ },
988
+ to: function to() {
989
+ return lastSearch && toCmPos(lastSearch.getEndPosition());
990
+ },
991
+ replace: function replace(text) {
992
+ if (lastSearch) {
993
+ editor.executeEdits("vim", [{
994
+ range: lastSearch,
995
+ text: text,
996
+ forceMoveMarkers: true
997
+ }]);
998
+ lastSearch.setEndPosition(editor.getPosition());
999
+ editor.setPosition(lastSearch.getStartPosition());
1000
+ }
1001
+ }
1002
+ };
1003
+ }
1004
+ }, {
1005
+ key: "highlightRanges",
1006
+ value: function highlightRanges(ranges) {
1007
+ var className = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "findMatch";
1008
+ var decorationKey = "decoration".concat(className);
1009
+ this[decorationKey] = this.editor.deltaDecorations(this[decorationKey] || [], ranges.map(function (range) {
1010
+ return {
1011
+ range: range,
1012
+ options: {
1013
+ stickiness: _editor.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
1014
+ zIndex: 13,
1015
+ className: className,
1016
+ showIfCollapsed: true
1017
+ }
1018
+ };
1019
+ }));
1020
+ return this[decorationKey];
1021
+ }
1022
+ }, {
1023
+ key: "addOverlay",
1024
+ value: function addOverlay(_ref, hasBoundary, style) {
1025
+ var query = _ref.query;
1026
+ var matchCase = false;
1027
+ var isRegex = false;
1028
+
1029
+ if (query && query instanceof RegExp && !query.global) {
1030
+ isRegex = true;
1031
+ matchCase = !query.ignoreCase;
1032
+ query = query.source;
1033
+ }
1034
+
1035
+ var match = this.editor.getModel().findNextMatch(query, this.editor.getPosition(), isRegex, matchCase);
1036
+
1037
+ if (!match || !match.range) {
1038
+ return;
1039
+ }
1040
+
1041
+ this.highlightRanges([match.range]);
1042
+ }
1043
+ }, {
1044
+ key: "removeOverlay",
1045
+ value: function removeOverlay() {
1046
+ var _this2 = this;
1047
+
1048
+ ["currentFindMatch", "findMatch"].forEach(function (key) {
1049
+ _this2.editor.deltaDecorations(_this2["decoration".concat(key)] || [], []);
1050
+ });
1051
+ }
1052
+ }, {
1053
+ key: "scrollIntoView",
1054
+ value: function scrollIntoView(pos) {
1055
+ if (!pos) {
1056
+ return;
1057
+ }
1058
+
1059
+ this.editor.revealPosition(toMonacoPos(pos));
1060
+ }
1061
+ }, {
1062
+ key: "moveH",
1063
+ value: function moveH(units, type) {
1064
+ if (type !== "char") {
1065
+ return;
1066
+ }
1067
+
1068
+ var pos = this.editor.getPosition();
1069
+ this.editor.setPosition(new _editor.Position(pos.lineNumber, pos.column + units));
1070
+ }
1071
+ }, {
1072
+ key: "scanForBracket",
1073
+ value: function scanForBracket(pos, dir, dd, config) {
1074
+ var bracketRegex = config.bracketRegex;
1075
+ var mPos = toMonacoPos(pos);
1076
+ var model = this.editor.getModel();
1077
+ var searchFunc = (dir === -1 ? model.findPreviousMatch : model.findNextMatch).bind(model);
1078
+ var stack = [];
1079
+ var iterations = 0;
1080
+
1081
+ while (true) {
1082
+ if (iterations > 10) {
1083
+ // Searched too far, give up.
1084
+ return undefined;
1085
+ }
1086
+
1087
+ var match = searchFunc(bracketRegex.source, mPos, true, true, null, true);
1088
+ var thisBracket = match.matches[0];
1089
+
1090
+ if (match === undefined) {
1091
+ return undefined;
1092
+ }
1093
+
1094
+ var matchingBracket = CMAdapter.matchingBrackets[thisBracket];
1095
+
1096
+ if (matchingBracket && matchingBracket.charAt(1) === ">" == dir > 0) {
1097
+ stack.push(thisBracket);
1098
+ } else if (stack.length === 0) {
1099
+ var res = match.range.getStartPosition();
1100
+ return {
1101
+ pos: toCmPos(res)
1102
+ };
1103
+ } else {
1104
+ stack.pop();
1105
+ }
1106
+
1107
+ mPos = model.getPositionAt(model.getOffsetAt(match.range.getStartPosition()) + dir);
1108
+ iterations += 1;
1109
+ }
1110
+ }
1111
+ }, {
1112
+ key: "indexFromPos",
1113
+ value: function indexFromPos(pos) {
1114
+ return this.editor.getModel().getOffsetAt(toMonacoPos(pos));
1115
+ }
1116
+ }, {
1117
+ key: "posFromIndex",
1118
+ value: function posFromIndex(offset) {
1119
+ return toCmPos(this.editor.getModel().getPositionAt(offset));
1120
+ }
1121
+ }, {
1122
+ key: "indentLine",
1123
+ value: function indentLine(line) {
1124
+ var indentRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1125
+ var editor = this.editor;
1126
+ var cursorConfig; // Monaco >= 0.21.x
1127
+
1128
+ if (editor._getViewModel) {
1129
+ cursorConfig = editor._getViewModel().cursorConfig;
1130
+ } else {
1131
+ cursorConfig = editor._getCursors().context.config;
1132
+ }
1133
+
1134
+ var pos = new _editor.Position(line + 1, 1);
1135
+
1136
+ var sel = _editor.Selection.fromPositions(pos, pos); // no other way than to use internal apis to preserve the undoStack for a batch of indents
1137
+
1138
+
1139
+ editor.executeCommand("vim", new _shiftCommand.ShiftCommand(sel, {
1140
+ isUnshift: !indentRight,
1141
+ tabSize: cursorConfig.tabSize,
1142
+ indentSize: cursorConfig.indentSize,
1143
+ insertSpaces: cursorConfig.insertSpaces,
1144
+ useTabStops: cursorConfig.useTabStops,
1145
+ autoIndent: cursorConfig.autoIndent
1146
+ }));
1147
+ }
1148
+ }, {
1149
+ key: "setStatusBar",
1150
+ value: function setStatusBar(statusBar) {
1151
+ this.statusBar = statusBar;
1152
+ }
1153
+ }, {
1154
+ key: "openDialog",
1155
+ value: function openDialog(html, callback, options) {
1156
+ if (!this.statusBar) {
1157
+ return;
1158
+ }
1159
+
1160
+ return this.statusBar.setSec(html, callback, options);
1161
+ }
1162
+ }, {
1163
+ key: "openNotification",
1164
+ value: function openNotification(html) {
1165
+ if (!this.statusBar) {
1166
+ return;
1167
+ }
1168
+
1169
+ this.statusBar.showNotification(html);
1170
+ }
1171
+ }, {
1172
+ key: "smartIndent",
1173
+ value: function smartIndent() {
1174
+ // Only works if a formatter is added for the current language.
1175
+ // reindentselectedlines does not work here.
1176
+ this.editor.getAction("editor.action.formatSelection").run();
1177
+ }
1178
+ }, {
1179
+ key: "moveCursorTo",
1180
+ value: function moveCursorTo(to) {
1181
+ var newPos = this.editor.getPosition();
1182
+
1183
+ if (to === "start") {
1184
+ newPos.column = 1;
1185
+ } else if (to === "end") {
1186
+ newPos.column = this.editor.getModel().getLineMaxColumn(newPos.lineNumber);
1187
+ }
1188
+
1189
+ this.editor.setPosition(newPos);
1190
+ }
1191
+ }, {
1192
+ key: "execCommand",
1193
+ value: function execCommand(command) {
1194
+ switch (command) {
1195
+ case "goLineLeft":
1196
+ this.moveCursorTo("start");
1197
+ break;
1198
+
1199
+ case "goLineRight":
1200
+ this.moveCursorTo("end");
1201
+ break;
1202
+
1203
+ case "indentAuto":
1204
+ this.smartIndent();
1205
+ break;
1206
+ }
1207
+ }
1208
+ }]);
1209
+
1210
+ return CMAdapter;
1211
+ }();
1212
+
1213
+ CMAdapter.Pos = Pos;
1214
+ CMAdapter.signal = signal;
1215
+ CMAdapter.on = dummy();
1216
+ CMAdapter.off = dummy();
1217
+ CMAdapter.addClass = dummy();
1218
+ CMAdapter.rmClass = dummy();
1219
+ CMAdapter.defineOption = dummy();
1220
+ CMAdapter.keyMap = {
1221
+ "default": function _default(key) {
1222
+ return function (cm) {
1223
+ return true;
1224
+ };
1225
+ }
1226
+ };
1227
+ CMAdapter.matchingBrackets = {
1228
+ "(": ")>",
1229
+ ")": "(<",
1230
+ "[": "]>",
1231
+ "]": "[<",
1232
+ "{": "}>",
1233
+ "}": "{<",
1234
+ "<": ">>",
1235
+ ">": "<<"
1236
+ };
1237
+ CMAdapter.isWordChar = isWordCharBasic;
1238
+ CMAdapter.keyName = monacoToCmKey;
1239
+ CMAdapter.StringStream = StringStream;
1240
+
1241
+ CMAdapter.e_stop = function (e) {
1242
+ if (e.stopPropagation) {
1243
+ e.stopPropagation();
1244
+ } else {
1245
+ e.cancelBubble = true;
1246
+ }
1247
+
1248
+ CMAdapter.e_preventDefault(e);
1249
+ return false;
1250
+ };
1251
+
1252
+ CMAdapter.e_preventDefault = function (e) {
1253
+ if (e.preventDefault) {
1254
+ e.preventDefault();
1255
+
1256
+ if (e.browserEvent) {
1257
+ e.browserEvent.preventDefault();
1258
+ }
1259
+ } else {
1260
+ e.returnValue = false;
1261
+ }
1262
+
1263
+ return false;
1264
+ };
1265
+
1266
+ CMAdapter.commands = {
1267
+ redo: function redo(cm) {
1268
+ cm.editor.getModel().redo();
1269
+ },
1270
+ undo: function undo(cm) {
1271
+ cm.editor.getModel().undo();
1272
+ },
1273
+ newlineAndIndent: function newlineAndIndent(cm) {
1274
+ cm.triggerEditorAction("editor.action.insertLineAfter");
1275
+ }
1276
+ };
1277
+
1278
+ CMAdapter.lookupKey = function lookupKey(key, map, handle) {
1279
+ if (typeof map === "string") {
1280
+ map = CMAdapter.keyMap[map];
1281
+ }
1282
+
1283
+ var found = typeof map == "function" ? map(key) : map[key];
1284
+ if (found === false) return "nothing";
1285
+ if (found === "...") return "multi";
1286
+ if (found != null && handle(found)) return "handled";
1287
+
1288
+ if (map.fallthrough) {
1289
+ if (!Array.isArray(map.fallthrough)) return lookupKey(key, map.fallthrough, handle);
1290
+
1291
+ for (var i = 0; i < map.fallthrough.length; i++) {
1292
+ var result = lookupKey(key, map.fallthrough[i], handle);
1293
+ if (result) return result;
1294
+ }
1295
+ }
1296
+ };
1297
+
1298
+ CMAdapter.defineExtension = function (name, fn) {
1299
+ CMAdapter.prototype[name] = fn;
1300
+ };
1301
+
1302
+ var _initialiseProps = function _initialiseProps() {
1303
+ var _this3 = this;
1304
+
1305
+ this.handleKeyDown = function (e) {
1306
+ // Allow previously registered keydown listeners to handle the event and
1307
+ // prevent this extension from also handling it.
1308
+ if (e.browserEvent.defaultPrevented & e.keyCode !== _editor.KeyCode.Escape) {
1309
+ return;
1310
+ }
1311
+
1312
+ if (!_this3.attached) {
1313
+ return;
1314
+ }
1315
+
1316
+ var key = monacoToCmKey(e);
1317
+
1318
+ if (_this3.replaceMode) {
1319
+ _this3.handleReplaceMode(key, e);
1320
+ }
1321
+
1322
+ if (!key) {
1323
+ return;
1324
+ }
1325
+
1326
+ var keymap = _this3.state.keyMap;
1327
+
1328
+ if (CMAdapter.keyMap[keymap] && CMAdapter.keyMap[keymap].call) {
1329
+ var cmd = CMAdapter.keyMap[keymap].call(key, _this3);
1330
+
1331
+ if (cmd) {
1332
+ e.preventDefault();
1333
+ e.stopPropagation();
1334
+
1335
+ try {
1336
+ cmd();
1337
+ } catch (err) {
1338
+ console.error(err);
1339
+ }
1340
+ }
1341
+ }
1342
+ };
1343
+
1344
+ this.handleCursorChange = function (e) {
1345
+ var position = e.position;
1346
+ e.source;
1347
+ var editor = _this3.editor;
1348
+ var selection = editor.getSelection();
1349
+
1350
+ if (!_this3.ctxInsert.get() && e.source === "mouse" && selection.isEmpty()) {
1351
+ var maxCol = editor.getModel().getLineMaxColumn(position.lineNumber);
1352
+
1353
+ if (e.position.column === maxCol) {
1354
+ editor.setPosition(new _editor.Position(e.position.lineNumber, maxCol - 1));
1355
+ return;
1356
+ }
1357
+ }
1358
+
1359
+ _this3.dispatch("cursorActivity", _this3, e);
1360
+ };
1361
+
1362
+ this.handleChange = function (e) {
1363
+ var changes = e.changes;
1364
+ var change = {
1365
+ text: changes.reduce(function (acc, change) {
1366
+ acc.push(change.text);
1367
+ return acc;
1368
+ }, []),
1369
+ origin: "+input"
1370
+ };
1371
+ var curOp = _this3.curOp = _this3.curOp || {};
1372
+
1373
+ if (!curOp.changeHandlers) {
1374
+ curOp.changeHandlers = _this3.listeners["change"] && _this3.listeners["change"].slice();
1375
+ }
1376
+
1377
+ if (_this3.virtualSelectionMode()) {
1378
+ return;
1379
+ }
1380
+
1381
+ if (!curOp.lastChange) {
1382
+ curOp.lastChange = curOp.change = change;
1383
+ } else {
1384
+ curOp.lastChange.next = curOp.lastChange = change;
1385
+ }
1386
+
1387
+ _this3.dispatch("change", _this3, change);
1388
+ };
1389
+ };
1390
+
1391
+ var _default2 = CMAdapter;
1392
+ exports["default"] = _default2;
1393
+ } (cm_adapter));