@codingame/monaco-editor-wrapper 3.10.0-monaco-update.1 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/README.md +15 -0
  2. package/dist/COBOL.tmLanguage.js +172 -0
  3. package/dist/Erlang.plist.js +1752 -0
  4. package/dist/HTML (Eex)2.js +100 -0
  5. package/dist/JSON.tmLanguage.js +221 -0
  6. package/dist/JSONC.tmLanguage.js +221 -0
  7. package/dist/JavaProperties.tmLanguage.js +116 -0
  8. package/dist/JavaScript.tmLanguage.js +5929 -0
  9. package/dist/JavaScriptReact.tmLanguage.js +5929 -0
  10. package/dist/Kotlin.tmLanguage.js +724 -0
  11. package/dist/META.js +100 -0
  12. package/dist/MagicPython.tmLanguage.js +4221 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Markdown Redcarpet.js +221 -0
  15. package/dist/RMarkdown.js +25 -0
  16. package/dist/Rcpp.js +50 -0
  17. package/dist/Rd (R Documentation).js +131 -0
  18. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  19. package/dist/Scala.tmLanguage.js +1324 -0
  20. package/dist/TypeScript.tmLanguage.js +5680 -0
  21. package/dist/TypeScriptReact.tmLanguage.js +5929 -0
  22. package/dist/{_virtual/_commonjsHelpers.js → _monaco-editor_commonjs-external.js} +9 -2
  23. package/dist/_rollupPluginBabelHelpers.js +51 -0
  24. package/dist/angular.js +62 -0
  25. package/dist/asp-vb-net.tmlanguage.js +247 -0
  26. package/dist/aspnetcorerazor.js +72 -0
  27. package/dist/aspnetcorerazor.tmLanguage.js +1825 -0
  28. package/dist/atd.js +110 -0
  29. package/dist/atd2.js +114 -0
  30. package/dist/buildignore.r.js +5 -0
  31. package/dist/buildtarget.js +53 -0
  32. package/dist/c.js +101 -0
  33. package/dist/c.tmLanguage.js +3565 -0
  34. package/dist/cabal.js +10 -0
  35. package/dist/cabal.tmLanguage.js +66 -0
  36. package/dist/clojure.js +68 -0
  37. package/dist/clojure.tmLanguage.js +439 -0
  38. package/dist/cobol.js +6 -0
  39. package/dist/cobol2.js +341 -0
  40. package/dist/codeblock-cabal.js +42 -0
  41. package/dist/codeblock-haskell.js +42 -0
  42. package/dist/codeblock-literate-haskell.js +42 -0
  43. package/dist/codeblock.js +59 -0
  44. package/dist/codeblock2.js +36 -0
  45. package/dist/codeblock3.js +95 -0
  46. package/dist/coffeescript-coffeescript.code-snippets.js +18 -0
  47. package/dist/coffeescript.js +91 -0
  48. package/dist/coffeescript.tmLanguage.js +1324 -0
  49. package/dist/configuration/files.d.ts +6 -0
  50. package/dist/configuration/index.d.ts +2 -1
  51. package/dist/cpp-c.code-snippets.js +18 -0
  52. package/dist/cpp-cpp.code-snippets.js +18 -0
  53. package/dist/cpp.js +101 -0
  54. package/dist/cpp.tmLanguage.js +16648 -0
  55. package/dist/cpptools.js +2631 -0
  56. package/dist/cram.js +257 -0
  57. package/dist/csharp.js +92 -0
  58. package/dist/csharp.tmLanguage.js +4992 -0
  59. package/dist/css.js +106 -0
  60. package/dist/css.tmLanguage.js +1873 -0
  61. package/dist/css.worker.js +6 -0
  62. package/dist/cuda-cpp.js +101 -0
  63. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  64. package/dist/d-diet.js +92 -0
  65. package/dist/d.js +3212 -0
  66. package/dist/d2.js +97 -0
  67. package/dist/d3.js +609 -0
  68. package/dist/dart.js +543 -0
  69. package/dist/dart2.js +103 -0
  70. package/dist/dart3.js +1130 -0
  71. package/dist/dcf.js +93 -0
  72. package/dist/debian-control.r.js +69 -0
  73. package/dist/diet.js +758 -0
  74. package/dist/diet2.js +100 -0
  75. package/dist/django-html.js +155 -0
  76. package/dist/django-html.tmLanguage.js +715 -0
  77. package/dist/django-txt.js +155 -0
  78. package/dist/django-txt.tmLanguage.js +269 -0
  79. package/dist/dml.js +169 -0
  80. package/dist/dml2.js +90 -0
  81. package/dist/dockercompose.js +82 -0
  82. package/dist/dpp.js +97 -0
  83. package/dist/dscript.js +90 -0
  84. package/dist/dune-project.js +481 -0
  85. package/dist/dune-project2.js +65 -0
  86. package/dist/dune-workspace.js +298 -0
  87. package/dist/dune-workspace2.js +65 -0
  88. package/dist/dune.js +2962 -0
  89. package/dist/dune2.js +65 -0
  90. package/dist/eex.js +55 -0
  91. package/dist/elixir-snippets.js +184 -0
  92. package/dist/elixir.js +2341 -0
  93. package/dist/elixir2.js +69 -0
  94. package/dist/elixir3.js +40 -0
  95. package/dist/erlang-erlang.js +195 -0
  96. package/dist/erlang.js +81 -0
  97. package/dist/erlang2.js +86 -0
  98. package/dist/expression.js +846 -0
  99. package/dist/features/cssContribution.d.ts +1 -0
  100. package/dist/features/cssContribution.js +7 -0
  101. package/dist/features/extensionConfigurations.d.ts +1 -0
  102. package/dist/features/extensionConfigurations.js +44 -0
  103. package/dist/features/htmlContribution.d.ts +4 -0
  104. package/dist/features/htmlContribution.js +112 -0
  105. package/dist/features/jsonContribution.d.ts +6 -0
  106. package/dist/features/jsonContribution.js +43 -0
  107. package/dist/features/typescriptContribution.d.ts +1 -0
  108. package/dist/features/typescriptContribution.js +32 -0
  109. package/dist/fsharp-fsharp.code-snippets.js +18 -0
  110. package/dist/fsharp.js +80 -0
  111. package/dist/fsharp.tmLanguage.js +1844 -0
  112. package/dist/go.js +103 -0
  113. package/dist/go.mod.js +8 -0
  114. package/dist/go.mod.tmGrammar.js +182 -0
  115. package/dist/go.sum.tmGrammar.js +55 -0
  116. package/dist/go.tmLanguage.js +1025 -0
  117. package/dist/go.work.js +8 -0
  118. package/dist/govulncheck.tmGrammar.js +138 -0
  119. package/dist/groovy-groovy.code-snippets.js +229 -0
  120. package/dist/groovy.js +79 -0
  121. package/dist/groovy.tmLanguage.js +1391 -0
  122. package/dist/haskell.js +88 -0
  123. package/dist/haskell.tmLanguage.js +629 -0
  124. package/dist/haskell2.js +16 -0
  125. package/dist/html (eex).js +31 -0
  126. package/dist/html-derivative.tmLanguage.js +57 -0
  127. package/dist/html-html.code-snippets.js +20 -0
  128. package/dist/html.js +11 -0
  129. package/dist/html.tmLanguage.js +2652 -0
  130. package/dist/html.tmLanguage2.js +107 -0
  131. package/dist/html.worker.js +6 -0
  132. package/dist/index.d.ts +3 -3
  133. package/dist/index.js +2207 -0
  134. package/dist/index2.js +1398 -0
  135. package/dist/inline-styles.js +104 -0
  136. package/dist/inline-template.js +88 -0
  137. package/dist/jade.js +11 -0
  138. package/dist/java-java.js +125 -0
  139. package/dist/java-properties.js +73 -0
  140. package/dist/java.js +98 -0
  141. package/dist/java.tmLanguage.js +1863 -0
  142. package/dist/java2.js +917 -0
  143. package/dist/javascript-javascript.code-snippets.js +205 -0
  144. package/dist/javascript.js +197 -0
  145. package/dist/javascriptreact.js +197 -0
  146. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  147. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  148. package/dist/json.js +75 -0
  149. package/dist/json.worker.js +6 -0
  150. package/dist/jsonc.js +75 -0
  151. package/dist/jsx-tags.js +158 -0
  152. package/dist/julia.js +89 -0
  153. package/dist/julia.tmLanguage.js +954 -0
  154. package/dist/jvm-bytecode-verbose.js +1231 -0
  155. package/dist/jvm-bytecode.js +565 -0
  156. package/dist/kotlin-kotlin.js +117 -0
  157. package/dist/kotlin.js +103 -0
  158. package/dist/kotlinscript.js +103 -0
  159. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +3 -0
  160. package/dist/languages/extensions/grammarLoader.d.ts +2 -0
  161. package/dist/languages/extensions/languageConfigurationLoader.d.ts +2 -0
  162. package/dist/languages/extensions/snippetLoader.d.ts +2 -0
  163. package/dist/languages/extensions/themeLoader.d.ts +2 -0
  164. package/dist/languages/index.d.ts +2 -0
  165. package/dist/languages/textMate/index.d.ts +1 -0
  166. package/dist/literate haskell.js +88 -0
  167. package/dist/literateHaskell.tmLanguage.js +70 -0
  168. package/dist/lua.js +84 -0
  169. package/dist/lua.tmLanguage.js +914 -0
  170. package/dist/lua2.js +2853 -0
  171. package/dist/main.js +3564 -9
  172. package/dist/markdown-basics-markdown.code-snippets.js +121 -0
  173. package/dist/markdown-svelte-css.js +37 -0
  174. package/dist/markdown-svelte-js.js +37 -0
  175. package/dist/markdown-svelte.js +59 -0
  176. package/dist/markdown-vue.js +54 -0
  177. package/dist/markdown.js +49 -0
  178. package/dist/markdown.tmLanguage.js +3042 -0
  179. package/dist/menhir-action.js +51 -0
  180. package/dist/menhir.js +597 -0
  181. package/dist/merlin.js +111 -0
  182. package/dist/monaco.d.ts +10 -6
  183. package/dist/namespace.r.js +88 -0
  184. package/dist/oasis.js +99 -0
  185. package/dist/objective-c.js +79 -0
  186. package/dist/objective-c.tmLanguage.js +3763 -0
  187. package/dist/objective-cpp.js +79 -0
  188. package/dist/ocaml-dune-project.js +38 -0
  189. package/dist/ocaml-dune.js +53 -0
  190. package/dist/ocaml-markdown-codeblock.js +42 -0
  191. package/dist/ocaml-ocaml.js +88 -0
  192. package/dist/ocaml-ocamllex.js +12 -0
  193. package/dist/ocaml.META.js +29 -0
  194. package/dist/ocaml.interface.js +292 -0
  195. package/dist/ocaml.interface2.js +114 -0
  196. package/dist/ocaml.js +903 -0
  197. package/dist/ocaml.menhir.js +81 -0
  198. package/dist/ocaml.oasis.js +18 -0
  199. package/dist/ocaml.ocamlbuild.js +45 -0
  200. package/dist/ocaml.ocamlformat.js +8 -0
  201. package/dist/ocaml.ocamllex.js +60 -0
  202. package/dist/ocaml.opam-install.js +49 -0
  203. package/dist/ocaml.opam.js +69 -0
  204. package/dist/ocaml2.js +114 -0
  205. package/dist/ocaml3.js +136 -0
  206. package/dist/ocamlbuild.js +189 -0
  207. package/dist/ocamldoc.js +54 -0
  208. package/dist/ocamlformat.js +206 -0
  209. package/dist/ocamllex.js +133 -0
  210. package/dist/omnisharp-csharp.js +508 -0
  211. package/dist/omnisharp.js +594 -0
  212. package/dist/opam-install.js +40 -0
  213. package/dist/opam.js +140 -0
  214. package/dist/pascal-pascal.js +382 -0
  215. package/dist/pascal.js +80 -0
  216. package/dist/pascal.tmLanguage.js +169 -0
  217. package/dist/pascal2.js +26 -0
  218. package/dist/perl.js +93 -0
  219. package/dist/perl.tmLanguage.js +2986 -0
  220. package/dist/perl6.js +86 -0
  221. package/dist/perl6.tmLanguage.js +323 -0
  222. package/dist/pgsql.tmLanguage.js +284 -0
  223. package/dist/php-php.code-snippets.js +267 -0
  224. package/dist/php.js +154 -0
  225. package/dist/php.tmLanguage.js +4036 -0
  226. package/dist/pip-requirements.js +8 -0
  227. package/dist/pip-requirements.tmLanguage.js +89 -0
  228. package/dist/plaintext.js +11 -0
  229. package/dist/platform.tmLanguage.js +1135 -0
  230. package/dist/postcss.src.yaml.js +393 -0
  231. package/dist/postgres.js +80 -0
  232. package/dist/postgresql.js +75 -0
  233. package/dist/powershell.js +107 -0
  234. package/dist/powershell.tmLanguage.js +1037 -0
  235. package/dist/pug-svelte-dotblock.js +69 -0
  236. package/dist/pug-svelte-tags.js +215 -0
  237. package/dist/pug-svelte.js +307 -0
  238. package/dist/python.js +236 -0
  239. package/dist/r.js +664 -0
  240. package/dist/r2.js +88 -0
  241. package/dist/rbuildignore.js +39 -0
  242. package/dist/rd.js +81 -0
  243. package/dist/reason-markdown-codeblock.js +42 -0
  244. package/dist/reason.js +79 -0
  245. package/dist/rmd.js +84 -0
  246. package/dist/rnamespace.js +283 -0
  247. package/dist/ruby.js +95 -0
  248. package/dist/ruby.tmLanguage.js +2784 -0
  249. package/dist/rust.js +84 -0
  250. package/dist/rust.tmLanguage.js +1178 -0
  251. package/dist/sassdoc.tmLanguage.js +362 -0
  252. package/dist/scala.js +85 -0
  253. package/dist/scalameta.js +224 -0
  254. package/dist/scss.js +117 -0
  255. package/dist/scss.tmLanguage.js +1887 -0
  256. package/dist/sdl.js +162 -0
  257. package/dist/sdl2.js +90 -0
  258. package/dist/semanticdb.js +62 -0
  259. package/dist/shell-unix-bash.tmLanguage.js +2038 -0
  260. package/dist/shellscript.js +93 -0
  261. package/dist/solargraph.js +192 -0
  262. package/dist/solidity-solidity.js +213 -0
  263. package/dist/solidity.js +1224 -0
  264. package/dist/solidity2.js +71 -0
  265. package/dist/solidity3.js +143 -0
  266. package/dist/sql.js +99 -0
  267. package/dist/sql.tmLanguage.js +636 -0
  268. package/dist/svelte.js +120 -0
  269. package/dist/svelte.svelte-vscode-javascript.js +45 -0
  270. package/dist/svelte.svelte-vscode-svelte.js +46 -0
  271. package/dist/svelte.svelte-vscode-typescript.js +43 -0
  272. package/dist/svelte.svelte-vscode.js +383 -0
  273. package/dist/svelte.tmLanguage.src.yaml.js +1099 -0
  274. package/dist/svlangserver-systemverilog.js +395 -0
  275. package/dist/svlangserver.js +85 -0
  276. package/dist/swift-swift.code-snippets.js +183 -0
  277. package/dist/swift.js +90 -0
  278. package/dist/swift.tmLanguage.js +3312 -0
  279. package/dist/systemverilog.js +187 -0
  280. package/dist/systemverilog.tmLanguage.js +1259 -0
  281. package/dist/tasty.js +72 -0
  282. package/dist/tcl-tcl.js +151 -0
  283. package/dist/tcl.js +78 -0
  284. package/dist/tcl.tmlanguage.yaml.js +5490 -0
  285. package/dist/template.js +207 -0
  286. package/dist/theme/index.d.ts +4 -1
  287. package/dist/theme-defaults~dark_plus.js +210 -0
  288. package/dist/theme-defaults~dark_plus_experimental.js +145 -0
  289. package/dist/theme-defaults~dark_vs.js +412 -0
  290. package/dist/theme-defaults~hc_black.js +471 -0
  291. package/dist/theme-defaults~hc_light.js +595 -0
  292. package/dist/theme-defaults~light_plus.js +212 -0
  293. package/dist/theme-defaults~light_plus_experimental.js +158 -0
  294. package/dist/theme-defaults~light_vs.js +441 -0
  295. package/dist/tools/EditorOpenHandlerRegistry.d.ts +2 -3
  296. package/dist/ts.worker.js +6 -0
  297. package/dist/typescript-basics-typescript.code-snippets.js +313 -0
  298. package/dist/typescript-language-features.js +1103 -0
  299. package/dist/typescript.js +216 -0
  300. package/dist/typescriptreact.js +216 -0
  301. package/dist/vb-vb.code-snippets.js +88 -0
  302. package/dist/vb.js +79 -0
  303. package/dist/verilog.js +187 -0
  304. package/dist/{node_modules/monaco-vim/lib/cm/keymap_vim.js → vim.js} +1790 -4
  305. package/dist/volar-vue.js +289 -0
  306. package/dist/vscode-R-r-snippets.js +534 -0
  307. package/dist/vscode-R-rmarkdown.js +461 -0
  308. package/dist/vscode-R.js +660 -0
  309. package/dist/vscode-django-filters.js +340 -0
  310. package/dist/vscode-django.js +37 -0
  311. package/dist/vscode-go-go.js +276 -0
  312. package/dist/vscode-go.js +1610 -0
  313. package/dist/vscode-groovy.js +28 -0
  314. package/dist/vscode-python.js +706 -0
  315. package/dist/vue-directives.js +25 -0
  316. package/dist/vue-interpolations.js +25 -0
  317. package/dist/vue-sfc-style-variable-injection.js +63 -0
  318. package/dist/vue.js +151 -0
  319. package/dist/vue.tmLanguage.js +1218 -0
  320. package/dist/worker.d.ts +10 -1
  321. package/dist/worker.js +43 -11
  322. package/dist/xml.js +116 -0
  323. package/dist/xml.tmLanguage.js +395 -0
  324. package/dist/xsl.js +39 -0
  325. package/dist/xsl.tmLanguage.js +102 -0
  326. package/dist/yaml.js +82 -0
  327. package/dist/yaml.tmLanguage.js +629 -0
  328. package/package.json +67 -127
  329. package/stats.html +1429 -90
  330. package/dist/_virtual/_monaco-editor.js +0 -6
  331. package/dist/_virtual/actions.js +0 -3
  332. package/dist/_virtual/basicInput.js +0 -3
  333. package/dist/_virtual/cm_adapter.js +0 -3
  334. package/dist/_virtual/commands.js +0 -3
  335. package/dist/_virtual/editor.api.js +0 -6
  336. package/dist/_virtual/index.js +0 -3
  337. package/dist/_virtual/index2.js +0 -3
  338. package/dist/_virtual/index3.js +0 -3
  339. package/dist/_virtual/keymap_vim.js +0 -3
  340. package/dist/_virtual/shiftCommand.js +0 -6
  341. package/dist/_virtual/state.js +0 -3
  342. package/dist/_virtual/statusbar.js +0 -3
  343. package/dist/_virtual/util.js +0 -3
  344. package/dist/assets/Angular.ng-template-16.1.8.vsix/expression-c051cd51.json +0 -834
  345. package/dist/assets/Angular.ng-template-16.1.8.vsix/inline-styles-59ea31e9.json +0 -92
  346. package/dist/assets/Angular.ng-template-16.1.8.vsix/inline-template-f0c3f556.json +0 -76
  347. package/dist/assets/Angular.ng-template-16.1.8.vsix/template-e24e3ba1.json +0 -195
  348. package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/dart-bea1db40.json +0 -534
  349. package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/dart-language-configuration-c4b1f694.json +0 -29
  350. package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/flutter_activity_bar-17811551.svg +0 -14
  351. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/codeblock-67e70f41.json +0 -81
  352. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/language-configuration-3467c3a6.json +0 -57
  353. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog-ff001e9f.json +0 -349
  354. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog.tmLanguage-31a99a46.json +0 -1246
  355. package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/tasks.schema-832643df.json +0 -30
  356. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/eex-e9a5e762.json +0 -41
  357. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/eex-language-configuration-6fb789e3.json +0 -58
  358. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/elixir-7cb5db44.json +0 -2580
  359. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/elixir-language-configuration-4bd217f4.json +0 -74
  360. package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/html-eex-3079072a.json +0 -25
  361. package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity-1f693465.json +0 -213
  362. package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity-642a30e7.json +0 -1215
  363. package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity.configuration-d0229207.json +0 -32
  364. package/dist/assets/REditorSupport.r-2.8.2.vsix/Markdown Redcarpet-12881a56.json +0 -146
  365. package/dist/assets/REditorSupport.r-2.8.2.vsix/RMarkdown-0bbb72c0.json +0 -13
  366. package/dist/assets/REditorSupport.r-2.8.2.vsix/Rcpp-cea57c6d.json +0 -34
  367. package/dist/assets/REditorSupport.r-2.8.2.vsix/Rd (R Documentation)-555f4e62.json +0 -117
  368. package/dist/assets/REditorSupport.r-2.8.2.vsix/Rlogo-6d3318a6.svg +0 -14
  369. package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf-3d561f42.json +0 -82
  370. package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf-configuration-d58bba2d.json +0 -24
  371. package/dist/assets/REditorSupport.r-2.8.2.vsix/r-configuration-78e137e5.json +0 -33
  372. package/dist/assets/REditorSupport.r-2.8.2.vsix/r-fe2a45c3.json +0 -647
  373. package/dist/assets/REditorSupport.r-2.8.2.vsix/r-snippets-9e46c45c.json +0 -475
  374. package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore-9cfe22f1.json +0 -27
  375. package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore-configuration-8eb95bcb.json +0 -2
  376. package/dist/assets/REditorSupport.r-2.8.2.vsix/rd-configuration-194dd9d9.json +0 -27
  377. package/dist/assets/REditorSupport.r-2.8.2.vsix/rmarkdown-dea1e283.json +0 -459
  378. package/dist/assets/REditorSupport.r-2.8.2.vsix/rmd-configuration-b4c6dc23.json +0 -27
  379. package/dist/assets/REditorSupport.r-2.8.2.vsix/rnamespace-290042cd.json +0 -222
  380. package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls-8c1cec26.json +0 -24
  381. package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls.pt-br-50a237c2.json +0 -24
  382. package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal-365151a8.json +0 -414
  383. package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal-93ca5af8.tmLanguage +0 -243
  384. package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal.configuration-650e481b.json +0 -32
  385. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/django-html.tmLanguage-a755b992.json +0 -701
  386. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/django-txt.tmLanguage-856346a9.json +0 -255
  387. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/filters-f60b575d.json +0 -339
  388. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/language-configuration-f8af0b2f.json +0 -63
  389. package/dist/assets/batisteo.vscode-django-1.14.0.vsix/tags-43e8b685.json +0 -496
  390. package/dist/assets/bitwisecook.tcl-0.4.3.vsix/language-configuration-e9539ff0.json +0 -75
  391. package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl-10fb1e40.json +0 -142
  392. package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl-d73ae460.json +0 -5474
  393. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/COBOL.tmLanguage-67e1eefb.json +0 -216
  394. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/lang-config-a301d1b9.json +0 -27
  395. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/pgm_conf.schema-f8558717.json +0 -24
  396. package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/proc_grps.schema-428d2a80.json +0 -55
  397. package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/language-configuration-b3cf7aac.json +0 -25
  398. package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/pgsql-a84fddae.tmLanguage +0 -413
  399. package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/postgres-explorer-ce4bf408.svg +0 -100
  400. package/dist/assets/golang.Go-0.39.1.vsix/go-71588b74.json +0 -274
  401. package/dist/assets/golang.Go-0.39.1.vsix/go.mod.language-configuration-0301a994.json +0 -5
  402. package/dist/assets/golang.Go-0.39.1.vsix/go.mod.tmGrammar-6cbef28b.json +0 -171
  403. package/dist/assets/golang.Go-0.39.1.vsix/go.sum.tmGrammar-36d4acfd.json +0 -44
  404. package/dist/assets/golang.Go-0.39.1.vsix/govulncheck.tmGrammar-3741e2c9.json +0 -123
  405. package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-directives-77c45bf9.json +0 -123
  406. package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-interpolations-b1f89745.json +0 -44
  407. package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-template-language-configuration-4cd1b761.json +0 -8
  408. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs-c12145c8.json +0 -23
  409. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs-configuration-dc72a3f0.json +0 -29
  410. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs-685ef114.json +0 -23
  411. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs-configuration-15e5e5c3.json +0 -30
  412. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/alex-07217e37.json +0 -236
  413. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal-8f2b8b9f.json +0 -53
  414. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal-configuration-64e517a3.json +0 -6
  415. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-cabal-34484e34.json +0 -28
  416. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-haskell-138d661e.json +0 -28
  417. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-literate-haskell-90d8db8f.json +0 -28
  418. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/happy-3cd8fa35.json +0 -196
  419. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell-192ef944.json +0 -2525
  420. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell-configuration-54079281.json +0 -29
  421. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literate-haskell-configuration-23cbb80e.json +0 -29
  422. package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literateHaskell-0a08d9f7.json +0 -56
  423. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/Kotlin-5d2aa580.tmLanguage +0 -1067
  424. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/codeblock-8be87145.json +0 -22
  425. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin-9f43cb02.json +0 -107
  426. package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin.configuration-1d328649.json +0 -35
  427. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/aspnetcorerazor.tmLanguage-7002af3f.json +0 -1812
  428. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/csharp-a17ace76.json +0 -493
  429. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/language-configuration-f8b16509.json +0 -24
  430. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls-b9937871.json +0 -419
  431. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.cs-80b9e0b3.json +0 -201
  432. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.de-2f7710c0.json +0 -201
  433. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.es-d1bd829b.json +0 -201
  434. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.fr-e0bc41f9.json +0 -201
  435. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.it-0e21bedf.json +0 -201
  436. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ja-2384013f.json +0 -201
  437. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ko-621d3dfe.json +0 -201
  438. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.pl-bd72e09e.json +0 -201
  439. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.pt-br-a446b36f.json +0 -201
  440. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ru-923ade42.json +0 -201
  441. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.tr-10253fa3.json +0 -201
  442. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.zh-cn-00cb169d.json +0 -201
  443. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.zh-tw-1c34b33a.json +0 -201
  444. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/vs2019_dark-a56f6e51.json +0 -783
  445. package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/vs2019_light-fd29b4ae.json +0 -807
  446. package/dist/assets/ms-python.python-2023.19.12861011.vsix/conda-environment-3aa03e16.json +0 -1
  447. package/dist/assets/ms-python.python-2023.19.12861011.vsix/conda-meta-e7f42ee0.json +0 -1
  448. package/dist/assets/ms-python.python-2023.19.12861011.vsix/condarc-8ad258e5.json +0 -1
  449. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls-c97ce436.json +0 -1
  450. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.cs-5dee4ffc.json +0 -1
  451. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.de-b852e3ec.json +0 -1
  452. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.es-66adbb9e.json +0 -1
  453. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.fr-6abf0276.json +0 -1
  454. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.it-12650beb.json +0 -1
  455. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ja-de4ee3bd.json +0 -1
  456. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ko-254d6467.json +0 -1
  457. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.pl-f957d6c6.json +0 -1
  458. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.pt-br-d02ca4d9.json +0 -1
  459. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.qps-ploc-f24b5e76.json +0 -1
  460. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ru-e6ba5e62.json +0 -1
  461. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.tr-05d98040.json +0 -1
  462. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.zh-cn-f41941e0.json +0 -1
  463. package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.zh-tw-02c30e90.json +0 -1
  464. package/dist/assets/ms-python.python-2023.19.12861011.vsix/pip-requirements-85cd5b06.json +0 -1
  465. package/dist/assets/ms-python.python-2023.19.12861011.vsix/pip-requirements.tmLanguage-5dcdde1f.json +0 -1
  466. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls-faad5326.json +0 -1006
  467. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.cs-1c63e64b.json +0 -441
  468. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.de-a80f3548.json +0 -441
  469. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.es-ed5f9669.json +0 -441
  470. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.fr-0a6f6680.json +0 -441
  471. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.it-690d744e.json +0 -441
  472. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ja-9e548ee8.json +0 -441
  473. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ko-b7c6d97d.json +0 -441
  474. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.pl-fac1f880.json +0 -441
  475. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.pt-br-618e6fff.json +0 -441
  476. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ru-b8aa8e97.json +0 -441
  477. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.tr-61b293ea.json +0 -441
  478. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.zh-cn-2fb473f1.json +0 -441
  479. package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.zh-tw-bd960e98.json +0 -441
  480. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/META-a4e7fa6f.json +0 -56
  481. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/META-e71a284d.json +0 -10
  482. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/atd-03beef93.json +0 -57
  483. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/cram-947e10d8.json +0 -167
  484. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-3f9df928.json +0 -24
  485. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-ac59c79b.json +0 -2949
  486. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-b84b8558.json +0 -30
  487. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-project-1f8165b1.json +0 -26
  488. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-project-c3d6414c.json +0 -326
  489. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-workspace-714d48f4.json +0 -191
  490. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/logo-1ec58c70.svg +0 -3
  491. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-318b208e.json +0 -349
  492. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-action-1de9ecfe.json +0 -29
  493. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-ba3ffd84.json +0 -27
  494. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/merlin-68658127.json +0 -73
  495. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/oasis-6cb9104d.json +0 -6
  496. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/oasis-b3731651.json +0 -69
  497. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-2b852e88.json +0 -54
  498. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-721ae493.json +0 -654
  499. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-8263d04c.json +0 -49
  500. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-markdown-codeblock-d59b1879.json +0 -24
  501. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml.interface-82c9d397.json +0 -161
  502. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlbuild-28c2016d.json +0 -110
  503. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlbuild-68c3ee9d.json +0 -16
  504. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamldoc-68623cf8.json +0 -31
  505. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlformat-12d00ff4.json +0 -5
  506. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlformat-566f44ca.json +0 -191
  507. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-16f56b53.json +0 -6
  508. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-2f54f6a7.json +0 -21
  509. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-9eea3c0f.json +0 -108
  510. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-051cc018.json +0 -24
  511. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-a3126c97.json +0 -111
  512. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-install-24f044a3.json +0 -23
  513. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-install-5c433c27.json +0 -19
  514. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-46868a8a.json +0 -2357
  515. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-e5da4a73.json +0 -25
  516. package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-markdown-codeblock-80e4eeb5.json +0 -24
  517. package/dist/assets/pgourlain.erlang-0.9.7.vsix/Erlang-dc87abbd.plist +0 -2719
  518. package/dist/assets/pgourlain.erlang-0.9.7.vsix/erlang-ceac2319.json +0 -197
  519. package/dist/assets/pgourlain.erlang-0.9.7.vsix/erlang.configuration-52d0fdab.json +0 -25
  520. package/dist/assets/redhat.java-1.24.2023101604.vsix/JavaProperties.tmLanguage-0a8c48eb.json +0 -103
  521. package/dist/assets/redhat.java-1.24.2023101604.vsix/java-properties-configuration-97f1db18.json +0 -67
  522. package/dist/assets/redhat.java-1.24.2023101604.vsix/java.tmLanguage-7cffeca4.json +0 -1892
  523. package/dist/assets/redhat.java-1.24.2023101604.vsix/language-configuration-054e92b8.json +0 -92
  524. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls-2147d73e.json +0 -29
  525. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.ko-a7811004.json +0 -26
  526. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.zh-cn-5b3edff8.json +0 -27
  527. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.zh-tw-236ee4a0.json +0 -26
  528. package/dist/assets/redhat.java-1.24.2023101604.vsix/package.schema-58232c4f.json +0 -28
  529. package/dist/assets/scala-lang.scala-0.5.7.vsix/Scala.tmLanguage-e9b79520.json +0 -1
  530. package/dist/assets/scala-lang.scala-0.5.7.vsix/language-configuration-acc80ed1.json +0 -33
  531. package/dist/assets/scalameta.metals-1.25.2.vsix/book-dark-6f0d6908.svg +0 -5
  532. package/dist/assets/scalameta.metals-1.25.2.vsix/book-light-ba883494.svg +0 -1
  533. package/dist/assets/scalameta.metals-1.25.2.vsix/buildtarget-73bbface.json +0 -37
  534. package/dist/assets/scalameta.metals-1.25.2.vsix/file_type_java-36bb31ca.svg +0 -1
  535. package/dist/assets/scalameta.metals-1.25.2.vsix/file_type_scala-b6c14b23.svg +0 -1
  536. package/dist/assets/scalameta.metals-1.25.2.vsix/jvm-bytecode-cab4d04e.json +0 -395
  537. package/dist/assets/scalameta.metals-1.25.2.vsix/jvm-bytecode-verbose-3611fa8e.json +0 -745
  538. package/dist/assets/scalameta.metals-1.25.2.vsix/scalameta-5e510695.svg +0 -11
  539. package/dist/assets/scalameta.metals-1.25.2.vsix/scalameta-logo-f3b7b0bf.png +0 -0
  540. package/dist/assets/scalameta.metals-1.25.2.vsix/semanticdb-44c14f33.json +0 -37
  541. package/dist/assets/scalameta.metals-1.25.2.vsix/tasty-c2b151f2.json +0 -56
  542. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls-f1576108.json +0 -231
  543. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.pt-br-44d0849d.json +0 -231
  544. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.zh-cn-3f634909.json +0 -231
  545. package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.zh-tw-144dc848.json +0 -231
  546. package/dist/assets/sumneko.lua-3.7.0.vsix/schema-dedfd658.json +0 -3421
  547. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/javascript-7aebc91a.json +0 -43
  548. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/language-configuration-3cb1f78d.json +0 -38
  549. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-4cd58a41.json +0 -45
  550. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-css-0fdc510e.json +0 -23
  551. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-js-cd568059.json +0 -23
  552. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/package-json-schema-ec2f7bd4.json +0 -9
  553. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/postcss-05883dcd.json +0 -377
  554. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/prettier-options-schema-9e36a684.json +0 -112
  555. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-04246371.json +0 -293
  556. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-dotblock-b92db507.json +0 -55
  557. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-tags-65124af1.json +0 -201
  558. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/svelte-a1bb47f3.json +0 -22
  559. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/svelte.tmLanguage-aec82be9.json +0 -1163
  560. package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/typescript-bd1c0ff1.json +0 -37
  561. package/dist/assets/webfreak.code-d-0.23.2.vsix/d-2da26fd0.json +0 -3163
  562. package/dist/assets/webfreak.code-d-0.23.2.vsix/d-316cb838.json +0 -90
  563. package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-0b761e76.json +0 -87
  564. package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-7fe4fdb7.json +0 -92
  565. package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-83c1bebc.json +0 -742
  566. package/dist/assets/webfreak.code-d-0.23.2.vsix/dml-ef6957d3.json +0 -157
  567. package/dist/assets/webfreak.code-d-0.23.2.vsix/dub.schema-77c2f417.json +0 -377
  568. package/dist/assets/webfreak.code-d-0.23.2.vsix/general-7b927912.json +0 -84
  569. package/dist/assets/webfreak.code-d-0.23.2.vsix/sdl-b6c61596.json +0 -149
  570. package/dist/configuration/index.js +0 -45
  571. package/dist/editor/autofold.js +0 -24
  572. package/dist/editor/cobol.js +0 -67
  573. package/dist/editor/index.js +0 -9
  574. package/dist/extensions/Angular.ng-template-16.1.8.vsix.js +0 -16
  575. package/dist/extensions/Dart-Code.dart-code-3.75.20231009.vsix.js +0 -14
  576. package/dist/extensions/IMCTradingBV.svlangserver-0.4.1.vsix.js +0 -18
  577. package/dist/extensions/JakeBecker.elixir-ls-0.17.1.vsix.js +0 -18
  578. package/dist/extensions/JuanBlanco.solidity-0.0.165.vsix.js +0 -14
  579. package/dist/extensions/REditorSupport.r-2.8.2.vsix.js +0 -42
  580. package/dist/extensions/alefragnani.pascal-9.6.0.vsix.js +0 -18
  581. package/dist/extensions/batisteo.vscode-django-1.14.0.vsix.js +0 -18
  582. package/dist/extensions/bitwisecook.tcl-0.4.3.vsix.js +0 -14
  583. package/dist/extensions/broadcomMFD.cobol-language-support-2.0.3.vsix.js +0 -16
  584. package/dist/extensions/castwide.solargraph-0.24.0.vsix.js +0 -5
  585. package/dist/extensions/ckolkman.vscode-postgres-1.4.3.vsix.js +0 -14
  586. package/dist/extensions/golang.Go-0.39.1.vsix.js +0 -18
  587. package/dist/extensions/johnsoncodehk.vscode-angular-1.0.22.vsix.js +0 -14
  588. package/dist/extensions/justusadam.language-haskell-3.6.0.vsix.js +0 -38
  589. package/dist/extensions/mathiasfrohlich.Kotlin-1.7.1.vsix.js +0 -16
  590. package/dist/extensions/ms-dotnettools.csharp-2.6.24.vsix.js +0 -46
  591. package/dist/extensions/ms-python.python-2023.19.12861011.vsix.js +0 -48
  592. package/dist/extensions/ms-vscode.cpptools-1.18.0.vsix.js +0 -36
  593. package/dist/extensions/ocamllabs.ocaml-platform-1.13.1.vsix.js +0 -82
  594. package/dist/extensions/pgourlain.erlang-0.9.7.vsix.js +0 -14
  595. package/dist/extensions/redhat.java-1.24.2023101604.vsix.js +0 -26
  596. package/dist/extensions/scala-lang.scala-0.5.7.vsix.js +0 -12
  597. package/dist/extensions/scalameta.metals-1.25.2.vsix.js +0 -30
  598. package/dist/extensions/sumneko.lua-3.7.0.vsix.js +0 -18
  599. package/dist/extensions/svelte.svelte-vscode-107.12.0.vsix.js +0 -36
  600. package/dist/extensions/webfreak.code-d-0.23.2.vsix.js +0 -26
  601. package/dist/extensions.d.ts +0 -36
  602. package/dist/features/debug.js +0 -6
  603. package/dist/features/extensionHostWorker.js +0 -11
  604. package/dist/features/search.d.ts +0 -1
  605. package/dist/features/search.js +0 -7
  606. package/dist/features/viewPanels.d.ts +0 -1
  607. package/dist/features/viewPanels.js +0 -11
  608. package/dist/features/views.d.ts +0 -4
  609. package/dist/features/views.js +0 -27
  610. package/dist/keybindings/index.js +0 -36
  611. package/dist/keybindings/vim.js +0 -82
  612. package/dist/languages/index.js +0 -40
  613. package/dist/monaco.js +0 -93
  614. package/dist/node_modules/lodash.kebabcase/index.js +0 -439
  615. package/dist/node_modules/lodash.throttle/index.js +0 -443
  616. package/dist/node_modules/monaco-emacs/lib/emacs/actions.js +0 -596
  617. package/dist/node_modules/monaco-emacs/lib/emacs/basicInput.js +0 -113
  618. package/dist/node_modules/monaco-emacs/lib/emacs/commands.js +0 -184
  619. package/dist/node_modules/monaco-emacs/lib/emacs/index.js +0 -186
  620. package/dist/node_modules/monaco-emacs/lib/emacs/state.js +0 -116
  621. package/dist/node_modules/monaco-emacs/lib/emacs/util.js +0 -112
  622. package/dist/node_modules/monaco-emacs/lib/index.js +0 -31
  623. package/dist/node_modules/monaco-vim/lib/cm_adapter.js +0 -1393
  624. package/dist/node_modules/monaco-vim/lib/index.js +0 -71
  625. package/dist/node_modules/monaco-vim/lib/statusbar.js +0 -239
  626. package/dist/services.d.ts +0 -8
  627. package/dist/services.js +0 -73
  628. package/dist/style.js +0 -12
  629. package/dist/theme/index.js +0 -21
  630. package/dist/tools/EditorOpenHandlerRegistry.js +0 -108
  631. package/dist/tools/FakeWorker.d.ts +0 -5
  632. package/dist/tools/FakeWorker.js +0 -8
  633. package/dist/tools.js +0 -235
  634. /package/dist/{editor → extensions}/autofold.d.ts +0 -0
  635. /package/dist/{editor → extensions}/cobol.d.ts +0 -0
  636. /package/dist/{editor → extensions}/index.d.ts +0 -0
  637. /package/dist/{features/debug.d.ts → languages/snippets/index.d.ts} +0 -0
  638. /package/dist/{features/extensionHostWorker.d.ts → languages/textMate/semanticTokens.d.ts} +0 -0
