@codingame/monaco-editor-wrapper 4.0.0-next.0 → 4.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/dist/_virtual/Angular.ng-template-15.2.1.vsix_package.json.vsjson.js +3 -0
  2. package/dist/_virtual/C2Hs-configuration.json.raw.js +3 -0
  3. package/dist/_virtual/Dart-Code.dart-code-3.63.20230419.vsix_package.json.vsjson.js +3 -0
  4. package/dist/_virtual/Hsc2Hs-configuration.json.raw.js +3 -0
  5. package/dist/_virtual/IMCTradingBV.svlangserver-0.4.1.vsix_package.json.vsjson.js +3 -0
  6. package/dist/_virtual/JakeBecker.elixir-ls-0.14.5.vsix_package.json.vsjson.js +3 -0
  7. package/dist/_virtual/JuanBlanco.solidity-0.0.152.vsix_package.json.vsjson.js +3 -0
  8. package/dist/_virtual/META.json.raw2.js +3 -0
  9. package/dist/_virtual/REditorSupport.r-2.7.2.vsix_package.json.vsjson.js +3 -0
  10. package/dist/_virtual/Rlogo.svg.raw.js +3 -0
  11. package/dist/{_commonjsHelpers.js → _virtual/_commonjsHelpers.js} +1 -1
  12. package/dist/_virtual/_monaco-editor.js +6 -0
  13. package/dist/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +31 -0
  14. package/dist/_virtual/actions.js +3 -0
  15. package/dist/_virtual/alefragnani.pascal-9.6.0.vsix_package.json.vsjson.js +3 -0
  16. package/dist/_virtual/angular-template-language-configuration.json.raw.js +3 -0
  17. package/dist/_virtual/basicInput.js +3 -0
  18. package/dist/_virtual/batisteo.vscode-django-1.10.0.vsix_package.json.vsjson.js +3 -0
  19. package/dist/_virtual/bitwisecook.tcl-0.4.3.vsix_package.json.vsjson.js +3 -0
  20. package/dist/_virtual/book-dark.svg.raw.js +3 -0
  21. package/dist/_virtual/book-light.svg.raw.js +3 -0
  22. package/dist/_virtual/broadcomMFD.cobol-language-support-1.2.1.vsix_package.json.vsjson.js +3 -0
  23. package/dist/_virtual/cabal-configuration.json.raw.js +3 -0
  24. package/dist/_virtual/castwide.solargraph-0.24.0.vsix_package.json.vsjson.js +3 -0
  25. package/dist/_virtual/ckolkman.vscode-postgres-1.4.2.vsix_package.json.vsjson.js +3 -0
  26. package/dist/_virtual/cm_adapter.js +3 -0
  27. package/dist/_virtual/commands.js +3 -0
  28. package/dist/_virtual/conda-environment.json.raw.js +3 -0
  29. package/dist/_virtual/conda-meta.json.raw.js +3 -0
  30. package/dist/_virtual/condarc.json.raw.js +3 -0
  31. package/dist/{css.worker.js → _virtual/css.worker.js} +1 -1
  32. package/dist/_virtual/d.json.raw2.js +3 -0
  33. package/dist/_virtual/dart-language-configuration.json.raw.js +3 -0
  34. package/dist/_virtual/dcf-configuration.json.raw.js +3 -0
  35. package/dist/_virtual/diet.json.raw3.js +3 -0
  36. package/dist/_virtual/dub.schema.json.raw.js +3 -0
  37. package/dist/_virtual/dune.json.raw3.js +3 -0
  38. package/dist/_virtual/editor.api.js +6 -0
  39. package/dist/_virtual/editor.worker.js +6 -0
  40. package/dist/_virtual/eex-language-configuration.json.raw.js +3 -0
  41. package/dist/_virtual/elixir-language-configuration.json.raw.js +3 -0
  42. package/dist/_virtual/erlang.configuration.json.raw.js +3 -0
  43. package/dist/_virtual/file_type_java.svg.raw.js +3 -0
  44. package/dist/_virtual/file_type_scala.svg.raw.js +3 -0
  45. package/dist/_virtual/flutter_activity_bar.svg.raw.js +3 -0
  46. package/dist/_virtual/general.json.raw.js +3 -0
  47. package/dist/_virtual/go.mod.language-configuration.json.raw.js +3 -0
  48. package/dist/_virtual/golang.Go-0.38.0.vsix_package.json.vsjson.js +3 -0
  49. package/dist/_virtual/haskell-configuration.json.raw.js +3 -0
  50. package/dist/{html.worker.js → _virtual/html.worker.js} +1 -1
  51. package/dist/_virtual/index.js +3 -0
  52. package/dist/_virtual/index2.js +3 -0
  53. package/dist/_virtual/index3.js +3 -0
  54. package/dist/_virtual/java-properties-configuration.json.raw.js +3 -0
  55. package/dist/_virtual/johnsoncodehk.vscode-angular-1.0.22.vsix_package.json.vsjson.js +3 -0
  56. package/dist/{json.worker.js → _virtual/json.worker.js} +1 -1
  57. package/dist/_virtual/justusadam.language-haskell-3.6.0.vsix_package.json.vsjson.js +3 -0
  58. package/dist/_virtual/keymap_vim.js +3 -0
  59. package/dist/_virtual/kotlin.configuration.json.raw.js +3 -0
  60. package/dist/_virtual/lang-config.json.raw.js +3 -0
  61. package/dist/_virtual/language-configuration.json.raw.js +3 -0
  62. package/dist/_virtual/language-configuration.json.raw2.js +3 -0
  63. package/dist/_virtual/language-configuration.json.raw3.js +3 -0
  64. package/dist/_virtual/language-configuration.json.raw4.js +3 -0
  65. package/dist/_virtual/language-configuration.json.raw5.js +3 -0
  66. package/dist/_virtual/language-configuration.json.raw6.js +3 -0
  67. package/dist/_virtual/language-configuration.json.raw7.js +3 -0
  68. package/dist/_virtual/language-configuration.json.raw8.js +3 -0
  69. package/dist/_virtual/literate-haskell-configuration.json.raw.js +3 -0
  70. package/dist/_virtual/logo.svg.raw.js +3 -0
  71. package/dist/_virtual/mathiasfrohlich.Kotlin-1.7.1.vsix_package.json.vsjson.js +3 -0
  72. package/dist/_virtual/menhir.json.raw2.js +3 -0
  73. package/dist/_virtual/ms-dotnettools.csharp-1.25.4.vsix_package.json.vsjson.js +3 -0
  74. package/dist/_virtual/ms-python.python-2023.7.11111009.vsix_package.json.vsjson.js +3 -0
  75. package/dist/_virtual/ms-vscode.cpptools-1.15.2.vsix_package.json.vsjson.js +3 -0
  76. package/dist/_virtual/oasis.json.raw2.js +3 -0
  77. package/dist/_virtual/ocaml.json.raw3.js +3 -0
  78. package/dist/_virtual/ocamlbuild.json.raw2.js +3 -0
  79. package/dist/_virtual/ocamlformat.json.raw2.js +3 -0
  80. package/dist/_virtual/ocamllabs.ocaml-platform-1.12.2.vsix_package.json.vsjson.js +3 -0
  81. package/dist/_virtual/ocamllex.json.raw3.js +3 -0
  82. package/dist/_virtual/opam-install.json.raw2.js +3 -0
  83. package/dist/_virtual/opam.json.raw2.js +3 -0
  84. package/dist/_virtual/package-json-schema.json.raw.js +3 -0
  85. package/dist/_virtual/package.schema.json.raw.js +3 -0
  86. package/dist/_virtual/pascal.configuration.json.raw.js +3 -0
  87. package/dist/_virtual/pgourlain.erlang-0.8.8.vsix_package.json.vsjson.js +3 -0
  88. package/dist/_virtual/pip-requirements.json.raw.js +3 -0
  89. package/dist/_virtual/postgres-explorer.svg.raw.js +3 -0
  90. package/dist/_virtual/prettier-options-schema.json.raw.js +3 -0
  91. package/dist/_virtual/r-configuration.json.raw.js +3 -0
  92. package/dist/_virtual/rbuildignore-configuration.json.raw.js +3 -0
  93. package/dist/_virtual/rd-configuration.json.raw.js +3 -0
  94. package/dist/{reason.json2.js → _virtual/reason.json.raw2.js} +2 -2
  95. package/dist/_virtual/redhat.java-1.18.2023042204.vsix_package.json.vsjson.js +3 -0
  96. package/dist/_virtual/rmd-configuration.json.raw.js +3 -0
  97. package/dist/_virtual/rnamespace-configuration.json.raw.js +3 -0
  98. package/dist/_virtual/scala-lang.scala-0.5.6.vsix_package.json.vsjson.js +3 -0
  99. package/dist/_virtual/scalameta-logo.png.raw.js +3 -0
  100. package/dist/_virtual/scalameta.metals-1.23.0.vsix_package.json.vsjson.js +3 -0
  101. package/dist/_virtual/scalameta.svg.raw.js +3 -0
  102. package/dist/_virtual/schema.json.raw.js +3 -0
  103. package/dist/_virtual/shiftCommand.js +6 -0
  104. package/dist/_virtual/solidity.configuration.json.raw.js +3 -0
  105. package/dist/_virtual/state.js +3 -0
  106. package/dist/_virtual/statusbar.js +3 -0
  107. package/dist/_virtual/sumneko.lua-3.6.18.vsix_package.json.vsjson.js +3 -0
  108. package/dist/_virtual/svelte.svelte-vscode-107.3.0.vsix_package.json.vsjson.js +3 -0
  109. package/dist/_virtual/tasks.schema.json.raw.js +3 -0
  110. package/dist/{ts.worker.js → _virtual/ts.worker.js} +1 -1
  111. package/dist/_virtual/util.js +3 -0
  112. package/dist/_virtual/webfreak.code-d-0.23.2.vsix_package.json.vsjson.js +3 -0
  113. package/dist/configuration/index.js +45 -0
  114. package/dist/editor/autofold.js +24 -0
  115. package/dist/editor/cobol.js +67 -0
  116. package/dist/editor/index.js +9 -0
  117. package/dist/extensions/Angular.ng-template-15.2.1.vsix.js +15 -0
  118. package/dist/extensions/Dart-Code.dart-code-3.63.20230419.vsix.js +14 -0
  119. package/dist/extensions/IMCTradingBV.svlangserver-0.4.1.vsix.js +18 -0
  120. package/dist/extensions/JakeBecker.elixir-ls-0.14.5.vsix.js +18 -0
  121. package/dist/extensions/JuanBlanco.solidity-0.0.152.vsix.js +13 -0
  122. package/dist/extensions/REditorSupport.r-2.7.2.vsix.js +47 -0
  123. package/dist/extensions/alefragnani.pascal-9.6.0.vsix.js +13 -0
  124. package/dist/extensions/batisteo.vscode-django-1.10.0.vsix.js +17 -0
  125. package/dist/extensions/bitwisecook.tcl-0.4.3.vsix.js +13 -0
  126. package/dist/extensions/broadcomMFD.cobol-language-support-1.2.1.vsix.js +11 -0
  127. package/dist/extensions/castwide.solargraph-0.24.0.vsix.js +8 -0
  128. package/dist/extensions/ckolkman.vscode-postgres-1.4.2.vsix.js +14 -0
  129. package/dist/extensions/golang.Go-0.38.0.vsix.js +17 -0
  130. package/dist/extensions/johnsoncodehk.vscode-angular-1.0.22.vsix.js +13 -0
  131. package/dist/extensions/justusadam.language-haskell-3.6.0.vsix.js +41 -0
  132. package/dist/extensions/mathiasfrohlich.Kotlin-1.7.1.vsix.js +15 -0
  133. package/dist/extensions/ms-dotnettools.csharp-1.25.4.vsix.js +17 -0
  134. package/dist/extensions/ms-python.python-2023.7.11111009.vsix.js +20 -0
  135. package/dist/extensions/ms-vscode.cpptools-1.15.2.vsix.js +8 -0
  136. package/dist/extensions/ocamllabs.ocaml-platform-1.12.2.vsix.js +92 -0
  137. package/dist/extensions/pgourlain.erlang-0.8.8.vsix.js +13 -0
  138. package/dist/extensions/redhat.java-1.18.2023042204.vsix.js +19 -0
  139. package/dist/extensions/scala-lang.scala-0.5.6.vsix.js +11 -0
  140. package/dist/extensions/scalameta.metals-1.23.0.vsix.js +34 -0
  141. package/dist/extensions/sumneko.lua-3.6.18.vsix.js +10 -0
  142. package/dist/extensions/svelte.svelte-vscode-107.3.0.vsix.js +37 -0
  143. package/dist/extensions/webfreak.code-d-0.23.2.vsix.js +28 -0
  144. package/dist/extensions.d.ts +3 -2
  145. package/dist/features/cssContribution.js +4 -5
  146. package/dist/features/debug.d.ts +1 -0
  147. package/dist/features/debug.js +7 -0
  148. package/dist/features/htmlContribution.js +79 -88
  149. package/dist/features/jsonContribution.js +10 -12
  150. package/dist/features/search.d.ts +1 -0
  151. package/dist/features/search.js +7 -0
  152. package/dist/features/typescriptContribution.js +27 -15
  153. package/dist/features/viewPanels.d.ts +1 -0
  154. package/dist/features/viewPanels.js +9 -0
  155. package/dist/features/views.d.ts +4 -0
  156. package/dist/features/views.js +17 -0
  157. package/dist/keybindings/index.js +36 -0
  158. package/dist/keybindings/vim.js +82 -0
  159. package/dist/languages/index.js +40 -0
  160. package/dist/main.js +6 -1286
  161. package/dist/monaco.d.ts +0 -1
  162. package/dist/monaco.js +90 -0
  163. package/dist/node_modules/@types/node/console.d.js +3 -0
  164. package/dist/node_modules/@types/node/globals.d.js +3 -0
  165. package/dist/node_modules/@types/node/process.d.js +3 -0
  166. package/dist/node_modules/lodash.kebabcase/index.js +439 -0
  167. package/dist/node_modules/lodash.throttle/index.js +443 -0
  168. package/dist/node_modules/monaco-emacs/lib/emacs/actions.js +596 -0
  169. package/dist/node_modules/monaco-emacs/lib/emacs/basicInput.js +113 -0
  170. package/dist/node_modules/monaco-emacs/lib/emacs/commands.js +184 -0
  171. package/dist/node_modules/monaco-emacs/lib/emacs/index.js +186 -0
  172. package/dist/node_modules/monaco-emacs/lib/emacs/state.js +116 -0
  173. package/dist/node_modules/monaco-emacs/lib/emacs/util.js +112 -0
  174. package/dist/node_modules/monaco-emacs/lib/index.js +31 -0
  175. package/dist/{vim.js → node_modules/monaco-vim/lib/cm/keymap_vim.js} +3 -1790
  176. package/dist/node_modules/monaco-vim/lib/cm_adapter.js +1393 -0
  177. package/dist/node_modules/monaco-vim/lib/index.js +71 -0
  178. package/dist/node_modules/monaco-vim/lib/statusbar.js +239 -0
  179. package/dist/node_modules/tslib/tslib.es6.js +77 -0
  180. package/dist/services.d.ts +2 -0
  181. package/dist/services.js +50 -0
  182. package/dist/style.js +12 -0
  183. package/dist/theme/index.js +21 -0
  184. package/dist/tools/EditorOpenHandlerRegistry.js +108 -0
  185. package/dist/tools.js +235 -0
  186. package/dist/worker.d.ts +1 -10
  187. package/dist/worker.js +9 -58
  188. package/package.json +28 -37
  189. package/stats.html +1 -1
  190. package/dist/C2Hs-configuration.json.js +0 -3
  191. package/dist/Hsc2Hs-configuration.json.js +0 -3
  192. package/dist/META.json2.js +0 -3
  193. package/dist/_monaco-editor_commonjs-external.js +0 -39
  194. package/dist/_rollupPluginBabelHelpers.js +0 -51
  195. package/dist/add.svg.js +0 -3
  196. package/dist/add.svg2.js +0 -3
  197. package/dist/adddep-dark.svg.js +0 -3
  198. package/dist/adddep-light.svg.js +0 -3
  199. package/dist/angular-template-language-configuration.json.js +0 -3
  200. package/dist/arrow-circle-up-dark.svg.js +0 -3
  201. package/dist/arrow-circle-up-light.svg.js +0 -3
  202. package/dist/book-dark.svg.js +0 -3
  203. package/dist/book-light.svg.js +0 -3
  204. package/dist/book-open-dark.svg.js +0 -3
  205. package/dist/book-open-light.svg.js +0 -3
  206. package/dist/cabal-configuration.json.js +0 -3
  207. package/dist/d.json2.js +0 -3
  208. package/dist/dart-language-configuration.json.js +0 -3
  209. package/dist/dcf-configuration.json.js +0 -3
  210. package/dist/diet.json3.js +0 -3
  211. package/dist/document-search-dark.svg.js +0 -3
  212. package/dist/document-search-light.svg.js +0 -3
  213. package/dist/documentation-inverse.svg.js +0 -3
  214. package/dist/documentation.svg.js +0 -3
  215. package/dist/dub-convert-inverse.svg.js +0 -3
  216. package/dist/dub-convert.svg.js +0 -3
  217. package/dist/dune.json3.js +0 -3
  218. package/dist/edit-dub-inverse.svg.js +0 -3
  219. package/dist/edit-dub.svg.js +0 -3
  220. package/dist/edit-source-inverse.svg.js +0 -3
  221. package/dist/edit-source.svg.js +0 -3
  222. package/dist/eex-language-configuration.json.js +0 -3
  223. package/dist/elixir-language-configuration.json.js +0 -3
  224. package/dist/erlang.configuration.json.js +0 -3
  225. package/dist/extension-web.js.js +0 -3
  226. package/dist/extension-web.js2.js +0 -3
  227. package/dist/extension.browser.js.js +0 -3
  228. package/dist/file_type_java.svg.js +0 -3
  229. package/dist/file_type_scala.svg.js +0 -3
  230. package/dist/focus-dark.svg.js +0 -3
  231. package/dist/focus-light.svg.js +0 -3
  232. package/dist/general.json.js +0 -3
  233. package/dist/get-inverse.svg.js +0 -3
  234. package/dist/get.svg.js +0 -3
  235. package/dist/go.mod.language-configuration.json.js +0 -3
  236. package/dist/haskell-configuration.json.js +0 -3
  237. package/dist/hot-reload-tb.png.js +0 -3
  238. package/dist/hot-reload.svg.js +0 -3
  239. package/dist/index.js +0 -2210
  240. package/dist/index2.js +0 -49
  241. package/dist/inspector.svg.js +0 -3
  242. package/dist/java-properties-configuration.json.js +0 -3
  243. package/dist/kotlin.configuration.json.js +0 -3
  244. package/dist/lang-config.json.js +0 -3
  245. package/dist/language-configuration.json.js +0 -3
  246. package/dist/language-configuration.json2.js +0 -3
  247. package/dist/language-configuration.json3.js +0 -3
  248. package/dist/language-configuration.json4.js +0 -3
  249. package/dist/language-configuration.json5.js +0 -3
  250. package/dist/language-configuration.json6.js +0 -3
  251. package/dist/language-configuration.json7.js +0 -3
  252. package/dist/language-configuration.json8.js +0 -3
  253. package/dist/literate-haskell-configuration.json.js +0 -3
  254. package/dist/menhir.json2.js +0 -3
  255. package/dist/oasis.json2.js +0 -3
  256. package/dist/ocaml.json3.js +0 -3
  257. package/dist/ocamlbuild.json2.js +0 -3
  258. package/dist/ocamlformat.json2.js +0 -3
  259. package/dist/ocamllex.json3.js +0 -3
  260. package/dist/opam-install.json2.js +0 -3
  261. package/dist/opam.json2.js +0 -3
  262. package/dist/outdated-inverse.svg.js +0 -3
  263. package/dist/outdated.svg.js +0 -3
  264. package/dist/pascal.configuration.json.js +0 -3
  265. package/dist/performance.svg.js +0 -3
  266. package/dist/pip-requirements.json.js +0 -3
  267. package/dist/plus-dark.svg.js +0 -3
  268. package/dist/plus-light.svg.js +0 -3
  269. package/dist/preview-right-dark.svg.js +0 -3
  270. package/dist/preview-right-light.svg.js +0 -3
  271. package/dist/r-configuration.json.js +0 -3
  272. package/dist/rbuildignore-configuration.json.js +0 -3
  273. package/dist/rd-configuration.json.js +0 -3
  274. package/dist/ref-group-by-type-dark.svg.js +0 -3
  275. package/dist/ref-group-by-type-light.svg.js +0 -3
  276. package/dist/ref-ungroup-by-type-dark.svg.js +0 -3
  277. package/dist/ref-ungroup-by-type-light.svg.js +0 -3
  278. package/dist/refresh-dark.svg.js +0 -3
  279. package/dist/refresh-dark.svg2.js +0 -3
  280. package/dist/refresh-light.svg.js +0 -3
  281. package/dist/refresh-light.svg2.js +0 -3
  282. package/dist/repl.svg.js +0 -3
  283. package/dist/repl.svg2.js +0 -3
  284. package/dist/rmd-configuration.json.js +0 -3
  285. package/dist/rnamespace-configuration.json.js +0 -3
  286. package/dist/save.svg.js +0 -3
  287. package/dist/save.svg2.js +0 -3
  288. package/dist/scalameta-logo.png.js +0 -3
  289. package/dist/solidity.configuration.json.js +0 -3
  290. package/dist/switch-impl-intf.dark.svg.js +0 -3
  291. package/dist/switch-impl-intf.light.svg.js +0 -3
  292. package/dist/upgrade-inverse.svg.js +0 -3
  293. package/dist/upgrade.svg.js +0 -3
  294. package/dist/x-dark.svg.js +0 -3
  295. package/dist/x-light.svg.js +0 -3
  296. /package/dist/{C2Hs.json.js → _virtual/C2Hs.json.raw.js} +0 -0
  297. /package/dist/{COBOL.tmLanguage.json.js → _virtual/COBOL.tmLanguage.json.raw.js} +0 -0
  298. /package/dist/{Erlang.plist.js → _virtual/Erlang.plist.raw.js} +0 -0
  299. /package/dist/{Hsc2Hs.json.js → _virtual/Hsc2Hs.json.raw.js} +0 -0
  300. /package/dist/{JavaProperties.tmLanguage.json.js → _virtual/JavaProperties.tmLanguage.json.raw.js} +0 -0
  301. /package/dist/{Kotlin.tmLanguage.js → _virtual/Kotlin.tmLanguage.raw.js} +0 -0
  302. /package/dist/{META.json.js → _virtual/META.json.raw.js} +0 -0
  303. /package/dist/{Markdown Redcarpet.json.js → _virtual/Markdown Redcarpet.json.raw.js} +0 -0
  304. /package/dist/{RMarkdown.json.js → _virtual/RMarkdown.json.raw.js} +0 -0
  305. /package/dist/{Rcpp.json.js → _virtual/Rcpp.json.raw.js} +0 -0
  306. /package/dist/{Rd (R Documentation).json.js → _virtual/Rd (R Documentation).json.raw.js} +0 -0
  307. /package/dist/{Scala.tmLanguage.json.js → _virtual/Scala.tmLanguage.json.raw.js} +0 -0
  308. /package/dist/{alex.json.js → _virtual/alex.json.raw.js} +0 -0
  309. /package/dist/{angular-directives.json.js → _virtual/angular-directives.json.raw.js} +0 -0
  310. /package/dist/{angular-interpolations.json.js → _virtual/angular-interpolations.json.raw.js} +0 -0
  311. /package/dist/{aspnetcorerazor.tmLanguage.json.js → _virtual/aspnetcorerazor.tmLanguage.json.raw.js} +0 -0
  312. /package/dist/{atd.json.js → _virtual/atd.json.raw.js} +0 -0
  313. /package/dist/{buildtarget.json.js → _virtual/buildtarget.json.raw.js} +0 -0
  314. /package/dist/{cabal.json.js → _virtual/cabal.json.raw.js} +0 -0
  315. /package/dist/{codeblock-cabal.json.js → _virtual/codeblock-cabal.json.raw.js} +0 -0
  316. /package/dist/{codeblock-haskell.json.js → _virtual/codeblock-haskell.json.raw.js} +0 -0
  317. /package/dist/{codeblock-literate-haskell.json.js → _virtual/codeblock-literate-haskell.json.raw.js} +0 -0
  318. /package/dist/{codeblock.json.js → _virtual/codeblock.json.raw.js} +0 -0
  319. /package/dist/{codeblock.json2.js → _virtual/codeblock.json.raw2.js} +0 -0
  320. /package/dist/{cram.json.js → _virtual/cram.json.raw.js} +0 -0
  321. /package/dist/{csharp.json.js → _virtual/csharp.json.raw.js} +0 -0
  322. /package/dist/{d.json.js → _virtual/d.json.raw.js} +0 -0
  323. /package/dist/{dart.json.js → _virtual/dart.json.raw.js} +0 -0
  324. /package/dist/{dcf.json.js → _virtual/dcf.json.raw.js} +0 -0
  325. /package/dist/{diet.json.js → _virtual/diet.json.raw.js} +0 -0
  326. /package/dist/{diet.json2.js → _virtual/diet.json.raw2.js} +0 -0
  327. /package/dist/{django-html.tmLanguage.json.js → _virtual/django-html.tmLanguage.json.raw.js} +0 -0
  328. /package/dist/{django-txt.tmLanguage.json.js → _virtual/django-txt.tmLanguage.json.raw.js} +0 -0
  329. /package/dist/{dml.json.js → _virtual/dml.json.raw.js} +0 -0
  330. /package/dist/{dune-project.json.js → _virtual/dune-project.json.raw.js} +0 -0
  331. /package/dist/{dune-project.json2.js → _virtual/dune-project.json.raw2.js} +0 -0
  332. /package/dist/{dune-workspace.json.js → _virtual/dune-workspace.json.raw.js} +0 -0
  333. /package/dist/{dune.json.js → _virtual/dune.json.raw.js} +0 -0
  334. /package/dist/{dune.json2.js → _virtual/dune.json.raw2.js} +0 -0
  335. /package/dist/{eex.json.js → _virtual/eex.json.raw.js} +0 -0
  336. /package/dist/{elixir.json.js → _virtual/elixir.json.raw.js} +0 -0
  337. /package/dist/{erlang.json.js → _virtual/erlang.json.raw.js} +0 -0
  338. /package/dist/{expression.json.js → _virtual/expression.json.raw.js} +0 -0
  339. /package/dist/{filters.json.js → _virtual/filters.json.raw.js} +0 -0
  340. /package/dist/{go.json.js → _virtual/go.json.raw.js} +0 -0
  341. /package/dist/{go.mod.tmGrammar.json.js → _virtual/go.mod.tmGrammar.json.raw.js} +0 -0
  342. /package/dist/{go.sum.tmGrammar.json.js → _virtual/go.sum.tmGrammar.json.raw.js} +0 -0
  343. /package/dist/{govulncheck.tmGrammar.json.js → _virtual/govulncheck.tmGrammar.json.raw.js} +0 -0
  344. /package/dist/{happy.json.js → _virtual/happy.json.raw.js} +0 -0
  345. /package/dist/{haskell.json.js → _virtual/haskell.json.raw.js} +0 -0
  346. /package/dist/{html-eex.json.js → _virtual/html-eex.json.raw.js} +0 -0
  347. /package/dist/{inline-styles.json.js → _virtual/inline-styles.json.raw.js} +0 -0
  348. /package/dist/{inline-template.json.js → _virtual/inline-template.json.raw.js} +0 -0
  349. /package/dist/{java.json.js → _virtual/java.json.raw.js} +0 -0
  350. /package/dist/{javascript.json.js → _virtual/javascript.json.raw.js} +0 -0
  351. /package/dist/{jvm-bytecode-verbose.json.js → _virtual/jvm-bytecode-verbose.json.raw.js} +0 -0
  352. /package/dist/{jvm-bytecode.json.js → _virtual/jvm-bytecode.json.raw.js} +0 -0
  353. /package/dist/{kotlin.json.js → _virtual/kotlin.json.raw.js} +0 -0
  354. /package/dist/{literateHaskell.json.js → _virtual/literateHaskell.json.raw.js} +0 -0
  355. /package/dist/{markdown-svelte-css.json.js → _virtual/markdown-svelte-css.json.raw.js} +0 -0
  356. /package/dist/{markdown-svelte-js.json.js → _virtual/markdown-svelte-js.json.raw.js} +0 -0
  357. /package/dist/{markdown-svelte.json.js → _virtual/markdown-svelte.json.raw.js} +0 -0
  358. /package/dist/{menhir-action.json.js → _virtual/menhir-action.json.raw.js} +0 -0
  359. /package/dist/{menhir.json.js → _virtual/menhir.json.raw.js} +0 -0
  360. /package/dist/{merlin.json.js → _virtual/merlin.json.raw.js} +0 -0
  361. /package/dist/{oasis.json.js → _virtual/oasis.json.raw.js} +0 -0
  362. /package/dist/{ocaml-markdown-codeblock.json.js → _virtual/ocaml-markdown-codeblock.json.raw.js} +0 -0
  363. /package/dist/{ocaml.interface.json.js → _virtual/ocaml.interface.json.raw.js} +0 -0
  364. /package/dist/{ocaml.json.js → _virtual/ocaml.json.raw.js} +0 -0
  365. /package/dist/{ocaml.json2.js → _virtual/ocaml.json.raw2.js} +0 -0
  366. /package/dist/{ocamlbuild.json.js → _virtual/ocamlbuild.json.raw.js} +0 -0
  367. /package/dist/{ocamldoc.json.js → _virtual/ocamldoc.json.raw.js} +0 -0
  368. /package/dist/{ocamlformat.json.js → _virtual/ocamlformat.json.raw.js} +0 -0
  369. /package/dist/{ocamllex.json.js → _virtual/ocamllex.json.raw.js} +0 -0
  370. /package/dist/{ocamllex.json2.js → _virtual/ocamllex.json.raw2.js} +0 -0
  371. /package/dist/{opam-install.json.js → _virtual/opam-install.json.raw.js} +0 -0
  372. /package/dist/{opam.json.js → _virtual/opam.json.raw.js} +0 -0
  373. /package/dist/{pascal.json.js → _virtual/pascal.json.raw.js} +0 -0
  374. /package/dist/{pascal.tmLanguage.js → _virtual/pascal.tmLanguage.raw.js} +0 -0
  375. /package/dist/{pgsql.tmLanguage.js → _virtual/pgsql.tmLanguage.raw.js} +0 -0
  376. /package/dist/{pip-requirements.tmLanguage.json.js → _virtual/pip-requirements.tmLanguage.json.raw.js} +0 -0
  377. /package/dist/{postcss.json.js → _virtual/postcss.json.raw.js} +0 -0
  378. /package/dist/{pug-svelte-dotblock.json.js → _virtual/pug-svelte-dotblock.json.raw.js} +0 -0
  379. /package/dist/{pug-svelte-tags.json.js → _virtual/pug-svelte-tags.json.raw.js} +0 -0
  380. /package/dist/{pug-svelte.json.js → _virtual/pug-svelte.json.raw.js} +0 -0
  381. /package/dist/{r-snippets.json.js → _virtual/r-snippets.json.raw.js} +0 -0
  382. /package/dist/{r.json.js → _virtual/r.json.raw.js} +0 -0
  383. /package/dist/{rbuildignore.json.js → _virtual/rbuildignore.json.raw.js} +0 -0
  384. /package/dist/{reason-markdown-codeblock.json.js → _virtual/reason-markdown-codeblock.json.raw.js} +0 -0
  385. /package/dist/{reason.json.js → _virtual/reason.json.raw.js} +0 -0
  386. /package/dist/{rmarkdown.json2.js → _virtual/rmarkdown.json.raw2.js} +0 -0
  387. /package/dist/{rnamespace.json.js → _virtual/rnamespace.json.raw.js} +0 -0
  388. /package/dist/{sdl.json.js → _virtual/sdl.json.raw.js} +0 -0
  389. /package/dist/{semanticdb.json.js → _virtual/semanticdb.json.raw.js} +0 -0
  390. /package/dist/{solidity.json.js → _virtual/solidity.json.raw.js} +0 -0
  391. /package/dist/{solidity.json2.js → _virtual/solidity.json.raw2.js} +0 -0
  392. /package/dist/{svelte.json.js → _virtual/svelte.json.raw.js} +0 -0
  393. /package/dist/{svelte.tmLanguage.json.js → _virtual/svelte.tmLanguage.json.raw.js} +0 -0
  394. /package/dist/{systemverilog.json.js → _virtual/systemverilog.json.raw.js} +0 -0
  395. /package/dist/{systemverilog.tmLanguage.json.js → _virtual/systemverilog.tmLanguage.json.raw.js} +0 -0
  396. /package/dist/{tags.json.js → _virtual/tags.json.raw.js} +0 -0
  397. /package/dist/{tasty.json.js → _virtual/tasty.json.raw.js} +0 -0
  398. /package/dist/{tcl.json.js → _virtual/tcl.json.raw.js} +0 -0
  399. /package/dist/{tcl.json2.js → _virtual/tcl.json.raw2.js} +0 -0
  400. /package/dist/{template.json.js → _virtual/template.json.raw.js} +0 -0
  401. /package/dist/{typescript.json.js → _virtual/typescript.json.raw.js} +0 -0
  402. /package/dist/{vs2019_dark.json.js → _virtual/vs2019_dark.json.raw.js} +0 -0
  403. /package/dist/{vs2019_light.json.js → _virtual/vs2019_light.json.raw.js} +0 -0
