@codingame/monaco-editor-wrapper 20.1.0 → 21.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/_virtual/_.vsix.js +14 -14
  2. package/dist/_virtual/index2.js +2 -4
  3. package/dist/_virtual/index3.js +2 -2
  4. package/dist/assets/{Angular.ng-template-20.1.1.vsix/CHANGELOG.md → Angular.ng-template-20.3.3.vsix/changelog.md} +50 -5
  5. package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/package.json +34 -53
  6. package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/template.json +1 -1
  7. package/dist/assets/{Dart-Code.dart-code-3.117.20250731.vsix → Dart-Code.dart-code-3.123.20251113.vsix}/dart-language-configuration.json +2 -0
  8. package/dist/assets/{Dart-Code.dart-code-3.117.20250731.vsix → Dart-Code.dart-code-3.123.20251113.vsix}/package.json +289 -50
  9. package/dist/assets/{Dart-Code.dart-code-3.117.20250731.vsix → Dart-Code.dart-code-3.123.20251113.vsix}/readme.md +1 -1
  10. package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/changelog.md +86 -0
  11. package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/package.json +69 -20
  12. package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/readme.md +18 -1
  13. package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/changelog.md +48 -0
  14. package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/package.json +142 -5
  15. package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/readme.md +7 -3
  16. package/dist/assets/{JuanBlanco.solidity-0.0.185.vsix → JuanBlanco.solidity-0.0.187.vsix}/README.md +3 -1
  17. package/dist/assets/{JuanBlanco.solidity-0.0.185.vsix → JuanBlanco.solidity-0.0.187.vsix}/package.json +22 -21
  18. package/dist/assets/{JuanBlanco.solidity-0.0.185.vsix → JuanBlanco.solidity-0.0.187.vsix}/solidity.json +2 -18
  19. package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/package.json +23 -27
  20. package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/package.nls.ja.json +4 -0
  21. package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/package.nls.json +5 -1
  22. package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/package.nls.ru.json +4 -0
  23. package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/package.nls.zh-CN.json +4 -0
  24. package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/package.nls.zh-TW.json +4 -0
  25. package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/vue.tmLanguage.json +3 -9
  26. package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/README.md +4 -4
  27. package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/package.json +94 -17
  28. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/CHANGELOG.md +354 -116
  29. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/README.md +0 -6
  30. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.json +158 -154
  31. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.cs.json +4 -3
  32. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.de.json +4 -3
  33. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.es.json +4 -3
  34. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.fr.json +4 -3
  35. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.it.json +4 -3
  36. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.ja.json +4 -3
  37. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.json +3 -2
  38. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.ko.json +4 -3
  39. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.pl.json +4 -3
  40. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.pt-br.json +4 -3
  41. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.ru.json +4 -3
  42. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.tr.json +4 -3
  43. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.zh-cn.json +4 -3
  44. package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/package.nls.zh-tw.json +4 -3
  45. package/dist/assets/ms-python.python-2025.19.2025111701.vsix/package.json +1 -0
  46. package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/readme.md +20 -10
  47. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/CHANGELOG.md +94 -6
  48. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.json +196 -15
  49. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.cs.json +5 -1
  50. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.de.json +6 -2
  51. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.es.json +5 -1
  52. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.fr.json +5 -1
  53. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.it.json +6 -2
  54. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.ja.json +5 -1
  55. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.json +18 -9
  56. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.ko.json +6 -2
  57. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.pl.json +5 -1
  58. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.pt-br.json +6 -2
  59. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.ru.json +5 -1
  60. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.tr.json +5 -1
  61. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.zh-cn.json +5 -1
  62. package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/package.nls.zh-tw.json +6 -2
  63. package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/dune-project.json +70 -0
  64. package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/dune-workspace.json +204 -0
  65. package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/dune.json +141 -4
  66. package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/menhir.json +1 -1
  67. package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamlformat.json +7 -3
  68. package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/package.json +162 -48
  69. package/dist/assets/{redhat.java-1.44.2025073008.vsix/CHANGELOG.md → redhat.java-1.48.2025111408.vsix/changelog.md} +52 -0
  70. package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/package.json +89 -26
  71. package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/package.nls.json +2 -1
  72. package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/package.nls.ko.json +12 -7
  73. package/dist/assets/{redhat.java-1.44.2025073008.vsix/README.md → redhat.java-1.48.2025111408.vsix/readme.md} +5 -5
  74. package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/README.md +33 -61
  75. package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/package.json +41 -5
  76. package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/package.json +5 -2
  77. package/dist/extensions/Angular.ng-template-20.3.3.vsix.js +32 -0
  78. package/dist/extensions/Dart-Code.dart-code-3.123.20251113.vsix.js +20 -0
  79. package/dist/extensions/HashiCorp.terraform-2.37.2025092217.vsix.js +28 -0
  80. package/dist/extensions/JakeBecker.elixir-ls-0.29.3.vsix.js +26 -0
  81. package/dist/extensions/JuanBlanco.solidity-0.0.187.vsix.js +22 -0
  82. package/dist/extensions/{Vue.volar-3.0.4.vsix.js → Vue.volar-3.1.4.vsix.js} +20 -20
  83. package/dist/extensions/golang.Go-0.51.1.vsix.js +24 -0
  84. package/dist/extensions/ms-dotnettools.csharp-2.101.21.vsix.js +58 -0
  85. package/dist/extensions/{ms-python.python-2025.11.2025072901.vsix.js → ms-python.python-2025.19.2025111701.vsix.js} +25 -25
  86. package/dist/extensions/ms-vscode.cpptools-1.29.0.vsix.js +44 -0
  87. package/dist/extensions/ocamllabs.ocaml-platform-2.0.1.vsix.js +88 -0
  88. package/dist/extensions/redhat.java-1.48.2025111408.vsix.js +48 -0
  89. package/dist/extensions/scalameta.metals-1.59.2.vsix.js +36 -0
  90. package/dist/extensions/svelte.svelte-vscode-109.12.0.vsix.js +44 -0
  91. package/dist/features/typescriptStandalone.d.ts +1 -1
  92. package/dist/features/typescriptStandalone.js +12 -12
  93. package/dist/keybindings/vim.js +4 -4
  94. package/dist/node_modules/monaco-emacs/lib/emacs/actions.js +50 -50
  95. package/dist/node_modules/monaco-emacs/lib/emacs/commands.js +14 -14
  96. package/dist/node_modules/monaco-emacs/lib/emacs/index.js +1 -1
  97. package/dist/node_modules/monaco-emacs/lib/emacs/state.js +8 -8
  98. package/dist/node_modules/monaco-emacs/lib/emacs/util.js +12 -12
  99. package/dist/node_modules/monaco-emacs/lib/index.js +10 -10
  100. package/dist/node_modules/monaco-vim/dist/index.js +6405 -0
  101. package/dist/tools.js +1 -1
  102. package/package.json +102 -99
  103. package/stats.html +1 -1
  104. package/dist/_virtual/cm_adapter.js +0 -3
  105. package/dist/_virtual/index4.js +0 -3
  106. package/dist/_virtual/index5.js +0 -3
  107. package/dist/_virtual/keymap_vim.js +0 -3
  108. package/dist/_virtual/shiftCommand.js +0 -6
  109. package/dist/_virtual/statusbar.js +0 -3
  110. package/dist/assets/ms-python.python-2025.11.2025072901.vsix/package.json +0 -1
  111. package/dist/extensions/Angular.ng-template-20.1.1.vsix.js +0 -32
  112. package/dist/extensions/Dart-Code.dart-code-3.117.20250731.vsix.js +0 -20
  113. package/dist/extensions/HashiCorp.terraform-2.34.2025012311.vsix.js +0 -28
  114. package/dist/extensions/JakeBecker.elixir-ls-0.28.0.vsix.js +0 -26
  115. package/dist/extensions/JuanBlanco.solidity-0.0.185.vsix.js +0 -22
  116. package/dist/extensions/golang.Go-0.49.0.vsix.js +0 -24
  117. package/dist/extensions/ms-dotnettools.csharp-2.87.26.vsix.js +0 -58
  118. package/dist/extensions/ms-vscode.cpptools-1.26.3.vsix.js +0 -44
  119. package/dist/extensions/ocamllabs.ocaml-platform-1.31.0.vsix.js +0 -88
  120. package/dist/extensions/redhat.java-1.44.2025073008.vsix.js +0 -48
  121. package/dist/extensions/scalameta.metals-1.52.4.vsix.js +0 -36
  122. package/dist/extensions/svelte.svelte-vscode-109.10.0.vsix.js +0 -44
  123. package/dist/node_modules/monaco-vim/lib/cm/keymap_vim.js +0 -6933
  124. package/dist/node_modules/monaco-vim/lib/cm_adapter.js +0 -1232
  125. package/dist/node_modules/monaco-vim/lib/index.js +0 -71
  126. package/dist/node_modules/monaco-vim/lib/statusbar.js +0 -207
  127. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/angular.png +0 -0
  128. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/expression.json +0 -0
  129. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/host-object-literal.json +0 -0
  130. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/inline-styles.json +0 -0
  131. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/inline-template.json +0 -0
  132. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/let-declaration.json +0 -0
  133. /package/dist/assets/{Angular.ng-template-20.1.1.vsix/README.md → Angular.ng-template-20.3.3.vsix/readme.md} +0 -0
  134. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/template-blocks.json +0 -0
  135. /package/dist/assets/{Angular.ng-template-20.1.1.vsix → Angular.ng-template-20.3.3.vsix}/template-tag.json +0 -0
  136. /package/dist/assets/{Dart-Code.dart-code-3.117.20250731.vsix → Dart-Code.dart-code-3.123.20251113.vsix}/changelog.md +0 -0
  137. /package/dist/assets/{Dart-Code.dart-code-3.117.20250731.vsix → Dart-Code.dart-code-3.123.20251113.vsix}/dart.json +0 -0
  138. /package/dist/assets/{Dart-Code.dart-code-3.117.20250731.vsix → Dart-Code.dart-code-3.123.20251113.vsix}/dart.png +0 -0
  139. /package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/HashiCorp_Icon_Black_RGB.svg +0 -0
  140. /package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/HashiCorp_Icon_White_RGB.svg +0 -0
  141. /package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/hcl.tmGrammar.json +0 -0
  142. /package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/language-configuration.json +0 -0
  143. /package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/terraform.tmGrammar.json +0 -0
  144. /package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix/terraform_stacks.svg → HashiCorp.terraform-2.37.2025092217.vsix/terraform_feature.svg} +0 -0
  145. /package/dist/assets/{HashiCorp.terraform-2.34.2025012311.vsix → HashiCorp.terraform-2.37.2025092217.vsix}/terraform_logo_mark_light_universal.png +0 -0
  146. /package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/eex-language-configuration.json +0 -0
  147. /package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/eex.json +0 -0
  148. /package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/elixir-language-configuration.json +0 -0
  149. /package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/elixir.json +0 -0
  150. /package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/html-eex.json +0 -0
  151. /package/dist/assets/{JakeBecker.elixir-ls-0.28.0.vsix → JakeBecker.elixir-ls-0.29.3.vsix}/logo.png +0 -0
  152. /package/dist/assets/{JuanBlanco.solidity-0.0.185.vsix → JuanBlanco.solidity-0.0.187.vsix}/icon.png +0 -0
  153. /package/dist/assets/{JuanBlanco.solidity-0.0.185.vsix → JuanBlanco.solidity-0.0.187.vsix}/solidity-markdown-injection.json +0 -0
  154. /package/dist/assets/{JuanBlanco.solidity-0.0.185.vsix → JuanBlanco.solidity-0.0.187.vsix}/solidity.configuration.json +0 -0
  155. /package/dist/assets/{JuanBlanco.solidity-0.0.185.vsix → JuanBlanco.solidity-0.0.187.vsix}/solidity2.json +0 -0
  156. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/changelog.md +0 -0
  157. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/icon.png +0 -0
  158. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/markdown-language-configuration.json +0 -0
  159. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/markdown-vue.json +0 -0
  160. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/mdx-vue.json +0 -0
  161. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/readme.md +0 -0
  162. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/sfc-template-language-configuration.json +0 -0
  163. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/vue-directives.json +0 -0
  164. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/vue-interpolations.json +0 -0
  165. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/vue-language-configuration.json +0 -0
  166. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/vue-sfc-style-variable-injection.json +0 -0
  167. /package/dist/assets/{Vue.volar-3.0.4.vsix → Vue.volar-3.1.4.vsix}/vue-tsconfig.schema.json +0 -0
  168. /package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/CHANGELOG.md +0 -0
  169. /package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/go-logo-blue.png +0 -0
  170. /package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/go.json +0 -0
  171. /package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/go.mod.language-configuration.json +0 -0
  172. /package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/go.mod.tmGrammar.json +0 -0
  173. /package/dist/assets/{golang.Go-0.49.0.vsix → golang.Go-0.51.1.vsix}/go.sum.tmGrammar.json +0 -0
  174. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/aspnetcorerazor.tmLanguage.json +0 -0
  175. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/csharp.json +0 -0
  176. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/csharpIcon.png +0 -0
  177. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/language-configuration.json +0 -0
  178. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/language-configuration2.json +0 -0
  179. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/vs2019_dark.json +0 -0
  180. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/vs2019_light.json +0 -0
  181. /package/dist/assets/{ms-dotnettools.csharp-2.87.26.vsix → ms-dotnettools.csharp-2.101.21.vsix}/xaml.tmLanguage.json +0 -0
  182. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/changelog.md +0 -0
  183. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/conda-environment.json +0 -0
  184. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/conda-meta.json +0 -0
  185. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/condarc.json +0 -0
  186. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/icon.png +0 -0
  187. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.cs.json +0 -0
  188. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.de.json +0 -0
  189. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.es.json +0 -0
  190. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.fr.json +0 -0
  191. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.it.json +0 -0
  192. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.ja.json +0 -0
  193. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.json +0 -0
  194. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.ko.json +0 -0
  195. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.pl.json +0 -0
  196. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.pt-br.json +0 -0
  197. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.qps-ploc.json +0 -0
  198. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.ru.json +0 -0
  199. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.tr.json +0 -0
  200. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.zh-cn.json +0 -0
  201. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/package.nls.zh-tw.json +0 -0
  202. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/pip-requirements.json +0 -0
  203. /package/dist/assets/{ms-python.python-2025.11.2025072901.vsix → ms-python.python-2025.19.2025111701.vsix}/pip-requirements.tmLanguage.json +0 -0
  204. /package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/LanguageCCPP_color_128x.png +0 -0
  205. /package/dist/assets/{ms-vscode.cpptools-1.26.3.vsix → ms-vscode.cpptools-1.29.0.vsix}/README.md +0 -0
  206. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/META.json +0 -0
  207. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/META2.json +0 -0
  208. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/atd.json +0 -0
  209. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/cram.json +0 -0
  210. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/dune-project2.json +0 -0
  211. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/dune2.json +0 -0
  212. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/dune3.json +0 -0
  213. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/logo.png +0 -0
  214. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/menhir-action.json +0 -0
  215. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/menhir2.json +0 -0
  216. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/merlin.json +0 -0
  217. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/mlx.json +0 -0
  218. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/oasis.json +0 -0
  219. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/oasis2.json +0 -0
  220. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocaml-markdown-codeblock.json +0 -0
  221. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocaml.interface.json +0 -0
  222. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocaml.json +0 -0
  223. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocaml2.json +0 -0
  224. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocaml3.json +0 -0
  225. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamlbuild.json +0 -0
  226. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamlbuild2.json +0 -0
  227. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamldoc.json +0 -0
  228. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamlformat2.json +0 -0
  229. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamllex.json +0 -0
  230. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamllex2.json +0 -0
  231. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/ocamllex3.json +0 -0
  232. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/opam-install.json +0 -0
  233. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/opam-install2.json +0 -0
  234. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/opam.json +0 -0
  235. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/opam2.json +0 -0
  236. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/readme.md +0 -0
  237. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/reason-markdown-codeblock.json +0 -0
  238. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/reason.json +0 -0
  239. /package/dist/assets/{ocamllabs.ocaml-platform-1.31.0.vsix → ocamllabs.ocaml-platform-2.0.1.vsix}/reason2.json +0 -0
  240. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/JavaProperties.tmLanguage.json +0 -0
  241. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/icon128.png +0 -0
  242. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/inline-html.json +0 -0
  243. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/inline-json.json +0 -0
  244. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/inline-sql.json +0 -0
  245. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/inline-xml.json +0 -0
  246. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/inline-yaml.json +0 -0
  247. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/java-properties-configuration.json +0 -0
  248. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/java.tmLanguage.json +0 -0
  249. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/kotlin.tmLanguage.json +0 -0
  250. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/language-configuration.json +0 -0
  251. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/language-configuration2.json +0 -0
  252. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/package.nls.zh-cn.json +0 -0
  253. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/package.nls.zh-tw.json +0 -0
  254. /package/dist/assets/{redhat.java-1.44.2025073008.vsix → redhat.java-1.48.2025111408.vsix}/package.schema.json +0 -0
  255. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/CHANGELOG.md +0 -0
  256. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/book-dark.svg +0 -0
  257. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/book-light.svg +0 -0
  258. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/buildtarget.json +0 -0
  259. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/file_type_java.svg +0 -0
  260. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/file_type_scala.svg +0 -0
  261. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/jvm-bytecode-verbose.json +0 -0
  262. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/jvm-bytecode.json +0 -0
  263. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/logo.png +0 -0
  264. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/scalameta-logo.png +0 -0
  265. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/semanticdb.json +0 -0
  266. /package/dist/assets/{scalameta.metals-1.52.4.vsix → scalameta.metals-1.59.2.vsix}/tasty.json +0 -0
  267. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/CHANGELOG.md +0 -0
  268. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/README.md +0 -0
  269. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/javascript.json +0 -0
  270. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/language-configuration.json +0 -0
  271. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/logo.png +0 -0
  272. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/markdown-svelte-css.json +0 -0
  273. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/markdown-svelte-js.json +0 -0
  274. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/markdown-svelte.json +0 -0
  275. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/package-json-schema.json +0 -0
  276. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/postcss.json +0 -0
  277. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/prettier-options-schema.json +0 -0
  278. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/pug-svelte-dotblock.json +0 -0
  279. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/pug-svelte-tags.json +0 -0
  280. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/pug-svelte.json +0 -0
  281. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/svelte.json +0 -0
  282. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/svelte.tmLanguage.json +0 -0
  283. /package/dist/assets/{svelte.svelte-vscode-109.10.0.vsix → svelte.svelte-vscode-109.12.0.vsix}/typescript.json +0 -0
@@ -1,1232 +0,0 @@
1
- import { __exports as cm_adapter } from '../../../_virtual/cm_adapter.js';
2
- import require$$0 from '../../../_virtual/_monaco-editor.js';
3
- import require$$1 from '../../../_virtual/shiftCommand.js';
4
-
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"] = void 0;
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) : void 0; } }
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 (void 0 !== 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(void 0, 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 === void 0 ? void 0 : _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 === void 0 || _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 };