package/dist/index.js ADDED
@@ -0,0 +1,2207 @@
1
+ import { c as commonjsGlobal, r as require$$0, a as getDefaultExportFromCjs } from './_monaco-editor_commonjs-external.js';
2
+
3
+ function _mergeNamespaces(n, m) {
4
+ m.forEach(function (e) {
5
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
6
+ if (k !== 'default' && !(k in n)) {
7
+ var d = Object.getOwnPropertyDescriptor(e, k);
8
+ Object.defineProperty(n, k, d.get ? d : {
9
+ enumerable: true,
10
+ get: function () { return e[k]; }
11
+ });
12
+ }
13
+ });
14
+ });
15
+ return Object.freeze(n);
16
+ }
17
+
18
+ var lib = {};
19
+
20
+ var emacs = {};
21
+
22
+ /**
23
+ * lodash (Custom Build) <https://lodash.com/>
24
+ * Build: `lodash modularize exports="npm" -o ./`
25
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
26
+ * Released under MIT license <https://lodash.com/license>
27
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
28
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
29
+ */
30
+
31
+ /** Used as the `TypeError` message for "Functions" methods. */
32
+ var FUNC_ERROR_TEXT = 'Expected a function';
33
+
34
+ /** Used as references for various `Number` constants. */
35
+ var NAN = 0 / 0;
36
+
37
+ /** `Object#toString` result references. */
38
+ var symbolTag$1 = '[object Symbol]';
39
+
40
+ /** Used to match leading and trailing whitespace. */
41
+ var reTrim = /^\s+|\s+$/g;
42
+
43
+ /** Used to detect bad signed hexadecimal string values. */
44
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
45
+
46
+ /** Used to detect binary string values. */
47
+ var reIsBinary = /^0b[01]+$/i;
48
+
49
+ /** Used to detect octal string values. */
50
+ var reIsOctal = /^0o[0-7]+$/i;
51
+
52
+ /** Built-in method references without a dependency on `root`. */
53
+ var freeParseInt = parseInt;
54
+
55
+ /** Detect free variable `global` from Node.js. */
56
+ var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
57
+
58
+ /** Detect free variable `self`. */
59
+ var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self;
60
+
61
+ /** Used as a reference to the global object. */
62
+ var root$1 = freeGlobal$1 || freeSelf$1 || Function('return this')();
63
+
64
+ /** Used for built-in method references. */
65
+ var objectProto$1 = Object.prototype;
66
+
67
+ /**
68
+ * Used to resolve the
69
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
70
+ * of values.
71
+ */
72
+ var objectToString$1 = objectProto$1.toString;
73
+
74
+ /* Built-in method references for those with the same name as other `lodash` methods. */
75
+ var nativeMax = Math.max,
76
+ nativeMin = Math.min;
77
+
78
+ /**
79
+ * Gets the timestamp of the number of milliseconds that have elapsed since
80
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
81
+ *
82
+ * @static
83
+ * @memberOf _
84
+ * @since 2.4.0
85
+ * @category Date
86
+ * @returns {number} Returns the timestamp.
87
+ * @example
88
+ *
89
+ * _.defer(function(stamp) {
90
+ * console.log(_.now() - stamp);
91
+ * }, _.now());
92
+ * // => Logs the number of milliseconds it took for the deferred invocation.
93
+ */
94
+ var now = function() {
95
+ return root$1.Date.now();
96
+ };
97
+
98
+ /**
99
+ * Creates a debounced function that delays invoking `func` until after `wait`
100
+ * milliseconds have elapsed since the last time the debounced function was
101
+ * invoked. The debounced function comes with a `cancel` method to cancel
102
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
103
+ * Provide `options` to indicate whether `func` should be invoked on the
104
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
105
+ * with the last arguments provided to the debounced function. Subsequent
106
+ * calls to the debounced function return the result of the last `func`
107
+ * invocation.
108
+ *
109
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
110
+ * invoked on the trailing edge of the timeout only if the debounced function
111
+ * is invoked more than once during the `wait` timeout.
112
+ *
113
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
114
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
115
+ *
116
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
117
+ * for details over the differences between `_.debounce` and `_.throttle`.
118
+ *
119
+ * @static
120
+ * @memberOf _
121
+ * @since 0.1.0
122
+ * @category Function
123
+ * @param {Function} func The function to debounce.
124
+ * @param {number} [wait=0] The number of milliseconds to delay.
125
+ * @param {Object} [options={}] The options object.
126
+ * @param {boolean} [options.leading=false]
127
+ * Specify invoking on the leading edge of the timeout.
128
+ * @param {number} [options.maxWait]
129
+ * The maximum time `func` is allowed to be delayed before it's invoked.
130
+ * @param {boolean} [options.trailing=true]
131
+ * Specify invoking on the trailing edge of the timeout.
132
+ * @returns {Function} Returns the new debounced function.
133
+ * @example
134
+ *
135
+ * // Avoid costly calculations while the window size is in flux.
136
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
137
+ *
138
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
139
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
140
+ * 'leading': true,
141
+ * 'trailing': false
142
+ * }));
143
+ *
144
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
145
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
146
+ * var source = new EventSource('/stream');
147
+ * jQuery(source).on('message', debounced);
148
+ *
149
+ * // Cancel the trailing debounced invocation.
150
+ * jQuery(window).on('popstate', debounced.cancel);
151
+ */
152
+ function debounce(func, wait, options) {
153
+ var lastArgs,
154
+ lastThis,
155
+ maxWait,
156
+ result,
157
+ timerId,
158
+ lastCallTime,
159
+ lastInvokeTime = 0,
160
+ leading = false,
161
+ maxing = false,
162
+ trailing = true;
163
+
164
+ if (typeof func != 'function') {
165
+ throw new TypeError(FUNC_ERROR_TEXT);
166
+ }
167
+ wait = toNumber(wait) || 0;
168
+ if (isObject(options)) {
169
+ leading = !!options.leading;
170
+ maxing = 'maxWait' in options;
171
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
172
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
173
+ }
174
+
175
+ function invokeFunc(time) {
176
+ var args = lastArgs,
177
+ thisArg = lastThis;
178
+
179
+ lastArgs = lastThis = undefined;
180
+ lastInvokeTime = time;
181
+ result = func.apply(thisArg, args);
182
+ return result;
183
+ }
184
+
185
+ function leadingEdge(time) {
186
+ // Reset any `maxWait` timer.
187
+ lastInvokeTime = time;
188
+ // Start the timer for the trailing edge.
189
+ timerId = setTimeout(timerExpired, wait);
190
+ // Invoke the leading edge.
191
+ return leading ? invokeFunc(time) : result;
192
+ }
193
+
194
+ function remainingWait(time) {
195
+ var timeSinceLastCall = time - lastCallTime,
196
+ timeSinceLastInvoke = time - lastInvokeTime,
197
+ result = wait - timeSinceLastCall;
198
+
199
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
200
+ }
201
+
202
+ function shouldInvoke(time) {
203
+ var timeSinceLastCall = time - lastCallTime,
204
+ timeSinceLastInvoke = time - lastInvokeTime;
205
+
206
+ // Either this is the first call, activity has stopped and we're at the
207
+ // trailing edge, the system time has gone backwards and we're treating
208
+ // it as the trailing edge, or we've hit the `maxWait` limit.
209
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
210
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
211
+ }
212
+
213
+ function timerExpired() {
214
+ var time = now();
215
+ if (shouldInvoke(time)) {
216
+ return trailingEdge(time);
217
+ }
218
+ // Restart the timer.
219
+ timerId = setTimeout(timerExpired, remainingWait(time));
220
+ }
221
+
222
+ function trailingEdge(time) {
223
+ timerId = undefined;
224
+
225
+ // Only invoke if we have `lastArgs` which means `func` has been
226
+ // debounced at least once.
227
+ if (trailing && lastArgs) {
228
+ return invokeFunc(time);
229
+ }
230
+ lastArgs = lastThis = undefined;
231
+ return result;
232
+ }
233
+
234
+ function cancel() {
235
+ if (timerId !== undefined) {
236
+ clearTimeout(timerId);
237
+ }
238
+ lastInvokeTime = 0;
239
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
240
+ }
241
+
242
+ function flush() {
243
+ return timerId === undefined ? result : trailingEdge(now());
244
+ }
245
+
246
+ function debounced() {
247
+ var time = now(),
248
+ isInvoking = shouldInvoke(time);
249
+
250
+ lastArgs = arguments;
251
+ lastThis = this;
252
+ lastCallTime = time;
253
+
254
+ if (isInvoking) {
255
+ if (timerId === undefined) {
256
+ return leadingEdge(lastCallTime);
257
+ }
258
+ if (maxing) {
259
+ // Handle invocations in a tight loop.
260
+ timerId = setTimeout(timerExpired, wait);
261
+ return invokeFunc(lastCallTime);
262
+ }
263
+ }
264
+ if (timerId === undefined) {
265
+ timerId = setTimeout(timerExpired, wait);
266
+ }
267
+ return result;
268
+ }
269
+ debounced.cancel = cancel;
270
+ debounced.flush = flush;
271
+ return debounced;
272
+ }
273
+
274
+ /**
275
+ * Creates a throttled function that only invokes `func` at most once per
276
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
277
+ * method to cancel delayed `func` invocations and a `flush` method to
278
+ * immediately invoke them. Provide `options` to indicate whether `func`
279
+ * should be invoked on the leading and/or trailing edge of the `wait`
280
+ * timeout. The `func` is invoked with the last arguments provided to the
281
+ * throttled function. Subsequent calls to the throttled function return the
282
+ * result of the last `func` invocation.
283
+ *
284
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
285
+ * invoked on the trailing edge of the timeout only if the throttled function
286
+ * is invoked more than once during the `wait` timeout.
287
+ *
288
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
289
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
290
+ *
291
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
292
+ * for details over the differences between `_.throttle` and `_.debounce`.
293
+ *
294
+ * @static
295
+ * @memberOf _
296
+ * @since 0.1.0
297
+ * @category Function
298
+ * @param {Function} func The function to throttle.
299
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
300
+ * @param {Object} [options={}] The options object.
301
+ * @param {boolean} [options.leading=true]
302
+ * Specify invoking on the leading edge of the timeout.
303
+ * @param {boolean} [options.trailing=true]
304
+ * Specify invoking on the trailing edge of the timeout.
305
+ * @returns {Function} Returns the new throttled function.
306
+ * @example
307
+ *
308
+ * // Avoid excessively updating the position while scrolling.
309
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
310
+ *
311
+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
312
+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
313
+ * jQuery(element).on('click', throttled);
314
+ *
315
+ * // Cancel the trailing throttled invocation.
316
+ * jQuery(window).on('popstate', throttled.cancel);
317
+ */
318
+ function throttle$1(func, wait, options) {
319
+ var leading = true,
320
+ trailing = true;
321
+
322
+ if (typeof func != 'function') {
323
+ throw new TypeError(FUNC_ERROR_TEXT);
324
+ }
325
+ if (isObject(options)) {
326
+ leading = 'leading' in options ? !!options.leading : leading;
327
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
328
+ }
329
+ return debounce(func, wait, {
330
+ 'leading': leading,
331
+ 'maxWait': wait,
332
+ 'trailing': trailing
333
+ });
334
+ }
335
+
336
+ /**
337
+ * Checks if `value` is the
338
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
339
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
340
+ *
341
+ * @static
342
+ * @memberOf _
343
+ * @since 0.1.0
344
+ * @category Lang
345
+ * @param {*} value The value to check.
346
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
347
+ * @example
348
+ *
349
+ * _.isObject({});
350
+ * // => true
351
+ *
352
+ * _.isObject([1, 2, 3]);
353
+ * // => true
354
+ *
355
+ * _.isObject(_.noop);
356
+ * // => true
357
+ *
358
+ * _.isObject(null);
359
+ * // => false
360
+ */
361
+ function isObject(value) {
362
+ var type = typeof value;
363
+ return !!value && (type == 'object' || type == 'function');
364
+ }
365
+
366
+ /**
367
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
368
+ * and has a `typeof` result of "object".
369
+ *
370
+ * @static
371
+ * @memberOf _
372
+ * @since 4.0.0
373
+ * @category Lang
374
+ * @param {*} value The value to check.
375
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
376
+ * @example
377
+ *
378
+ * _.isObjectLike({});
379
+ * // => true
380
+ *
381
+ * _.isObjectLike([1, 2, 3]);
382
+ * // => true
383
+ *
384
+ * _.isObjectLike(_.noop);
385
+ * // => false
386
+ *
387
+ * _.isObjectLike(null);
388
+ * // => false
389
+ */
390
+ function isObjectLike$1(value) {
391
+ return !!value && typeof value == 'object';
392
+ }
393
+
394
+ /**
395
+ * Checks if `value` is classified as a `Symbol` primitive or object.
396
+ *
397
+ * @static
398
+ * @memberOf _
399
+ * @since 4.0.0
400
+ * @category Lang
401
+ * @param {*} value The value to check.
402
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
403
+ * @example
404
+ *
405
+ * _.isSymbol(Symbol.iterator);
406
+ * // => true
407
+ *
408
+ * _.isSymbol('abc');
409
+ * // => false
410
+ */
411
+ function isSymbol$1(value) {
412
+ return typeof value == 'symbol' ||
413
+ (isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1);
414
+ }
415
+
416
+ /**
417
+ * Converts `value` to a number.
418
+ *
419
+ * @static
420
+ * @memberOf _
421
+ * @since 4.0.0
422
+ * @category Lang
423
+ * @param {*} value The value to process.
424
+ * @returns {number} Returns the number.
425
+ * @example
426
+ *
427
+ * _.toNumber(3.2);
428
+ * // => 3.2
429
+ *
430
+ * _.toNumber(Number.MIN_VALUE);
431
+ * // => 5e-324
432
+ *
433
+ * _.toNumber(Infinity);
434
+ * // => Infinity
435
+ *
436
+ * _.toNumber('3.2');
437
+ * // => 3.2
438
+ */
439
+ function toNumber(value) {
440
+ if (typeof value == 'number') {
441
+ return value;
442
+ }
443
+ if (isSymbol$1(value)) {
444
+ return NAN;
445
+ }
446
+ if (isObject(value)) {
447
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
448
+ value = isObject(other) ? (other + '') : other;
449
+ }
450
+ if (typeof value != 'string') {
451
+ return value === 0 ? value : +value;
452
+ }
453
+ value = value.replace(reTrim, '');
454
+ var isBinary = reIsBinary.test(value);
455
+ return (isBinary || reIsOctal.test(value))
456
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
457
+ : (reIsBadHex.test(value) ? NAN : +value);
458
+ }
459
+
460
+ var lodash_throttle = throttle$1;
461
+
462
+ /**
463
+ * lodash (Custom Build) <https://lodash.com/>
464
+ * Build: `lodash modularize exports="npm" -o ./`
465
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
466
+ * Released under MIT license <https://lodash.com/license>
467
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
468
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
469
+ */
470
+
471
+ /** Used as references for various `Number` constants. */
472
+ var INFINITY = 1 / 0;
473
+
474
+ /** `Object#toString` result references. */
475
+ var symbolTag = '[object Symbol]';
476
+
477
+ /** Used to match words composed of alphanumeric characters. */
478
+ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
479
+
480
+ /** Used to match Latin Unicode letters (excluding mathematical operators). */
481
+ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
482
+
483
+ /** Used to compose unicode character classes. */
484
+ var rsAstralRange = '\\ud800-\\udfff',
485
+ rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
486
+ rsComboSymbolsRange = '\\u20d0-\\u20f0',
487
+ rsDingbatRange = '\\u2700-\\u27bf',
488
+ rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
489
+ rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
490
+ rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
491
+ rsPunctuationRange = '\\u2000-\\u206f',
492
+ rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
493
+ rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
494
+ rsVarRange = '\\ufe0e\\ufe0f',
495
+ rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
496
+
497
+ /** Used to compose unicode capture groups. */
498
+ var rsApos = "['\u2019]",
499
+ rsBreak = '[' + rsBreakRange + ']',
500
+ rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
501
+ rsDigits = '\\d+',
502
+ rsDingbat = '[' + rsDingbatRange + ']',
503
+ rsLower = '[' + rsLowerRange + ']',
504
+ rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
505
+ rsFitz = '\\ud83c[\\udffb-\\udfff]',
506
+ rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
507
+ rsNonAstral = '[^' + rsAstralRange + ']',
508
+ rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
509
+ rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
510
+ rsUpper = '[' + rsUpperRange + ']',
511
+ rsZWJ = '\\u200d';
512
+
513
+ /** Used to compose unicode regexes. */
514
+ var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
515
+ rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
516
+ rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
517
+ rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
518
+ reOptMod = rsModifier + '?',
519
+ rsOptVar = '[' + rsVarRange + ']?',
520
+ rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
521
+ rsSeq = rsOptVar + reOptMod + rsOptJoin,
522
+ rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
523
+
524
+ /** Used to match apostrophes. */
525
+ var reApos = RegExp(rsApos, 'g');
526
+
527
+ /**
528
+ * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
529
+ * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
530
+ */
531
+ var reComboMark = RegExp(rsCombo, 'g');
532
+
533
+ /** Used to match complex or compound words. */
534
+ var reUnicodeWord = RegExp([
535
+ rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
536
+ rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
537
+ rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
538
+ rsUpper + '+' + rsOptUpperContr,
539
+ rsDigits,
540
+ rsEmoji
541
+ ].join('|'), 'g');
542
+
543
+ /** Used to detect strings that need a more robust regexp to match words. */
544
+ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
545
+
546
+ /** Used to map Latin Unicode letters to basic Latin letters. */
547
+ var deburredLetters = {
548
+ // Latin-1 Supplement block.
549
+ '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
550
+ '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
551
+ '\xc7': 'C', '\xe7': 'c',
552
+ '\xd0': 'D', '\xf0': 'd',
553
+ '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
554
+ '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
555
+ '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
556
+ '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
557
+ '\xd1': 'N', '\xf1': 'n',
558
+ '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
559
+ '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
560
+ '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
561
+ '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
562
+ '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
563
+ '\xc6': 'Ae', '\xe6': 'ae',
564
+ '\xde': 'Th', '\xfe': 'th',
565
+ '\xdf': 'ss',
566
+ // Latin Extended-A block.
567
+ '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
568
+ '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
569
+ '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
570
+ '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
571
+ '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
572
+ '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
573
+ '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
574
+ '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
575
+ '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
576
+ '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
577
+ '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
578
+ '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
579
+ '\u0134': 'J', '\u0135': 'j',
580
+ '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
581
+ '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
582
+ '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
583
+ '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
584
+ '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
585
+ '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
586
+ '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
587
+ '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
588
+ '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
589
+ '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
590
+ '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
591
+ '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
592
+ '\u0163': 't', '\u0165': 't', '\u0167': 't',
593
+ '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
594
+ '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
595
+ '\u0174': 'W', '\u0175': 'w',
596
+ '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
597
+ '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
598
+ '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
599
+ '\u0132': 'IJ', '\u0133': 'ij',
600
+ '\u0152': 'Oe', '\u0153': 'oe',
601
+ '\u0149': "'n", '\u017f': 'ss'
602
+ };
603
+
604
+ /** Detect free variable `global` from Node.js. */
605
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
606
+
607
+ /** Detect free variable `self`. */
608
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
609
+
610
+ /** Used as a reference to the global object. */
611
+ var root = freeGlobal || freeSelf || Function('return this')();
612
+
613
+ /**
614
+ * A specialized version of `_.reduce` for arrays without support for
615
+ * iteratee shorthands.
616
+ *
617
+ * @private
618
+ * @param {Array} [array] The array to iterate over.
619
+ * @param {Function} iteratee The function invoked per iteration.
620
+ * @param {*} [accumulator] The initial value.
621
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
622
+ * the initial value.
623
+ * @returns {*} Returns the accumulated value.
624
+ */
625
+ function arrayReduce(array, iteratee, accumulator, initAccum) {
626
+ var index = -1,
627
+ length = array ? array.length : 0;
628
+
629
+ if (initAccum && length) {
630
+ accumulator = array[++index];
631
+ }
632
+ while (++index < length) {
633
+ accumulator = iteratee(accumulator, array[index], index, array);
634
+ }
635
+ return accumulator;
636
+ }
637
+
638
+ /**
639
+ * Splits an ASCII `string` into an array of its words.
640
+ *
641
+ * @private
642
+ * @param {string} The string to inspect.
643
+ * @returns {Array} Returns the words of `string`.
644
+ */
645
+ function asciiWords(string) {
646
+ return string.match(reAsciiWord) || [];
647
+ }
648
+
649
+ /**
650
+ * The base implementation of `_.propertyOf` without support for deep paths.
651
+ *
652
+ * @private
653
+ * @param {Object} object The object to query.
654
+ * @returns {Function} Returns the new accessor function.
655
+ */
656
+ function basePropertyOf(object) {
657
+ return function(key) {
658
+ return object == null ? undefined : object[key];
659
+ };
660
+ }
661
+
662
+ /**
663
+ * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
664
+ * letters to basic Latin letters.
665
+ *
666
+ * @private
667
+ * @param {string} letter The matched letter to deburr.
668
+ * @returns {string} Returns the deburred letter.
669
+ */
670
+ var deburrLetter = basePropertyOf(deburredLetters);
671
+
672
+ /**
673
+ * Checks if `string` contains a word composed of Unicode symbols.
674
+ *
675
+ * @private
676
+ * @param {string} string The string to inspect.
677
+ * @returns {boolean} Returns `true` if a word is found, else `false`.
678
+ */
679
+ function hasUnicodeWord(string) {
680
+ return reHasUnicodeWord.test(string);
681
+ }
682
+
683
+ /**
684
+ * Splits a Unicode `string` into an array of its words.
685
+ *
686
+ * @private
687
+ * @param {string} The string to inspect.
688
+ * @returns {Array} Returns the words of `string`.
689
+ */
690
+ function unicodeWords(string) {
691
+ return string.match(reUnicodeWord) || [];
692
+ }
693
+
694
+ /** Used for built-in method references. */
695
+ var objectProto = Object.prototype;
696
+
697
+ /**
698
+ * Used to resolve the
699
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
700
+ * of values.
701
+ */
702
+ var objectToString = objectProto.toString;
703
+
704
+ /** Built-in value references. */
705
+ var Symbol = root.Symbol;
706
+
707
+ /** Used to convert symbols to primitives and strings. */
708
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
709
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
710
+
711
+ /**
712
+ * The base implementation of `_.toString` which doesn't convert nullish
713
+ * values to empty strings.
714
+ *
715
+ * @private
716
+ * @param {*} value The value to process.
717
+ * @returns {string} Returns the string.
718
+ */
719
+ function baseToString(value) {
720
+ // Exit early for strings to avoid a performance hit in some environments.
721
+ if (typeof value == 'string') {
722
+ return value;
723
+ }
724
+ if (isSymbol(value)) {
725
+ return symbolToString ? symbolToString.call(value) : '';
726
+ }
727
+ var result = (value + '');
728
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
729
+ }
730
+
731
+ /**
732
+ * Creates a function like `_.camelCase`.
733
+ *
734
+ * @private
735
+ * @param {Function} callback The function to combine each word.
736
+ * @returns {Function} Returns the new compounder function.
737
+ */
738
+ function createCompounder(callback) {
739
+ return function(string) {
740
+ return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
741
+ };
742
+ }
743
+
744
+ /**
745
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
746
+ * and has a `typeof` result of "object".
747
+ *
748
+ * @static
749
+ * @memberOf _
750
+ * @since 4.0.0
751
+ * @category Lang
752
+ * @param {*} value The value to check.
753
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
754
+ * @example
755
+ *
756
+ * _.isObjectLike({});
757
+ * // => true
758
+ *
759
+ * _.isObjectLike([1, 2, 3]);
760
+ * // => true
761
+ *
762
+ * _.isObjectLike(_.noop);
763
+ * // => false
764
+ *
765
+ * _.isObjectLike(null);
766
+ * // => false
767
+ */
768
+ function isObjectLike(value) {
769
+ return !!value && typeof value == 'object';
770
+ }
771
+
772
+ /**
773
+ * Checks if `value` is classified as a `Symbol` primitive or object.
774
+ *
775
+ * @static
776
+ * @memberOf _
777
+ * @since 4.0.0
778
+ * @category Lang
779
+ * @param {*} value The value to check.
780
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
781
+ * @example
782
+ *
783
+ * _.isSymbol(Symbol.iterator);
784
+ * // => true
785
+ *
786
+ * _.isSymbol('abc');
787
+ * // => false
788
+ */
789
+ function isSymbol(value) {
790
+ return typeof value == 'symbol' ||
791
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
792
+ }
793
+
794
+ /**
795
+ * Converts `value` to a string. An empty string is returned for `null`
796
+ * and `undefined` values. The sign of `-0` is preserved.
797
+ *
798
+ * @static
799
+ * @memberOf _
800
+ * @since 4.0.0
801
+ * @category Lang
802
+ * @param {*} value The value to process.
803
+ * @returns {string} Returns the string.
804
+ * @example
805
+ *
806
+ * _.toString(null);
807
+ * // => ''
808
+ *
809
+ * _.toString(-0);
810
+ * // => '-0'
811
+ *
812
+ * _.toString([1, 2, 3]);
813
+ * // => '1,2,3'
814
+ */
815
+ function toString(value) {
816
+ return value == null ? '' : baseToString(value);
817
+ }
818
+
819
+ /**
820
+ * Deburrs `string` by converting
821
+ * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
822
+ * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
823
+ * letters to basic Latin letters and removing
824
+ * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
825
+ *
826
+ * @static
827
+ * @memberOf _
828
+ * @since 3.0.0
829
+ * @category String
830
+ * @param {string} [string=''] The string to deburr.
831
+ * @returns {string} Returns the deburred string.
832
+ * @example
833
+ *
834
+ * _.deburr('déjà vu');
835
+ * // => 'deja vu'
836
+ */
837
+ function deburr(string) {
838
+ string = toString(string);
839
+ return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
840
+ }
841
+
842
+ /**
843
+ * Converts `string` to
844
+ * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
845
+ *
846
+ * @static
847
+ * @memberOf _
848
+ * @since 3.0.0
849
+ * @category String
850
+ * @param {string} [string=''] The string to convert.
851
+ * @returns {string} Returns the kebab cased string.
852
+ * @example
853
+ *
854
+ * _.kebabCase('Foo Bar');
855
+ * // => 'foo-bar'
856
+ *
857
+ * _.kebabCase('fooBar');
858
+ * // => 'foo-bar'
859
+ *
860
+ * _.kebabCase('__FOO_BAR__');
861
+ * // => 'foo-bar'
862
+ */
863
+ var kebabCase$1 = createCompounder(function(result, word, index) {
864
+ return result + (index ? '-' : '') + word.toLowerCase();
865
+ });
866
+
867
+ /**
868
+ * Splits `string` into an array of its words.
869
+ *
870
+ * @static
871
+ * @memberOf _
872
+ * @since 3.0.0
873
+ * @category String
874
+ * @param {string} [string=''] The string to inspect.
875
+ * @param {RegExp|string} [pattern] The pattern to match words.
876
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
877
+ * @returns {Array} Returns the words of `string`.
878
+ * @example
879
+ *
880
+ * _.words('fred, barney, & pebbles');
881
+ * // => ['fred', 'barney', 'pebbles']
882
+ *
883
+ * _.words('fred, barney, & pebbles', /[^, ]+/g);
884
+ * // => ['fred', 'barney', '&', 'pebbles']
885
+ */
886
+ function words(string, pattern, guard) {
887
+ string = toString(string);
888
+ pattern = guard ? undefined : pattern;
889
+
890
+ if (pattern === undefined) {
891
+ return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
892
+ }
893
+ return string.match(pattern) || [];
894
+ }
895
+
896
+ var lodash_kebabcase = kebabCase$1;
897
+
898
+ var commands = {};
899
+
900
+ var actions = {};
901
+
902
+ (function (exports) {
903
+ var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
904
+ var extendStatics = function (d, b) {
905
+ extendStatics = Object.setPrototypeOf ||
906
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
907
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
908
+ return extendStatics(d, b);
909
+ };
910
+ return function (d, b) {
911
+ if (typeof b !== "function" && b !== null)
912
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
913
+ extendStatics(d, b);
914
+ function __() { this.constructor = d; }
915
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
916
+ };
917
+ })();
918
+ Object.defineProperty(exports, "__esModule", { value: true });
919
+ 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;
920
+ var monaco = require$$0;
921
+ exports.SOURCE = 'extension.emacs';
922
+ function moveCursor(editor, hasSelection, direction, unit, repeat) {
923
+ if (repeat === void 0) { repeat = 1; }
924
+ var action = "cursor".concat(unit === 'word' ? 'Word' : '').concat(direction).concat(hasSelection ? 'Select' : '');
925
+ for (var i = 0; i < repeat; i++) {
926
+ editor.trigger(exports.SOURCE, action, null);
927
+ }
928
+ }
929
+ var BaseAction = (function () {
930
+ function BaseAction() {
931
+ this.description = '';
932
+ }
933
+ return BaseAction;
934
+ }());
935
+ exports.BaseAction = BaseAction;
936
+ var TriggerAction = (function (_super) {
937
+ __extends(TriggerAction, _super);
938
+ function TriggerAction(trigger) {
939
+ var _this = _super.call(this) || this;
940
+ _this.trigger = trigger;
941
+ return _this;
942
+ }
943
+ TriggerAction.prototype.run = function (editor) {
944
+ editor.trigger(exports.SOURCE, this.trigger, {});
945
+ };
946
+ return TriggerAction;
947
+ }(BaseAction));
948
+ var KillSelection = (function (_super) {
949
+ __extends(KillSelection, _super);
950
+ function KillSelection() {
951
+ return _super !== null && _super.apply(this, arguments) || this;
952
+ }
953
+ KillSelection.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
954
+ var selections = editor.getSelections();
955
+ if (!selections.length) {
956
+ return;
957
+ }
958
+ selections.forEach(function (sel) {
959
+ var text = editor.getModel().getValueInRange(sel);
960
+ ext.state.addToRing(text);
961
+ editor.executeEdits(exports.SOURCE, [{
962
+ range: sel,
963
+ text: '',
964
+ }]);
965
+ });
966
+ };
967
+ return KillSelection;
968
+ }(BaseAction));
969
+ exports.KillSelection = KillSelection;
970
+ var KillLines = (function (_super) {
971
+ __extends(KillLines, _super);
972
+ function KillLines() {
973
+ return _super !== null && _super.apply(this, arguments) || this;
974
+ }
975
+ KillLines.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
976
+ ext.selectionMode = false;
977
+ var model = editor.getModel();
978
+ var pos = ext.getCursorAnchor();
979
+ var endPos;
980
+ if (repeat === 1) {
981
+ var lineLength = model.getLineLength(pos.lineNumber);
982
+ var isAtEnd = pos.column === lineLength + 1;
983
+ if (!lineLength || isAtEnd) {
984
+ if (repeatedTrigger) {
985
+ ext.state.growRingTop(model.getEOL());
986
+ }
987
+ else {
988
+ ext.state.addToRing(model.getEOL());
989
+ }
990
+ editor.trigger(exports.SOURCE, 'deleteAllRight', null);
991
+ return;
992
+ }
993
+ else {
994
+ endPos = new monaco.Position(pos.lineNumber, model.getLineLength(pos.lineNumber) + 1);
995
+ }
996
+ }
997
+ else {
998
+ var totalLines = model.getLineCount();
999
+ var endLine = (pos.lineNumber + repeat) > totalLines ? totalLines : (pos.lineNumber + repeat);
1000
+ endPos = new monaco.Position(endLine, model.getLineLength(endLine) + 1);
1001
+ }
1002
+ var range = monaco.Range.fromPositions(pos, endPos);
1003
+ if (repeatedTrigger) {
1004
+ ext.state.growRingTop(model.getValueInRange(range));
1005
+ }
1006
+ else {
1007
+ ext.state.addToRing(model.getValueInRange(range));
1008
+ }
1009
+ editor.executeEdits(exports.SOURCE, [{
1010
+ range: range,
1011
+ text: '',
1012
+ }]);
1013
+ editor.setSelection(monaco.Selection.fromPositions(pos, pos));
1014
+ };
1015
+ return KillLines;
1016
+ }(BaseAction));
1017
+ exports.KillLines = KillLines;
1018
+ var InsertLineBelow = (function (_super) {
1019
+ __extends(InsertLineBelow, _super);
1020
+ function InsertLineBelow() {
1021
+ return _super !== null && _super.apply(this, arguments) || this;
1022
+ }
1023
+ InsertLineBelow.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1024
+ var pos = editor.getPosition();
1025
+ editor.trigger(exports.SOURCE, 'editor.action.insertLineAfter', null);
1026
+ editor.setPosition(pos);
1027
+ };
1028
+ return InsertLineBelow;
1029
+ }(BaseAction));
1030
+ exports.InsertLineBelow = InsertLineBelow;
1031
+ var InsertLineAfter = (function (_super) {
1032
+ __extends(InsertLineAfter, _super);
1033
+ function InsertLineAfter() {
1034
+ return _super !== null && _super.apply(this, arguments) || this;
1035
+ }
1036
+ InsertLineAfter.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1037
+ var text = '';
1038
+ for (var i = 0; i < repeat; i++) {
1039
+ text += editor.getModel().getEOL();
1040
+ }
1041
+ ext.selectionMode = false;
1042
+ var pos = ext.getCursorAnchor();
1043
+ editor.executeEdits(exports.SOURCE, [{
1044
+ range: monaco.Range.fromPositions(pos),
1045
+ text: text,
1046
+ forceMoveMarkers: true,
1047
+ }]);
1048
+ };
1049
+ return InsertLineAfter;
1050
+ }(BaseAction));
1051
+ exports.InsertLineAfter = InsertLineAfter;
1052
+ var SetMark = (function (_super) {
1053
+ __extends(SetMark, _super);
1054
+ function SetMark() {
1055
+ return _super !== null && _super.apply(this, arguments) || this;
1056
+ }
1057
+ SetMark.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1058
+ ext.selectionMode;
1059
+ var sel = editor.getSelection();
1060
+ var selEmpty = sel.isEmpty();
1061
+ if (!selEmpty) {
1062
+ var dir = sel.getDirection();
1063
+ if (dir === monaco.SelectionDirection.LTR) {
1064
+ editor.setSelection(monaco.Selection.fromPositions(sel.getEndPosition(), sel.getEndPosition()));
1065
+ }
1066
+ else {
1067
+ editor.setSelection(monaco.Selection.fromPositions(sel.getStartPosition(), sel.getStartPosition()));
1068
+ }
1069
+ }
1070
+ if (selEmpty && ext.selectionMode) {
1071
+ ext.selectionMode = false;
1072
+ }
1073
+ else {
1074
+ ext.selectionMode = true;
1075
+ }
1076
+ };
1077
+ return SetMark;
1078
+ }(BaseAction));
1079
+ exports.SetMark = SetMark;
1080
+ var MoveCursorAction = (function (_super) {
1081
+ __extends(MoveCursorAction, _super);
1082
+ function MoveCursorAction() {
1083
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1084
+ _this.unit = 'char';
1085
+ return _this;
1086
+ }
1087
+ MoveCursorAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1088
+ moveCursor(editor, ext.selectionMode, this.direction, this.unit, repeat);
1089
+ };
1090
+ return MoveCursorAction;
1091
+ }(BaseAction));
1092
+ var MoveCursorUp = (function (_super) {
1093
+ __extends(MoveCursorUp, _super);
1094
+ function MoveCursorUp() {
1095
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1096
+ _this.direction = 'Up';
1097
+ return _this;
1098
+ }
1099
+ return MoveCursorUp;
1100
+ }(MoveCursorAction));
1101
+ exports.MoveCursorUp = MoveCursorUp;
1102
+ var MoveCursorDown = (function (_super) {
1103
+ __extends(MoveCursorDown, _super);
1104
+ function MoveCursorDown() {
1105
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1106
+ _this.direction = 'Down';
1107
+ return _this;
1108
+ }
1109
+ return MoveCursorDown;
1110
+ }(MoveCursorAction));
1111
+ exports.MoveCursorDown = MoveCursorDown;
1112
+ var MoveCursorLeft = (function (_super) {
1113
+ __extends(MoveCursorLeft, _super);
1114
+ function MoveCursorLeft() {
1115
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1116
+ _this.direction = 'Left';
1117
+ return _this;
1118
+ }
1119
+ return MoveCursorLeft;
1120
+ }(MoveCursorAction));
1121
+ exports.MoveCursorLeft = MoveCursorLeft;
1122
+ var MoveCursorRight = (function (_super) {
1123
+ __extends(MoveCursorRight, _super);
1124
+ function MoveCursorRight() {
1125
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1126
+ _this.direction = 'Right';
1127
+ return _this;
1128
+ }
1129
+ return MoveCursorRight;
1130
+ }(MoveCursorAction));
1131
+ exports.MoveCursorRight = MoveCursorRight;
1132
+ var MoveCursorToLineEnd = (function (_super) {
1133
+ __extends(MoveCursorToLineEnd, _super);
1134
+ function MoveCursorToLineEnd() {
1135
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1136
+ _this.direction = 'End';
1137
+ return _this;
1138
+ }
1139
+ return MoveCursorToLineEnd;
1140
+ }(MoveCursorAction));
1141
+ exports.MoveCursorToLineEnd = MoveCursorToLineEnd;
1142
+ var MoveCursorToLineStart = (function (_super) {
1143
+ __extends(MoveCursorToLineStart, _super);
1144
+ function MoveCursorToLineStart() {
1145
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1146
+ _this.direction = 'Home';
1147
+ return _this;
1148
+ }
1149
+ return MoveCursorToLineStart;
1150
+ }(MoveCursorAction));
1151
+ exports.MoveCursorToLineStart = MoveCursorToLineStart;
1152
+ var MoveCursorWordRight = (function (_super) {
1153
+ __extends(MoveCursorWordRight, _super);
1154
+ function MoveCursorWordRight() {
1155
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1156
+ _this.unit = 'word';
1157
+ return _this;
1158
+ }
1159
+ return MoveCursorWordRight;
1160
+ }(MoveCursorRight));
1161
+ exports.MoveCursorWordRight = MoveCursorWordRight;
1162
+ var MoveCursorWordLeft = (function (_super) {
1163
+ __extends(MoveCursorWordLeft, _super);
1164
+ function MoveCursorWordLeft() {
1165
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1166
+ _this.unit = 'word';
1167
+ return _this;
1168
+ }
1169
+ return MoveCursorWordLeft;
1170
+ }(MoveCursorLeft));
1171
+ exports.MoveCursorWordLeft = MoveCursorWordLeft;
1172
+ var MoveCursorBottom = (function (_super) {
1173
+ __extends(MoveCursorBottom, _super);
1174
+ function MoveCursorBottom() {
1175
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1176
+ _this.direction = 'Bottom';
1177
+ return _this;
1178
+ }
1179
+ return MoveCursorBottom;
1180
+ }(MoveCursorAction));
1181
+ exports.MoveCursorBottom = MoveCursorBottom;
1182
+ var MoveCursorTop = (function (_super) {
1183
+ __extends(MoveCursorTop, _super);
1184
+ function MoveCursorTop() {
1185
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1186
+ _this.direction = 'Top';
1187
+ return _this;
1188
+ }
1189
+ return MoveCursorTop;
1190
+ }(MoveCursorAction));
1191
+ exports.MoveCursorTop = MoveCursorTop;
1192
+ var KeyBoardQuit = (function (_super) {
1193
+ __extends(KeyBoardQuit, _super);
1194
+ function KeyBoardQuit() {
1195
+ return _super !== null && _super.apply(this, arguments) || this;
1196
+ }
1197
+ KeyBoardQuit.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1198
+ ext.selectionMode = false;
1199
+ ext.clearState();
1200
+ editor.setPosition(editor.getPosition());
1201
+ };
1202
+ return KeyBoardQuit;
1203
+ }(BaseAction));
1204
+ exports.KeyBoardQuit = KeyBoardQuit;
1205
+ var HistoryAction = (function (_super) {
1206
+ __extends(HistoryAction, _super);
1207
+ function HistoryAction() {
1208
+ return _super !== null && _super.apply(this, arguments) || this;
1209
+ }
1210
+ HistoryAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1211
+ for (var i = 0; i < repeat; i++) {
1212
+ editor.trigger(exports.SOURCE, this.action, null);
1213
+ }
1214
+ };
1215
+ return HistoryAction;
1216
+ }(BaseAction));
1217
+ var UndoAction = (function (_super) {
1218
+ __extends(UndoAction, _super);
1219
+ function UndoAction() {
1220
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1221
+ _this.action = 'undo';
1222
+ return _this;
1223
+ }
1224
+ return UndoAction;
1225
+ }(HistoryAction));
1226
+ exports.UndoAction = UndoAction;
1227
+ var RedoAction = (function (_super) {
1228
+ __extends(RedoAction, _super);
1229
+ function RedoAction() {
1230
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1231
+ _this.action = 'redo';
1232
+ return _this;
1233
+ }
1234
+ return RedoAction;
1235
+ }(HistoryAction));
1236
+ exports.RedoAction = RedoAction;
1237
+ var Yank = (function (_super) {
1238
+ __extends(Yank, _super);
1239
+ function Yank() {
1240
+ return _super !== null && _super.apply(this, arguments) || this;
1241
+ }
1242
+ Yank.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1243
+ var text = ext.state.getFromRing(repeat);
1244
+ if (!text) {
1245
+ return;
1246
+ }
1247
+ var pos = editor.getPosition();
1248
+ editor.executeEdits(exports.SOURCE, [{
1249
+ range: monaco.Range.fromPositions(pos, pos),
1250
+ text: text,
1251
+ forceMoveMarkers: true,
1252
+ }]);
1253
+ };
1254
+ return Yank;
1255
+ }(BaseAction));
1256
+ exports.Yank = Yank;
1257
+ var YankSelectionToRing = (function (_super) {
1258
+ __extends(YankSelectionToRing, _super);
1259
+ function YankSelectionToRing() {
1260
+ return _super !== null && _super.apply(this, arguments) || this;
1261
+ }
1262
+ YankSelectionToRing.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1263
+ var sel = editor.getSelection();
1264
+ if (sel.isEmpty()) {
1265
+ return;
1266
+ }
1267
+ ext.state.addToRing(editor.getModel().getValueInRange(sel));
1268
+ ext.selectionMode = false;
1269
+ var pos = ext.getCursorAnchor();
1270
+ editor.setSelection(monaco.Selection.fromPositions(pos, pos));
1271
+ };
1272
+ return YankSelectionToRing;
1273
+ }(BaseAction));
1274
+ exports.YankSelectionToRing = YankSelectionToRing;
1275
+ var YankRotate = (function (_super) {
1276
+ __extends(YankRotate, _super);
1277
+ function YankRotate() {
1278
+ return _super !== null && _super.apply(this, arguments) || this;
1279
+ }
1280
+ YankRotate.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1281
+ var text = ext.state.popFromRing();
1282
+ if (!text) {
1283
+ return;
1284
+ }
1285
+ var pos = ext.getCursorAnchor();
1286
+ editor.executeEdits(exports.SOURCE, [{
1287
+ range: monaco.Range.fromPositions(pos),
1288
+ text: text,
1289
+ forceMoveMarkers: true,
1290
+ }]);
1291
+ };
1292
+ return YankRotate;
1293
+ }(BaseAction));
1294
+ exports.YankRotate = YankRotate;
1295
+ var RevealEditorAction = (function (_super) {
1296
+ __extends(RevealEditorAction, _super);
1297
+ function RevealEditorAction() {
1298
+ return _super !== null && _super.apply(this, arguments) || this;
1299
+ }
1300
+ RevealEditorAction.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1301
+ var sel = editor.getSelection();
1302
+ if (this.revealFunction === 'up') {
1303
+ editor.trigger(exports.SOURCE, 'scrollPageUp', null);
1304
+ }
1305
+ else {
1306
+ editor[this.revealFunction](sel);
1307
+ }
1308
+ };
1309
+ return RevealEditorAction;
1310
+ }(BaseAction));
1311
+ exports.RevealEditorAction = RevealEditorAction;
1312
+ var RevealToTopAction = (function (_super) {
1313
+ __extends(RevealToTopAction, _super);
1314
+ function RevealToTopAction() {
1315
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1316
+ _this.revealFunction = 'revealRangeAtTop';
1317
+ return _this;
1318
+ }
1319
+ return RevealToTopAction;
1320
+ }(RevealEditorAction));
1321
+ exports.RevealToTopAction = RevealToTopAction;
1322
+ var RevealToCenterAction = (function (_super) {
1323
+ __extends(RevealToCenterAction, _super);
1324
+ function RevealToCenterAction() {
1325
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1326
+ _this.revealFunction = 'revealRangeInCenter';
1327
+ return _this;
1328
+ }
1329
+ return RevealToCenterAction;
1330
+ }(RevealEditorAction));
1331
+ exports.RevealToCenterAction = RevealToCenterAction;
1332
+ var RevealToBottomAction = (function (_super) {
1333
+ __extends(RevealToBottomAction, _super);
1334
+ function RevealToBottomAction() {
1335
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1336
+ _this.revealFunction = 'up';
1337
+ return _this;
1338
+ }
1339
+ return RevealToBottomAction;
1340
+ }(RevealEditorAction));
1341
+ exports.RevealToBottomAction = RevealToBottomAction;
1342
+ var InsertTabs = (function (_super) {
1343
+ __extends(InsertTabs, _super);
1344
+ function InsertTabs() {
1345
+ return _super !== null && _super.apply(this, arguments) || this;
1346
+ }
1347
+ InsertTabs.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1348
+ var model = editor.getModel();
1349
+ var _a = model.getOptions(), tabSize = _a.tabSize, insertSpaces = _a.insertSpaces;
1350
+ var text = '';
1351
+ for (var i = 0; i < repeat; i++) {
1352
+ var spaces = '';
1353
+ for (var j = 0; j < tabSize; j++) {
1354
+ spaces += ' ';
1355
+ }
1356
+ text += (insertSpaces ? spaces : '\t');
1357
+ }
1358
+ editor.executeEdits(exports.SOURCE, [{
1359
+ range: editor.getSelection(),
1360
+ text: text,
1361
+ forceMoveMarkers: true,
1362
+ }]);
1363
+ };
1364
+ return InsertTabs;
1365
+ }(BaseAction));
1366
+ exports.InsertTabs = InsertTabs;
1367
+ var RotateCursorOnScreen = (function (_super) {
1368
+ __extends(RotateCursorOnScreen, _super);
1369
+ function RotateCursorOnScreen() {
1370
+ return _super !== null && _super.apply(this, arguments) || this;
1371
+ }
1372
+ RotateCursorOnScreen.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1373
+ var ranges = editor.getVisibleRanges();
1374
+ if (!ranges.length) {
1375
+ return;
1376
+ }
1377
+ var lineMapping = [];
1378
+ for (var i = 0; i < ranges.length; i++) {
1379
+ var range = ranges[i];
1380
+ for (var j = range.startLineNumber; j <= range.endLineNumber; j++) {
1381
+ lineMapping.push(j);
1382
+ }
1383
+ }
1384
+ var pos = editor.getPosition();
1385
+ var expectedCenter = Math.ceil(lineMapping.length / 2);
1386
+ var toMovePos;
1387
+ if (pos.lineNumber === lineMapping[expectedCenter]) {
1388
+ toMovePos = new monaco.Position(lineMapping[0], 1);
1389
+ }
1390
+ else if (pos.lineNumber === lineMapping[0]) {
1391
+ toMovePos = new monaco.Position(lineMapping[lineMapping.length - 1], 1);
1392
+ }
1393
+ else {
1394
+ toMovePos = new monaco.Position(lineMapping[expectedCenter], 1);
1395
+ }
1396
+ editor.setPosition(toMovePos);
1397
+ };
1398
+ return RotateCursorOnScreen;
1399
+ }(BaseAction));
1400
+ exports.RotateCursorOnScreen = RotateCursorOnScreen;
1401
+ var GotoLine = (function (_super) {
1402
+ __extends(GotoLine, _super);
1403
+ function GotoLine() {
1404
+ return _super !== null && _super.apply(this, arguments) || this;
1405
+ }
1406
+ GotoLine.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1407
+ ext.getBasicInput('Goto Line: ').then(function (val) {
1408
+ var line = parseInt(val) || 0;
1409
+ var model = editor.getModel();
1410
+ var totalLines = model.getLineCount();
1411
+ editor.focus();
1412
+ if (!line) {
1413
+ line = 1;
1414
+ }
1415
+ else if (line > totalLines) {
1416
+ line = totalLines;
1417
+ }
1418
+ var pos = new monaco.Position(line, 1);
1419
+ var range;
1420
+ if (!ext.selectionMode) {
1421
+ range = monaco.Selection.fromPositions(pos);
1422
+ }
1423
+ else {
1424
+ var sel = editor.getSelection();
1425
+ if (sel.getDirection() === monaco.SelectionDirection.LTR) {
1426
+ range = monaco.Selection.fromPositions(sel.getStartPosition(), pos);
1427
+ }
1428
+ else {
1429
+ range = monaco.Selection.fromPositions(sel.getEndPosition(), pos);
1430
+ }
1431
+ }
1432
+ editor.setSelection(range);
1433
+ editor.revealRangeInCenter(range);
1434
+ }).catch(function () {
1435
+ editor.focus();
1436
+ });
1437
+ };
1438
+ return GotoLine;
1439
+ }(BaseAction));
1440
+ exports.GotoLine = GotoLine;
1441
+ var InvertSelection = (function (_super) {
1442
+ __extends(InvertSelection, _super);
1443
+ function InvertSelection() {
1444
+ return _super !== null && _super.apply(this, arguments) || this;
1445
+ }
1446
+ InvertSelection.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1447
+ var sel = editor.getSelection();
1448
+ if (sel.isEmpty()) {
1449
+ return;
1450
+ }
1451
+ var newSel;
1452
+ if (sel.getDirection() === monaco.SelectionDirection.LTR) {
1453
+ newSel = monaco.Selection.fromPositions(sel.getEndPosition(), sel.getStartPosition());
1454
+ }
1455
+ else {
1456
+ newSel = monaco.Selection.fromPositions(sel.getStartPosition(), sel.getEndPosition());
1457
+ }
1458
+ editor.setSelection(newSel);
1459
+ };
1460
+ return InvertSelection;
1461
+ }(BaseAction));
1462
+ exports.InvertSelection = InvertSelection;
1463
+ var Search = (function (_super) {
1464
+ __extends(Search, _super);
1465
+ function Search() {
1466
+ return _super.call(this, 'editor.actions.findWithArgs') || this;
1467
+ }
1468
+ return Search;
1469
+ }(TriggerAction));
1470
+ exports.Search = Search;
1471
+ var SearchReplace = (function (_super) {
1472
+ __extends(SearchReplace, _super);
1473
+ function SearchReplace() {
1474
+ return _super.call(this, 'editor.action.startFindReplaceAction') || this;
1475
+ }
1476
+ return SearchReplace;
1477
+ }(TriggerAction));
1478
+ exports.SearchReplace = SearchReplace;
1479
+ var DeleteLines = (function (_super) {
1480
+ __extends(DeleteLines, _super);
1481
+ function DeleteLines() {
1482
+ return _super !== null && _super.apply(this, arguments) || this;
1483
+ }
1484
+ DeleteLines.prototype.run = function (editor, ext, repeat, repeatedTrigger) {
1485
+ ext.selectionMode = false;
1486
+ for (var i = 0; i < repeat; i++) {
1487
+ editor.trigger(exports.SOURCE, 'editor.action.deleteLines', null);
1488
+ }
1489
+ };
1490
+ return DeleteLines;
1491
+ }(BaseAction));
1492
+ exports.DeleteLines = DeleteLines;
1493
+ } (actions));
1494
+
1495
+ (function (exports) {
1496
+ Object.defineProperty(exports, "__esModule", { value: true });
1497
+ exports.getAllMappings = exports.unregisterKey = exports.registerGlobalCommand = exports.executeCommand = exports.COMMANDS = exports.prefixPreservingKeys = void 0;
1498
+ var Actions = actions;
1499
+ exports.prefixPreservingKeys = {
1500
+ "M-g": true,
1501
+ "C-x": true,
1502
+ "C-q": true,
1503
+ "C-u": true,
1504
+ };
1505
+ var setMarkAction = new Actions.SetMark();
1506
+ var undoAction = new Actions.UndoAction();
1507
+ var moveCursorDown = new Actions.MoveCursorDown();
1508
+ var moveCursorUp = new Actions.MoveCursorUp();
1509
+ var moveCursorRight = new Actions.MoveCursorRight();
1510
+ var moveCursorLeft = new Actions.MoveCursorLeft();
1511
+ exports.COMMANDS = {
1512
+ 'M-/': {
1513
+ description: '',
1514
+ action: 'editor.action.triggerSuggest',
1515
+ },
1516
+ 'C-\'': {
1517
+ description: '',
1518
+ action: 'editor.action.triggerSuggest',
1519
+ },
1520
+ 'M-;': {
1521
+ description: '',
1522
+ action: 'editor.action.commentLine',
1523
+ },
1524
+ 'C-t': {
1525
+ description: '',
1526
+ action: 'editor.action.transposeLetters',
1527
+ },
1528
+ 'C-x C-p': {
1529
+ description: '',
1530
+ action: 'editor.action.selectAll',
1531
+ },
1532
+ 'Tab': {
1533
+ description: '',
1534
+ action: 'editor.action.formatDocument',
1535
+ },
1536
+ 'C-Backspace': {
1537
+ description: '',
1538
+ action: 'deleteWordLeft',
1539
+ },
1540
+ 'C-d': {
1541
+ description: '',
1542
+ action: 'deleteRight',
1543
+ },
1544
+ 'M-Backspace': {
1545
+ description: '',
1546
+ action: 'deleteWordLeft',
1547
+ },
1548
+ 'M-Delete': {
1549
+ description: '',
1550
+ action: 'deleteWordLeft',
1551
+ },
1552
+ 'C-x C-u': {
1553
+ description: '',
1554
+ action: 'editor.action.transformToUppercase',
1555
+ },
1556
+ 'C-x C-l': {
1557
+ description: '',
1558
+ action: 'editor.action.transformToLowercase',
1559
+ },
1560
+ 'C-v': {
1561
+ description: '',
1562
+ action: 'cursorPageDown',
1563
+ },
1564
+ 'PageDown': {
1565
+ description: '',
1566
+ action: 'cursorPageDown',
1567
+ },
1568
+ 'M-v': {
1569
+ description: '',
1570
+ action: 'cursorPageUp',
1571
+ },
1572
+ 'PageUp': {
1573
+ description: '',
1574
+ action: 'cursorPageUp',
1575
+ },
1576
+ 'M-g n': {
1577
+ description: '',
1578
+ action: 'editor.action.marker.next',
1579
+ },
1580
+ 'M-g p': {
1581
+ description: '',
1582
+ action: 'editor.action.marker.prev',
1583
+ },
1584
+ 'M-C-n': {
1585
+ description: '',
1586
+ action: 'editor.action.addSelectionToNextFindMatch',
1587
+ },
1588
+ 'C-h': {
1589
+ description: '',
1590
+ action: 'deleteLeft',
1591
+ },
1592
+ 'M-d': {
1593
+ description: '',
1594
+ action: 'deleteWordRight',
1595
+ },
1596
+ 'S-C-': {
1597
+ description: '',
1598
+ action: 'editor.action.triggerParameterHints',
1599
+ },
1600
+ 'C-SPC': setMarkAction,
1601
+ 'S-C-2': setMarkAction,
1602
+ 'C-/': undoAction,
1603
+ 'S-C--': undoAction,
1604
+ 'C-z': undoAction,
1605
+ 'C-x u': undoAction,
1606
+ 'C-n': moveCursorDown,
1607
+ 'C-p': moveCursorUp,
1608
+ 'C-f': moveCursorRight,
1609
+ 'C-b': moveCursorLeft,
1610
+ 'S-C-Backspace': new Actions.DeleteLines(),
1611
+ 'M-f': new Actions.MoveCursorWordRight(),
1612
+ 'M-b': new Actions.MoveCursorWordLeft(),
1613
+ 'C-k': new Actions.KillLines(),
1614
+ 'C-m': new Actions.InsertLineAfter(),
1615
+ 'C-w': new Actions.KillSelection(),
1616
+ 'C-o': new Actions.InsertLineBelow(),
1617
+ 'C-g': new Actions.KeyBoardQuit(),
1618
+ 'C-e': new Actions.MoveCursorToLineEnd(),
1619
+ 'C-a': new Actions.MoveCursorToLineStart(),
1620
+ 'C-y': new Actions.Yank(),
1621
+ 'M-w': new Actions.YankSelectionToRing(),
1622
+ 'M-y': new Actions.YankRotate(),
1623
+ 'C-l': new Actions.RevealToCenterAction(),
1624
+ 'C-q Tab': new Actions.InsertTabs(),
1625
+ 'M-r': new Actions.RotateCursorOnScreen(),
1626
+ 'M-g g': new Actions.GotoLine(),
1627
+ 'M-g M-g': new Actions.GotoLine(),
1628
+ 'C-x C-x': new Actions.InvertSelection(),
1629
+ 'S-M-.': new Actions.MoveCursorBottom(),
1630
+ 'S-M-,': new Actions.MoveCursorTop(),
1631
+ 'C-s': new Actions.Search(),
1632
+ 'C-r': new Actions.Search(),
1633
+ 'S-M-5': new Actions.SearchReplace(),
1634
+ };
1635
+ function executeCommand(ext, command, inputBuffer, repeatedTrigger) {
1636
+ var editor = ext.getEditor();
1637
+ var repeat = parseInt(inputBuffer) || 1;
1638
+ if (command.run) {
1639
+ command.run(editor, ext, repeat, repeatedTrigger);
1640
+ return;
1641
+ }
1642
+ if (typeof command.action === 'string') {
1643
+ for (var i = 0; i < repeat; i++) {
1644
+ editor.trigger(Actions.SOURCE, command.action, null);
1645
+ }
1646
+ }
1647
+ else if (Array.isArray(command.action)) {
1648
+ for (var i = 0; i < repeat; i++) {
1649
+ command.action.forEach(function (cmd) {
1650
+ editor.trigger(Actions.SOURCE, cmd, null);
1651
+ });
1652
+ }
1653
+ }
1654
+ }
1655
+ exports.executeCommand = executeCommand;
1656
+ function registerGlobalCommand(key, command) {
1657
+ exports.COMMANDS[key] = command;
1658
+ }
1659
+ exports.registerGlobalCommand = registerGlobalCommand;
1660
+ function unregisterKey(key) {
1661
+ if (exports.COMMANDS[key]) {
1662
+ delete exports.COMMANDS[key];
1663
+ }
1664
+ }
1665
+ exports.unregisterKey = unregisterKey;
1666
+ function getAllMappings() {
1667
+ var result = {};
1668
+ Object.keys(exports.COMMANDS).forEach(function (key) {
1669
+ result[key] = exports.COMMANDS[key].description;
1670
+ });
1671
+ return result;
1672
+ }
1673
+ exports.getAllMappings = getAllMappings;
1674
+ } (commands));
1675
+
1676
+ var util = {};
1677
+
1678
+ (function (exports) {
1679
+ Object.defineProperty(exports, "__esModule", { value: true });
1680
+ exports.Emitter = exports.Event = exports.monacoToEmacsKey = exports.modifierKeys = void 0;
1681
+ var monaco = require$$0;
1682
+ exports.modifierKeys = {
1683
+ Alt: 'M',
1684
+ Control: 'C',
1685
+ Ctrl: 'C',
1686
+ Meta: 'CMD',
1687
+ Shift: 'S',
1688
+ };
1689
+ var specialKeys = {
1690
+ Enter: 'Return',
1691
+ Space: 'SPC',
1692
+ Backslash: '\\',
1693
+ Slash: '/',
1694
+ Backquote: '`',
1695
+ BracketRight: ']',
1696
+ BracketLeft: '[',
1697
+ Comma: ',',
1698
+ Period: '.',
1699
+ Equal: '=',
1700
+ Minus: '-',
1701
+ Quote: '\'',
1702
+ Semicolon: ';',
1703
+ };
1704
+ var oneCharKeyPrefixes = ['Key', 'Numpad'];
1705
+ var arrowSuffix = 'Arrow';
1706
+ function monacoToEmacsKey(ev) {
1707
+ var keyName = monaco.KeyCode[ev.keyCode];
1708
+ if (exports.modifierKeys[keyName]) {
1709
+ return '';
1710
+ }
1711
+ var key = oneCharKeyPrefixes.some(function (prefix) { return keyName.startsWith(prefix); }) ? keyName[keyName.length - 1] : keyName;
1712
+ if (keyName.endsWith(arrowSuffix)) {
1713
+ key = keyName.substring(0, keyName.length - arrowSuffix.length);
1714
+ }
1715
+ else if (specialKeys[keyName]) {
1716
+ key = specialKeys[key];
1717
+ }
1718
+ if (key.length === 1) {
1719
+ key = key.toLowerCase();
1720
+ }
1721
+ if (ev.altKey) {
1722
+ key = "".concat(exports.modifierKeys.Alt, "-").concat(key);
1723
+ }
1724
+ if (ev.ctrlKey) {
1725
+ key = "".concat(exports.modifierKeys.Ctrl, "-").concat(key);
1726
+ }
1727
+ if (ev.metaKey) {
1728
+ key = "".concat(exports.modifierKeys.Meta, "-").concat(key);
1729
+ }
1730
+ if (ev.shiftKey) {
1731
+ key = "".concat(exports.modifierKeys.Shift, "-").concat(key);
1732
+ }
1733
+ return key;
1734
+ }
1735
+ exports.monacoToEmacsKey = monacoToEmacsKey;
1736
+ (function (Event) {
1737
+ var _disposable = { dispose: function () { } };
1738
+ Event.None = function () { return _disposable; };
1739
+ })(exports.Event || (exports.Event = {}));
1740
+ var Emitter = (function () {
1741
+ function Emitter() {
1742
+ this._listeners = [];
1743
+ }
1744
+ Object.defineProperty(Emitter.prototype, "event", {
1745
+ get: function () {
1746
+ var _this = this;
1747
+ if (!this._event) {
1748
+ this._event = function (listener) {
1749
+ _this._listeners.push(listener);
1750
+ var result = {
1751
+ dispose: function () {
1752
+ if (_this._disposed) {
1753
+ return;
1754
+ }
1755
+ var index = _this._listeners.indexOf(listener);
1756
+ if (index < 0) {
1757
+ return;
1758
+ }
1759
+ _this._listeners.splice(index, 1);
1760
+ }
1761
+ };
1762
+ return result;
1763
+ };
1764
+ }
1765
+ return this._event;
1766
+ },
1767
+ enumerable: false,
1768
+ configurable: true
1769
+ });
1770
+ Emitter.prototype.fire = function (ev) {
1771
+ if (!this._listeners.length) {
1772
+ return;
1773
+ }
1774
+ this._listeners.forEach(function (l) { return l(ev); });
1775
+ };
1776
+ Emitter.prototype.dispose = function () {
1777
+ if (this._disposed) {
1778
+ return;
1779
+ }
1780
+ this._listeners = undefined;
1781
+ this._disposed = true;
1782
+ };
1783
+ return Emitter;
1784
+ }());
1785
+ exports.Emitter = Emitter;
1786
+ } (util));
1787
+
1788
+ var basicInput = {};
1789
+
1790
+ Object.defineProperty(basicInput, "__esModule", { value: true });
1791
+ basicInput.BasicInputWidget = void 0;
1792
+ var monaco$1 = require$$0;
1793
+ var BASE_CLASS = 'ext-emacs-basic-input';
1794
+ function generateCss() {
1795
+ return "\n .".concat(BASE_CLASS, " {\n color: #d4d4d4;\n transition: top 200ms linear;\n visibility: hidden;\n width: 200px;\n display: flex;\n align-items: center;\n padding: 5px;\n }\n\n .").concat(BASE_CLASS, ".").concat(BASE_CLASS, "-visible {\n visibility: visible;\n }\n\n .").concat(BASE_CLASS, " input {\n color: rgb(97, 97, 97);\n background-color: transparent;\n display: inline-block;\n box-sizing: border-box;\n height: 100%;\n line-height: inherit;\n border: none;\n font-family: inherit;\n font-size: inherit;\n resize: none;\n padding-top: 2px;\n padding-bottom: 2px;\n margin-left: 5px;\n max-width: 50px;\n }\n\n .").concat(BASE_CLASS, " input:focus {\n outline: none;\n }\n\n .vs .").concat(BASE_CLASS, " {\n color: rgb(97, 97, 97);\n background-color: #efeff2;\n box-shadow: 0 2px 8px #a8a8a8;\n }\n\n .vs-dark .").concat(BASE_CLASS, " {\n background-color: #2d2d30;\n box-shadow: 0 2px 8px #000000;\n }\n\n .vs-dark .").concat(BASE_CLASS, " input {\n color: rgb(204, 204, 204);\n }\n\n .hc-black .").concat(BASE_CLASS, " {\n border: 2px solid #6fc3df;\n background-color: #0c141f;\n color: #ffffff;\n }\n\n .hc-black .").concat(BASE_CLASS, " input {\n color: #ffffff;\n }\n");
1796
+ }
1797
+ var BasicInputWidget = (function () {
1798
+ function BasicInputWidget() {
1799
+ var _this = this;
1800
+ this._pendingPromise = null;
1801
+ this.onKeyDown = function (ev) {
1802
+ if (ev.altKey || ev.ctrlKey || ev.metaKey) {
1803
+ ev.preventDefault();
1804
+ ev.stopPropagation();
1805
+ }
1806
+ if (ev.which === 13) {
1807
+ if (_this._pendingPromise) {
1808
+ ev.preventDefault();
1809
+ _this._pendingPromise.resolve(ev.target.value);
1810
+ _this._pendingPromise = null;
1811
+ }
1812
+ }
1813
+ else if (ev.which === 27) {
1814
+ if (_this._pendingPromise) {
1815
+ _this._pendingPromise.reject();
1816
+ _this._pendingPromise = null;
1817
+ }
1818
+ }
1819
+ };
1820
+ this.onBlur = function () {
1821
+ if (_this._pendingPromise) {
1822
+ _this._pendingPromise.reject();
1823
+ _this._pendingPromise = null;
1824
+ }
1825
+ };
1826
+ this._dom = document.createElement('div');
1827
+ this._messageDom = document.createElement('div');
1828
+ var medDom = document.createElement('div');
1829
+ this._dom.setAttribute('class', BASE_CLASS);
1830
+ this._dom.setAttribute('aria-hidden', 'true');
1831
+ this._input = document.createElement('input');
1832
+ this._dom.appendChild(this._messageDom);
1833
+ medDom.appendChild(this._input);
1834
+ this._dom.appendChild(medDom);
1835
+ this.addListeners();
1836
+ this._style = document.createElement('style');
1837
+ this._style.type = 'text/css';
1838
+ this._style.textContent = generateCss();
1839
+ (document.head || document.body).appendChild(this._style);
1840
+ }
1841
+ BasicInputWidget.prototype.getDomNode = function () {
1842
+ return this._dom;
1843
+ };
1844
+ BasicInputWidget.prototype.getId = function () {
1845
+ return 'extension.emacs.basicinput';
1846
+ };
1847
+ BasicInputWidget.prototype.getPosition = function () {
1848
+ return {
1849
+ preference: monaco$1.editor.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER,
1850
+ };
1851
+ };
1852
+ BasicInputWidget.prototype.addListeners = function () {
1853
+ this._input.addEventListener('keydown', this.onKeyDown);
1854
+ this._input.addEventListener('blur', this.onBlur);
1855
+ };
1856
+ BasicInputWidget.prototype.showWidgetAndFocus = function (message) {
1857
+ this._dom.classList.add("".concat(BASE_CLASS, "-visible"));
1858
+ this._dom.setAttribute('aria-hidden', 'false');
1859
+ this._messageDom.textContent = message;
1860
+ this._input.focus();
1861
+ };
1862
+ BasicInputWidget.prototype.cleanup = function () {
1863
+ this._dom.classList.remove("".concat(BASE_CLASS, "-visible"));
1864
+ this._dom.setAttribute('aria-hidden', 'true');
1865
+ this._messageDom.textContent = '';
1866
+ this._input.placeholder = '';
1867
+ this._input.value = '';
1868
+ };
1869
+ BasicInputWidget.prototype.getInput = function (message) {
1870
+ var _this = this;
1871
+ if (this._pendingPromise) {
1872
+ this._pendingPromise.reject();
1873
+ this._pendingPromise = null;
1874
+ }
1875
+ return new Promise(function (resolve, reject) {
1876
+ _this._pendingPromise = {
1877
+ resolve: function (val) {
1878
+ resolve(val);
1879
+ _this.cleanup();
1880
+ },
1881
+ reject: function () {
1882
+ reject();
1883
+ _this.cleanup();
1884
+ },
1885
+ };
1886
+ _this.showWidgetAndFocus(message);
1887
+ });
1888
+ };
1889
+ BasicInputWidget.prototype.dispose = function () {
1890
+ this.cleanup();
1891
+ this._input.removeEventListener('keydown', this.onKeyDown);
1892
+ this._input.removeEventListener('blur', this.onBlur);
1893
+ (document.head || document.body).removeChild(this._style);
1894
+ };
1895
+ return BasicInputWidget;
1896
+ }());
1897
+ basicInput.BasicInputWidget = BasicInputWidget;
1898
+
1899
+ var state = {};
1900
+
1901
+ (function (exports) {
1902
+ Object.defineProperty(exports, "__esModule", { value: true });
1903
+ exports.State = exports.EAT_UP_KEY = void 0;
1904
+ var commands_1 = commands;
1905
+ exports.EAT_UP_KEY = '==-==';
1906
+ var State = (function () {
1907
+ function State() {
1908
+ this._inargumentMode = false;
1909
+ this._killRing = [];
1910
+ }
1911
+ State.prototype.updateAndGetKey = function (key) {
1912
+ if (key === 'C-g' && (this._inargumentMode || this._prefixKey)) {
1913
+ this.resetState();
1914
+ return exports.EAT_UP_KEY;
1915
+ }
1916
+ if (this.updateCuMode(key)) {
1917
+ return exports.EAT_UP_KEY;
1918
+ }
1919
+ if (!this._prefixKey) {
1920
+ if (commands_1.prefixPreservingKeys[key]) {
1921
+ this._prefixKey = key;
1922
+ return exports.EAT_UP_KEY;
1923
+ }
1924
+ return key;
1925
+ }
1926
+ else {
1927
+ return "".concat(this._prefixKey, " ").concat(key);
1928
+ }
1929
+ };
1930
+ State.prototype.setLastCommandKey = function (lastCommandKey) {
1931
+ this._lastCommandKey = lastCommandKey;
1932
+ };
1933
+ State.prototype.isLastCommandKey = function (lastCommandKey) {
1934
+ return this._lastCommandKey == lastCommandKey;
1935
+ };
1936
+ State.prototype.resetState = function (setLastInput) {
1937
+ if (setLastInput === void 0) { setLastInput = false; }
1938
+ this._inargumentMode = setLastInput;
1939
+ this._prefixKey = null;
1940
+ if (setLastInput) {
1941
+ this._lastInputBuffer = this._inputBuffer;
1942
+ }
1943
+ else {
1944
+ this._lastInputBuffer = null;
1945
+ }
1946
+ this._inputBuffer = null;
1947
+ };
1948
+ State.prototype.updateCuMode = function (key) {
1949
+ if (this._inargumentMode) {
1950
+ if (typeof key === 'string' && (/^\d$/.test(key))) {
1951
+ this._inputBuffer = (this._inputBuffer || '') + key;
1952
+ return true;
1953
+ }
1954
+ else if (commands_1.prefixPreservingKeys[key]) {
1955
+ this.resetState(true);
1956
+ return false;
1957
+ }
1958
+ }
1959
+ else if (!this._prefixKey && key === 'C-u') {
1960
+ this._inargumentMode = true;
1961
+ this._inputBuffer = null;
1962
+ this._lastInputBuffer = null;
1963
+ return true;
1964
+ }
1965
+ };
1966
+ State.prototype.updateStateOnExecution = function (reset) {
1967
+ if (reset === void 0) { reset = false; }
1968
+ this.resetState(reset);
1969
+ };
1970
+ State.prototype.getInputBuffer = function () {
1971
+ return this._lastInputBuffer || this._inputBuffer;
1972
+ };
1973
+ State.prototype.addToRing = function (str) {
1974
+ this._killRing.push(str);
1975
+ if (this._killRing.length > 50)
1976
+ this._killRing.shift();
1977
+ };
1978
+ State.prototype.growRingTop = function (str) {
1979
+ if (!this._killRing.length) {
1980
+ this.addToRing(str);
1981
+ }
1982
+ this._killRing[this._killRing.length - 1] += str;
1983
+ };
1984
+ State.prototype.getFromRing = function (n) {
1985
+ return this._killRing[this._killRing.length - (n ? Math.min(n, 1) : 1)] || '';
1986
+ };
1987
+ State.prototype.popFromRing = function () {
1988
+ if (this._killRing.length > 1) {
1989
+ return this._killRing.pop();
1990
+ }
1991
+ return this.getFromRing();
1992
+ };
1993
+ State.prototype.getReadableState = function () {
1994
+ var str = '';
1995
+ if (this._inargumentMode) {
1996
+ str += 'C-u';
1997
+ if (this._inputBuffer) {
1998
+ str += " ".concat(this._inputBuffer);
1999
+ }
2000
+ else if (this._lastInputBuffer) {
2001
+ str += " ".concat(this._lastInputBuffer);
2002
+ }
2003
+ }
2004
+ if (this._prefixKey) {
2005
+ str += " ".concat(this._prefixKey);
2006
+ }
2007
+ return str;
2008
+ };
2009
+ return State;
2010
+ }());
2011
+ exports.State = State;
2012
+ } (state));
2013
+
2014
+ Object.defineProperty(emacs, "__esModule", { value: true });
2015
+ emacs.getConfiguration = emacs.EmacsExtension = void 0;
2016
+ var monaco = require$$0;
2017
+ var throttle = lodash_throttle;
2018
+ var kebabCase = lodash_kebabcase;
2019
+ var commands_1 = commands;
2020
+ var util_1 = util;
2021
+ var basicInput_1 = basicInput;
2022
+ var state_1 = state;
2023
+ var _a = monaco.editor, TextEditorCursorBlinkingStyle = _a.TextEditorCursorBlinkingStyle, TextEditorCursorStyle = _a.TextEditorCursorStyle;
2024
+ var EmacsExtension = (function () {
2025
+ function EmacsExtension(editor) {
2026
+ this._disposables = [];
2027
+ this._inSelectionMode = false;
2028
+ this._changeDisposable = null;
2029
+ this._state = new state_1.State();
2030
+ this._onDidMarkChange = new util_1.Emitter();
2031
+ this.onDidMarkChange = this._onDidMarkChange.event;
2032
+ this._onDidChangeKey = new util_1.Emitter();
2033
+ this.onDidChangeKey = this._onDidChangeKey.event;
2034
+ this._editor = editor;
2035
+ var config = getConfiguration(editor);
2036
+ this._intialCursorType = config.cursorStyle;
2037
+ this._intialCursorBlinking = config.cursorBlinking;
2038
+ this._basicInputWidget = new basicInput_1.BasicInputWidget();
2039
+ }
2040
+ EmacsExtension.prototype.start = function () {
2041
+ if (this._disposables.length) {
2042
+ return;
2043
+ }
2044
+ this.addListeners();
2045
+ this._editor.updateOptions({
2046
+ cursorStyle: kebabCase(TextEditorCursorStyle[TextEditorCursorStyle.Block]),
2047
+ cursorBlinking: kebabCase(TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle.Blink]),
2048
+ });
2049
+ this._editor.addOverlayWidget(this._basicInputWidget);
2050
+ };
2051
+ Object.defineProperty(EmacsExtension.prototype, "state", {
2052
+ get: function () {
2053
+ return this._state;
2054
+ },
2055
+ enumerable: false,
2056
+ configurable: true
2057
+ });
2058
+ EmacsExtension.prototype.getEditor = function () {
2059
+ return this._editor;
2060
+ };
2061
+ EmacsExtension.prototype.addListeners = function () {
2062
+ this._disposables.push(this._editor.onKeyDown(this.onKeyDown.bind(this)));
2063
+ this._throttledScroll = throttle(this.onEditorScroll.bind(this), 500);
2064
+ this._disposables.push(this._editor.onDidScrollChange(this._throttledScroll));
2065
+ };
2066
+ EmacsExtension.prototype.cancelKey = function (ev) {
2067
+ ev.preventDefault();
2068
+ ev.stopPropagation();
2069
+ };
2070
+ EmacsExtension.prototype.onKeyDown = function (ev) {
2071
+ if (ev.browserEvent.defaultPrevented) {
2072
+ return;
2073
+ }
2074
+ var key = (0, util_1.monacoToEmacsKey)(ev);
2075
+ if (!key) {
2076
+ return;
2077
+ }
2078
+ key = this._state.updateAndGetKey(key);
2079
+ this._onDidChangeKey.fire(this._state.getReadableState());
2080
+ if (key === state_1.EAT_UP_KEY) {
2081
+ this._onDidChangeKey.fire(this._state.getReadableState());
2082
+ this.cancelKey(ev);
2083
+ return;
2084
+ }
2085
+ var command = commands_1.COMMANDS[key];
2086
+ if (!command) {
2087
+ this._onDidChangeKey.fire(this._state.getReadableState());
2088
+ this._state.setLastCommandKey(key);
2089
+ return;
2090
+ }
2091
+ this.cancelKey(ev);
2092
+ var repeatedTrigger = this._state.isLastCommandKey(key);
2093
+ (0, commands_1.executeCommand)(this, command, this._state.getInputBuffer(), repeatedTrigger);
2094
+ this._state.setLastCommandKey(key);
2095
+ this._state.updateStateOnExecution();
2096
+ };
2097
+ EmacsExtension.prototype.onEditorScroll = function () {
2098
+ var height = this._editor.getLayoutInfo().height;
2099
+ var layout = this._editor.getScrolledVisiblePosition(this._editor.getPosition());
2100
+ if (layout.top >= 0 && layout.top <= height) {
2101
+ return;
2102
+ }
2103
+ var ranges = this._editor.getVisibleRanges();
2104
+ if (!ranges.length) {
2105
+ return;
2106
+ }
2107
+ var newPos;
2108
+ var sel = this._editor.getSelection();
2109
+ if (layout.top < 0) {
2110
+ newPos = new monaco.Position(ranges[0].getStartPosition().lineNumber, 1);
2111
+ }
2112
+ else if (layout.top > height) {
2113
+ newPos = new monaco.Position(ranges[ranges.length - 1].getEndPosition().lineNumber, 1);
2114
+ }
2115
+ if (this._inSelectionMode) {
2116
+ this._editor.setSelection(monaco.Selection.fromPositions(sel.getStartPosition(), newPos));
2117
+ }
2118
+ else {
2119
+ this._editor.setPosition(newPos);
2120
+ }
2121
+ };
2122
+ EmacsExtension.prototype.onContentChange = function () {
2123
+ this.selectionMode = false;
2124
+ };
2125
+ EmacsExtension.prototype.clearState = function () {
2126
+ this._state.updateStateOnExecution();
2127
+ };
2128
+ Object.defineProperty(EmacsExtension.prototype, "selectionMode", {
2129
+ get: function () {
2130
+ return this._inSelectionMode;
2131
+ },
2132
+ set: function (mode) {
2133
+ if (mode === this._inSelectionMode) {
2134
+ return;
2135
+ }
2136
+ this._inSelectionMode = mode;
2137
+ if (mode) {
2138
+ this._changeDisposable = this._editor.onDidChangeModelContent(this.onContentChange.bind(this));
2139
+ }
2140
+ else if (this._changeDisposable) {
2141
+ this._changeDisposable.dispose();
2142
+ this._changeDisposable = null;
2143
+ }
2144
+ this._onDidMarkChange.fire(mode);
2145
+ },
2146
+ enumerable: false,
2147
+ configurable: true
2148
+ });
2149
+ EmacsExtension.prototype.getCursorAnchor = function () {
2150
+ var sel = this._editor.getSelection();
2151
+ var dir = sel.getDirection();
2152
+ return dir === monaco.SelectionDirection.LTR ? sel.getEndPosition() : sel.getStartPosition();
2153
+ };
2154
+ EmacsExtension.prototype.getBasicInput = function (message) {
2155
+ return this._basicInputWidget.getInput(message);
2156
+ };
2157
+ EmacsExtension.prototype.dispose = function () {
2158
+ this._disposables.forEach(function (d) { return d.dispose(); });
2159
+ this._disposables = undefined;
2160
+ if (this._changeDisposable) {
2161
+ this._changeDisposable.dispose();
2162
+ this._changeDisposable = null;
2163
+ }
2164
+ this._editor.updateOptions({
2165
+ cursorStyle: this._intialCursorType,
2166
+ cursorBlinking: this._intialCursorBlinking,
2167
+ });
2168
+ this._editor.removeOverlayWidget(this._basicInputWidget);
2169
+ this._basicInputWidget.dispose();
2170
+ this._throttledScroll.cancel();
2171
+ this._state = null;
2172
+ };
2173
+ return EmacsExtension;
2174
+ }());
2175
+ emacs.EmacsExtension = EmacsExtension;
2176
+ function getConfiguration(editor) {
2177
+ var cursorStyle = editor.getOption(monaco.editor.EditorOption.cursorStyle);
2178
+ var cursorBlinking = editor.getOption(monaco.editor.EditorOption.cursorBlinking);
2179
+ return {
2180
+ cursorStyle: kebabCase(TextEditorCursorStyle[cursorStyle]),
2181
+ cursorBlinking: kebabCase(TextEditorCursorBlinkingStyle[cursorBlinking]),
2182
+ };
2183
+ }
2184
+ emacs.getConfiguration = getConfiguration;
2185
+
2186
+ (function (exports) {
2187
+ Object.defineProperty(exports, "__esModule", { value: true });
2188
+ exports.Actions = exports.EmacsExtension = exports.unregisterKey = exports.getAllMappings = exports.registerGlobalCommand = void 0;
2189
+ var emacs_1 = emacs;
2190
+ Object.defineProperty(exports, "EmacsExtension", { enumerable: true, get: function () { return emacs_1.EmacsExtension; } });
2191
+ var commands_1 = commands;
2192
+ Object.defineProperty(exports, "registerGlobalCommand", { enumerable: true, get: function () { return commands_1.registerGlobalCommand; } });
2193
+ Object.defineProperty(exports, "getAllMappings", { enumerable: true, get: function () { return commands_1.getAllMappings; } });
2194
+ Object.defineProperty(exports, "unregisterKey", { enumerable: true, get: function () { return commands_1.unregisterKey; } });
2195
+ var Actions = actions;
2196
+ exports.Actions = Actions;
2197
+ exports.default = emacs_1.EmacsExtension;
2198
+ } (lib));
2199
+
2200
+ var index = /*@__PURE__*/getDefaultExportFromCjs(lib);
2201
+
2202
+ var index$1 = /*#__PURE__*/_mergeNamespaces({
2203
+ __proto__: null,
2204
+ default: index
2205
+ }, [lib]);
2206
+
2207
+ export { index$1 as i };