@@ -0,0 +1,596 @@
1
+ import { commonjsGlobal } from '../../../../_virtual/_commonjsHelpers.js';
2
+ import { __exports as actions } from '../../../../_virtual/actions.js';
3
+ import require$$0 from '../../../../_virtual/_monaco-editor.js';
4
+
5
+ (function (exports) {
6
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
7
+ var extendStatics = function (d, b) {
8
+ extendStatics = Object.setPrototypeOf ||
9
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11
+ return extendStatics(d, b);
12
+ };
13
+ return function (d, b) {
14
+ if (typeof b !== "function" && b !== null)
15
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
+ extendStatics(d, b);
17
+ function __() { this.constructor = d; }
18
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19
+ };
20
+ })();
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.DeleteLines = exports.SearchReplace = exports.Search = exports.InvertSelection = exports.GotoLine = exports.RotateCursorOnScreen = exports.InsertTabs = exports.RevealToBottomAction = exports.RevealToCenterAction = exports.RevealToTopAction = exports.RevealEditorAction = exports.YankRotate = exports.YankSelectionToRing = exports.Yank = exports.RedoAction = exports.UndoAction = exports.KeyBoardQuit = exports.MoveCursorTop = exports.MoveCursorBottom = exports.MoveCursorWordLeft = exports.MoveCursorWordRight = exports.MoveCursorToLineStart = exports.MoveCursorToLineEnd = exports.MoveCursorRight = exports.MoveCursorLeft = exports.MoveCursorDown = exports.MoveCursorUp = exports.SetMark = exports.InsertLineAfter = exports.InsertLineBelow = exports.KillLines = exports.KillSelection = exports.BaseAction = exports.SOURCE = void 0;
23
+ var monaco = require$$0;
24
+ exports.SOURCE = 'extension.emacs';
25
+ function moveCursor(editor, hasSelection, direction, unit, repeat) {
26
+ if (repeat === void 0) { repeat = 1; }
27
+ var action = "cursor".concat(unit === 'word' ? 'Word' : '').concat(direction).concat(hasSelection ? 'Select' : '');
28
+ for (var i = 0; i < repeat; i++) {
29
+ editor.trigger(exports.SOURCE, action, null);
30
+ }
31
+ }
32
+ var BaseAction = (function () {
33
+ function BaseAction() {
34
+ this.description = '';
35
+ }
36
+ return BaseAction;
37
+ }());
38
+ exports.BaseAction = BaseAction;
39
+ var TriggerAction = (function (_super) {
40
+ __extends(TriggerAction, _super);
41
+ function TriggerAction(trigger) {
42
+ var _this = _super.call(this) || this;
43
+ _this.trigger = trigger;
44
+ return _this;
45
+ }
46
+ TriggerAction.prototype.run = function (editor) {
47
+ editor.trigger(exports.SOURCE, this.trigger, {});
48
+ };
49
+ return TriggerAction;
50
+ }(BaseAction));
51
+ var KillSelection = (function (_super) {
52
+ __extends(KillSelection, _super);
53
+ function KillSelection() {
54
+ return _super !== null && _super.apply(this, arguments) || this;
55
+ }
56
+ KillSelection.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
57
+ var selections = editor.getSelections();
58
+ if (!selections.length) {
59
+ return;
60
+ }
61
+ selections.forEach(function (sel) {
62
+ var text = editor.getModel().getValueInRange(sel);
63
+ ext.state.addToRing(text);
64
+ editor.executeEdits(exports.SOURCE, [{
65
+ range: sel,
66
+ text: '',
67
+ }]);
68
+ });
69
+ };
70
+ return KillSelection;
71
+ }(BaseAction));
72
+ exports.KillSelection = KillSelection;
73
+ var KillLines = (function (_super) {
74
+ __extends(KillLines, _super);
75
+ function KillLines() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ KillLines.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
79
+ ext.selectionMode = false;
80
+ var model = editor.getModel();
81
+ var pos = ext.getCursorAnchor();
82
+ var endPos;
83
+ if (repeat === 1) {
84
+ var lineLength = model.getLineLength(pos.lineNumber);
85
+ var isAtEnd = pos.column === lineLength + 1;
86
+ if (!lineLength || isAtEnd) {
87
+ if (repeatedTrigger) {
88
+ ext.state.growRingTop(model.getEOL());
89
+ }
90
+ else {
91
+ ext.state.addToRing(model.getEOL());
92
+ }
93
+ editor.trigger(exports.SOURCE, 'deleteAllRight', null);
94
+ return;
95
+ }
96
+ else {
97
+ endPos = new monaco.Position(pos.lineNumber, model.getLineLength(pos.lineNumber) + 1);
98
+ }
99
+ }
100
+ else {
101
+ var totalLines = model.getLineCount();
102
+ var endLine = (pos.lineNumber + repeat) > totalLines ? totalLines : (pos.lineNumber + repeat);
103
+ endPos = new monaco.Position(endLine, model.getLineLength(endLine) + 1);
104
+ }
105
+ var range = monaco.Range.fromPositions(pos, endPos);
106
+ if (repeatedTrigger) {
107
+ ext.state.growRingTop(model.getValueInRange(range));
108
+ }
109
+ else {
110
+ ext.state.addToRing(model.getValueInRange(range));
111
+ }
112
+ editor.executeEdits(exports.SOURCE, [{
113
+ range: range,
114
+ text: '',
115
+ }]);
116
+ editor.setSelection(monaco.Selection.fromPositions(pos, pos));
117
+ };
118
+ return KillLines;
119
+ }(BaseAction));
120
+ exports.KillLines = KillLines;
121
+ var InsertLineBelow = (function (_super) {
122
+ __extends(InsertLineBelow, _super);
123
+ function InsertLineBelow() {
124
+ return _super !== null && _super.apply(this, arguments) || this;
125
+ }
126
+ InsertLineBelow.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
127
+ var pos = editor.getPosition();
128
+ editor.trigger(exports.SOURCE, 'editor.action.insertLineAfter', null);
129
+ editor.setPosition(pos);
130
+ };
131
+ return InsertLineBelow;
132
+ }(BaseAction));
133
+ exports.InsertLineBelow = InsertLineBelow;
134
+ var InsertLineAfter = (function (_super) {
135
+ __extends(InsertLineAfter, _super);
136
+ function InsertLineAfter() {
137
+ return _super !== null && _super.apply(this, arguments) || this;
138
+ }
139
+ InsertLineAfter.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
140
+ var text = '';
141
+ for (var i = 0; i < repeat; i++) {
142
+ text += editor.getModel().getEOL();
143
+ }
144
+ ext.selectionMode = false;
145
+ var pos = ext.getCursorAnchor();
146
+ editor.executeEdits(exports.SOURCE, [{
147
+ range: monaco.Range.fromPositions(pos),
148
+ text: text,
149
+ forceMoveMarkers: true,
150
+ }]);
151
+ };
152
+ return InsertLineAfter;
153
+ }(BaseAction));
154
+ exports.InsertLineAfter = InsertLineAfter;
155
+ var SetMark = (function (_super) {
156
+ __extends(SetMark, _super);
157
+ function SetMark() {
158
+ return _super !== null && _super.apply(this, arguments) || this;
159
+ }
160
+ SetMark.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
161
+ ext.selectionMode;
162
+ var sel = editor.getSelection();
163
+ var selEmpty = sel.isEmpty();
164
+ if (!selEmpty) {
165
+ var dir = sel.getDirection();
166
+ if (dir === monaco.SelectionDirection.LTR) {
167
+ editor.setSelection(monaco.Selection.fromPositions(sel.getEndPosition(), sel.getEndPosition()));
168
+ }
169
+ else {
170
+ editor.setSelection(monaco.Selection.fromPositions(sel.getStartPosition(), sel.getStartPosition()));
171
+ }
172
+ }
173
+ if (selEmpty && ext.selectionMode) {
174
+ ext.selectionMode = false;
175
+ }
176
+ else {
177
+ ext.selectionMode = true;
178
+ }
179
+ };
180
+ return SetMark;
181
+ }(BaseAction));
182
+ exports.SetMark = SetMark;
183
+ var MoveCursorAction = (function (_super) {
184
+ __extends(MoveCursorAction, _super);
185
+ function MoveCursorAction() {
186
+ var _this = _super !== null && _super.apply(this, arguments) || this;
187
+ _this.unit = 'char';
188
+ return _this;
189
+ }
190
+ MoveCursorAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
191
+ moveCursor(editor, ext.selectionMode, this.direction, this.unit, repeat);
192
+ };
193
+ return MoveCursorAction;
194
+ }(BaseAction));
195
+ var MoveCursorUp = (function (_super) {
196
+ __extends(MoveCursorUp, _super);
197
+ function MoveCursorUp() {
198
+ var _this = _super !== null && _super.apply(this, arguments) || this;
199
+ _this.direction = 'Up';
200
+ return _this;
201
+ }
202
+ return MoveCursorUp;
203
+ }(MoveCursorAction));
204
+ exports.MoveCursorUp = MoveCursorUp;
205
+ var MoveCursorDown = (function (_super) {
206
+ __extends(MoveCursorDown, _super);
207
+ function MoveCursorDown() {
208
+ var _this = _super !== null && _super.apply(this, arguments) || this;
209
+ _this.direction = 'Down';
210
+ return _this;
211
+ }
212
+ return MoveCursorDown;
213
+ }(MoveCursorAction));
214
+ exports.MoveCursorDown = MoveCursorDown;
215
+ var MoveCursorLeft = (function (_super) {
216
+ __extends(MoveCursorLeft, _super);
217
+ function MoveCursorLeft() {
218
+ var _this = _super !== null && _super.apply(this, arguments) || this;
219
+ _this.direction = 'Left';
220
+ return _this;
221
+ }
222
+ return MoveCursorLeft;
223
+ }(MoveCursorAction));
224
+ exports.MoveCursorLeft = MoveCursorLeft;
225
+ var MoveCursorRight = (function (_super) {
226
+ __extends(MoveCursorRight, _super);
227
+ function MoveCursorRight() {
228
+ var _this = _super !== null && _super.apply(this, arguments) || this;
229
+ _this.direction = 'Right';
230
+ return _this;
231
+ }
232
+ return MoveCursorRight;
233
+ }(MoveCursorAction));
234
+ exports.MoveCursorRight = MoveCursorRight;
235
+ var MoveCursorToLineEnd = (function (_super) {
236
+ __extends(MoveCursorToLineEnd, _super);
237
+ function MoveCursorToLineEnd() {
238
+ var _this = _super !== null && _super.apply(this, arguments) || this;
239
+ _this.direction = 'End';
240
+ return _this;
241
+ }
242
+ return MoveCursorToLineEnd;
243
+ }(MoveCursorAction));
244
+ exports.MoveCursorToLineEnd = MoveCursorToLineEnd;
245
+ var MoveCursorToLineStart = (function (_super) {
246
+ __extends(MoveCursorToLineStart, _super);
247
+ function MoveCursorToLineStart() {
248
+ var _this = _super !== null && _super.apply(this, arguments) || this;
249
+ _this.direction = 'Home';
250
+ return _this;
251
+ }
252
+ return MoveCursorToLineStart;
253
+ }(MoveCursorAction));
254
+ exports.MoveCursorToLineStart = MoveCursorToLineStart;
255
+ var MoveCursorWordRight = (function (_super) {
256
+ __extends(MoveCursorWordRight, _super);
257
+ function MoveCursorWordRight() {
258
+ var _this = _super !== null && _super.apply(this, arguments) || this;
259
+ _this.unit = 'word';
260
+ return _this;
261
+ }
262
+ return MoveCursorWordRight;
263
+ }(MoveCursorRight));
264
+ exports.MoveCursorWordRight = MoveCursorWordRight;
265
+ var MoveCursorWordLeft = (function (_super) {
266
+ __extends(MoveCursorWordLeft, _super);
267
+ function MoveCursorWordLeft() {
268
+ var _this = _super !== null && _super.apply(this, arguments) || this;
269
+ _this.unit = 'word';
270
+ return _this;
271
+ }
272
+ return MoveCursorWordLeft;
273
+ }(MoveCursorLeft));
274
+ exports.MoveCursorWordLeft = MoveCursorWordLeft;
275
+ var MoveCursorBottom = (function (_super) {
276
+ __extends(MoveCursorBottom, _super);
277
+ function MoveCursorBottom() {
278
+ var _this = _super !== null && _super.apply(this, arguments) || this;
279
+ _this.direction = 'Bottom';
280
+ return _this;
281
+ }
282
+ return MoveCursorBottom;
283
+ }(MoveCursorAction));
284
+ exports.MoveCursorBottom = MoveCursorBottom;
285
+ var MoveCursorTop = (function (_super) {
286
+ __extends(MoveCursorTop, _super);
287
+ function MoveCursorTop() {
288
+ var _this = _super !== null && _super.apply(this, arguments) || this;
289
+ _this.direction = 'Top';
290
+ return _this;
291
+ }
292
+ return MoveCursorTop;
293
+ }(MoveCursorAction));
294
+ exports.MoveCursorTop = MoveCursorTop;
295
+ var KeyBoardQuit = (function (_super) {
296
+ __extends(KeyBoardQuit, _super);
297
+ function KeyBoardQuit() {
298
+ return _super !== null && _super.apply(this, arguments) || this;
299
+ }
300
+ KeyBoardQuit.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
301
+ ext.selectionMode = false;
302
+ ext.clearState();
303
+ editor.setPosition(editor.getPosition());
304
+ };
305
+ return KeyBoardQuit;
306
+ }(BaseAction));
307
+ exports.KeyBoardQuit = KeyBoardQuit;
308
+ var HistoryAction = (function (_super) {
309
+ __extends(HistoryAction, _super);
310
+ function HistoryAction() {
311
+ return _super !== null && _super.apply(this, arguments) || this;
312
+ }
313
+ HistoryAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
314
+ for (var i = 0; i < repeat; i++) {
315
+ editor.trigger(exports.SOURCE, this.action, null);
316
+ }
317
+ };
318
+ return HistoryAction;
319
+ }(BaseAction));
320
+ var UndoAction = (function (_super) {
321
+ __extends(UndoAction, _super);
322
+ function UndoAction() {
323
+ var _this = _super !== null && _super.apply(this, arguments) || this;
324
+ _this.action = 'undo';
325
+ return _this;
326
+ }
327
+ return UndoAction;
328
+ }(HistoryAction));
329
+ exports.UndoAction = UndoAction;
330
+ var RedoAction = (function (_super) {
331
+ __extends(RedoAction, _super);
332
+ function RedoAction() {
333
+ var _this = _super !== null && _super.apply(this, arguments) || this;
334
+ _this.action = 'redo';
335
+ return _this;
336
+ }
337
+ return RedoAction;
338
+ }(HistoryAction));
339
+ exports.RedoAction = RedoAction;
340
+ var Yank = (function (_super) {
341
+ __extends(Yank, _super);
342
+ function Yank() {
343
+ return _super !== null && _super.apply(this, arguments) || this;
344
+ }
345
+ Yank.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
346
+ var text = ext.state.getFromRing(repeat);
347
+ if (!text) {
348
+ return;
349
+ }
350
+ var pos = editor.getPosition();
351
+ editor.executeEdits(exports.SOURCE, [{
352
+ range: monaco.Range.fromPositions(pos, pos),
353
+ text: text,
354
+ forceMoveMarkers: true,
355
+ }]);
356
+ };
357
+ return Yank;
358
+ }(BaseAction));
359
+ exports.Yank = Yank;
360
+ var YankSelectionToRing = (function (_super) {
361
+ __extends(YankSelectionToRing, _super);
362
+ function YankSelectionToRing() {
363
+ return _super !== null && _super.apply(this, arguments) || this;
364
+ }
365
+ YankSelectionToRing.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
366
+ var sel = editor.getSelection();
367
+ if (sel.isEmpty()) {
368
+ return;
369
+ }
370
+ ext.state.addToRing(editor.getModel().getValueInRange(sel));
371
+ ext.selectionMode = false;
372
+ var pos = ext.getCursorAnchor();
373
+ editor.setSelection(monaco.Selection.fromPositions(pos, pos));
374
+ };
375
+ return YankSelectionToRing;
376
+ }(BaseAction));
377
+ exports.YankSelectionToRing = YankSelectionToRing;
378
+ var YankRotate = (function (_super) {
379
+ __extends(YankRotate, _super);
380
+ function YankRotate() {
381
+ return _super !== null && _super.apply(this, arguments) || this;
382
+ }
383
+ YankRotate.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
384
+ var text = ext.state.popFromRing();
385
+ if (!text) {
386
+ return;
387
+ }
388
+ var pos = ext.getCursorAnchor();
389
+ editor.executeEdits(exports.SOURCE, [{
390
+ range: monaco.Range.fromPositions(pos),
391
+ text: text,
392
+ forceMoveMarkers: true,
393
+ }]);
394
+ };
395
+ return YankRotate;
396
+ }(BaseAction));
397
+ exports.YankRotate = YankRotate;
398
+ var RevealEditorAction = (function (_super) {
399
+ __extends(RevealEditorAction, _super);
400
+ function RevealEditorAction() {
401
+ return _super !== null && _super.apply(this, arguments) || this;
402
+ }
403
+ RevealEditorAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
404
+ var sel = editor.getSelection();
405
+ if (this.revealFunction === 'up') {
406
+ editor.trigger(exports.SOURCE, 'scrollPageUp', null);
407
+ }
408
+ else {
409
+ editor[this.revealFunction](sel);
410
+ }
411
+ };
412
+ return RevealEditorAction;
413
+ }(BaseAction));
414
+ exports.RevealEditorAction = RevealEditorAction;
415
+ var RevealToTopAction = (function (_super) {
416
+ __extends(RevealToTopAction, _super);
417
+ function RevealToTopAction() {
418
+ var _this = _super !== null && _super.apply(this, arguments) || this;
419
+ _this.revealFunction = 'revealRangeAtTop';
420
+ return _this;
421
+ }
422
+ return RevealToTopAction;
423
+ }(RevealEditorAction));
424
+ exports.RevealToTopAction = RevealToTopAction;
425
+ var RevealToCenterAction = (function (_super) {
426
+ __extends(RevealToCenterAction, _super);
427
+ function RevealToCenterAction() {
428
+ var _this = _super !== null && _super.apply(this, arguments) || this;
429
+ _this.revealFunction = 'revealRangeInCenter';
430
+ return _this;
431
+ }
432
+ return RevealToCenterAction;
433
+ }(RevealEditorAction));
434
+ exports.RevealToCenterAction = RevealToCenterAction;
435
+ var RevealToBottomAction = (function (_super) {
436
+ __extends(RevealToBottomAction, _super);
437
+ function RevealToBottomAction() {
438
+ var _this = _super !== null && _super.apply(this, arguments) || this;
439
+ _this.revealFunction = 'up';
440
+ return _this;
441
+ }
442
+ return RevealToBottomAction;
443
+ }(RevealEditorAction));
444
+ exports.RevealToBottomAction = RevealToBottomAction;
445
+ var InsertTabs = (function (_super) {
446
+ __extends(InsertTabs, _super);
447
+ function InsertTabs() {
448
+ return _super !== null && _super.apply(this, arguments) || this;
449
+ }
450
+ InsertTabs.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
451
+ var model = editor.getModel();
452
+ var _a = model.getOptions(), tabSize = _a.tabSize, insertSpaces = _a.insertSpaces;
453
+ var text = '';
454
+ for (var i = 0; i < repeat; i++) {
455
+ var spaces = '';
456
+ for (var j = 0; j < tabSize; j++) {
457
+ spaces += ' ';
458
+ }
459
+ text += (insertSpaces ? spaces : '\t');
460
+ }
461
+ editor.executeEdits(exports.SOURCE, [{
462
+ range: editor.getSelection(),
463
+ text: text,
464
+ forceMoveMarkers: true,
465
+ }]);
466
+ };
467
+ return InsertTabs;
468
+ }(BaseAction));
469
+ exports.InsertTabs = InsertTabs;
470
+ var RotateCursorOnScreen = (function (_super) {
471
+ __extends(RotateCursorOnScreen, _super);
472
+ function RotateCursorOnScreen() {
473
+ return _super !== null && _super.apply(this, arguments) || this;
474
+ }
475
+ RotateCursorOnScreen.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
476
+ var ranges = editor.getVisibleRanges();
477
+ if (!ranges.length) {
478
+ return;
479
+ }
480
+ var lineMapping = [];
481
+ for (var i = 0; i < ranges.length; i++) {
482
+ var range = ranges[i];
483
+ for (var j = range.startLineNumber; j <= range.endLineNumber; j++) {
484
+ lineMapping.push(j);
485
+ }
486
+ }
487
+ var pos = editor.getPosition();
488
+ var expectedCenter = Math.ceil(lineMapping.length / 2);
489
+ var toMovePos;
490
+ if (pos.lineNumber === lineMapping[expectedCenter]) {
491
+ toMovePos = new monaco.Position(lineMapping[0], 1);
492
+ }
493
+ else if (pos.lineNumber === lineMapping[0]) {
494
+ toMovePos = new monaco.Position(lineMapping[lineMapping.length - 1], 1);
495
+ }
496
+ else {
497
+ toMovePos = new monaco.Position(lineMapping[expectedCenter], 1);
498
+ }
499
+ editor.setPosition(toMovePos);
500
+ };
501
+ return RotateCursorOnScreen;
502
+ }(BaseAction));
503
+ exports.RotateCursorOnScreen = RotateCursorOnScreen;
504
+ var GotoLine = (function (_super) {
505
+ __extends(GotoLine, _super);
506
+ function GotoLine() {
507
+ return _super !== null && _super.apply(this, arguments) || this;
508
+ }
509
+ GotoLine.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
510
+ ext.getBasicInput('Goto Line: ').then(function (val) {
511
+ var line = parseInt(val) || 0;
512
+ var model = editor.getModel();
513
+ var totalLines = model.getLineCount();
514
+ editor.focus();
515
+ if (!line) {
516
+ line = 1;
517
+ }
518
+ else if (line > totalLines) {
519
+ line = totalLines;
520
+ }
521
+ var pos = new monaco.Position(line, 1);
522
+ var range;
523
+ if (!ext.selectionMode) {
524
+ range = monaco.Selection.fromPositions(pos);
525
+ }
526
+ else {
527
+ var sel = editor.getSelection();
528
+ if (sel.getDirection() === monaco.SelectionDirection.LTR) {
529
+ range = monaco.Selection.fromPositions(sel.getStartPosition(), pos);
530
+ }
531
+ else {
532
+ range = monaco.Selection.fromPositions(sel.getEndPosition(), pos);
533
+ }
534
+ }
535
+ editor.setSelection(range);
536
+ editor.revealRangeInCenter(range);
537
+ }).catch(function () {
538
+ editor.focus();
539
+ });
540
+ };
541
+ return GotoLine;
542
+ }(BaseAction));
543
+ exports.GotoLine = GotoLine;
544
+ var InvertSelection = (function (_super) {
545
+ __extends(InvertSelection, _super);
546
+ function InvertSelection() {
547
+ return _super !== null && _super.apply(this, arguments) || this;
548
+ }
549
+ InvertSelection.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
550
+ var sel = editor.getSelection();
551
+ if (sel.isEmpty()) {
552
+ return;
553
+ }
554
+ var newSel;
555
+ if (sel.getDirection() === monaco.SelectionDirection.LTR) {
556
+ newSel = monaco.Selection.fromPositions(sel.getEndPosition(), sel.getStartPosition());
557
+ }
558
+ else {
559
+ newSel = monaco.Selection.fromPositions(sel.getStartPosition(), sel.getEndPosition());
560
+ }
561
+ editor.setSelection(newSel);
562
+ };
563
+ return InvertSelection;
564
+ }(BaseAction));
565
+ exports.InvertSelection = InvertSelection;
566
+ var Search = (function (_super) {
567
+ __extends(Search, _super);
568
+ function Search() {
569
+ return _super.call(this, 'editor.actions.findWithArgs') || this;
570
+ }
571
+ return Search;
572
+ }(TriggerAction));
573
+ exports.Search = Search;
574
+ var SearchReplace = (function (_super) {
575
+ __extends(SearchReplace, _super);
576
+ function SearchReplace() {
577
+ return _super.call(this, 'editor.action.startFindReplaceAction') || this;
578
+ }
579
+ return SearchReplace;
580
+ }(TriggerAction));
581
+ exports.SearchReplace = SearchReplace;
582
+ var DeleteLines = (function (_super) {
583
+ __extends(DeleteLines, _super);
584
+ function DeleteLines() {
585
+ return _super !== null && _super.apply(this, arguments) || this;
586
+ }
587
+ DeleteLines.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
588
+ ext.selectionMode = false;
589
+ for (var i = 0; i < repeat; i++) {
590
+ editor.trigger(exports.SOURCE, 'editor.action.deleteLines', null);
591
+ }
592
+ };
593
+ return DeleteLines;
594
+ }(BaseAction));
595
+ exports.DeleteLines = DeleteLines;
596
+ } (actions));