@codingame/monaco-editor-wrapper 3.10.0 → 4.0.0-monaco-update.2

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