@codingame/monaco-editor-wrapper 3.9.2 → 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 (636) 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 -3519
  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 -5922
  326. package/dist/JavaScriptReact.tmLanguage.js +0 -5922
  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 -1291
  337. package/dist/TypeScript.tmLanguage.js +0 -5673
  338. package/dist/TypeScriptReact.tmLanguage.js +0 -5922
  339. package/dist/_rollupPluginBabelHelpers.js +0 -51
  340. package/dist/angular.js +0 -74
  341. package/dist/asp-vb-net.tmlanguage.js +0 -247
  342. package/dist/aspnetcorerazor.js +0 -72
  343. package/dist/aspnetcorerazor.tmLanguage.js +0 -1522
  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 -337
  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 -16485
  370. package/dist/cpptools.js +0 -2608
  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 -3173
  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 -1124
  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 -92
  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 -95
  455. package/dist/java.tmLanguage.js +0 -1863
  456. package/dist/java2.js +0 -888
  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/jvm-bytecode-verbose.js +0 -1231
  467. package/dist/jvm-bytecode.js +0 -565
  468. package/dist/kotlin-kotlin.js +0 -117
  469. package/dist/kotlin.js +0 -103
  470. package/dist/kotlinscript.js +0 -103
  471. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +0 -3
  472. package/dist/languages/extensions/grammarLoader.d.ts +0 -2
  473. package/dist/languages/extensions/languageConfigurationLoader.d.ts +0 -2
  474. package/dist/languages/extensions/snippetLoader.d.ts +0 -2
  475. package/dist/languages/extensions/themeLoader.d.ts +0 -2
  476. package/dist/languages/textMate/index.d.ts +0 -1
  477. package/dist/literate haskell.js +0 -88
  478. package/dist/literateHaskell.tmLanguage.js +0 -70
  479. package/dist/lua.js +0 -84
  480. package/dist/lua.tmLanguage.js +0 -906
  481. package/dist/lua2.js +0 -2859
  482. package/dist/markdown-basics-markdown.code-snippets.js +0 -121
  483. package/dist/markdown-svelte-css.js +0 -37
  484. package/dist/markdown-svelte-js.js +0 -37
  485. package/dist/markdown-svelte.js +0 -59
  486. package/dist/markdown-vue.js +0 -54
  487. package/dist/markdown.js +0 -49
  488. package/dist/markdown.tmLanguage.js +0 -3006
  489. package/dist/menhir-action.js +0 -51
  490. package/dist/menhir.js +0 -597
  491. package/dist/merlin.js +0 -111
  492. package/dist/namespace.r.js +0 -88
  493. package/dist/oasis.js +0 -99
  494. package/dist/objective-c.js +0 -79
  495. package/dist/objective-c.tmLanguage.js +0 -3763
  496. package/dist/objective-cpp.js +0 -79
  497. package/dist/ocaml-dune-project.js +0 -38
  498. package/dist/ocaml-dune.js +0 -53
  499. package/dist/ocaml-markdown-codeblock.js +0 -42
  500. package/dist/ocaml-ocaml.js +0 -88
  501. package/dist/ocaml-ocamllex.js +0 -12
  502. package/dist/ocaml.META.js +0 -29
  503. package/dist/ocaml.interface.js +0 -292
  504. package/dist/ocaml.interface2.js +0 -114
  505. package/dist/ocaml.js +0 -903
  506. package/dist/ocaml.menhir.js +0 -81
  507. package/dist/ocaml.oasis.js +0 -18
  508. package/dist/ocaml.ocamlbuild.js +0 -45
  509. package/dist/ocaml.ocamlformat.js +0 -8
  510. package/dist/ocaml.ocamllex.js +0 -60
  511. package/dist/ocaml.opam-install.js +0 -49
  512. package/dist/ocaml.opam.js +0 -69
  513. package/dist/ocaml2.js +0 -114
  514. package/dist/ocaml3.js +0 -136
  515. package/dist/ocamlbuild.js +0 -189
  516. package/dist/ocamldoc.js +0 -54
  517. package/dist/ocamlformat.js +0 -206
  518. package/dist/ocamllex.js +0 -133
  519. package/dist/omnisharp-csharp.js +0 -508
  520. package/dist/omnisharp.js +0 -590
  521. package/dist/opam-install.js +0 -40
  522. package/dist/opam.js +0 -140
  523. package/dist/pascal-pascal.js +0 -382
  524. package/dist/pascal.js +0 -80
  525. package/dist/pascal.tmLanguage.js +0 -169
  526. package/dist/pascal2.js +0 -26
  527. package/dist/perl.js +0 -93
  528. package/dist/perl.tmLanguage.js +0 -2986
  529. package/dist/perl6.js +0 -86
  530. package/dist/perl6.tmLanguage.js +0 -323
  531. package/dist/pgsql.tmLanguage.js +0 -284
  532. package/dist/php-php.code-snippets.js +0 -267
  533. package/dist/php.js +0 -154
  534. package/dist/php.tmLanguage.js +0 -4008
  535. package/dist/pip-requirements.js +0 -8
  536. package/dist/pip-requirements.tmLanguage.js +0 -89
  537. package/dist/plaintext.js +0 -11
  538. package/dist/platform.tmLanguage.js +0 -1135
  539. package/dist/postcss.src.yaml.js +0 -393
  540. package/dist/postgres.js +0 -80
  541. package/dist/postgresql.js +0 -75
  542. package/dist/powershell.js +0 -107
  543. package/dist/powershell.tmLanguage.js +0 -1037
  544. package/dist/pug-svelte-dotblock.js +0 -69
  545. package/dist/pug-svelte-tags.js +0 -215
  546. package/dist/pug-svelte.js +0 -307
  547. package/dist/python.js +0 -236
  548. package/dist/r.js +0 -664
  549. package/dist/r2.js +0 -88
  550. package/dist/rbuildignore.js +0 -39
  551. package/dist/rd.js +0 -81
  552. package/dist/reason-markdown-codeblock.js +0 -42
  553. package/dist/reason.js +0 -79
  554. package/dist/rmd.js +0 -84
  555. package/dist/rnamespace.js +0 -283
  556. package/dist/ruby.js +0 -95
  557. package/dist/ruby.tmLanguage.js +0 -2784
  558. package/dist/rust.js +0 -84
  559. package/dist/rust.tmLanguage.js +0 -1178
  560. package/dist/sassdoc.tmLanguage.js +0 -362
  561. package/dist/scala.js +0 -85
  562. package/dist/scalameta.js +0 -223
  563. package/dist/scss.js +0 -117
  564. package/dist/scss.tmLanguage.js +0 -1887
  565. package/dist/sdl.js +0 -162
  566. package/dist/sdl2.js +0 -90
  567. package/dist/semanticdb.js +0 -62
  568. package/dist/shell-unix-bash.tmLanguage.js +0 -2016
  569. package/dist/shellscript.js +0 -93
  570. package/dist/solargraph.js +0 -192
  571. package/dist/solidity-solidity.js +0 -213
  572. package/dist/solidity.js +0 -1187
  573. package/dist/solidity2.js +0 -71
  574. package/dist/solidity3.js +0 -137
  575. package/dist/sql.js +0 -99
  576. package/dist/sql.tmLanguage.js +0 -636
  577. package/dist/svelte.js +0 -120
  578. package/dist/svelte.svelte-vscode-javascript.js +0 -45
  579. package/dist/svelte.svelte-vscode-svelte.js +0 -46
  580. package/dist/svelte.svelte-vscode-typescript.js +0 -43
  581. package/dist/svelte.svelte-vscode.js +0 -383
  582. package/dist/svelte.tmLanguage.src.yaml.js +0 -1099
  583. package/dist/svlangserver-systemverilog.js +0 -395
  584. package/dist/svlangserver.js +0 -85
  585. package/dist/swift-swift.code-snippets.js +0 -183
  586. package/dist/swift.js +0 -90
  587. package/dist/swift.tmLanguage.js +0 -3312
  588. package/dist/systemverilog.js +0 -187
  589. package/dist/systemverilog.tmLanguage.js +0 -1259
  590. package/dist/tasty.js +0 -72
  591. package/dist/tcl-tcl.js +0 -151
  592. package/dist/tcl.js +0 -78
  593. package/dist/tcl.tmlanguage.yaml.js +0 -5484
  594. package/dist/template.js +0 -207
  595. package/dist/theme-defaults~dark_plus.js +0 -207
  596. package/dist/theme-defaults~dark_plus_experimental.js +0 -146
  597. package/dist/theme-defaults~dark_vs.js +0 -412
  598. package/dist/theme-defaults~hc_black.js +0 -471
  599. package/dist/theme-defaults~hc_light.js +0 -595
  600. package/dist/theme-defaults~light_plus.js +0 -209
  601. package/dist/theme-defaults~light_plus_experimental.js +0 -159
  602. package/dist/theme-defaults~light_vs.js +0 -441
  603. package/dist/ts.worker.js +0 -6
  604. package/dist/typescript-basics-typescript.code-snippets.js +0 -313
  605. package/dist/typescript-language-features.js +0 -1090
  606. package/dist/typescript.js +0 -216
  607. package/dist/typescriptreact.js +0 -216
  608. package/dist/vb-vb.code-snippets.js +0 -88
  609. package/dist/vb.js +0 -79
  610. package/dist/verilog.js +0 -187
  611. package/dist/volar-vue.js +0 -343
  612. package/dist/vscode-R-r-snippets.js +0 -534
  613. package/dist/vscode-R-rmarkdown.js +0 -461
  614. package/dist/vscode-R.js +0 -648
  615. package/dist/vscode-django-filters.js +0 -340
  616. package/dist/vscode-django.js +0 -37
  617. package/dist/vscode-go-go.js +0 -276
  618. package/dist/vscode-go.js +0 -1604
  619. package/dist/vscode-groovy.js +0 -28
  620. package/dist/vscode-python.js +0 -686
  621. package/dist/vue-directives.js +0 -25
  622. package/dist/vue-interpolations.js +0 -25
  623. package/dist/vue-sfc-style-variable-injection.js +0 -63
  624. package/dist/vue.js +0 -151
  625. package/dist/vue.tmLanguage.js +0 -1218
  626. package/dist/xml.js +0 -116
  627. package/dist/xml.tmLanguage.js +0 -395
  628. package/dist/xsl.js +0 -39
  629. package/dist/xsl.tmLanguage.js +0 -102
  630. package/dist/yaml.js +0 -82
  631. package/dist/yaml.tmLanguage.js +0 -629
  632. /package/dist/{extensions → editor}/autofold.d.ts +0 -0
  633. /package/dist/{extensions → editor}/cobol.d.ts +0 -0
  634. /package/dist/{extensions → editor}/index.d.ts +0 -0
  635. /package/dist/{languages/snippets/index.d.ts → features/debug.d.ts} +0 -0
  636. /package/dist/{languages/textMate/semanticTokens.d.ts → features/extensionHostWorker.d.ts} +0 -0
