@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
package/dist/index.js DELETED
@@ -1,2207 +0,0 @@
1
- import { c as commonjsGlobal, r as require$$0, a as getDefaultExportFromCjs } from './_monaco-editor_commonjs-external.js';
2
-
3
- function _mergeNamespaces(n, m) {
4
- m.forEach(function (e) {
5
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
- if (k !== 'default' && !(k in n)) {
7
- var d = Object.getOwnPropertyDescriptor(e, k);
8
- Object.defineProperty(n, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () { return e[k]; }
11
- });
12
- }
13
- });
14
- });
15
- return Object.freeze(n);
16
- }
17
-
18
- var lib = {};
19
-
20
- var emacs = {};
21
-
22
- /**
23
- * lodash (Custom Build) <https://lodash.com/>
24
- * Build: `lodash modularize exports="npm" -o ./`
25
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
26
- * Released under MIT license <https://lodash.com/license>
27
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
28
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
29
- */
30
-
31
- /** Used as the `TypeError` message for "Functions" methods. */
32
- var FUNC_ERROR_TEXT = 'Expected a function';
33
-
34
- /** Used as references for various `Number` constants. */
35
- var NAN = 0 / 0;
36
-
37
- /** `Object#toString` result references. */
38
- var symbolTag$1 = '[object Symbol]';
39
-
40
- /** Used to match leading and trailing whitespace. */
41
- var reTrim = /^\s+|\s+$/g;
42
-
43
- /** Used to detect bad signed hexadecimal string values. */
44
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
45
-
46
- /** Used to detect binary string values. */
47
- var reIsBinary = /^0b[01]+$/i;
48
-
49
- /** Used to detect octal string values. */
50
- var reIsOctal = /^0o[0-7]+$/i;
51
-
52
- /** Built-in method references without a dependency on `root`. */
53
- var freeParseInt = parseInt;
54
-
55
- /** Detect free variable `global` from Node.js. */
56
- var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
57
-
58
- /** Detect free variable `self`. */
59
- var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self;
60
-
61
- /** Used as a reference to the global object. */
62
- var root$1 = freeGlobal$1 || freeSelf$1 || Function('return this')();
63
-
64
- /** Used for built-in method references. */
65
- var objectProto$1 = Object.prototype;
66
-
67
- /**
68
- * Used to resolve the
69
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
70
- * of values.
71
- */
72
- var objectToString$1 = objectProto$1.toString;
73
-
74
- /* Built-in method references for those with the same name as other `lodash` methods. */
75
- var nativeMax = Math.max,
76
- nativeMin = Math.min;
77
-
78
- /**
79
- * Gets the timestamp of the number of milliseconds that have elapsed since
80
- * the Unix epoch (1 January 1970 00:00:00 UTC).
81
- *
82
- * @static
83
- * @memberOf _
84
- * @since 2.4.0
85
- * @category Date
86
- * @returns {number} Returns the timestamp.
87
- * @example
88
- *
89
- * _.defer(function(stamp) {
90
- * console.log(_.now() - stamp);
91
- * }, _.now());
92
- * // => Logs the number of milliseconds it took for the deferred invocation.
93
- */
94
- var now = function() {
95
- return root$1.Date.now();
96
- };
97
-
98
- /**
99
- * Creates a debounced function that delays invoking `func` until after `wait`
100
- * milliseconds have elapsed since the last time the debounced function was
101
- * invoked. The debounced function comes with a `cancel` method to cancel
102
- * delayed `func` invocations and a `flush` method to immediately invoke them.
103
- * Provide `options` to indicate whether `func` should be invoked on the
104
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
105
- * with the last arguments provided to the debounced function. Subsequent
106
- * calls to the debounced function return the result of the last `func`
107
- * invocation.
108
- *
109
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
110
- * invoked on the trailing edge of the timeout only if the debounced function
111
- * is invoked more than once during the `wait` timeout.
112
- *
113
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
114
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
115
- *
116
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
117
- * for details over the differences between `_.debounce` and `_.throttle`.
118
- *
119
- * @static
120
- * @memberOf _
121
- * @since 0.1.0
122
- * @category Function
123
- * @param {Function} func The function to debounce.
124
- * @param {number} [wait=0] The number of milliseconds to delay.
125
- * @param {Object} [options={}] The options object.
126
- * @param {boolean} [options.leading=false]
127
- * Specify invoking on the leading edge of the timeout.
128
- * @param {number} [options.maxWait]
129
- * The maximum time `func` is allowed to be delayed before it's invoked.
130
- * @param {boolean} [options.trailing=true]
131
- * Specify invoking on the trailing edge of the timeout.
132
- * @returns {Function} Returns the new debounced function.
133
- * @example
134
- *
135
- * // Avoid costly calculations while the window size is in flux.
136
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
137
- *
138
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
139
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
140
- * 'leading': true,
141
- * 'trailing': false
142
- * }));
143
- *
144
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
145
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
146
- * var source = new EventSource('/stream');
147
- * jQuery(source).on('message', debounced);
148
- *
149
- * // Cancel the trailing debounced invocation.
150
- * jQuery(window).on('popstate', debounced.cancel);
151
- */
152
- function debounce(func, wait, options) {
153
- var lastArgs,
154
- lastThis,
155
- maxWait,
156
- result,
157
- timerId,
158
- lastCallTime,
159
- lastInvokeTime = 0,
160
- leading = false,
161
- maxing = false,
162
- trailing = true;
163
-
164
- if (typeof func != 'function') {
165
- throw new TypeError(FUNC_ERROR_TEXT);
166
- }
167
- wait = toNumber(wait) || 0;
168
- if (isObject(options)) {
169
- leading = !!options.leading;
170
- maxing = 'maxWait' in options;
171
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
172
- trailing = 'trailing' in options ? !!options.trailing : trailing;
173
- }
174
-
175
- function invokeFunc(time) {
176
- var args = lastArgs,
177
- thisArg = lastThis;
178
-
179
- lastArgs = lastThis = undefined;
180
- lastInvokeTime = time;
181
- result = func.apply(thisArg, args);
182
- return result;
183
- }
184
-
185
- function leadingEdge(time) {
186
- // Reset any `maxWait` timer.
187
- lastInvokeTime = time;
188
- // Start the timer for the trailing edge.
189
- timerId = setTimeout(timerExpired, wait);
190
- // Invoke the leading edge.
191
- return leading ? invokeFunc(time) : result;
192
- }
193
-
194
- function remainingWait(time) {
195
- var timeSinceLastCall = time - lastCallTime,
196
- timeSinceLastInvoke = time - lastInvokeTime,
197
- result = wait - timeSinceLastCall;
198
-
199
- return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
200
- }
201
-
202
- function shouldInvoke(time) {
203
- var timeSinceLastCall = time - lastCallTime,
204
- timeSinceLastInvoke = time - lastInvokeTime;
205
-
206
- // Either this is the first call, activity has stopped and we're at the
207
- // trailing edge, the system time has gone backwards and we're treating
208
- // it as the trailing edge, or we've hit the `maxWait` limit.
209
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
210
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
211
- }
212
-
213
- function timerExpired() {
214
- var time = now();
215
- if (shouldInvoke(time)) {
216
- return trailingEdge(time);
217
- }
218
- // Restart the timer.
219
- timerId = setTimeout(timerExpired, remainingWait(time));
220
- }
221
-
222
- function trailingEdge(time) {
223
- timerId = undefined;
224
-
225
- // Only invoke if we have `lastArgs` which means `func` has been
226
- // debounced at least once.
227
- if (trailing && lastArgs) {
228
- return invokeFunc(time);
229
- }
230
- lastArgs = lastThis = undefined;
231
- return result;
232
- }
233
-
234
- function cancel() {
235
- if (timerId !== undefined) {
236
- clearTimeout(timerId);
237
- }
238
- lastInvokeTime = 0;
239
- lastArgs = lastCallTime = lastThis = timerId = undefined;
240
- }
241
-
242
- function flush() {
243
- return timerId === undefined ? result : trailingEdge(now());
244
- }
245
-
246
- function debounced() {
247
- var time = now(),
248
- isInvoking = shouldInvoke(time);
249
-
250
- lastArgs = arguments;
251
- lastThis = this;
252
- lastCallTime = time;
253
-
254
- if (isInvoking) {
255
- if (timerId === undefined) {
256
- return leadingEdge(lastCallTime);
257
- }
258
- if (maxing) {
259
- // Handle invocations in a tight loop.
260
- timerId = setTimeout(timerExpired, wait);
261
- return invokeFunc(lastCallTime);
262
- }
263
- }
264
- if (timerId === undefined) {
265
- timerId = setTimeout(timerExpired, wait);
266
- }
267
- return result;
268
- }
269
- debounced.cancel = cancel;
270
- debounced.flush = flush;
271
- return debounced;
272
- }
273
-
274
- /**
275
- * Creates a throttled function that only invokes `func` at most once per
276
- * every `wait` milliseconds. The throttled function comes with a `cancel`
277
- * method to cancel delayed `func` invocations and a `flush` method to
278
- * immediately invoke them. Provide `options` to indicate whether `func`
279
- * should be invoked on the leading and/or trailing edge of the `wait`
280
- * timeout. The `func` is invoked with the last arguments provided to the
281
- * throttled function. Subsequent calls to the throttled function return the
282
- * result of the last `func` invocation.
283
- *
284
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
285
- * invoked on the trailing edge of the timeout only if the throttled function
286
- * is invoked more than once during the `wait` timeout.
287
- *
288
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
289
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
290
- *
291
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
292
- * for details over the differences between `_.throttle` and `_.debounce`.
293
- *
294
- * @static
295
- * @memberOf _
296
- * @since 0.1.0
297
- * @category Function
298
- * @param {Function} func The function to throttle.
299
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
300
- * @param {Object} [options={}] The options object.
301
- * @param {boolean} [options.leading=true]
302
- * Specify invoking on the leading edge of the timeout.
303
- * @param {boolean} [options.trailing=true]
304
- * Specify invoking on the trailing edge of the timeout.
305
- * @returns {Function} Returns the new throttled function.
306
- * @example
307
- *
308
- * // Avoid excessively updating the position while scrolling.
309
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
310
- *
311
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
312
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
313
- * jQuery(element).on('click', throttled);
314
- *
315
- * // Cancel the trailing throttled invocation.
316
- * jQuery(window).on('popstate', throttled.cancel);
317
- */
318
- function throttle$1(func, wait, options) {
319
- var leading = true,
320
- trailing = true;
321
-
322
- if (typeof func != 'function') {
323
- throw new TypeError(FUNC_ERROR_TEXT);
324
- }
325
- if (isObject(options)) {
326
- leading = 'leading' in options ? !!options.leading : leading;
327
- trailing = 'trailing' in options ? !!options.trailing : trailing;
328
- }
329
- return debounce(func, wait, {
330
- 'leading': leading,
331
- 'maxWait': wait,
332
- 'trailing': trailing
333
- });
334
- }
335
-
336
- /**
337
- * Checks if `value` is the
338
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
339
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
340
- *
341
- * @static
342
- * @memberOf _
343
- * @since 0.1.0
344
- * @category Lang
345
- * @param {*} value The value to check.
346
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
347
- * @example
348
- *
349
- * _.isObject({});
350
- * // => true
351
- *
352
- * _.isObject([1, 2, 3]);
353
- * // => true
354
- *
355
- * _.isObject(_.noop);
356
- * // => true
357
- *
358
- * _.isObject(null);
359
- * // => false
360
- */
361
- function isObject(value) {
362
- var type = typeof value;
363
- return !!value && (type == 'object' || type == 'function');
364
- }
365
-
366
- /**
367
- * Checks if `value` is object-like. A value is object-like if it's not `null`
368
- * and has a `typeof` result of "object".
369
- *
370
- * @static
371
- * @memberOf _
372
- * @since 4.0.0
373
- * @category Lang
374
- * @param {*} value The value to check.
375
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
376
- * @example
377
- *
378
- * _.isObjectLike({});
379
- * // => true
380
- *
381
- * _.isObjectLike([1, 2, 3]);
382
- * // => true
383
- *
384
- * _.isObjectLike(_.noop);
385
- * // => false
386
- *
387
- * _.isObjectLike(null);
388
- * // => false
389
- */
390
- function isObjectLike$1(value) {
391
- return !!value && typeof value == 'object';
392
- }
393
-
394
- /**
395
- * Checks if `value` is classified as a `Symbol` primitive or object.
396
- *
397
- * @static
398
- * @memberOf _
399
- * @since 4.0.0
400
- * @category Lang
401
- * @param {*} value The value to check.
402
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
403
- * @example
404
- *
405
- * _.isSymbol(Symbol.iterator);
406
- * // => true
407
- *
408
- * _.isSymbol('abc');
409
- * // => false
410
- */
411
- function isSymbol$1(value) {
412
- return typeof value == 'symbol' ||
413
- (isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1);
414
- }
415
-
416
- /**
417
- * Converts `value` to a number.
418
- *
419
- * @static
420
- * @memberOf _
421
- * @since 4.0.0
422
- * @category Lang
423
- * @param {*} value The value to process.
424
- * @returns {number} Returns the number.
425
- * @example
426
- *
427
- * _.toNumber(3.2);
428
- * // => 3.2
429
- *
430
- * _.toNumber(Number.MIN_VALUE);
431
- * // => 5e-324
432
- *
433
- * _.toNumber(Infinity);
434
- * // => Infinity
435
- *
436
- * _.toNumber('3.2');
437
- * // => 3.2
438
- */
439
- function toNumber(value) {
440
- if (typeof value == 'number') {
441
- return value;
442
- }
443
- if (isSymbol$1(value)) {
444
- return NAN;
445
- }
446
- if (isObject(value)) {
447
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
448
- value = isObject(other) ? (other + '') : other;
449
- }
450
- if (typeof value != 'string') {
451
- return value === 0 ? value : +value;
452
- }
453
- value = value.replace(reTrim, '');
454
- var isBinary = reIsBinary.test(value);
455
- return (isBinary || reIsOctal.test(value))
456
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
457
- : (reIsBadHex.test(value) ? NAN : +value);
458
- }
459
-
460
- var lodash_throttle = throttle$1;
461
-
462
- /**
463
- * lodash (Custom Build) <https://lodash.com/>
464
- * Build: `lodash modularize exports="npm" -o ./`
465
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
466
- * Released under MIT license <https://lodash.com/license>
467
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
468
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
469
- */
470
-
471
- /** Used as references for various `Number` constants. */
472
- var INFINITY = 1 / 0;
473
-
474
- /** `Object#toString` result references. */
475
- var symbolTag = '[object Symbol]';
476
-
477
- /** Used to match words composed of alphanumeric characters. */
478
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
479
-
480
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
481
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
482
-
483
- /** Used to compose unicode character classes. */
484
- var rsAstralRange = '\\ud800-\\udfff',
485
- rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
486
- rsComboSymbolsRange = '\\u20d0-\\u20f0',
487
- rsDingbatRange = '\\u2700-\\u27bf',
488
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
489
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
490
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
491
- rsPunctuationRange = '\\u2000-\\u206f',
492
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
493
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
494
- rsVarRange = '\\ufe0e\\ufe0f',
495
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
496
-
497
- /** Used to compose unicode capture groups. */
498
- var rsApos = "['\u2019]",
499
- rsBreak = '[' + rsBreakRange + ']',
500
- rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
501
- rsDigits = '\\d+',
502
- rsDingbat = '[' + rsDingbatRange + ']',
503
- rsLower = '[' + rsLowerRange + ']',
504
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
505
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
506
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
507
- rsNonAstral = '[^' + rsAstralRange + ']',
508
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
509
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
510
- rsUpper = '[' + rsUpperRange + ']',
511
- rsZWJ = '\\u200d';
512
-
513
- /** Used to compose unicode regexes. */
514
- var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
515
- rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
516
- rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
517
- rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
518
- reOptMod = rsModifier + '?',
519
- rsOptVar = '[' + rsVarRange + ']?',
520
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
521
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
522
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
523
-
524
- /** Used to match apostrophes. */
525
- var reApos = RegExp(rsApos, 'g');
526
-
527
- /**
528
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
529
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
530
- */
531
- var reComboMark = RegExp(rsCombo, 'g');
532
-
533
- /** Used to match complex or compound words. */
534
- var reUnicodeWord = RegExp([
535
- rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
536
- rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
537
- rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
538
- rsUpper + '+' + rsOptUpperContr,
539
- rsDigits,
540
- rsEmoji
541
- ].join('|'), 'g');
542
-
543
- /** Used to detect strings that need a more robust regexp to match words. */
544
- var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
545
-
546
- /** Used to map Latin Unicode letters to basic Latin letters. */
547
- var deburredLetters = {
548
- // Latin-1 Supplement block.
549
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
550
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
551
- '\xc7': 'C', '\xe7': 'c',
552
- '\xd0': 'D', '\xf0': 'd',
553
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
554
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
555
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
556
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
557
- '\xd1': 'N', '\xf1': 'n',
558
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
559
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
560
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
561
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
562
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
563
- '\xc6': 'Ae', '\xe6': 'ae',
564
- '\xde': 'Th', '\xfe': 'th',
565
- '\xdf': 'ss',
566
- // Latin Extended-A block.
567
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
568
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
569
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
570
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
571
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
572
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
573
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
574
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
575
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
576
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
577
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
578
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
579
- '\u0134': 'J', '\u0135': 'j',
580
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
581
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
582
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
583
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
584
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
585
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
586
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
587
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
588
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
589
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
590
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
591
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
592
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
593
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
594
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
595
- '\u0174': 'W', '\u0175': 'w',
596
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
597
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
598
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
599
- '\u0132': 'IJ', '\u0133': 'ij',
600
- '\u0152': 'Oe', '\u0153': 'oe',
601
- '\u0149': "'n", '\u017f': 'ss'
602
- };
603
-
604
- /** Detect free variable `global` from Node.js. */
605
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
606
-
607
- /** Detect free variable `self`. */
608
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
609
-
610
- /** Used as a reference to the global object. */
611
- var root = freeGlobal || freeSelf || Function('return this')();
612
-
613
- /**
614
- * A specialized version of `_.reduce` for arrays without support for
615
- * iteratee shorthands.
616
- *
617
- * @private
618
- * @param {Array} [array] The array to iterate over.
619
- * @param {Function} iteratee The function invoked per iteration.
620
- * @param {*} [accumulator] The initial value.
621
- * @param {boolean} [initAccum] Specify using the first element of `array` as
622
- * the initial value.
623
- * @returns {*} Returns the accumulated value.
624
- */
625
- function arrayReduce(array, iteratee, accumulator, initAccum) {
626
- var index = -1,
627
- length = array ? array.length : 0;
628
-
629
- if (initAccum && length) {
630
- accumulator = array[++index];
631
- }
632
- while (++index < length) {
633
- accumulator = iteratee(accumulator, array[index], index, array);
634
- }
635
- return accumulator;
636
- }
637
-
638
- /**
639
- * Splits an ASCII `string` into an array of its words.
640
- *
641
- * @private
642
- * @param {string} The string to inspect.
643
- * @returns {Array} Returns the words of `string`.
644
- */
645
- function asciiWords(string) {
646
- return string.match(reAsciiWord) || [];
647
- }
648
-
649
- /**
650
- * The base implementation of `_.propertyOf` without support for deep paths.
651
- *
652
- * @private
653
- * @param {Object} object The object to query.
654
- * @returns {Function} Returns the new accessor function.
655
- */
656
- function basePropertyOf(object) {
657
- return function(key) {
658
- return object == null ? undefined : object[key];
659
- };
660
- }
661
-
662
- /**
663
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
664
- * letters to basic Latin letters.
665
- *
666
- * @private
667
- * @param {string} letter The matched letter to deburr.
668
- * @returns {string} Returns the deburred letter.
669
- */
670
- var deburrLetter = basePropertyOf(deburredLetters);
671
-
672
- /**
673
- * Checks if `string` contains a word composed of Unicode symbols.
674
- *
675
- * @private
676
- * @param {string} string The string to inspect.
677
- * @returns {boolean} Returns `true` if a word is found, else `false`.
678
- */
679
- function hasUnicodeWord(string) {
680
- return reHasUnicodeWord.test(string);
681
- }
682
-
683
- /**
684
- * Splits a Unicode `string` into an array of its words.
685
- *
686
- * @private
687
- * @param {string} The string to inspect.
688
- * @returns {Array} Returns the words of `string`.
689
- */
690
- function unicodeWords(string) {
691
- return string.match(reUnicodeWord) || [];
692
- }
693
-
694
- /** Used for built-in method references. */
695
- var objectProto = Object.prototype;
696
-
697
- /**
698
- * Used to resolve the
699
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
700
- * of values.
701
- */
702
- var objectToString = objectProto.toString;
703
-
704
- /** Built-in value references. */
705
- var Symbol = root.Symbol;
706
-
707
- /** Used to convert symbols to primitives and strings. */
708
- var symbolProto = Symbol ? Symbol.prototype : undefined,
709
- symbolToString = symbolProto ? symbolProto.toString : undefined;
710
-
711
- /**
712
- * The base implementation of `_.toString` which doesn't convert nullish
713
- * values to empty strings.
714
- *
715
- * @private
716
- * @param {*} value The value to process.
717
- * @returns {string} Returns the string.
718
- */
719
- function baseToString(value) {
720
- // Exit early for strings to avoid a performance hit in some environments.
721
- if (typeof value == 'string') {
722
- return value;
723
- }
724
- if (isSymbol(value)) {
725
- return symbolToString ? symbolToString.call(value) : '';
726
- }
727
- var result = (value + '');
728
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
729
- }
730
-
731
- /**
732
- * Creates a function like `_.camelCase`.
733
- *
734
- * @private
735
- * @param {Function} callback The function to combine each word.
736
- * @returns {Function} Returns the new compounder function.
737
- */
738
- function createCompounder(callback) {
739
- return function(string) {
740
- return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
741
- };
742
- }
743
-
744
- /**
745
- * Checks if `value` is object-like. A value is object-like if it's not `null`
746
- * and has a `typeof` result of "object".
747
- *
748
- * @static
749
- * @memberOf _
750
- * @since 4.0.0
751
- * @category Lang
752
- * @param {*} value The value to check.
753
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
754
- * @example
755
- *
756
- * _.isObjectLike({});
757
- * // => true
758
- *
759
- * _.isObjectLike([1, 2, 3]);
760
- * // => true
761
- *
762
- * _.isObjectLike(_.noop);
763
- * // => false
764
- *
765
- * _.isObjectLike(null);
766
- * // => false
767
- */
768
- function isObjectLike(value) {
769
- return !!value && typeof value == 'object';
770
- }
771
-
772
- /**
773
- * Checks if `value` is classified as a `Symbol` primitive or object.
774
- *
775
- * @static
776
- * @memberOf _
777
- * @since 4.0.0
778
- * @category Lang
779
- * @param {*} value The value to check.
780
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
781
- * @example
782
- *
783
- * _.isSymbol(Symbol.iterator);
784
- * // => true
785
- *
786
- * _.isSymbol('abc');
787
- * // => false
788
- */
789
- function isSymbol(value) {
790
- return typeof value == 'symbol' ||
791
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
792
- }
793
-
794
- /**
795
- * Converts `value` to a string. An empty string is returned for `null`
796
- * and `undefined` values. The sign of `-0` is preserved.
797
- *
798
- * @static
799
- * @memberOf _
800
- * @since 4.0.0
801
- * @category Lang
802
- * @param {*} value The value to process.
803
- * @returns {string} Returns the string.
804
- * @example
805
- *
806
- * _.toString(null);
807
- * // => ''
808
- *
809
- * _.toString(-0);
810
- * // => '-0'
811
- *
812
- * _.toString([1, 2, 3]);
813
- * // => '1,2,3'
814
- */
815
- function toString(value) {
816
- return value == null ? '' : baseToString(value);
817
- }
818
-
819
- /**
820
- * Deburrs `string` by converting
821
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
822
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
823
- * letters to basic Latin letters and removing
824
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
825
- *
826
- * @static
827
- * @memberOf _
828
- * @since 3.0.0
829
- * @category String
830
- * @param {string} [string=''] The string to deburr.
831
- * @returns {string} Returns the deburred string.
832
- * @example
833
- *
834
- * _.deburr('déjà vu');
835
- * // => 'deja vu'
836
- */
837
- function deburr(string) {
838
- string = toString(string);
839
- return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
840
- }
841
-
842
- /**
843
- * Converts `string` to
844
- * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
845
- *
846
- * @static
847
- * @memberOf _
848
- * @since 3.0.0
849
- * @category String
850
- * @param {string} [string=''] The string to convert.
851
- * @returns {string} Returns the kebab cased string.
852
- * @example
853
- *
854
- * _.kebabCase('Foo Bar');
855
- * // => 'foo-bar'
856
- *
857
- * _.kebabCase('fooBar');
858
- * // => 'foo-bar'
859
- *
860
- * _.kebabCase('__FOO_BAR__');
861
- * // => 'foo-bar'
862
- */
863
- var kebabCase$1 = createCompounder(function(result, word, index) {
864
- return result + (index ? '-' : '') + word.toLowerCase();
865
- });
866
-
867
- /**
868
- * Splits `string` into an array of its words.
869
- *
870
- * @static
871
- * @memberOf _
872
- * @since 3.0.0
873
- * @category String
874
- * @param {string} [string=''] The string to inspect.
875
- * @param {RegExp|string} [pattern] The pattern to match words.
876
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
877
- * @returns {Array} Returns the words of `string`.
878
- * @example
879
- *
880
- * _.words('fred, barney, & pebbles');
881
- * // => ['fred', 'barney', 'pebbles']
882
- *
883
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
884
- * // => ['fred', 'barney', '&', 'pebbles']
885
- */
886
- function words(string, pattern, guard) {
887
- string = toString(string);
888
- pattern = guard ? undefined : pattern;
889
-
890
- if (pattern === undefined) {
891
- return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
892
- }
893
- return string.match(pattern) || [];
894
- }
895
-
896
- var lodash_kebabcase = kebabCase$1;
897
-
898
- var commands = {};
899
-
900
- var actions = {};
901
-
902
- (function (exports) {
903
- var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
904
- var extendStatics = function (d, b) {
905
- extendStatics = Object.setPrototypeOf ||
906
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
907
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
908
- return extendStatics(d, b);
909
- };
910
- return function (d, b) {
911
- if (typeof b !== "function" && b !== null)
912
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
913
- extendStatics(d, b);
914
- function __() { this.constructor = d; }
915
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
916
- };
917
- })();
918
- Object.defineProperty(exports, "__esModule", { value: true });
919
- exports.DeleteLines = exports.SearchReplace = exports.Search = exports.InvertSelection = exports.GotoLine = exports.RotateCursorOnScreen = exports.InsertTabs = exports.RevealToBottomAction = exports.RevealToCenterAction = exports.RevealToTopAction = exports.RevealEditorAction = exports.YankRotate = exports.YankSelectionToRing = exports.Yank = exports.RedoAction = exports.UndoAction = exports.KeyBoardQuit = exports.MoveCursorTop = exports.MoveCursorBottom = exports.MoveCursorWordLeft = exports.MoveCursorWordRight = exports.MoveCursorToLineStart = exports.MoveCursorToLineEnd = exports.MoveCursorRight = exports.MoveCursorLeft = exports.MoveCursorDown = exports.MoveCursorUp = exports.SetMark = exports.InsertLineAfter = exports.InsertLineBelow = exports.KillLines = exports.KillSelection = exports.BaseAction = exports.SOURCE = void 0;
920
- var monaco = require$$0;
921
- exports.SOURCE = 'extension.emacs';
922
- function moveCursor(editor, hasSelection, direction, unit, repeat) {
923
- if (repeat === void 0) { repeat = 1; }
924
- var action = "cursor".concat(unit === 'word' ? 'Word' : '').concat(direction).concat(hasSelection ? 'Select' : '');
925
- for (var i = 0; i < repeat; i++) {
926
- editor.trigger(exports.SOURCE, action, null);
927
- }
928
- }
929
- var BaseAction = (function () {
930
- function BaseAction() {
931
- this.description = '';
932
- }
933
- return BaseAction;
934
- }());
935
- exports.BaseAction = BaseAction;
936
- var TriggerAction = (function (_super) {
937
- __extends(TriggerAction, _super);
938
- function TriggerAction(trigger) {
939
- var _this = _super.call(this) || this;
940
- _this.trigger = trigger;
941
- return _this;
942
- }
943
- TriggerAction.prototype.run = function (editor) {
944
- editor.trigger(exports.SOURCE, this.trigger, {});
945
- };
946
- return TriggerAction;
947
- }(BaseAction));
948
- var KillSelection = (function (_super) {
949
- __extends(KillSelection, _super);
950
- function KillSelection() {
951
- return _super !== null && _super.apply(this, arguments) || this;
952
- }
953
- KillSelection.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
954
- var selections = editor.getSelections();
955
- if (!selections.length) {
956
- return;
957
- }
958
- selections.forEach(function (sel) {
959
- var text = editor.getModel().getValueInRange(sel);
960
- ext.state.addToRing(text);
961
- editor.executeEdits(exports.SOURCE, [{
962
- range: sel,
963
- text: '',
964
- }]);
965
- });
966
- };
967
- return KillSelection;
968
- }(BaseAction));
969
- exports.KillSelection = KillSelection;
970
- var KillLines = (function (_super) {
971
- __extends(KillLines, _super);
972
- function KillLines() {
973
- return _super !== null && _super.apply(this, arguments) || this;
974
- }
975
- KillLines.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
976
- ext.selectionMode = false;
977
- var model = editor.getModel();
978
- var pos = ext.getCursorAnchor();
979
- var endPos;
980
- if (repeat === 1) {
981
- var lineLength = model.getLineLength(pos.lineNumber);
982
- var isAtEnd = pos.column === lineLength + 1;
983
- if (!lineLength || isAtEnd) {
984
- if (repeatedTrigger) {
985
- ext.state.growRingTop(model.getEOL());
986
- }
987
- else {
988
- ext.state.addToRing(model.getEOL());
989
- }
990
- editor.trigger(exports.SOURCE, 'deleteAllRight', null);
991
- return;
992
- }
993
- else {
994
- endPos = new monaco.Position(pos.lineNumber, model.getLineLength(pos.lineNumber) + 1);
995
- }
996
- }
997
- else {
998
- var totalLines = model.getLineCount();
999
- var endLine = (pos.lineNumber + repeat) > totalLines ? totalLines : (pos.lineNumber + repeat);
1000
- endPos = new monaco.Position(endLine, model.getLineLength(endLine) + 1);
1001
- }
1002
- var range = monaco.Range.fromPositions(pos, endPos);
1003
- if (repeatedTrigger) {
1004
- ext.state.growRingTop(model.getValueInRange(range));
1005
- }
1006
- else {
1007
- ext.state.addToRing(model.getValueInRange(range));
1008
- }
1009
- editor.executeEdits(exports.SOURCE, [{
1010
- range: range,
1011
- text: '',
1012
- }]);
1013
- editor.setSelection(monaco.Selection.fromPositions(pos, pos));
1014
- };
1015
- return KillLines;
1016
- }(BaseAction));
1017
- exports.KillLines = KillLines;
1018
- var InsertLineBelow = (function (_super) {
1019
- __extends(InsertLineBelow, _super);
1020
- function InsertLineBelow() {
1021
- return _super !== null && _super.apply(this, arguments) || this;
1022
- }
1023
- InsertLineBelow.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1024
- var pos = editor.getPosition();
1025
- editor.trigger(exports.SOURCE, 'editor.action.insertLineAfter', null);
1026
- editor.setPosition(pos);
1027
- };
1028
- return InsertLineBelow;
1029
- }(BaseAction));
1030
- exports.InsertLineBelow = InsertLineBelow;
1031
- var InsertLineAfter = (function (_super) {
1032
- __extends(InsertLineAfter, _super);
1033
- function InsertLineAfter() {
1034
- return _super !== null && _super.apply(this, arguments) || this;
1035
- }
1036
- InsertLineAfter.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1037
- var text = '';
1038
- for (var i = 0; i < repeat; i++) {
1039
- text += editor.getModel().getEOL();
1040
- }
1041
- ext.selectionMode = false;
1042
- var pos = ext.getCursorAnchor();
1043
- editor.executeEdits(exports.SOURCE, [{
1044
- range: monaco.Range.fromPositions(pos),
1045
- text: text,
1046
- forceMoveMarkers: true,
1047
- }]);
1048
- };
1049
- return InsertLineAfter;
1050
- }(BaseAction));
1051
- exports.InsertLineAfter = InsertLineAfter;
1052
- var SetMark = (function (_super) {
1053
- __extends(SetMark, _super);
1054
- function SetMark() {
1055
- return _super !== null && _super.apply(this, arguments) || this;
1056
- }
1057
- SetMark.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1058
- ext.selectionMode;
1059
- var sel = editor.getSelection();
1060
- var selEmpty = sel.isEmpty();
1061
- if (!selEmpty) {
1062
- var dir = sel.getDirection();
1063
- if (dir === monaco.SelectionDirection.LTR) {
1064
- editor.setSelection(monaco.Selection.fromPositions(sel.getEndPosition(), sel.getEndPosition()));
1065
- }
1066
- else {
1067
- editor.setSelection(monaco.Selection.fromPositions(sel.getStartPosition(), sel.getStartPosition()));
1068
- }
1069
- }
1070
- if (selEmpty && ext.selectionMode) {
1071
- ext.selectionMode = false;
1072
- }
1073
- else {
1074
- ext.selectionMode = true;
1075
- }
1076
- };
1077
- return SetMark;
1078
- }(BaseAction));
1079
- exports.SetMark = SetMark;
1080
- var MoveCursorAction = (function (_super) {
1081
- __extends(MoveCursorAction, _super);
1082
- function MoveCursorAction() {
1083
- var _this = _super !== null && _super.apply(this, arguments) || this;
1084
- _this.unit = 'char';
1085
- return _this;
1086
- }
1087
- MoveCursorAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1088
- moveCursor(editor, ext.selectionMode, this.direction, this.unit, repeat);
1089
- };
1090
- return MoveCursorAction;
1091
- }(BaseAction));
1092
- var MoveCursorUp = (function (_super) {
1093
- __extends(MoveCursorUp, _super);
1094
- function MoveCursorUp() {
1095
- var _this = _super !== null && _super.apply(this, arguments) || this;
1096
- _this.direction = 'Up';
1097
- return _this;
1098
- }
1099
- return MoveCursorUp;
1100
- }(MoveCursorAction));
1101
- exports.MoveCursorUp = MoveCursorUp;
1102
- var MoveCursorDown = (function (_super) {
1103
- __extends(MoveCursorDown, _super);
1104
- function MoveCursorDown() {
1105
- var _this = _super !== null && _super.apply(this, arguments) || this;
1106
- _this.direction = 'Down';
1107
- return _this;
1108
- }
1109
- return MoveCursorDown;
1110
- }(MoveCursorAction));
1111
- exports.MoveCursorDown = MoveCursorDown;
1112
- var MoveCursorLeft = (function (_super) {
1113
- __extends(MoveCursorLeft, _super);
1114
- function MoveCursorLeft() {
1115
- var _this = _super !== null && _super.apply(this, arguments) || this;
1116
- _this.direction = 'Left';
1117
- return _this;
1118
- }
1119
- return MoveCursorLeft;
1120
- }(MoveCursorAction));
1121
- exports.MoveCursorLeft = MoveCursorLeft;
1122
- var MoveCursorRight = (function (_super) {
1123
- __extends(MoveCursorRight, _super);
1124
- function MoveCursorRight() {
1125
- var _this = _super !== null && _super.apply(this, arguments) || this;
1126
- _this.direction = 'Right';
1127
- return _this;
1128
- }
1129
- return MoveCursorRight;
1130
- }(MoveCursorAction));
1131
- exports.MoveCursorRight = MoveCursorRight;
1132
- var MoveCursorToLineEnd = (function (_super) {
1133
- __extends(MoveCursorToLineEnd, _super);
1134
- function MoveCursorToLineEnd() {
1135
- var _this = _super !== null && _super.apply(this, arguments) || this;
1136
- _this.direction = 'End';
1137
- return _this;
1138
- }
1139
- return MoveCursorToLineEnd;
1140
- }(MoveCursorAction));
1141
- exports.MoveCursorToLineEnd = MoveCursorToLineEnd;
1142
- var MoveCursorToLineStart = (function (_super) {
1143
- __extends(MoveCursorToLineStart, _super);
1144
- function MoveCursorToLineStart() {
1145
- var _this = _super !== null && _super.apply(this, arguments) || this;
1146
- _this.direction = 'Home';
1147
- return _this;
1148
- }
1149
- return MoveCursorToLineStart;
1150
- }(MoveCursorAction));
1151
- exports.MoveCursorToLineStart = MoveCursorToLineStart;
1152
- var MoveCursorWordRight = (function (_super) {
1153
- __extends(MoveCursorWordRight, _super);
1154
- function MoveCursorWordRight() {
1155
- var _this = _super !== null && _super.apply(this, arguments) || this;
1156
- _this.unit = 'word';
1157
- return _this;
1158
- }
1159
- return MoveCursorWordRight;
1160
- }(MoveCursorRight));
1161
- exports.MoveCursorWordRight = MoveCursorWordRight;
1162
- var MoveCursorWordLeft = (function (_super) {
1163
- __extends(MoveCursorWordLeft, _super);
1164
- function MoveCursorWordLeft() {
1165
- var _this = _super !== null && _super.apply(this, arguments) || this;
1166
- _this.unit = 'word';
1167
- return _this;
1168
- }
1169
- return MoveCursorWordLeft;
1170
- }(MoveCursorLeft));
1171
- exports.MoveCursorWordLeft = MoveCursorWordLeft;
1172
- var MoveCursorBottom = (function (_super) {
1173
- __extends(MoveCursorBottom, _super);
1174
- function MoveCursorBottom() {
1175
- var _this = _super !== null && _super.apply(this, arguments) || this;
1176
- _this.direction = 'Bottom';
1177
- return _this;
1178
- }
1179
- return MoveCursorBottom;
1180
- }(MoveCursorAction));
1181
- exports.MoveCursorBottom = MoveCursorBottom;
1182
- var MoveCursorTop = (function (_super) {
1183
- __extends(MoveCursorTop, _super);
1184
- function MoveCursorTop() {
1185
- var _this = _super !== null && _super.apply(this, arguments) || this;
1186
- _this.direction = 'Top';
1187
- return _this;
1188
- }
1189
- return MoveCursorTop;
1190
- }(MoveCursorAction));
1191
- exports.MoveCursorTop = MoveCursorTop;
1192
- var KeyBoardQuit = (function (_super) {
1193
- __extends(KeyBoardQuit, _super);
1194
- function KeyBoardQuit() {
1195
- return _super !== null && _super.apply(this, arguments) || this;
1196
- }
1197
- KeyBoardQuit.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1198
- ext.selectionMode = false;
1199
- ext.clearState();
1200
- editor.setPosition(editor.getPosition());
1201
- };
1202
- return KeyBoardQuit;
1203
- }(BaseAction));
1204
- exports.KeyBoardQuit = KeyBoardQuit;
1205
- var HistoryAction = (function (_super) {
1206
- __extends(HistoryAction, _super);
1207
- function HistoryAction() {
1208
- return _super !== null && _super.apply(this, arguments) || this;
1209
- }
1210
- HistoryAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1211
- for (var i = 0; i < repeat; i++) {
1212
- editor.trigger(exports.SOURCE, this.action, null);
1213
- }
1214
- };
1215
- return HistoryAction;
1216
- }(BaseAction));
1217
- var UndoAction = (function (_super) {
1218
- __extends(UndoAction, _super);
1219
- function UndoAction() {
1220
- var _this = _super !== null && _super.apply(this, arguments) || this;
1221
- _this.action = 'undo';
1222
- return _this;
1223
- }
1224
- return UndoAction;
1225
- }(HistoryAction));
1226
- exports.UndoAction = UndoAction;
1227
- var RedoAction = (function (_super) {
1228
- __extends(RedoAction, _super);
1229
- function RedoAction() {
1230
- var _this = _super !== null && _super.apply(this, arguments) || this;
1231
- _this.action = 'redo';
1232
- return _this;
1233
- }
1234
- return RedoAction;
1235
- }(HistoryAction));
1236
- exports.RedoAction = RedoAction;
1237
- var Yank = (function (_super) {
1238
- __extends(Yank, _super);
1239
- function Yank() {
1240
- return _super !== null && _super.apply(this, arguments) || this;
1241
- }
1242
- Yank.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1243
- var text = ext.state.getFromRing(repeat);
1244
- if (!text) {
1245
- return;
1246
- }
1247
- var pos = editor.getPosition();
1248
- editor.executeEdits(exports.SOURCE, [{
1249
- range: monaco.Range.fromPositions(pos, pos),
1250
- text: text,
1251
- forceMoveMarkers: true,
1252
- }]);
1253
- };
1254
- return Yank;
1255
- }(BaseAction));
1256
- exports.Yank = Yank;
1257
- var YankSelectionToRing = (function (_super) {
1258
- __extends(YankSelectionToRing, _super);
1259
- function YankSelectionToRing() {
1260
- return _super !== null && _super.apply(this, arguments) || this;
1261
- }
1262
- YankSelectionToRing.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1263
- var sel = editor.getSelection();
1264
- if (sel.isEmpty()) {
1265
- return;
1266
- }
1267
- ext.state.addToRing(editor.getModel().getValueInRange(sel));
1268
- ext.selectionMode = false;
1269
- var pos = ext.getCursorAnchor();
1270
- editor.setSelection(monaco.Selection.fromPositions(pos, pos));
1271
- };
1272
- return YankSelectionToRing;
1273
- }(BaseAction));
1274
- exports.YankSelectionToRing = YankSelectionToRing;
1275
- var YankRotate = (function (_super) {
1276
- __extends(YankRotate, _super);
1277
- function YankRotate() {
1278
- return _super !== null && _super.apply(this, arguments) || this;
1279
- }
1280
- YankRotate.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1281
- var text = ext.state.popFromRing();
1282
- if (!text) {
1283
- return;
1284
- }
1285
- var pos = ext.getCursorAnchor();
1286
- editor.executeEdits(exports.SOURCE, [{
1287
- range: monaco.Range.fromPositions(pos),
1288
- text: text,
1289
- forceMoveMarkers: true,
1290
- }]);
1291
- };
1292
- return YankRotate;
1293
- }(BaseAction));
1294
- exports.YankRotate = YankRotate;
1295
- var RevealEditorAction = (function (_super) {
1296
- __extends(RevealEditorAction, _super);
1297
- function RevealEditorAction() {
1298
- return _super !== null && _super.apply(this, arguments) || this;
1299
- }
1300
- RevealEditorAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1301
- var sel = editor.getSelection();
1302
- if (this.revealFunction === 'up') {
1303
- editor.trigger(exports.SOURCE, 'scrollPageUp', null);
1304
- }
1305
- else {
1306
- editor[this.revealFunction](sel);
1307
- }
1308
- };
1309
- return RevealEditorAction;
1310
- }(BaseAction));
1311
- exports.RevealEditorAction = RevealEditorAction;
1312
- var RevealToTopAction = (function (_super) {
1313
- __extends(RevealToTopAction, _super);
1314
- function RevealToTopAction() {
1315
- var _this = _super !== null && _super.apply(this, arguments) || this;
1316
- _this.revealFunction = 'revealRangeAtTop';
1317
- return _this;
1318
- }
1319
- return RevealToTopAction;
1320
- }(RevealEditorAction));
1321
- exports.RevealToTopAction = RevealToTopAction;
1322
- var RevealToCenterAction = (function (_super) {
1323
- __extends(RevealToCenterAction, _super);
1324
- function RevealToCenterAction() {
1325
- var _this = _super !== null && _super.apply(this, arguments) || this;
1326
- _this.revealFunction = 'revealRangeInCenter';
1327
- return _this;
1328
- }
1329
- return RevealToCenterAction;
1330
- }(RevealEditorAction));
1331
- exports.RevealToCenterAction = RevealToCenterAction;
1332
- var RevealToBottomAction = (function (_super) {
1333
- __extends(RevealToBottomAction, _super);
1334
- function RevealToBottomAction() {
1335
- var _this = _super !== null && _super.apply(this, arguments) || this;
1336
- _this.revealFunction = 'up';
1337
- return _this;
1338
- }
1339
- return RevealToBottomAction;
1340
- }(RevealEditorAction));
1341
- exports.RevealToBottomAction = RevealToBottomAction;
1342
- var InsertTabs = (function (_super) {
1343
- __extends(InsertTabs, _super);
1344
- function InsertTabs() {
1345
- return _super !== null && _super.apply(this, arguments) || this;
1346
- }
1347
- InsertTabs.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1348
- var model = editor.getModel();
1349
- var _a = model.getOptions(), tabSize = _a.tabSize, insertSpaces = _a.insertSpaces;
1350
- var text = '';
1351
- for (var i = 0; i < repeat; i++) {
1352
- var spaces = '';
1353
- for (var j = 0; j < tabSize; j++) {
1354
- spaces += ' ';
1355
- }
1356
- text += (insertSpaces ? spaces : '\t');
1357
- }
1358
- editor.executeEdits(exports.SOURCE, [{
1359
- range: editor.getSelection(),
1360
- text: text,
1361
- forceMoveMarkers: true,
1362
- }]);
1363
- };
1364
- return InsertTabs;
1365
- }(BaseAction));
1366
- exports.InsertTabs = InsertTabs;
1367
- var RotateCursorOnScreen = (function (_super) {
1368
- __extends(RotateCursorOnScreen, _super);
1369
- function RotateCursorOnScreen() {
1370
- return _super !== null && _super.apply(this, arguments) || this;
1371
- }
1372
- RotateCursorOnScreen.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1373
- var ranges = editor.getVisibleRanges();
1374
- if (!ranges.length) {
1375
- return;
1376
- }
1377
- var lineMapping = [];
1378
- for (var i = 0; i < ranges.length; i++) {
1379
- var range = ranges[i];
1380
- for (var j = range.startLineNumber; j <= range.endLineNumber; j++) {
1381
- lineMapping.push(j);
1382
- }
1383
- }
1384
- var pos = editor.getPosition();
1385
- var expectedCenter = Math.ceil(lineMapping.length / 2);
1386
- var toMovePos;
1387
- if (pos.lineNumber === lineMapping[expectedCenter]) {
1388
- toMovePos = new monaco.Position(lineMapping[0], 1);
1389
- }
1390
- else if (pos.lineNumber === lineMapping[0]) {
1391
- toMovePos = new monaco.Position(lineMapping[lineMapping.length - 1], 1);
1392
- }
1393
- else {
1394
- toMovePos = new monaco.Position(lineMapping[expectedCenter], 1);
1395
- }
1396
- editor.setPosition(toMovePos);
1397
- };
1398
- return RotateCursorOnScreen;
1399
- }(BaseAction));
1400
- exports.RotateCursorOnScreen = RotateCursorOnScreen;
1401
- var GotoLine = (function (_super) {
1402
- __extends(GotoLine, _super);
1403
- function GotoLine() {
1404
- return _super !== null && _super.apply(this, arguments) || this;
1405
- }
1406
- GotoLine.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1407
- ext.getBasicInput('Goto Line: ').then(function (val) {
1408
- var line = parseInt(val) || 0;
1409
- var model = editor.getModel();
1410
- var totalLines = model.getLineCount();
1411
- editor.focus();
1412
- if (!line) {
1413
- line = 1;
1414
- }
1415
- else if (line > totalLines) {
1416
- line = totalLines;
1417
- }
1418
- var pos = new monaco.Position(line, 1);
1419
- var range;
1420
- if (!ext.selectionMode) {
1421
- range = monaco.Selection.fromPositions(pos);
1422
- }
1423
- else {
1424
- var sel = editor.getSelection();
1425
- if (sel.getDirection() === monaco.SelectionDirection.LTR) {
1426
- range = monaco.Selection.fromPositions(sel.getStartPosition(), pos);
1427
- }
1428
- else {
1429
- range = monaco.Selection.fromPositions(sel.getEndPosition(), pos);
1430
- }
1431
- }
1432
- editor.setSelection(range);
1433
- editor.revealRangeInCenter(range);
1434
- }).catch(function () {
1435
- editor.focus();
1436
- });
1437
- };
1438
- return GotoLine;
1439
- }(BaseAction));
1440
- exports.GotoLine = GotoLine;
1441
- var InvertSelection = (function (_super) {
1442
- __extends(InvertSelection, _super);
1443
- function InvertSelection() {
1444
- return _super !== null && _super.apply(this, arguments) || this;
1445
- }
1446
- InvertSelection.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1447
- var sel = editor.getSelection();
1448
- if (sel.isEmpty()) {
1449
- return;
1450
- }
1451
- var newSel;
1452
- if (sel.getDirection() === monaco.SelectionDirection.LTR) {
1453
- newSel = monaco.Selection.fromPositions(sel.getEndPosition(), sel.getStartPosition());
1454
- }
1455
- else {
1456
- newSel = monaco.Selection.fromPositions(sel.getStartPosition(), sel.getEndPosition());
1457
- }
1458
- editor.setSelection(newSel);
1459
- };
1460
- return InvertSelection;
1461
- }(BaseAction));
1462
- exports.InvertSelection = InvertSelection;
1463
- var Search = (function (_super) {
1464
- __extends(Search, _super);
1465
- function Search() {
1466
- return _super.call(this, 'editor.actions.findWithArgs') || this;
1467
- }
1468
- return Search;
1469
- }(TriggerAction));
1470
- exports.Search = Search;
1471
- var SearchReplace = (function (_super) {
1472
- __extends(SearchReplace, _super);
1473
- function SearchReplace() {
1474
- return _super.call(this, 'editor.action.startFindReplaceAction') || this;
1475
- }
1476
- return SearchReplace;
1477
- }(TriggerAction));
1478
- exports.SearchReplace = SearchReplace;
1479
- var DeleteLines = (function (_super) {
1480
- __extends(DeleteLines, _super);
1481
- function DeleteLines() {
1482
- return _super !== null && _super.apply(this, arguments) || this;
1483
- }
1484
- DeleteLines.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1485
- ext.selectionMode = false;
1486
- for (var i = 0; i < repeat; i++) {
1487
- editor.trigger(exports.SOURCE, 'editor.action.deleteLines', null);
1488
- }
1489
- };
1490
- return DeleteLines;
1491
- }(BaseAction));
1492
- exports.DeleteLines = DeleteLines;
1493
- } (actions));
1494
-
1495
- (function (exports) {
1496
- Object.defineProperty(exports, "__esModule", { value: true });
1497
- exports.getAllMappings = exports.unregisterKey = exports.registerGlobalCommand = exports.executeCommand = exports.COMMANDS = exports.prefixPreservingKeys = void 0;
1498
- var Actions = actions;
1499
- exports.prefixPreservingKeys = {
1500
- "M-g": true,
1501
- "C-x": true,
1502
- "C-q": true,
1503
- "C-u": true,
1504
- };
1505
- var setMarkAction = new Actions.SetMark();
1506
- var undoAction = new Actions.UndoAction();
1507
- var moveCursorDown = new Actions.MoveCursorDown();
1508
- var moveCursorUp = new Actions.MoveCursorUp();
1509
- var moveCursorRight = new Actions.MoveCursorRight();
1510
- var moveCursorLeft = new Actions.MoveCursorLeft();
1511
- exports.COMMANDS = {
1512
- 'M-/': {
1513
- description: '',
1514
- action: 'editor.action.triggerSuggest',
1515
- },
1516
- 'C-\'': {
1517
- description: '',
1518
- action: 'editor.action.triggerSuggest',
1519
- },
1520
- 'M-;': {
1521
- description: '',
1522
- action: 'editor.action.commentLine',
1523
- },
1524
- 'C-t': {
1525
- description: '',
1526
- action: 'editor.action.transposeLetters',
1527
- },
1528
- 'C-x C-p': {
1529
- description: '',
1530
- action: 'editor.action.selectAll',
1531
- },
1532
- 'Tab': {
1533
- description: '',
1534
- action: 'editor.action.formatDocument',
1535
- },
1536
- 'C-Backspace': {
1537
- description: '',
1538
- action: 'deleteWordLeft',
1539
- },
1540
- 'C-d': {
1541
- description: '',
1542
- action: 'deleteRight',
1543
- },
1544
- 'M-Backspace': {
1545
- description: '',
1546
- action: 'deleteWordLeft',
1547
- },
1548
- 'M-Delete': {
1549
- description: '',
1550
- action: 'deleteWordLeft',
1551
- },
1552
- 'C-x C-u': {
1553
- description: '',
1554
- action: 'editor.action.transformToUppercase',
1555
- },
1556
- 'C-x C-l': {
1557
- description: '',
1558
- action: 'editor.action.transformToLowercase',
1559
- },
1560
- 'C-v': {
1561
- description: '',
1562
- action: 'cursorPageDown',
1563
- },
1564
- 'PageDown': {
1565
- description: '',
1566
- action: 'cursorPageDown',
1567
- },
1568
- 'M-v': {
1569
- description: '',
1570
- action: 'cursorPageUp',
1571
- },
1572
- 'PageUp': {
1573
- description: '',
1574
- action: 'cursorPageUp',
1575
- },
1576
- 'M-g n': {
1577
- description: '',
1578
- action: 'editor.action.marker.next',
1579
- },
1580
- 'M-g p': {
1581
- description: '',
1582
- action: 'editor.action.marker.prev',
1583
- },
1584
- 'M-C-n': {
1585
- description: '',
1586
- action: 'editor.action.addSelectionToNextFindMatch',
1587
- },
1588
- 'C-h': {
1589
- description: '',
1590
- action: 'deleteLeft',
1591
- },
1592
- 'M-d': {
1593
- description: '',
1594
- action: 'deleteWordRight',
1595
- },
1596
- 'S-C-': {
1597
- description: '',
1598
- action: 'editor.action.triggerParameterHints',
1599
- },
1600
- 'C-SPC': setMarkAction,
1601
- 'S-C-2': setMarkAction,
1602
- 'C-/': undoAction,
1603
- 'S-C--': undoAction,
1604
- 'C-z': undoAction,
1605
- 'C-x u': undoAction,
1606
- 'C-n': moveCursorDown,
1607
- 'C-p': moveCursorUp,
1608
- 'C-f': moveCursorRight,
1609
- 'C-b': moveCursorLeft,
1610
- 'S-C-Backspace': new Actions.DeleteLines(),
1611
- 'M-f': new Actions.MoveCursorWordRight(),
1612
- 'M-b': new Actions.MoveCursorWordLeft(),
1613
- 'C-k': new Actions.KillLines(),
1614
- 'C-m': new Actions.InsertLineAfter(),
1615
- 'C-w': new Actions.KillSelection(),
1616
- 'C-o': new Actions.InsertLineBelow(),
1617
- 'C-g': new Actions.KeyBoardQuit(),
1618
- 'C-e': new Actions.MoveCursorToLineEnd(),
1619
- 'C-a': new Actions.MoveCursorToLineStart(),
1620
- 'C-y': new Actions.Yank(),
1621
- 'M-w': new Actions.YankSelectionToRing(),
1622
- 'M-y': new Actions.YankRotate(),
1623
- 'C-l': new Actions.RevealToCenterAction(),
1624
- 'C-q Tab': new Actions.InsertTabs(),
1625
- 'M-r': new Actions.RotateCursorOnScreen(),
1626
- 'M-g g': new Actions.GotoLine(),
1627
- 'M-g M-g': new Actions.GotoLine(),
1628
- 'C-x C-x': new Actions.InvertSelection(),
1629
- 'S-M-.': new Actions.MoveCursorBottom(),
1630
- 'S-M-,': new Actions.MoveCursorTop(),
1631
- 'C-s': new Actions.Search(),
1632
- 'C-r': new Actions.Search(),
1633
- 'S-M-5': new Actions.SearchReplace(),
1634
- };
1635
- function executeCommand(ext, command, inputBuffer, repeatedTrigger) {
1636
- var editor = ext.getEditor();
1637
- var repeat = parseInt(inputBuffer) || 1;
1638
- if (command.run) {
1639
- command.run(editor, ext, repeat, repeatedTrigger);
1640
- return;
1641
- }
1642
- if (typeof command.action === 'string') {
1643
- for (var i = 0; i < repeat; i++) {
1644
- editor.trigger(Actions.SOURCE, command.action, null);
1645
- }
1646
- }
1647
- else if (Array.isArray(command.action)) {
1648
- for (var i = 0; i < repeat; i++) {
1649
- command.action.forEach(function (cmd) {
1650
- editor.trigger(Actions.SOURCE, cmd, null);
1651
- });
1652
- }
1653
- }
1654
- }
1655
- exports.executeCommand = executeCommand;
1656
- function registerGlobalCommand(key, command) {
1657
- exports.COMMANDS[key] = command;
1658
- }
1659
- exports.registerGlobalCommand = registerGlobalCommand;
1660
- function unregisterKey(key) {
1661
- if (exports.COMMANDS[key]) {
1662
- delete exports.COMMANDS[key];
1663
- }
1664
- }
1665
- exports.unregisterKey = unregisterKey;
1666
- function getAllMappings() {
1667
- var result = {};
1668
- Object.keys(exports.COMMANDS).forEach(function (key) {
1669
- result[key] = exports.COMMANDS[key].description;
1670
- });
1671
- return result;
1672
- }
1673
- exports.getAllMappings = getAllMappings;
1674
- } (commands));
1675
-
1676
- var util = {};
1677
-
1678
- (function (exports) {
1679
- Object.defineProperty(exports, "__esModule", { value: true });
1680
- exports.Emitter = exports.Event = exports.monacoToEmacsKey = exports.modifierKeys = void 0;
1681
- var monaco = require$$0;
1682
- exports.modifierKeys = {
1683
- Alt: 'M',
1684
- Control: 'C',
1685
- Ctrl: 'C',
1686
- Meta: 'CMD',
1687
- Shift: 'S',
1688
- };
1689
- var specialKeys = {
1690
- Enter: 'Return',
1691
- Space: 'SPC',
1692
- Backslash: '\\',
1693
- Slash: '/',
1694
- Backquote: '`',
1695
- BracketRight: ']',
1696
- BracketLeft: '[',
1697
- Comma: ',',
1698
- Period: '.',
1699
- Equal: '=',
1700
- Minus: '-',
1701
- Quote: '\'',
1702
- Semicolon: ';',
1703
- };
1704
- var oneCharKeyPrefixes = ['Key', 'Numpad'];
1705
- var arrowSuffix = 'Arrow';
1706
- function monacoToEmacsKey(ev) {
1707
- var keyName = monaco.KeyCode[ev.keyCode];
1708
- if (exports.modifierKeys[keyName]) {
1709
- return '';
1710
- }
1711
- var key = oneCharKeyPrefixes.some(function (prefix) { return keyName.startsWith(prefix); }) ? keyName[keyName.length - 1] : keyName;
1712
- if (keyName.endsWith(arrowSuffix)) {
1713
- key = keyName.substring(0, keyName.length - arrowSuffix.length);
1714
- }
1715
- else if (specialKeys[keyName]) {
1716
- key = specialKeys[key];
1717
- }
1718
- if (key.length === 1) {
1719
- key = key.toLowerCase();
1720
- }
1721
- if (ev.altKey) {
1722
- key = "".concat(exports.modifierKeys.Alt, "-").concat(key);
1723
- }
1724
- if (ev.ctrlKey) {
1725
- key = "".concat(exports.modifierKeys.Ctrl, "-").concat(key);
1726
- }
1727
- if (ev.metaKey) {
1728
- key = "".concat(exports.modifierKeys.Meta, "-").concat(key);
1729
- }
1730
- if (ev.shiftKey) {
1731
- key = "".concat(exports.modifierKeys.Shift, "-").concat(key);
1732
- }
1733
- return key;
1734
- }
1735
- exports.monacoToEmacsKey = monacoToEmacsKey;
1736
- (function (Event) {
1737
- var _disposable = { dispose: function () { } };
1738
- Event.None = function () { return _disposable; };
1739
- })(exports.Event || (exports.Event = {}));
1740
- var Emitter = (function () {
1741
- function Emitter() {
1742
- this._listeners = [];
1743
- }
1744
- Object.defineProperty(Emitter.prototype, "event", {
1745
- get: function () {
1746
- var _this = this;
1747
- if (!this._event) {
1748
- this._event = function (listener) {
1749
- _this._listeners.push(listener);
1750
- var result = {
1751
- dispose: function () {
1752
- if (_this._disposed) {
1753
- return;
1754
- }
1755
- var index = _this._listeners.indexOf(listener);
1756
- if (index < 0) {
1757
- return;
1758
- }
1759
- _this._listeners.splice(index, 1);
1760
- }
1761
- };
1762
- return result;
1763
- };
1764
- }
1765
- return this._event;
1766
- },
1767
- enumerable: false,
1768
- configurable: true
1769
- });
1770
- Emitter.prototype.fire = function (ev) {
1771
- if (!this._listeners.length) {
1772
- return;
1773
- }
1774
- this._listeners.forEach(function (l) { return l(ev); });
1775
- };
1776
- Emitter.prototype.dispose = function () {
1777
- if (this._disposed) {
1778
- return;
1779
- }
1780
- this._listeners = undefined;
1781
- this._disposed = true;
1782
- };
1783
- return Emitter;
1784
- }());
1785
- exports.Emitter = Emitter;
1786
- } (util));
1787
-
1788
- var basicInput = {};
1789
-
1790
- Object.defineProperty(basicInput, "__esModule", { value: true });
1791
- basicInput.BasicInputWidget = void 0;
1792
- var monaco$1 = require$$0;
1793
- var BASE_CLASS = 'ext-emacs-basic-input';
1794
- function generateCss() {
1795
- return "\n .".concat(BASE_CLASS, " {\n color: #d4d4d4;\n transition: top 200ms linear;\n visibility: hidden;\n width: 200px;\n display: flex;\n align-items: center;\n padding: 5px;\n }\n\n .").concat(BASE_CLASS, ".").concat(BASE_CLASS, "-visible {\n visibility: visible;\n }\n\n .").concat(BASE_CLASS, " input {\n color: rgb(97, 97, 97);\n background-color: transparent;\n display: inline-block;\n box-sizing: border-box;\n height: 100%;\n line-height: inherit;\n border: none;\n font-family: inherit;\n font-size: inherit;\n resize: none;\n padding-top: 2px;\n padding-bottom: 2px;\n margin-left: 5px;\n max-width: 50px;\n }\n\n .").concat(BASE_CLASS, " input:focus {\n outline: none;\n }\n\n .vs .").concat(BASE_CLASS, " {\n color: rgb(97, 97, 97);\n background-color: #efeff2;\n box-shadow: 0 2px 8px #a8a8a8;\n }\n\n .vs-dark .").concat(BASE_CLASS, " {\n background-color: #2d2d30;\n box-shadow: 0 2px 8px #000000;\n }\n\n .vs-dark .").concat(BASE_CLASS, " input {\n color: rgb(204, 204, 204);\n }\n\n .hc-black .").concat(BASE_CLASS, " {\n border: 2px solid #6fc3df;\n background-color: #0c141f;\n color: #ffffff;\n }\n\n .hc-black .").concat(BASE_CLASS, " input {\n color: #ffffff;\n }\n");
1796
- }
1797
- var BasicInputWidget = (function () {
1798
- function BasicInputWidget() {
1799
- var _this = this;
1800
- this._pendingPromise = null;
1801
- this.onKeyDown = function (ev) {
1802
- if (ev.altKey || ev.ctrlKey || ev.metaKey) {
1803
- ev.preventDefault();
1804
- ev.stopPropagation();
1805
- }
1806
- if (ev.which === 13) {
1807
- if (_this._pendingPromise) {
1808
- ev.preventDefault();
1809
- _this._pendingPromise.resolve(ev.target.value);
1810
- _this._pendingPromise = null;
1811
- }
1812
- }
1813
- else if (ev.which === 27) {
1814
- if (_this._pendingPromise) {
1815
- _this._pendingPromise.reject();
1816
- _this._pendingPromise = null;
1817
- }
1818
- }
1819
- };
1820
- this.onBlur = function () {
1821
- if (_this._pendingPromise) {
1822
- _this._pendingPromise.reject();
1823
- _this._pendingPromise = null;
1824
- }
1825
- };
1826
- this._dom = document.createElement('div');
1827
- this._messageDom = document.createElement('div');
1828
- var medDom = document.createElement('div');
1829
- this._dom.setAttribute('class', BASE_CLASS);
1830
- this._dom.setAttribute('aria-hidden', 'true');
1831
- this._input = document.createElement('input');
1832
- this._dom.appendChild(this._messageDom);
1833
- medDom.appendChild(this._input);
1834
- this._dom.appendChild(medDom);
1835
- this.addListeners();
1836
- this._style = document.createElement('style');
1837
- this._style.type = 'text/css';
1838
- this._style.textContent = generateCss();
1839
- (document.head || document.body).appendChild(this._style);
1840
- }
1841
- BasicInputWidget.prototype.getDomNode = function () {
1842
- return this._dom;
1843
- };
1844
- BasicInputWidget.prototype.getId = function () {
1845
- return 'extension.emacs.basicinput';
1846
- };
1847
- BasicInputWidget.prototype.getPosition = function () {
1848
- return {
1849
- preference: monaco$1.editor.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER,
1850
- };
1851
- };
1852
- BasicInputWidget.prototype.addListeners = function () {
1853
- this._input.addEventListener('keydown', this.onKeyDown);
1854
- this._input.addEventListener('blur', this.onBlur);
1855
- };
1856
- BasicInputWidget.prototype.showWidgetAndFocus = function (message) {
1857
- this._dom.classList.add("".concat(BASE_CLASS, "-visible"));
1858
- this._dom.setAttribute('aria-hidden', 'false');
1859
- this._messageDom.textContent = message;
1860
- this._input.focus();
1861
- };
1862
- BasicInputWidget.prototype.cleanup = function () {
1863
- this._dom.classList.remove("".concat(BASE_CLASS, "-visible"));
1864
- this._dom.setAttribute('aria-hidden', 'true');
1865
- this._messageDom.textContent = '';
1866
- this._input.placeholder = '';
1867
- this._input.value = '';
1868
- };
1869
- BasicInputWidget.prototype.getInput = function (message) {
1870
- var _this = this;
1871
- if (this._pendingPromise) {
1872
- this._pendingPromise.reject();
1873
- this._pendingPromise = null;
1874
- }
1875
- return new Promise(function (resolve, reject) {
1876
- _this._pendingPromise = {
1877
- resolve: function (val) {
1878
- resolve(val);
1879
- _this.cleanup();
1880
- },
1881
- reject: function () {
1882
- reject();
1883
- _this.cleanup();
1884
- },
1885
- };
1886
- _this.showWidgetAndFocus(message);
1887
- });
1888
- };
1889
- BasicInputWidget.prototype.dispose = function () {
1890
- this.cleanup();
1891
- this._input.removeEventListener('keydown', this.onKeyDown);
1892
- this._input.removeEventListener('blur', this.onBlur);
1893
- (document.head || document.body).removeChild(this._style);
1894
- };
1895
- return BasicInputWidget;
1896
- }());
1897
- basicInput.BasicInputWidget = BasicInputWidget;
1898
-
1899
- var state = {};
1900
-
1901
- (function (exports) {
1902
- Object.defineProperty(exports, "__esModule", { value: true });
1903
- exports.State = exports.EAT_UP_KEY = void 0;
1904
- var commands_1 = commands;
1905
- exports.EAT_UP_KEY = '==-==';
1906
- var State = (function () {
1907
- function State() {
1908
- this._inargumentMode = false;
1909
- this._killRing = [];
1910
- }
1911
- State.prototype.updateAndGetKey = function (key) {
1912
- if (key === 'C-g' && (this._inargumentMode || this._prefixKey)) {
1913
- this.resetState();
1914
- return exports.EAT_UP_KEY;
1915
- }
1916
- if (this.updateCuMode(key)) {
1917
- return exports.EAT_UP_KEY;
1918
- }
1919
- if (!this._prefixKey) {
1920
- if (commands_1.prefixPreservingKeys[key]) {
1921
- this._prefixKey = key;
1922
- return exports.EAT_UP_KEY;
1923
- }
1924
- return key;
1925
- }
1926
- else {
1927
- return "".concat(this._prefixKey, " ").concat(key);
1928
- }
1929
- };
1930
- State.prototype.setLastCommandKey = function (lastCommandKey) {
1931
- this._lastCommandKey = lastCommandKey;
1932
- };
1933
- State.prototype.isLastCommandKey = function (lastCommandKey) {
1934
- return this._lastCommandKey == lastCommandKey;
1935
- };
1936
- State.prototype.resetState = function (setLastInput) {
1937
- if (setLastInput === void 0) { setLastInput = false; }
1938
- this._inargumentMode = setLastInput;
1939
- this._prefixKey = null;
1940
- if (setLastInput) {
1941
- this._lastInputBuffer = this._inputBuffer;
1942
- }
1943
- else {
1944
- this._lastInputBuffer = null;
1945
- }
1946
- this._inputBuffer = null;
1947
- };
1948
- State.prototype.updateCuMode = function (key) {
1949
- if (this._inargumentMode) {
1950
- if (typeof key === 'string' && (/^\d$/.test(key))) {
1951
- this._inputBuffer = (this._inputBuffer || '') + key;
1952
- return true;
1953
- }
1954
- else if (commands_1.prefixPreservingKeys[key]) {
1955
- this.resetState(true);
1956
- return false;
1957
- }
1958
- }
1959
- else if (!this._prefixKey && key === 'C-u') {
1960
- this._inargumentMode = true;
1961
- this._inputBuffer = null;
1962
- this._lastInputBuffer = null;
1963
- return true;
1964
- }
1965
- };
1966
- State.prototype.updateStateOnExecution = function (reset) {
1967
- if (reset === void 0) { reset = false; }
1968
- this.resetState(reset);
1969
- };
1970
- State.prototype.getInputBuffer = function () {
1971
- return this._lastInputBuffer || this._inputBuffer;
1972
- };
1973
- State.prototype.addToRing = function (str) {
1974
- this._killRing.push(str);
1975
- if (this._killRing.length > 50)
1976
- this._killRing.shift();
1977
- };
1978
- State.prototype.growRingTop = function (str) {
1979
- if (!this._killRing.length) {
1980
- this.addToRing(str);
1981
- }
1982
- this._killRing[this._killRing.length - 1] += str;
1983
- };
1984
- State.prototype.getFromRing = function (n) {
1985
- return this._killRing[this._killRing.length - (n ? Math.min(n, 1) : 1)] || '';
1986
- };
1987
- State.prototype.popFromRing = function () {
1988
- if (this._killRing.length > 1) {
1989
- return this._killRing.pop();
1990
- }
1991
- return this.getFromRing();
1992
- };
1993
- State.prototype.getReadableState = function () {
1994
- var str = '';
1995
- if (this._inargumentMode) {
1996
- str += 'C-u';
1997
- if (this._inputBuffer) {
1998
- str += " ".concat(this._inputBuffer);
1999
- }
2000
- else if (this._lastInputBuffer) {
2001
- str += " ".concat(this._lastInputBuffer);
2002
- }
2003
- }
2004
- if (this._prefixKey) {
2005
- str += " ".concat(this._prefixKey);
2006
- }
2007
- return str;
2008
- };
2009
- return State;
2010
- }());
2011
- exports.State = State;
2012
- } (state));
2013
-
2014
- Object.defineProperty(emacs, "__esModule", { value: true });
2015
- emacs.getConfiguration = emacs.EmacsExtension = void 0;
2016
- var monaco = require$$0;
2017
- var throttle = lodash_throttle;
2018
- var kebabCase = lodash_kebabcase;
2019
- var commands_1 = commands;
2020
- var util_1 = util;
2021
- var basicInput_1 = basicInput;
2022
- var state_1 = state;
2023
- var _a = monaco.editor, TextEditorCursorBlinkingStyle = _a.TextEditorCursorBlinkingStyle, TextEditorCursorStyle = _a.TextEditorCursorStyle;
2024
- var EmacsExtension = (function () {
2025
- function EmacsExtension(editor) {
2026
- this._disposables = [];
2027
- this._inSelectionMode = false;
2028
- this._changeDisposable = null;
2029
- this._state = new state_1.State();
2030
- this._onDidMarkChange = new util_1.Emitter();
2031
- this.onDidMarkChange = this._onDidMarkChange.event;
2032
- this._onDidChangeKey = new util_1.Emitter();
2033
- this.onDidChangeKey = this._onDidChangeKey.event;
2034
- this._editor = editor;
2035
- var config = getConfiguration(editor);
2036
- this._intialCursorType = config.cursorStyle;
2037
- this._intialCursorBlinking = config.cursorBlinking;
2038
- this._basicInputWidget = new basicInput_1.BasicInputWidget();
2039
- }
2040
- EmacsExtension.prototype.start = function () {
2041
- if (this._disposables.length) {
2042
- return;
2043
- }
2044
- this.addListeners();
2045
- this._editor.updateOptions({
2046
- cursorStyle: kebabCase(TextEditorCursorStyle[TextEditorCursorStyle.Block]),
2047
- cursorBlinking: kebabCase(TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle.Blink]),
2048
- });
2049
- this._editor.addOverlayWidget(this._basicInputWidget);
2050
- };
2051
- Object.defineProperty(EmacsExtension.prototype, "state", {
2052
- get: function () {
2053
- return this._state;
2054
- },
2055
- enumerable: false,
2056
- configurable: true
2057
- });
2058
- EmacsExtension.prototype.getEditor = function () {
2059
- return this._editor;
2060
- };
2061
- EmacsExtension.prototype.addListeners = function () {
2062
- this._disposables.push(this._editor.onKeyDown(this.onKeyDown.bind(this)));
2063
- this._throttledScroll = throttle(this.onEditorScroll.bind(this), 500);
2064
- this._disposables.push(this._editor.onDidScrollChange(this._throttledScroll));
2065
- };
2066
- EmacsExtension.prototype.cancelKey = function (ev) {
2067
- ev.preventDefault();
2068
- ev.stopPropagation();
2069
- };
2070
- EmacsExtension.prototype.onKeyDown = function (ev) {
2071
- if (ev.browserEvent.defaultPrevented) {
2072
- return;
2073
- }
2074
- var key = (0, util_1.monacoToEmacsKey)(ev);
2075
- if (!key) {
2076
- return;
2077
- }
2078
- key = this._state.updateAndGetKey(key);
2079
- this._onDidChangeKey.fire(this._state.getReadableState());
2080
- if (key === state_1.EAT_UP_KEY) {
2081
- this._onDidChangeKey.fire(this._state.getReadableState());
2082
- this.cancelKey(ev);
2083
- return;
2084
- }
2085
- var command = commands_1.COMMANDS[key];
2086
- if (!command) {
2087
- this._onDidChangeKey.fire(this._state.getReadableState());
2088
- this._state.setLastCommandKey(key);
2089
- return;
2090
- }
2091
- this.cancelKey(ev);
2092
- var repeatedTrigger = this._state.isLastCommandKey(key);
2093
- (0, commands_1.executeCommand)(this, command, this._state.getInputBuffer(), repeatedTrigger);
2094
- this._state.setLastCommandKey(key);
2095
- this._state.updateStateOnExecution();
2096
- };
2097
- EmacsExtension.prototype.onEditorScroll = function () {
2098
- var height = this._editor.getLayoutInfo().height;
2099
- var layout = this._editor.getScrolledVisiblePosition(this._editor.getPosition());
2100
- if (layout.top >= 0 && layout.top <= height) {
2101
- return;
2102
- }
2103
- var ranges = this._editor.getVisibleRanges();
2104
- if (!ranges.length) {
2105
- return;
2106
- }
2107
- var newPos;
2108
- var sel = this._editor.getSelection();
2109
- if (layout.top < 0) {
2110
- newPos = new monaco.Position(ranges[0].getStartPosition().lineNumber, 1);
2111
- }
2112
- else if (layout.top > height) {
2113
- newPos = new monaco.Position(ranges[ranges.length - 1].getEndPosition().lineNumber, 1);
2114
- }
2115
- if (this._inSelectionMode) {
2116
- this._editor.setSelection(monaco.Selection.fromPositions(sel.getStartPosition(), newPos));
2117
- }
2118
- else {
2119
- this._editor.setPosition(newPos);
2120
- }
2121
- };
2122
- EmacsExtension.prototype.onContentChange = function () {
2123
- this.selectionMode = false;
2124
- };
2125
- EmacsExtension.prototype.clearState = function () {
2126
- this._state.updateStateOnExecution();
2127
- };
2128
- Object.defineProperty(EmacsExtension.prototype, "selectionMode", {
2129
- get: function () {
2130
- return this._inSelectionMode;
2131
- },
2132
- set: function (mode) {
2133
- if (mode === this._inSelectionMode) {
2134
- return;
2135
- }
2136
- this._inSelectionMode = mode;
2137
- if (mode) {
2138
- this._changeDisposable = this._editor.onDidChangeModelContent(this.onContentChange.bind(this));
2139
- }
2140
- else if (this._changeDisposable) {
2141
- this._changeDisposable.dispose();
2142
- this._changeDisposable = null;
2143
- }
2144
- this._onDidMarkChange.fire(mode);
2145
- },
2146
- enumerable: false,
2147
- configurable: true
2148
- });
2149
- EmacsExtension.prototype.getCursorAnchor = function () {
2150
- var sel = this._editor.getSelection();
2151
- var dir = sel.getDirection();
2152
- return dir === monaco.SelectionDirection.LTR ? sel.getEndPosition() : sel.getStartPosition();
2153
- };
2154
- EmacsExtension.prototype.getBasicInput = function (message) {
2155
- return this._basicInputWidget.getInput(message);
2156
- };
2157
- EmacsExtension.prototype.dispose = function () {
2158
- this._disposables.forEach(function (d) { return d.dispose(); });
2159
- this._disposables = undefined;
2160
- if (this._changeDisposable) {
2161
- this._changeDisposable.dispose();
2162
- this._changeDisposable = null;
2163
- }
2164
- this._editor.updateOptions({
2165
- cursorStyle: this._intialCursorType,
2166
- cursorBlinking: this._intialCursorBlinking,
2167
- });
2168
- this._editor.removeOverlayWidget(this._basicInputWidget);
2169
- this._basicInputWidget.dispose();
2170
- this._throttledScroll.cancel();
2171
- this._state = null;
2172
- };
2173
- return EmacsExtension;
2174
- }());
2175
- emacs.EmacsExtension = EmacsExtension;
2176
- function getConfiguration(editor) {
2177
- var cursorStyle = editor.getOption(monaco.editor.EditorOption.cursorStyle);
2178
- var cursorBlinking = editor.getOption(monaco.editor.EditorOption.cursorBlinking);
2179
- return {
2180
- cursorStyle: kebabCase(TextEditorCursorStyle[cursorStyle]),
2181
- cursorBlinking: kebabCase(TextEditorCursorBlinkingStyle[cursorBlinking]),
2182
- };
2183
- }
2184
- emacs.getConfiguration = getConfiguration;
2185
-
2186
- (function (exports) {
2187
- Object.defineProperty(exports, "__esModule", { value: true });
2188
- exports.Actions = exports.EmacsExtension = exports.unregisterKey = exports.getAllMappings = exports.registerGlobalCommand = void 0;
2189
- var emacs_1 = emacs;
2190
- Object.defineProperty(exports, "EmacsExtension", { enumerable: true, get: function () { return emacs_1.EmacsExtension; } });
2191
- var commands_1 = commands;
2192
- Object.defineProperty(exports, "registerGlobalCommand", { enumerable: true, get: function () { return commands_1.registerGlobalCommand; } });
2193
- Object.defineProperty(exports, "getAllMappings", { enumerable: true, get: function () { return commands_1.getAllMappings; } });
2194
- Object.defineProperty(exports, "unregisterKey", { enumerable: true, get: function () { return commands_1.unregisterKey; } });
2195
- var Actions = actions;
2196
- exports.Actions = Actions;
2197
- exports.default = emacs_1.EmacsExtension;
2198
- } (lib));
2199
-
2200
- var index = /*@__PURE__*/getDefaultExportFromCjs(lib);
2201
-
2202
- var index$1 = /*#__PURE__*/_mergeNamespaces({
2203
- __proto__: null,
2204
- default: index
2205
- }, [lib]);
2206
-
2207
- export { index$1 as i };