@codingame/monaco-editor-wrapper 10.1.2 → 11.0.0

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