@@ -1,1408 +1,6 @@
1
- import { g as getAugmentedNamespace, r as require$$0 } from './_monaco-editor_commonjs-external.js';
2
- import * as shiftCommand from 'monaco-editor/esm/vs/editor/common/commands/shiftCommand';
3
- import { configurationRegistry, ConfigurationScope } from 'vscode/service-override/configuration';
4
- import { o as onConfigurationChanged, g as getConfiguration } from './index2.js';
5
- import 'monaco-editor/esm/vs/editor/editor.api';
6
- import 'vscode/services';
7
- import './_rollupPluginBabelHelpers.js';
8
-
9
- var lib = {};
10
-
11
- var keymap_vim = {};
12
-
13
- var cm_adapter = {};
14
-
15
- var require$$1 = /*@__PURE__*/getAugmentedNamespace(shiftCommand);
16
-
17
- (function (exports) {
18
-
19
- Object.defineProperty(exports, "__esModule", {
20
- value: true
21
- });
22
- exports["default"] = void 0;
23
-
24
- var _monacoEditor = require$$0;
25
-
26
- var _shiftCommand = require$$1;
27
-
28
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
29
-
30
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31
-
32
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
33
-
34
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
35
-
36
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
37
-
38
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
39
-
40
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
41
-
42
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
43
-
44
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
45
-
46
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
47
-
48
- var VerticalRevealType = {
49
- Bottom: 4
50
- }; // for monaco 0.19.x where x < 3
51
-
52
- var EditorOptConstants = {
53
- readOnly: 65,
54
- cursorWidth: 20,
55
- fontInfo: 32
56
- };
57
- var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
58
-
59
- function isWordCharBasic(ch) {
60
- return /\w/.test(ch) || ch > "\x80" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
61
- }
62
-
63
- function Pos(line, column) {
64
- if (!(this instanceof Pos)) {
65
- return new Pos(line, column);
66
- }
67
-
68
- this.line = line;
69
- this.ch = column;
70
- }
71
-
72
- function signal(cm, signal, args) {
73
- cm.dispatch(signal, args);
74
- }
75
-
76
- function dummy(key) {
77
- return function () {// console.log(key, 'dummy function called with', Array.prototype.slice.call(arguments));
78
- };
79
- }
80
-
81
- var StringStream = function StringStream(string, tabSize) {
82
- this.pos = this.start = 0;
83
- this.string = string;
84
- this.tabSize = tabSize || 8;
85
- this.lastColumnPos = this.lastColumnValue = 0;
86
- this.lineStart = 0;
87
- };
88
-
89
- StringStream.prototype = {
90
- eol: function eol() {
91
- return this.pos >= this.string.length;
92
- },
93
- sol: function sol() {
94
- return this.pos == this.lineStart;
95
- },
96
- peek: function peek() {
97
- return this.string.charAt(this.pos) || undefined;
98
- },
99
- next: function next() {
100
- if (this.pos < this.string.length) return this.string.charAt(this.pos++);
101
- },
102
- eat: function eat(match) {
103
- var ch = this.string.charAt(this.pos);
104
- if (typeof match == "string") var ok = ch == match;else var ok = ch && (match.test ? match.test(ch) : match(ch));
105
-
106
- if (ok) {
107
- ++this.pos;
108
- return ch;
109
- }
110
- },
111
- eatWhile: function eatWhile(match) {
112
- var start = this.pos;
113
-
114
- while (this.eat(match)) {}
115
-
116
- return this.pos > start;
117
- },
118
- eatSpace: function eatSpace() {
119
- var start = this.pos;
120
-
121
- while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) {
122
- ++this.pos;
123
- }
124
-
125
- return this.pos > start;
126
- },
127
- skipToEnd: function skipToEnd() {
128
- this.pos = this.string.length;
129
- },
130
- skipTo: function skipTo(ch) {
131
- var found = this.string.indexOf(ch, this.pos);
132
-
133
- if (found > -1) {
134
- this.pos = found;
135
- return true;
136
- }
137
- },
138
- backUp: function backUp(n) {
139
- this.pos -= n;
140
- },
141
- column: function column() {
142
- throw "not implemented";
143
- },
144
- indentation: function indentation() {
145
- throw "not implemented";
146
- },
147
- match: function match(pattern, consume, caseInsensitive) {
148
- if (typeof pattern == "string") {
149
- var cased = function cased(str) {
150
- return caseInsensitive ? str.toLowerCase() : str;
151
- };
152
-
153
- var substr = this.string.substr(this.pos, pattern.length);
154
-
155
- if (cased(substr) == cased(pattern)) {
156
- if (consume !== false) this.pos += pattern.length;
157
- return true;
158
- }
159
- } else {
160
- var match = this.string.slice(this.pos).match(pattern);
161
- if (match && match.index > 0) return null;
162
- if (match && consume !== false) this.pos += match[0].length;
163
- return match;
164
- }
165
- },
166
- current: function current() {
167
- return this.string.slice(this.start, this.pos);
168
- },
169
- hideFirstChars: function hideFirstChars(n, inner) {
170
- this.lineStart += n;
171
-
172
- try {
173
- return inner();
174
- } finally {
175
- this.lineStart -= n;
176
- }
177
- }
178
- };
179
-
180
- function toCmPos(pos) {
181
- return new Pos(pos.lineNumber - 1, pos.column - 1);
182
- }
183
-
184
- function toMonacoPos(pos) {
185
- return new _monacoEditor.Position(pos.line + 1, pos.ch + 1);
186
- }
187
-
188
- var Marker = /*#__PURE__*/function () {
189
- function Marker(cm, id, line, ch) {
190
- _classCallCheck(this, Marker);
191
-
192
- this.cm = cm;
193
- this.id = id;
194
- this.lineNumber = line + 1;
195
- this.column = ch + 1;
196
- cm.marks[this.id] = this;
197
- }
198
-
199
- _createClass(Marker, [{
200
- key: "clear",
201
- value: function clear() {
202
- delete this.cm.marks[this.id];
203
- }
204
- }, {
205
- key: "find",
206
- value: function find() {
207
- return toCmPos(this);
208
- }
209
- }]);
210
-
211
- return Marker;
212
- }();
213
-
214
- function monacoToCmKey(e) {
215
- var skip = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
216
- var addQuotes = true;
217
- var keyName = _monacoEditor.KeyCode[e.keyCode];
218
-
219
- if (e.key) {
220
- keyName = e.key;
221
- addQuotes = false;
222
- }
223
-
224
- var key = keyName;
225
- var skipOnlyShiftCheck = skip;
226
-
227
- switch (e.keyCode) {
228
- case _monacoEditor.KeyCode.Shift:
229
- case _monacoEditor.KeyCode.Meta:
230
- case _monacoEditor.KeyCode.Alt:
231
- case _monacoEditor.KeyCode.Ctrl:
232
- return key;
233
-
234
- case _monacoEditor.KeyCode.Escape:
235
- skipOnlyShiftCheck = true;
236
- key = "Esc";
237
- break;
238
-
239
- case _monacoEditor.KeyCode.Space:
240
- skipOnlyShiftCheck = true;
241
- break;
242
- } // `Key` check for monaco >= 0.30.0
243
-
244
-
245
- if (keyName.startsWith("Key") || keyName.startsWith("KEY_")) {
246
- key = keyName[keyName.length - 1].toLowerCase();
247
- } else if (keyName.startsWith("Digit")) {
248
- key = keyName.slice(5, 6);
249
- } else if (keyName.startsWith("Numpad")) {
250
- key = keyName.slice(6, 7);
251
- } else if (keyName.endsWith("Arrow")) {
252
- skipOnlyShiftCheck = true;
253
- key = keyName.substring(0, keyName.length - 5);
254
- } else if (keyName.startsWith("US_") || // `Bracket` check for monaco >= 0.30.0
255
- keyName.startsWith("Bracket") || !key) {
256
- key = e.browserEvent.key;
257
- }
258
-
259
- if (!skipOnlyShiftCheck && !e.altKey && !e.ctrlKey && !e.metaKey) {
260
- key = e.key || e.browserEvent.key;
261
- } else {
262
- if (e.altKey) {
263
- key = "Alt-".concat(key);
264
- }
265
-
266
- if (e.ctrlKey) {
267
- key = "Ctrl-".concat(key);
268
- }
269
-
270
- if (e.metaKey) {
271
- key = "Meta-".concat(key);
272
- }
273
-
274
- if (e.shiftKey) {
275
- key = "Shift-".concat(key);
276
- }
277
- }
278
-
279
- if (key.length === 1 && addQuotes) {
280
- key = "'".concat(key, "'");
281
- }
282
-
283
- return key;
284
- }
285
-
286
- var CMAdapter = /*#__PURE__*/function () {
287
- function CMAdapter(editor) {
288
- _classCallCheck(this, CMAdapter);
289
-
290
- _initialiseProps.call(this);
291
-
292
- this.editor = editor;
293
- this.state = {
294
- keyMap: "vim"
295
- };
296
- this.marks = {};
297
- this.$uid = 0;
298
- this.disposables = [];
299
- this.listeners = {};
300
- this.curOp = {};
301
- this.attached = false;
302
- this.statusBar = null;
303
- this.options = {};
304
- this.addLocalListeners();
305
- this.ctxInsert = this.editor.createContextKey("insertMode", true);
306
- }
307
-
308
- _createClass(CMAdapter, [{
309
- key: "attach",
310
- value: function attach() {
311
- CMAdapter.keyMap.vim.attach(this);
312
- }
313
- }, {
314
- key: "addLocalListeners",
315
- value: function addLocalListeners() {
316
- this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange), this.editor.onDidChangeModelContent(this.handleChange), this.editor.onKeyDown(this.handleKeyDown));
317
- }
318
- }, {
319
- key: "handleReplaceMode",
320
- value: function handleReplaceMode(key, e) {
321
- var fromReplace = false;
322
- var _char = key;
323
- var pos = this.editor.getPosition();
324
- var range = new _monacoEditor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column + 1);
325
- var forceMoveMarkers = true;
326
-
327
- if (key.startsWith("'")) {
328
- _char = key[1];
329
- } else if (_char === "Enter") {
330
- _char = "\n";
331
- } else if (_char === "Backspace") {
332
- var lastItem = this.replaceStack.pop();
333
-
334
- if (!lastItem) {
335
- return;
336
- }
337
-
338
- fromReplace = true;
339
- _char = lastItem;
340
- range = new _monacoEditor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column - 1);
341
- } else {
342
- return;
343
- }
344
-
345
- e.preventDefault();
346
- e.stopPropagation();
347
-
348
- if (!this.replaceStack) {
349
- this.replaceStack = [];
350
- }
351
-
352
- if (!fromReplace) {
353
- this.replaceStack.push(this.editor.getModel().getValueInRange(range));
354
- }
355
-
356
- this.editor.executeEdits("vim", [{
357
- text: _char,
358
- range: range,
359
- forceMoveMarkers: forceMoveMarkers
360
- }]);
361
-
362
- if (fromReplace) {
363
- this.editor.setPosition(range.getStartPosition());
364
- }
365
- }
366
- }, {
367
- key: "setOption",
368
- value: function setOption(key, value) {
369
- this.state[key] = value;
370
-
371
- if (key === "theme") {
372
- _monacoEditor.editor.setTheme(value);
373
- }
374
- }
375
- }, {
376
- key: "getConfiguration",
377
- value: function getConfiguration() {
378
- var editor = this.editor;
379
- var opts = EditorOptConstants;
380
-
381
- if (typeof editor.getConfiguration === "function") {
382
- return editor.getConfiguration();
383
- } else if ("EditorOption" in _monacoEditor.editor) {
384
- // for monaco 0.19.3 onwards
385
- opts = _monacoEditor.editor.EditorOption;
386
- }
387
-
388
- return {
389
- readOnly: editor.getOption(opts.readOnly),
390
- viewInfo: {
391
- cursorWidth: editor.getOption(opts.cursorWidth)
392
- },
393
- fontInfo: editor.getOption(opts.fontInfo)
394
- };
395
- }
396
- }, {
397
- key: "getOption",
398
- value: function getOption(key) {
399
- if (key === "readOnly") {
400
- return this.getConfiguration().readOnly;
401
- } else if (key === "firstLineNumber") {
402
- return this.firstLine() + 1;
403
- } else if (key === "indentWithTabs") {
404
- return !this.editor.getModel().getOptions().insertSpaces;
405
- } else {
406
- if (typeof this.editor.getConfiguration === "function") {
407
- return this.editor.getRawConfiguration()[key];
408
- }
409
-
410
- return this.editor.getRawOptions()[key];
411
- }
412
- }
413
- }, {
414
- key: "dispatch",
415
- value: function dispatch(signal) {
416
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
417
- args[_key - 1] = arguments[_key];
418
- }
419
-
420
- var listeners = this.listeners[signal];
421
-
422
- if (!listeners) {
423
- return;
424
- }
425
-
426
- listeners.forEach(function (handler) {
427
- return handler.apply(void 0, args);
428
- });
429
- }
430
- }, {
431
- key: "on",
432
- value: function on(event, handler) {
433
- if (!this.listeners[event]) {
434
- this.listeners[event] = [];
435
- }
436
-
437
- this.listeners[event].push(handler);
438
- }
439
- }, {
440
- key: "off",
441
- value: function off(event, handler) {
442
- var listeners = this.listeners[event];
443
-
444
- if (!listeners) {
445
- return;
446
- }
447
-
448
- this.listeners[event] = listeners.filter(function (l) {
449
- return l !== handler;
450
- });
451
- }
452
- }, {
453
- key: "firstLine",
454
- value: function firstLine() {
455
- return 0;
456
- }
457
- }, {
458
- key: "lastLine",
459
- value: function lastLine() {
460
- return this.lineCount() - 1;
461
- }
462
- }, {
463
- key: "lineCount",
464
- value: function lineCount() {
465
- return this.editor.getModel().getLineCount();
466
- }
467
- }, {
468
- key: "defaultTextHeight",
469
- value: function defaultTextHeight() {
470
- return 1;
471
- }
472
- }, {
473
- key: "getLine",
474
- value: function getLine(line) {
475
- if (line < 0) {
476
- return "";
477
- }
478
-
479
- var model = this.editor.getModel();
480
- var maxLines = model.getLineCount();
481
-
482
- if (line + 1 > maxLines) {
483
- line = maxLines - 1;
484
- }
485
-
486
- return this.editor.getModel().getLineContent(line + 1);
487
- }
488
- }, {
489
- key: "getAnchorForSelection",
490
- value: function getAnchorForSelection(selection) {
491
- if (selection.isEmpty()) {
492
- return selection.getPosition();
493
- }
494
-
495
- var selDir = selection.getDirection();
496
- return selDir === _monacoEditor.SelectionDirection.LTR ? selection.getStartPosition() : selection.getEndPosition();
497
- }
498
- }, {
499
- key: "getHeadForSelection",
500
- value: function getHeadForSelection(selection) {
501
- if (selection.isEmpty()) {
502
- return selection.getPosition();
503
- }
504
-
505
- var selDir = selection.getDirection();
506
- return selDir === _monacoEditor.SelectionDirection.LTR ? selection.getEndPosition() : selection.getStartPosition();
507
- }
508
- }, {
509
- key: "getCursor",
510
- value: function getCursor() {
511
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
512
-
513
- if (!type) {
514
- return toCmPos(this.editor.getPosition());
515
- }
516
-
517
- var sel = this.editor.getSelection();
518
- var pos;
519
-
520
- if (sel.isEmpty()) {
521
- pos = sel.getPosition();
522
- } else if (type === "anchor") {
523
- pos = this.getAnchorForSelection(sel);
524
- } else {
525
- pos = this.getHeadForSelection(sel);
526
- }
527
-
528
- return toCmPos(pos);
529
- }
530
- }, {
531
- key: "getRange",
532
- value: function getRange(start, end) {
533
- var p1 = toMonacoPos(start);
534
- var p2 = toMonacoPos(end);
535
- return this.editor.getModel().getValueInRange(_monacoEditor.Range.fromPositions(p1, p2));
536
- }
537
- }, {
538
- key: "getSelection",
539
- value: function getSelection() {
540
- var list = [];
541
- var editor = this.editor;
542
- editor.getSelections().map(function (sel) {
543
- list.push(editor.getModel().getValueInRange(sel));
544
- });
545
- return list.join("\n");
546
- }
547
- }, {
548
- key: "replaceRange",
549
- value: function replaceRange(text, start, end) {
550
- var p1 = toMonacoPos(start);
551
- var p2 = !end ? p1 : toMonacoPos(end);
552
- this.editor.executeEdits("vim", [{
553
- text: text,
554
- range: _monacoEditor.Range.fromPositions(p1, p2)
555
- }]); // @TODO - Check if this breaks any other expectation
556
-
557
- this.pushUndoStop();
558
- }
559
- }, {
560
- key: "pushUndoStop",
561
- value: function pushUndoStop() {
562
- this.editor.pushUndoStop();
563
- }
564
- }, {
565
- key: "setCursor",
566
- value: function setCursor(line, ch) {
567
- var pos = line;
568
-
569
- if (_typeof(line) !== "object") {
570
- pos = {};
571
- pos.line = line;
572
- pos.ch = ch;
573
- }
574
-
575
- var monacoPos = this.editor.getModel().validatePosition(toMonacoPos(pos));
576
- this.editor.setPosition(toMonacoPos(pos));
577
- this.editor.revealPosition(monacoPos);
578
- }
579
- }, {
580
- key: "somethingSelected",
581
- value: function somethingSelected() {
582
- return !this.editor.getSelection().isEmpty();
583
- }
584
- }, {
585
- key: "operation",
586
- value: function operation(fn, force) {
587
- return fn();
588
- }
589
- }, {
590
- key: "listSelections",
591
- value: function listSelections() {
592
- var _this = this;
593
-
594
- var selections = this.editor.getSelections();
595
-
596
- if (!selections.length || this.inVirtualSelectionMode) {
597
- return [{
598
- anchor: this.getCursor("anchor"),
599
- head: this.getCursor("head")
600
- }];
601
- }
602
-
603
- return selections.map(function (sel) {
604
- sel.getPosition();
605
- sel.getStartPosition();
606
- sel.getEndPosition();
607
- return {
608
- anchor: _this.clipPos(toCmPos(_this.getAnchorForSelection(sel))),
609
- head: _this.clipPos(toCmPos(_this.getHeadForSelection(sel)))
610
- };
611
- });
612
- }
613
- }, {
614
- key: "focus",
615
- value: function focus() {
616
- this.editor.focus();
617
- }
618
- }, {
619
- key: "setSelections",
620
- value: function setSelections(selections, primIndex) {
621
- var hasSel = !!this.editor.getSelections().length;
622
- var sels = selections.map(function (sel, index) {
623
- var anchor = sel.anchor,
624
- head = sel.head;
625
-
626
- if (hasSel) {
627
- return _monacoEditor.Selection.fromPositions(toMonacoPos(anchor), toMonacoPos(head));
628
- } else {
629
- return _monacoEditor.Selection.fromPositions(toMonacoPos(head), toMonacoPos(anchor));
630
- }
631
- });
632
-
633
- if (!primIndex) ; else if (sels[primIndex]) {
634
- sels.push(sels.splice(primIndex, 1)[0]);
635
- }
636
-
637
- if (!sels.length) {
638
- return;
639
- }
640
-
641
- var sel = sels[0];
642
- var posToReveal;
643
-
644
- if (sel.getDirection() === _monacoEditor.SelectionDirection.LTR) {
645
- posToReveal = sel.getEndPosition();
646
- } else {
647
- posToReveal = sel.getStartPosition();
648
- }
649
-
650
- this.editor.setSelections(sels);
651
- this.editor.revealPosition(posToReveal);
652
- }
653
- }, {
654
- key: "setSelection",
655
- value: function setSelection(frm, to) {
656
- var range = _monacoEditor.Range.fromPositions(toMonacoPos(frm), toMonacoPos(to));
657
-
658
- this.editor.setSelection(range);
659
- }
660
- }, {
661
- key: "getSelections",
662
- value: function getSelections() {
663
- var editor = this.editor;
664
- return editor.getSelections().map(function (sel) {
665
- return editor.getModel().getValueInRange(sel);
666
- });
667
- }
668
- }, {
669
- key: "replaceSelections",
670
- value: function replaceSelections(texts) {
671
- var editor = this.editor;
672
- editor.getSelections().forEach(function (sel, index) {
673
- editor.executeEdits("vim", [{
674
- range: sel,
675
- text: texts[index],
676
- forceMoveMarkers: false
677
- }]);
678
- });
679
- }
680
- }, {
681
- key: "toggleOverwrite",
682
- value: function toggleOverwrite(toggle) {
683
- if (toggle) {
684
- this.enterVimMode();
685
- this.replaceMode = true;
686
- } else {
687
- this.leaveVimMode();
688
- this.replaceMode = false;
689
- this.replaceStack = [];
690
- }
691
- }
692
- }, {
693
- key: "charCoords",
694
- value: function charCoords(pos, mode) {
695
- return {
696
- top: pos.line,
697
- left: pos.ch
698
- };
699
- }
700
- }, {
701
- key: "coordsChar",
702
- value: function coordsChar(pos, mode) {
703
- }
704
- }, {
705
- key: "clipPos",
706
- value: function clipPos(p) {
707
- var pos = this.editor.getModel().validatePosition(toMonacoPos(p));
708
- return toCmPos(pos);
709
- }
710
- }, {
711
- key: "setBookmark",
712
- value: function setBookmark(cursor, options) {
713
- var bm = new Marker(this, this.$uid++, cursor.line, cursor.ch);
714
-
715
- if (!options || !options.insertLeft) {
716
- bm.$insertRight = true;
717
- }
718
-
719
- this.marks[bm.id] = bm;
720
- return bm;
721
- }
722
- }, {
723
- key: "getScrollInfo",
724
- value: function getScrollInfo() {
725
- var editor = this.editor;
726
-
727
- var _editor$getVisibleRan = editor.getVisibleRanges(),
728
- _editor$getVisibleRan2 = _slicedToArray(_editor$getVisibleRan, 1),
729
- range = _editor$getVisibleRan2[0];
730
-
731
- return {
732
- left: 0,
733
- top: range.startLineNumber - 1,
734
- height: editor.getModel().getLineCount(),
735
- clientHeight: range.endLineNumber - range.startLineNumber + 1
736
- };
737
- }
738
- }, {
739
- key: "triggerEditorAction",
740
- value: function triggerEditorAction(action) {
741
- this.editor.trigger("vim", action);
742
- }
743
- }, {
744
- key: "dispose",
745
- value: function dispose() {
746
- this.dispatch("dispose");
747
- this.removeOverlay();
748
-
749
- if (CMAdapter.keyMap.vim) {
750
- CMAdapter.keyMap.vim.detach(this);
751
- }
752
-
753
- this.disposables.forEach(function (d) {
754
- return d.dispose();
755
- });
756
- }
757
- }, {
758
- key: "getInputField",
759
- value: function getInputField() {}
760
- }, {
761
- key: "getWrapperElement",
762
- value: function getWrapperElement() {}
763
- }, {
764
- key: "enterVimMode",
765
- value: function enterVimMode() {
766
- this.ctxInsert.set(false);
767
- var config = this.getConfiguration();
768
- this.initialCursorWidth = config.viewInfo.cursorWidth || 0;
769
- this.editor.updateOptions({
770
- cursorWidth: config.fontInfo.typicalFullwidthCharacterWidth,
771
- cursorBlinking: "solid"
772
- });
773
- }
774
- }, {
775
- key: "leaveVimMode",
776
- value: function leaveVimMode() {
777
- this.ctxInsert.set(true);
778
- this.editor.updateOptions({
779
- cursorWidth: this.initialCursorWidth || 0,
780
- cursorBlinking: "blink"
781
- });
782
- }
783
- }, {
784
- key: "virtualSelectionMode",
785
- value: function virtualSelectionMode() {
786
- return this.inVirtualSelectionMode;
787
- }
788
- }, {
789
- key: "markText",
790
- value: function markText() {
791
- // only used for fat-cursor, not needed
792
- return {
793
- clear: function clear() {},
794
- find: function find() {}
795
- };
796
- }
797
- }, {
798
- key: "getUserVisibleLines",
799
- value: function getUserVisibleLines() {
800
- var ranges = this.editor.getVisibleRanges();
801
-
802
- if (!ranges.length) {
803
- return {
804
- top: 0,
805
- bottom: 0
806
- };
807
- }
808
-
809
- var res = {
810
- top: Infinity,
811
- bottom: 0
812
- };
813
- ranges.reduce(function (acc, range) {
814
- if (range.startLineNumber < acc.top) {
815
- acc.top = range.startLineNumber;
816
- }
817
-
818
- if (range.endLineNumber > acc.bottom) {
819
- acc.bottom = range.endLineNumber;
820
- }
821
-
822
- return acc;
823
- }, res);
824
- res.top -= 1;
825
- res.bottom -= 1;
826
- return res;
827
- }
828
- }, {
829
- key: "findPosV",
830
- value: function findPosV(startPos, amount, unit) {
831
- var editor = this.editor;
832
- var finalAmount = amount;
833
- var finalUnit = unit;
834
- var pos = toMonacoPos(startPos);
835
-
836
- if (unit === "page") {
837
- var editorHeight = editor.getLayoutInfo().height;
838
- var lineHeight = this.getConfiguration().fontInfo.lineHeight;
839
- finalAmount = finalAmount * Math.floor(editorHeight / lineHeight);
840
- finalUnit = "line";
841
- }
842
-
843
- if (finalUnit === "line") {
844
- pos.lineNumber += finalAmount;
845
- }
846
-
847
- return toCmPos(pos);
848
- }
849
- }, {
850
- key: "findMatchingBracket",
851
- value: function findMatchingBracket(pos) {
852
- var mPos = toMonacoPos(pos);
853
- var model = this.editor.getModel();
854
- var res; // for monaco versions >= 0.28.0
855
-
856
- if (model.bracketPairs) {
857
- res = model.bracketPairs.matchBracket(mPos);
858
- } else {
859
- var _model$matchBracket;
860
-
861
- res = (_model$matchBracket = model.matchBracket) === null || _model$matchBracket === void 0 ? void 0 : _model$matchBracket.call(model, mPos);
862
- }
863
-
864
- if (!res || !(res.length === 2)) {
865
- return {
866
- to: null
867
- };
868
- }
869
-
870
- return {
871
- to: toCmPos(res[1].getStartPosition())
872
- };
873
- }
874
- }, {
875
- key: "findFirstNonWhiteSpaceCharacter",
876
- value: function findFirstNonWhiteSpaceCharacter(line) {
877
- return this.editor.getModel().getLineFirstNonWhitespaceColumn(line + 1) - 1;
878
- }
879
- }, {
880
- key: "scrollTo",
881
- value: function scrollTo(x, y) {
882
- if (!x && !y) {
883
- return;
884
- }
885
-
886
- if (!x) {
887
- if (y < 0) {
888
- y = this.editor.getPosition().lineNumber - y;
889
- }
890
-
891
- this.editor.setScrollTop(this.editor.getTopForLineNumber(y + 1));
892
- }
893
- }
894
- }, {
895
- key: "moveCurrentLineTo",
896
- value: function moveCurrentLineTo(viewPosition) {
897
- var _editor$_revealRange;
898
-
899
- var editor = this.editor;
900
- var pos = editor.getPosition();
901
-
902
- var range = _monacoEditor.Range.fromPositions(pos, pos);
903
-
904
- switch (viewPosition) {
905
- case "top":
906
- editor.revealRangeAtTop(range);
907
- return;
908
-
909
- case "center":
910
- editor.revealRangeInCenter(range);
911
- return;
912
-
913
- case "bottom":
914
- // private api. no other way
915
- (_editor$_revealRange = editor._revealRange) === null || _editor$_revealRange === void 0 ? void 0 : _editor$_revealRange.call(editor, range, VerticalRevealType.Bottom);
916
- return;
917
- }
918
- }
919
- }, {
920
- key: "getSearchCursor",
921
- value: function getSearchCursor(query, pos) {
922
- var matchCase = false;
923
- var isRegex = false;
924
-
925
- if (query instanceof RegExp && !query.global) {
926
- matchCase = !query.ignoreCase;
927
- query = query.source;
928
- isRegex = true;
929
- }
930
-
931
- if (pos.ch == undefined) pos.ch = Number.MAX_VALUE;
932
- var monacoPos = toMonacoPos(pos);
933
- var context = this;
934
- var editor = this.editor;
935
- var lastSearch = null;
936
- var model = editor.getModel();
937
- var matches = model.findMatches(query, false, isRegex, matchCase) || [];
938
- return {
939
- getMatches: function getMatches() {
940
- return matches;
941
- },
942
- findNext: function findNext() {
943
- return this.find(false);
944
- },
945
- findPrevious: function findPrevious() {
946
- return this.find(true);
947
- },
948
- jumpTo: function jumpTo(index) {
949
- if (!matches || !matches.length) {
950
- return false;
951
- }
952
-
953
- var match = matches[index];
954
- lastSearch = match.range;
955
- context.highlightRanges([lastSearch], "currentFindMatch");
956
- context.highlightRanges(matches.map(function (m) {
957
- return m.range;
958
- }).filter(function (r) {
959
- return !r.equalsRange(lastSearch);
960
- }));
961
- return lastSearch;
962
- },
963
- find: function find(back) {
964
- if (!matches || !matches.length) {
965
- return false;
966
- }
967
-
968
- var match;
969
-
970
- if (back) {
971
- var _pos = lastSearch ? lastSearch.getStartPosition() : monacoPos;
972
-
973
- match = model.findPreviousMatch(query, _pos, isRegex, matchCase);
974
-
975
- if (!match || !match.range.getStartPosition().isBeforeOrEqual(_pos)) {
976
- return false;
977
- }
978
- } else {
979
- var _pos2 = lastSearch ? model.getPositionAt(model.getOffsetAt(lastSearch.getStartPosition()) + 1) : monacoPos;
980
-
981
- match = model.findNextMatch(query, _pos2, isRegex, matchCase);
982
-
983
- if (!match || !_pos2.isBeforeOrEqual(match.range.getStartPosition())) {
984
- return false;
985
- }
986
- }
987
-
988
- lastSearch = match.range;
989
- context.highlightRanges([lastSearch], "currentFindMatch");
990
- context.highlightRanges(matches.map(function (m) {
991
- return m.range;
992
- }).filter(function (r) {
993
- return !r.equalsRange(lastSearch);
994
- }));
995
- return lastSearch;
996
- },
997
- from: function from() {
998
- return lastSearch && toCmPos(lastSearch.getStartPosition());
999
- },
1000
- to: function to() {
1001
- return lastSearch && toCmPos(lastSearch.getEndPosition());
1002
- },
1003
- replace: function replace(text) {
1004
- if (lastSearch) {
1005
- editor.executeEdits("vim", [{
1006
- range: lastSearch,
1007
- text: text,
1008
- forceMoveMarkers: true
1009
- }]);
1010
- lastSearch.setEndPosition(editor.getPosition());
1011
- editor.setPosition(lastSearch.getStartPosition());
1012
- }
1013
- }
1014
- };
1015
- }
1016
- }, {
1017
- key: "highlightRanges",
1018
- value: function highlightRanges(ranges) {
1019
- var className = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "findMatch";
1020
- var decorationKey = "decoration".concat(className);
1021
- this[decorationKey] = this.editor.deltaDecorations(this[decorationKey] || [], ranges.map(function (range) {
1022
- return {
1023
- range: range,
1024
- options: {
1025
- stickiness: _monacoEditor.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
1026
- zIndex: 13,
1027
- className: className,
1028
- showIfCollapsed: true
1029
- }
1030
- };
1031
- }));
1032
- return this[decorationKey];
1033
- }
1034
- }, {
1035
- key: "addOverlay",
1036
- value: function addOverlay(_ref, hasBoundary, style) {
1037
- var query = _ref.query;
1038
- var matchCase = false;
1039
- var isRegex = false;
1040
-
1041
- if (query && query instanceof RegExp && !query.global) {
1042
- isRegex = true;
1043
- matchCase = !query.ignoreCase;
1044
- query = query.source;
1045
- }
1046
-
1047
- var match = this.editor.getModel().findNextMatch(query, this.editor.getPosition(), isRegex, matchCase);
1048
-
1049
- if (!match || !match.range) {
1050
- return;
1051
- }
1052
-
1053
- this.highlightRanges([match.range]);
1054
- }
1055
- }, {
1056
- key: "removeOverlay",
1057
- value: function removeOverlay() {
1058
- var _this2 = this;
1059
-
1060
- ["currentFindMatch", "findMatch"].forEach(function (key) {
1061
- _this2.editor.deltaDecorations(_this2["decoration".concat(key)] || [], []);
1062
- });
1063
- }
1064
- }, {
1065
- key: "scrollIntoView",
1066
- value: function scrollIntoView(pos) {
1067
- if (!pos) {
1068
- return;
1069
- }
1070
-
1071
- this.editor.revealPosition(toMonacoPos(pos));
1072
- }
1073
- }, {
1074
- key: "moveH",
1075
- value: function moveH(units, type) {
1076
- if (type !== "char") {
1077
- return;
1078
- }
1079
-
1080
- var pos = this.editor.getPosition();
1081
- this.editor.setPosition(new _monacoEditor.Position(pos.lineNumber, pos.column + units));
1082
- }
1083
- }, {
1084
- key: "scanForBracket",
1085
- value: function scanForBracket(pos, dir, dd, config) {
1086
- var bracketRegex = config.bracketRegex;
1087
- var mPos = toMonacoPos(pos);
1088
- var model = this.editor.getModel();
1089
- var searchFunc = (dir === -1 ? model.findPreviousMatch : model.findNextMatch).bind(model);
1090
- var stack = [];
1091
- var iterations = 0;
1092
-
1093
- while (true) {
1094
- if (iterations > 10) {
1095
- // Searched too far, give up.
1096
- return undefined;
1097
- }
1098
-
1099
- var match = searchFunc(bracketRegex.source, mPos, true, true, null, true);
1100
- var thisBracket = match.matches[0];
1101
-
1102
- if (match === undefined) {
1103
- return undefined;
1104
- }
1105
-
1106
- var matchingBracket = CMAdapter.matchingBrackets[thisBracket];
1107
-
1108
- if (matchingBracket && matchingBracket.charAt(1) === ">" == dir > 0) {
1109
- stack.push(thisBracket);
1110
- } else if (stack.length === 0) {
1111
- var res = match.range.getStartPosition();
1112
- return {
1113
- pos: toCmPos(res)
1114
- };
1115
- } else {
1116
- stack.pop();
1117
- }
1118
-
1119
- mPos = model.getPositionAt(model.getOffsetAt(match.range.getStartPosition()) + dir);
1120
- iterations += 1;
1121
- }
1122
- }
1123
- }, {
1124
- key: "indexFromPos",
1125
- value: function indexFromPos(pos) {
1126
- return this.editor.getModel().getOffsetAt(toMonacoPos(pos));
1127
- }
1128
- }, {
1129
- key: "posFromIndex",
1130
- value: function posFromIndex(offset) {
1131
- return toCmPos(this.editor.getModel().getPositionAt(offset));
1132
- }
1133
- }, {
1134
- key: "indentLine",
1135
- value: function indentLine(line) {
1136
- var indentRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1137
- var editor = this.editor;
1138
- var cursorConfig; // Monaco >= 0.21.x
1139
-
1140
- if (editor._getViewModel) {
1141
- cursorConfig = editor._getViewModel().cursorConfig;
1142
- } else {
1143
- cursorConfig = editor._getCursors().context.config;
1144
- }
1145
-
1146
- var pos = new _monacoEditor.Position(line + 1, 1);
1147
-
1148
- var sel = _monacoEditor.Selection.fromPositions(pos, pos); // no other way than to use internal apis to preserve the undoStack for a batch of indents
1149
-
1150
-
1151
- editor.executeCommand("vim", new _shiftCommand.ShiftCommand(sel, {
1152
- isUnshift: !indentRight,
1153
- tabSize: cursorConfig.tabSize,
1154
- indentSize: cursorConfig.indentSize,
1155
- insertSpaces: cursorConfig.insertSpaces,
1156
- useTabStops: cursorConfig.useTabStops,
1157
- autoIndent: cursorConfig.autoIndent
1158
- }));
1159
- }
1160
- }, {
1161
- key: "setStatusBar",
1162
- value: function setStatusBar(statusBar) {
1163
- this.statusBar = statusBar;
1164
- }
1165
- }, {
1166
- key: "openDialog",
1167
- value: function openDialog(html, callback, options) {
1168
- if (!this.statusBar) {
1169
- return;
1170
- }
1171
-
1172
- return this.statusBar.setSec(html, callback, options);
1173
- }
1174
- }, {
1175
- key: "openNotification",
1176
- value: function openNotification(html) {
1177
- if (!this.statusBar) {
1178
- return;
1179
- }
1180
-
1181
- this.statusBar.showNotification(html);
1182
- }
1183
- }, {
1184
- key: "smartIndent",
1185
- value: function smartIndent() {
1186
- // Only works if a formatter is added for the current language.
1187
- // reindentselectedlines does not work here.
1188
- this.editor.getAction("editor.action.formatSelection").run();
1189
- }
1190
- }, {
1191
- key: "moveCursorTo",
1192
- value: function moveCursorTo(to) {
1193
- var newPos = this.editor.getPosition();
1194
-
1195
- if (to === "start") {
1196
- newPos.column = 1;
1197
- } else if (to === "end") {
1198
- newPos.column = this.editor.getModel().getLineMaxColumn(newPos.lineNumber);
1199
- }
1200
-
1201
- this.editor.setPosition(newPos);
1202
- }
1203
- }, {
1204
- key: "execCommand",
1205
- value: function execCommand(command) {
1206
- switch (command) {
1207
- case "goLineLeft":
1208
- this.moveCursorTo("start");
1209
- break;
1210
-
1211
- case "goLineRight":
1212
- this.moveCursorTo("end");
1213
- break;
1214
-
1215
- case "indentAuto":
1216
- this.smartIndent();
1217
- break;
1218
- }
1219
- }
1220
- }]);
1221
-
1222
- return CMAdapter;
1223
- }();
1224
-
1225
- CMAdapter.Pos = Pos;
1226
- CMAdapter.signal = signal;
1227
- CMAdapter.on = dummy();
1228
- CMAdapter.off = dummy();
1229
- CMAdapter.addClass = dummy();
1230
- CMAdapter.rmClass = dummy();
1231
- CMAdapter.defineOption = dummy();
1232
- CMAdapter.keyMap = {
1233
- "default": function _default(key) {
1234
- return function (cm) {
1235
- return true;
1236
- };
1237
- }
1238
- };
1239
- CMAdapter.matchingBrackets = {
1240
- "(": ")>",
1241
- ")": "(<",
1242
- "[": "]>",
1243
- "]": "[<",
1244
- "{": "}>",
1245
- "}": "{<",
1246
- "<": ">>",
1247
- ">": "<<"
1248
- };
1249
- CMAdapter.isWordChar = isWordCharBasic;
1250
- CMAdapter.keyName = monacoToCmKey;
1251
- CMAdapter.StringStream = StringStream;
1252
-
1253
- CMAdapter.e_stop = function (e) {
1254
- if (e.stopPropagation) {
1255
- e.stopPropagation();
1256
- } else {
1257
- e.cancelBubble = true;
1258
- }
1259
-
1260
- CMAdapter.e_preventDefault(e);
1261
- return false;
1262
- };
1263
-
1264
- CMAdapter.e_preventDefault = function (e) {
1265
- if (e.preventDefault) {
1266
- e.preventDefault();
1267
-
1268
- if (e.browserEvent) {
1269
- e.browserEvent.preventDefault();
1270
- }
1271
- } else {
1272
- e.returnValue = false;
1273
- }
1274
-
1275
- return false;
1276
- };
1277
-
1278
- CMAdapter.commands = {
1279
- redo: function redo(cm) {
1280
- cm.editor.getModel().redo();
1281
- },
1282
- undo: function undo(cm) {
1283
- cm.editor.getModel().undo();
1284
- },
1285
- newlineAndIndent: function newlineAndIndent(cm) {
1286
- cm.triggerEditorAction("editor.action.insertLineAfter");
1287
- }
1288
- };
1289
-
1290
- CMAdapter.lookupKey = function lookupKey(key, map, handle) {
1291
- if (typeof map === "string") {
1292
- map = CMAdapter.keyMap[map];
1293
- }
1294
-
1295
- var found = typeof map == "function" ? map(key) : map[key];
1296
- if (found === false) return "nothing";
1297
- if (found === "...") return "multi";
1298
- if (found != null && handle(found)) return "handled";
1299
-
1300
- if (map.fallthrough) {
1301
- if (!Array.isArray(map.fallthrough)) return lookupKey(key, map.fallthrough, handle);
1302
-
1303
- for (var i = 0; i < map.fallthrough.length; i++) {
1304
- var result = lookupKey(key, map.fallthrough[i], handle);
1305
- if (result) return result;
1306
- }
1307
- }
1308
- };
1309
-
1310
- CMAdapter.defineExtension = function (name, fn) {
1311
- CMAdapter.prototype[name] = fn;
1312
- };
1313
-
1314
- var _initialiseProps = function _initialiseProps() {
1315
- var _this3 = this;
1316
-
1317
- this.handleKeyDown = function (e) {
1318
- // Allow previously registered keydown listeners to handle the event and
1319
- // prevent this extension from also handling it.
1320
- if (e.browserEvent.defaultPrevented & e.keyCode !== _monacoEditor.KeyCode.Escape) {
1321
- return;
1322
- }
1323
-
1324
- if (!_this3.attached) {
1325
- return;
1326
- }
1327
-
1328
- var key = monacoToCmKey(e);
1329
-
1330
- if (_this3.replaceMode) {
1331
- _this3.handleReplaceMode(key, e);
1332
- }
1333
-
1334
- if (!key) {
1335
- return;
1336
- }
1337
-
1338
- var keymap = _this3.state.keyMap;
1339
-
1340
- if (CMAdapter.keyMap[keymap] && CMAdapter.keyMap[keymap].call) {
1341
- var cmd = CMAdapter.keyMap[keymap].call(key, _this3);
1342
-
1343
- if (cmd) {
1344
- e.preventDefault();
1345
- e.stopPropagation();
1346
-
1347
- try {
1348
- cmd();
1349
- } catch (err) {
1350
- console.error(err);
1351
- }
1352
- }
1353
- }
1354
- };
1355
-
1356
- this.handleCursorChange = function (e) {
1357
- var position = e.position;
1358
- e.source;
1359
- var editor = _this3.editor;
1360
- var selection = editor.getSelection();
1361
-
1362
- if (!_this3.ctxInsert.get() && e.source === "mouse" && selection.isEmpty()) {
1363
- var maxCol = editor.getModel().getLineMaxColumn(position.lineNumber);
1364
-
1365
- if (e.position.column === maxCol) {
1366
- editor.setPosition(new _monacoEditor.Position(e.position.lineNumber, maxCol - 1));
1367
- return;
1368
- }
1369
- }
1370
-
1371
- _this3.dispatch("cursorActivity", _this3, e);
1372
- };
1373
-
1374
- this.handleChange = function (e) {
1375
- var changes = e.changes;
1376
- var change = {
1377
- text: changes.reduce(function (acc, change) {
1378
- acc.push(change.text);
1379
- return acc;
1380
- }, []),
1381
- origin: "+input"
1382
- };
1383
- var curOp = _this3.curOp = _this3.curOp || {};
1384
-
1385
- if (!curOp.changeHandlers) {
1386
- curOp.changeHandlers = _this3.listeners["change"] && _this3.listeners["change"].slice();
1387
- }
1388
-
1389
- if (_this3.virtualSelectionMode()) {
1390
- return;
1391
- }
1392
-
1393
- if (!curOp.lastChange) {
1394
- curOp.lastChange = curOp.change = change;
1395
- } else {
1396
- curOp.lastChange.next = curOp.lastChange = change;
1397
- }
1398
-
1399
- _this3.dispatch("change", _this3, change);
1400
- };
1401
- };
1402
-
1403
- var _default2 = CMAdapter;
1404
- exports["default"] = _default2;
1405
- } (cm_adapter));
1
+ import { __exports as keymap_vim } from '../../../../_virtual/keymap_vim.js';
2
+ import '../cm_adapter.js';
3
+ import { __exports as cm_adapter } from '../../../../_virtual/cm_adapter.js';
1406
4
 
1407
5
  (function (exports) {
1408
6
 
@@ -9312,389 +7910,5 @@ var require$$1 = /*@__PURE__*/getAugmentedNamespace(shiftCommand);
9312
7910
  exports.Vim = Vim;
9313
7911
  _cm_adapter["default"].Vim = Vim();
9314
7912
  var _default = _cm_adapter["default"];
9315
- exports["default"] = _default;
7913
+ exports["default"] = _default;
9316
7914
  } (keymap_vim));
9317
-
9318
- var statusbar = {};
9319
-
9320
- (function (exports) {
9321
-
9322
- Object.defineProperty(exports, "__esModule", {
9323
- value: true
9324
- });
9325
- exports["default"] = void 0;
9326
-
9327
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9328
-
9329
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
9330
-
9331
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
9332
-
9333
- var VimStatusBar = /*#__PURE__*/function () {
9334
- function VimStatusBar(node, editor) {
9335
- var _this = this;
9336
-
9337
- var sanitizer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
9338
-
9339
- _classCallCheck(this, VimStatusBar);
9340
-
9341
- this.closeInput = function () {
9342
- _this.removeInputListeners();
9343
-
9344
- _this.input = null;
9345
-
9346
- _this.setSec("");
9347
-
9348
- if (_this.editor) {
9349
- _this.editor.focus();
9350
- }
9351
- };
9352
-
9353
- this.clear = function () {
9354
- _this.setInnerHtml_(_this.node, "");
9355
- };
9356
-
9357
- this.inputKeyUp = function (e) {
9358
- var options = _this.input.options;
9359
-
9360
- if (options && options.onKeyUp) {
9361
- options.onKeyUp(e, e.target.value, _this.closeInput);
9362
- }
9363
- };
9364
-
9365
- this.inputKeyInput = function (e) {
9366
- var options = _this.input.options;
9367
-
9368
- if (options && options.onKeyInput) {
9369
- options.onKeyUp(e, e.target.value, _this.closeInput);
9370
- }
9371
- };
9372
-
9373
- this.inputBlur = function () {
9374
- var options = _this.input.options;
9375
-
9376
- if (options.closeOnBlur) {
9377
- _this.closeInput();
9378
- }
9379
- };
9380
-
9381
- this.inputKeyDown = function (e) {
9382
- var _this$input = _this.input,
9383
- options = _this$input.options,
9384
- callback = _this$input.callback;
9385
-
9386
- if (options && options.onKeyDown && options.onKeyDown(e, e.target.value, _this.closeInput)) {
9387
- return;
9388
- }
9389
-
9390
- if (e.keyCode === 27 || options && options.closeOnEnter !== false && e.keyCode == 13) {
9391
- _this.input.node.blur();
9392
-
9393
- e.stopPropagation();
9394
-
9395
- _this.closeInput();
9396
- }
9397
-
9398
- if (e.keyCode === 13 && callback) {
9399
- e.stopPropagation();
9400
- e.preventDefault();
9401
- callback(e.target.value);
9402
- }
9403
- };
9404
-
9405
- this.node = node;
9406
- this.modeInfoNode = document.createElement("span");
9407
- this.secInfoNode = document.createElement("span");
9408
- this.notifNode = document.createElement("span");
9409
- this.notifNode.className = "vim-notification";
9410
- this.keyInfoNode = document.createElement("span");
9411
- this.keyInfoNode.setAttribute("style", "float: right");
9412
- this.node.appendChild(this.modeInfoNode);
9413
- this.node.appendChild(this.secInfoNode);
9414
- this.node.appendChild(this.notifNode);
9415
- this.node.appendChild(this.keyInfoNode);
9416
- this.toggleVisibility(false);
9417
- this.editor = editor;
9418
- this.sanitizer = sanitizer;
9419
- }
9420
-
9421
- _createClass(VimStatusBar, [{
9422
- key: "setMode",
9423
- value: function setMode(ev) {
9424
- if (ev.mode === "visual") {
9425
- if (ev.subMode === "linewise") {
9426
- this.setText("--VISUAL LINE--");
9427
- } else if (ev.subMode === "blockwise") {
9428
- this.setText("--VISUAL BLOCK--");
9429
- } else {
9430
- this.setText("--VISUAL--");
9431
- }
9432
-
9433
- return;
9434
- }
9435
-
9436
- this.setText("--".concat(ev.mode.toUpperCase(), "--"));
9437
- }
9438
- }, {
9439
- key: "setKeyBuffer",
9440
- value: function setKeyBuffer(key) {
9441
- this.keyInfoNode.textContent = key;
9442
- }
9443
- }, {
9444
- key: "setSec",
9445
- value: function setSec(text, callback, options) {
9446
- this.notifNode.textContent = "";
9447
-
9448
- if (text === undefined) {
9449
- return this.closeInput;
9450
- }
9451
-
9452
- this.setInnerHtml_(this.secInfoNode, text);
9453
- var input = this.secInfoNode.querySelector("input");
9454
-
9455
- if (input) {
9456
- input.focus();
9457
- this.input = {
9458
- callback: callback,
9459
- options: options,
9460
- node: input
9461
- };
9462
-
9463
- if (options) {
9464
- if (options.selectValueOnOpen) {
9465
- input.select();
9466
- }
9467
-
9468
- if (options.value) {
9469
- input.value = options.value;
9470
- }
9471
- }
9472
-
9473
- this.addInputListeners();
9474
- }
9475
-
9476
- return this.closeInput;
9477
- }
9478
- }, {
9479
- key: "setText",
9480
- value: function setText(text) {
9481
- this.modeInfoNode.textContent = text;
9482
- }
9483
- }, {
9484
- key: "toggleVisibility",
9485
- value: function toggleVisibility(toggle) {
9486
- if (toggle) {
9487
- this.node.style.display = "block";
9488
- } else {
9489
- this.node.style.display = "none";
9490
- }
9491
-
9492
- if (this.input) {
9493
- this.removeInputListeners();
9494
- }
9495
-
9496
- clearInterval(this.notifTimeout);
9497
- }
9498
- }, {
9499
- key: "addInputListeners",
9500
- value: function addInputListeners() {
9501
- var node = this.input.node;
9502
- node.addEventListener("keyup", this.inputKeyUp);
9503
- node.addEventListener("keydown", this.inputKeyDown);
9504
- node.addEventListener("input", this.inputKeyInput);
9505
- node.addEventListener("blur", this.inputBlur);
9506
- }
9507
- }, {
9508
- key: "removeInputListeners",
9509
- value: function removeInputListeners() {
9510
- if (!this.input || !this.input.node) {
9511
- return;
9512
- }
9513
-
9514
- var node = this.input.node;
9515
- node.removeEventListener("keyup", this.inputKeyUp);
9516
- node.removeEventListener("keydown", this.inputKeyDown);
9517
- node.removeEventListener("input", this.inputKeyInput);
9518
- node.removeEventListener("blur", this.inputBlur);
9519
- }
9520
- }, {
9521
- key: "showNotification",
9522
- value: function showNotification(text) {
9523
- var _this2 = this;
9524
-
9525
- var sp = document.createElement("span");
9526
- this.setInnerHtml_(sp, text);
9527
- this.notifNode.textContent = sp.textContent;
9528
- this.notifTimeout = setTimeout(function () {
9529
- _this2.notifNode.textContent = "";
9530
- }, 5000);
9531
- }
9532
- }, {
9533
- key: "setInnerHtml_",
9534
- value: function setInnerHtml_(element, htmlContents) {
9535
- // Clear out previous contents first.
9536
- while (element.childNodes.length) {
9537
- element.removeChild(element.childNodes[0]);
9538
- }
9539
-
9540
- if (!htmlContents) {
9541
- return;
9542
- }
9543
-
9544
- if (this.sanitizer) {
9545
- element.appendChild(this.sanitizer(htmlContents));
9546
- } else {
9547
- element.appendChild(htmlContents);
9548
- }
9549
- }
9550
- }]);
9551
-
9552
- return VimStatusBar;
9553
- }();
9554
-
9555
- exports["default"] = VimStatusBar;
9556
- } (statusbar));
9557
-
9558
- (function (exports) {
9559
-
9560
- Object.defineProperty(exports, "__esModule", {
9561
- value: true
9562
- });
9563
- Object.defineProperty(exports, "StatusBar", {
9564
- enumerable: true,
9565
- get: function get() {
9566
- return _statusbar["default"];
9567
- }
9568
- });
9569
- Object.defineProperty(exports, "VimMode", {
9570
- enumerable: true,
9571
- get: function get() {
9572
- return _keymap_vim["default"];
9573
- }
9574
- });
9575
- exports.initVimMode = initVimMode;
9576
-
9577
- var _keymap_vim = _interopRequireDefault(keymap_vim);
9578
-
9579
- var _statusbar = _interopRequireDefault(statusbar);
9580
-
9581
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9582
-
9583
- function initVimMode(editor) {
9584
- var statusbarNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
9585
- var StatusBarClass = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _statusbar["default"];
9586
- var sanitizer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
9587
- var vimAdapter = new _keymap_vim["default"](editor);
9588
-
9589
- if (!statusbarNode) {
9590
- vimAdapter.attach();
9591
- return vimAdapter;
9592
- }
9593
-
9594
- var statusBar = new StatusBarClass(statusbarNode, editor, sanitizer);
9595
- var keyBuffer = "";
9596
- vimAdapter.on("vim-mode-change", function (mode) {
9597
- statusBar.setMode(mode);
9598
- });
9599
- vimAdapter.on("vim-keypress", function (key) {
9600
- if (key === ":") {
9601
- keyBuffer = "";
9602
- } else {
9603
- keyBuffer += key;
9604
- }
9605
-
9606
- statusBar.setKeyBuffer(keyBuffer);
9607
- });
9608
- vimAdapter.on("vim-command-done", function () {
9609
- keyBuffer = "";
9610
- statusBar.setKeyBuffer(keyBuffer);
9611
- });
9612
- vimAdapter.on("dispose", function () {
9613
- statusBar.toggleVisibility(false);
9614
- statusBar.closeInput();
9615
- statusBar.clear();
9616
- });
9617
- statusBar.toggleVisibility(true);
9618
- vimAdapter.setStatusBar(statusBar);
9619
- vimAdapter.attach();
9620
- return vimAdapter;
9621
- }
9622
- } (lib));
9623
-
9624
- const vimKeybindingsSchema = {
9625
- type: 'object',
9626
- properties: {
9627
- before: {
9628
- type: 'array',
9629
- items: {
9630
- type: 'string'
9631
- }
9632
- },
9633
- after: {
9634
- type: 'array',
9635
- items: {
9636
- type: 'string'
9637
- }
9638
- }
9639
- }
9640
- };
9641
- configurationRegistry.registerConfiguration({
9642
- id: 'vim',
9643
- order: 5,
9644
- type: 'object',
9645
- title: 'Vim',
9646
- scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
9647
- properties: {
9648
- 'vim.normalModeKeyBindings': {
9649
- type: 'array',
9650
- description: 'Remapped keys in Normal mode.',
9651
- items: vimKeybindingsSchema
9652
- },
9653
- 'vim.insertModeKeyBindings': {
9654
- type: 'array',
9655
- description: 'Remapped keys in Insert mode.',
9656
- items: vimKeybindingsSchema
9657
- },
9658
- 'vim.visualModeKeyBindings': {
9659
- type: 'array',
9660
- description: 'Remapped keys in Visual mode.',
9661
- items: vimKeybindingsSchema
9662
- }
9663
- }
9664
- });
9665
- function mapVimKeyBindings(keybindingConfig, mode) {
9666
- if (keybindingConfig != null) {
9667
- for (const item of keybindingConfig) {
9668
- if (item.after != null && item.before != null) {
9669
- lib.VimMode.Vim.map(item.before.join(''), item.after.join(''), mode);
9670
- }
9671
- }
9672
- }
9673
- }
9674
- function unmapVimKeyBindings(keybindingConfig, mode) {
9675
- if (keybindingConfig != null) {
9676
- for (const item of keybindingConfig) {
9677
- if (item.after != null && item.before != null) {
9678
- lib.VimMode.Vim.unmap(item.before.join(''), mode);
9679
- }
9680
- }
9681
- }
9682
- }
9683
- let unmapPrevious = () => {};
9684
- onConfigurationChanged(() => {
9685
- unmapPrevious();
9686
- const config = getConfiguration(undefined, 'vim');
9687
- mapVimKeyBindings(config === null || config === void 0 ? void 0 : config.insertModeKeyBindings, 'insert');
9688
- mapVimKeyBindings(config === null || config === void 0 ? void 0 : config.normalModeKeyBindings, 'normal');
9689
- mapVimKeyBindings(config === null || config === void 0 ? void 0 : config.visualModeKeyBindings, 'visual');
9690
- unmapPrevious = () => {
9691
- unmapVimKeyBindings(config === null || config === void 0 ? void 0 : config.insertModeKeyBindings, 'insert');
9692
- unmapVimKeyBindings(config === null || config === void 0 ? void 0 : config.normalModeKeyBindings, 'normal');
9693
- unmapVimKeyBindings(config === null || config === void 0 ? void 0 : config.visualModeKeyBindings, 'visual');
9694
- };
9695
- });
9696
- function initVimMode(editor, statusBarElement) {
9697
- return lib.initVimMode(editor, statusBarElement);
9698
- }
9699
-
9700
- export { initVimMode };