@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.
- package/README.md +15 -0
- package/dist/COBOL.tmLanguage.js +172 -0
- package/dist/Erlang.plist.js +1752 -0
- package/dist/HTML (Eex)2.js +100 -0
- package/dist/JSON.tmLanguage.js +221 -0
- package/dist/JSONC.tmLanguage.js +221 -0
- package/dist/JavaProperties.tmLanguage.js +116 -0
- package/dist/JavaScript.tmLanguage.js +5929 -0
- package/dist/JavaScriptReact.tmLanguage.js +5929 -0
- package/dist/Kotlin.tmLanguage.js +724 -0
- package/dist/META.js +100 -0
- package/dist/MagicPython.tmLanguage.js +4221 -0
- package/dist/MagicRegExp.tmLanguage.js +505 -0
- package/dist/Markdown Redcarpet.js +221 -0
- package/dist/RMarkdown.js +25 -0
- package/dist/Rcpp.js +50 -0
- package/dist/Rd (R Documentation).js +131 -0
- package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
- package/dist/Scala.tmLanguage.js +1324 -0
- package/dist/TypeScript.tmLanguage.js +5680 -0
- package/dist/TypeScriptReact.tmLanguage.js +5929 -0
- package/dist/{_virtual/_commonjsHelpers.js → _monaco-editor_commonjs-external.js} +9 -2
- package/dist/_rollupPluginBabelHelpers.js +51 -0
- package/dist/angular.js +62 -0
- package/dist/asp-vb-net.tmlanguage.js +247 -0
- package/dist/aspnetcorerazor.js +72 -0
- package/dist/aspnetcorerazor.tmLanguage.js +1825 -0
- package/dist/atd.js +110 -0
- package/dist/atd2.js +114 -0
- package/dist/buildignore.r.js +5 -0
- package/dist/buildtarget.js +53 -0
- package/dist/c.js +101 -0
- package/dist/c.tmLanguage.js +3565 -0
- package/dist/cabal.js +10 -0
- package/dist/cabal.tmLanguage.js +66 -0
- package/dist/clojure.js +68 -0
- package/dist/clojure.tmLanguage.js +439 -0
- package/dist/cobol.js +6 -0
- package/dist/cobol2.js +341 -0
- package/dist/codeblock-cabal.js +42 -0
- package/dist/codeblock-haskell.js +42 -0
- package/dist/codeblock-literate-haskell.js +42 -0
- package/dist/codeblock.js +59 -0
- package/dist/codeblock2.js +36 -0
- package/dist/codeblock3.js +95 -0
- package/dist/coffeescript-coffeescript.code-snippets.js +18 -0
- package/dist/coffeescript.js +91 -0
- package/dist/coffeescript.tmLanguage.js +1324 -0
- package/dist/configuration/files.d.ts +6 -0
- package/dist/configuration/index.d.ts +2 -1
- package/dist/cpp-c.code-snippets.js +18 -0
- package/dist/cpp-cpp.code-snippets.js +18 -0
- package/dist/cpp.js +101 -0
- package/dist/cpp.tmLanguage.js +16648 -0
- package/dist/cpptools.js +2631 -0
- package/dist/cram.js +257 -0
- package/dist/csharp.js +92 -0
- package/dist/csharp.tmLanguage.js +4992 -0
- package/dist/css.js +106 -0
- package/dist/css.tmLanguage.js +1873 -0
- package/dist/css.worker.js +6 -0
- package/dist/cuda-cpp.js +101 -0
- package/dist/cuda-cpp.tmLanguage.js +19993 -0
- package/dist/d-diet.js +92 -0
- package/dist/d.js +3212 -0
- package/dist/d2.js +97 -0
- package/dist/d3.js +609 -0
- package/dist/dart.js +543 -0
- package/dist/dart2.js +103 -0
- package/dist/dart3.js +1130 -0
- package/dist/dcf.js +93 -0
- package/dist/debian-control.r.js +69 -0
- package/dist/diet.js +758 -0
- package/dist/diet2.js +100 -0
- package/dist/django-html.js +155 -0
- package/dist/django-html.tmLanguage.js +715 -0
- package/dist/django-txt.js +155 -0
- package/dist/django-txt.tmLanguage.js +269 -0
- package/dist/dml.js +169 -0
- package/dist/dml2.js +90 -0
- package/dist/dockercompose.js +82 -0
- package/dist/dpp.js +97 -0
- package/dist/dscript.js +90 -0
- package/dist/dune-project.js +481 -0
- package/dist/dune-project2.js +65 -0
- package/dist/dune-workspace.js +298 -0
- package/dist/dune-workspace2.js +65 -0
- package/dist/dune.js +2962 -0
- package/dist/dune2.js +65 -0
- package/dist/eex.js +55 -0
- package/dist/elixir-snippets.js +184 -0
- package/dist/elixir.js +2341 -0
- package/dist/elixir2.js +69 -0
- package/dist/elixir3.js +40 -0
- package/dist/erlang-erlang.js +195 -0
- package/dist/erlang.js +81 -0
- package/dist/erlang2.js +86 -0
- package/dist/expression.js +846 -0
- package/dist/features/cssContribution.d.ts +1 -0
- package/dist/features/cssContribution.js +7 -0
- package/dist/features/extensionConfigurations.d.ts +1 -0
- package/dist/features/extensionConfigurations.js +44 -0
- package/dist/features/htmlContribution.d.ts +4 -0
- package/dist/features/htmlContribution.js +112 -0
- package/dist/features/jsonContribution.d.ts +6 -0
- package/dist/features/jsonContribution.js +43 -0
- package/dist/features/typescriptContribution.d.ts +1 -0
- package/dist/features/typescriptContribution.js +32 -0
- package/dist/fsharp-fsharp.code-snippets.js +18 -0
- package/dist/fsharp.js +80 -0
- package/dist/fsharp.tmLanguage.js +1844 -0
- package/dist/go.js +103 -0
- package/dist/go.mod.js +8 -0
- package/dist/go.mod.tmGrammar.js +182 -0
- package/dist/go.sum.tmGrammar.js +55 -0
- package/dist/go.tmLanguage.js +1025 -0
- package/dist/go.work.js +8 -0
- package/dist/govulncheck.tmGrammar.js +138 -0
- package/dist/groovy-groovy.code-snippets.js +229 -0
- package/dist/groovy.js +79 -0
- package/dist/groovy.tmLanguage.js +1391 -0
- package/dist/haskell.js +88 -0
- package/dist/haskell.tmLanguage.js +629 -0
- package/dist/haskell2.js +16 -0
- package/dist/html (eex).js +31 -0
- package/dist/html-derivative.tmLanguage.js +57 -0
- package/dist/html-html.code-snippets.js +20 -0
- package/dist/html.js +11 -0
- package/dist/html.tmLanguage.js +2652 -0
- package/dist/html.tmLanguage2.js +107 -0
- package/dist/html.worker.js +6 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2207 -0
- package/dist/index2.js +1398 -0
- package/dist/inline-styles.js +104 -0
- package/dist/inline-template.js +88 -0
- package/dist/jade.js +11 -0
- package/dist/java-java.js +125 -0
- package/dist/java-properties.js +73 -0
- package/dist/java.js +98 -0
- package/dist/java.tmLanguage.js +1863 -0
- package/dist/java2.js +917 -0
- package/dist/javascript-javascript.code-snippets.js +205 -0
- package/dist/javascript.js +197 -0
- package/dist/javascriptreact.js +197 -0
- package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
- package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
- package/dist/json.js +75 -0
- package/dist/json.worker.js +6 -0
- package/dist/jsonc.js +75 -0
- package/dist/jsx-tags.js +158 -0
- package/dist/julia.js +89 -0
- package/dist/julia.tmLanguage.js +954 -0
- package/dist/jvm-bytecode-verbose.js +1231 -0
- package/dist/jvm-bytecode.js +565 -0
- package/dist/kotlin-kotlin.js +117 -0
- package/dist/kotlin.js +103 -0
- package/dist/kotlinscript.js +103 -0
- package/dist/languages/extensions/extensionConfigurationLoader.d.ts +3 -0
- package/dist/languages/extensions/grammarLoader.d.ts +2 -0
- package/dist/languages/extensions/languageConfigurationLoader.d.ts +2 -0
- package/dist/languages/extensions/snippetLoader.d.ts +2 -0
- package/dist/languages/extensions/themeLoader.d.ts +2 -0
- package/dist/languages/index.d.ts +2 -0
- package/dist/languages/textMate/index.d.ts +1 -0
- package/dist/literate haskell.js +88 -0
- package/dist/literateHaskell.tmLanguage.js +70 -0
- package/dist/lua.js +84 -0
- package/dist/lua.tmLanguage.js +914 -0
- package/dist/lua2.js +2853 -0
- package/dist/main.js +3564 -9
- package/dist/markdown-basics-markdown.code-snippets.js +121 -0
- package/dist/markdown-svelte-css.js +37 -0
- package/dist/markdown-svelte-js.js +37 -0
- package/dist/markdown-svelte.js +59 -0
- package/dist/markdown-vue.js +54 -0
- package/dist/markdown.js +49 -0
- package/dist/markdown.tmLanguage.js +3042 -0
- package/dist/menhir-action.js +51 -0
- package/dist/menhir.js +597 -0
- package/dist/merlin.js +111 -0
- package/dist/monaco.d.ts +10 -6
- package/dist/namespace.r.js +88 -0
- package/dist/oasis.js +99 -0
- package/dist/objective-c.js +79 -0
- package/dist/objective-c.tmLanguage.js +3763 -0
- package/dist/objective-cpp.js +79 -0
- package/dist/ocaml-dune-project.js +38 -0
- package/dist/ocaml-dune.js +53 -0
- package/dist/ocaml-markdown-codeblock.js +42 -0
- package/dist/ocaml-ocaml.js +88 -0
- package/dist/ocaml-ocamllex.js +12 -0
- package/dist/ocaml.META.js +29 -0
- package/dist/ocaml.interface.js +292 -0
- package/dist/ocaml.interface2.js +114 -0
- package/dist/ocaml.js +903 -0
- package/dist/ocaml.menhir.js +81 -0
- package/dist/ocaml.oasis.js +18 -0
- package/dist/ocaml.ocamlbuild.js +45 -0
- package/dist/ocaml.ocamlformat.js +8 -0
- package/dist/ocaml.ocamllex.js +60 -0
- package/dist/ocaml.opam-install.js +49 -0
- package/dist/ocaml.opam.js +69 -0
- package/dist/ocaml2.js +114 -0
- package/dist/ocaml3.js +136 -0
- package/dist/ocamlbuild.js +189 -0
- package/dist/ocamldoc.js +54 -0
- package/dist/ocamlformat.js +206 -0
- package/dist/ocamllex.js +133 -0
- package/dist/omnisharp-csharp.js +508 -0
- package/dist/omnisharp.js +594 -0
- package/dist/opam-install.js +40 -0
- package/dist/opam.js +140 -0
- package/dist/pascal-pascal.js +382 -0
- package/dist/pascal.js +80 -0
- package/dist/pascal.tmLanguage.js +169 -0
- package/dist/pascal2.js +26 -0
- package/dist/perl.js +93 -0
- package/dist/perl.tmLanguage.js +2986 -0
- package/dist/perl6.js +86 -0
- package/dist/perl6.tmLanguage.js +323 -0
- package/dist/pgsql.tmLanguage.js +284 -0
- package/dist/php-php.code-snippets.js +267 -0
- package/dist/php.js +154 -0
- package/dist/php.tmLanguage.js +4036 -0
- package/dist/pip-requirements.js +8 -0
- package/dist/pip-requirements.tmLanguage.js +89 -0
- package/dist/plaintext.js +11 -0
- package/dist/platform.tmLanguage.js +1135 -0
- package/dist/postcss.src.yaml.js +393 -0
- package/dist/postgres.js +80 -0
- package/dist/postgresql.js +75 -0
- package/dist/powershell.js +107 -0
- package/dist/powershell.tmLanguage.js +1037 -0
- package/dist/pug-svelte-dotblock.js +69 -0
- package/dist/pug-svelte-tags.js +215 -0
- package/dist/pug-svelte.js +307 -0
- package/dist/python.js +236 -0
- package/dist/r.js +664 -0
- package/dist/r2.js +88 -0
- package/dist/rbuildignore.js +39 -0
- package/dist/rd.js +81 -0
- package/dist/reason-markdown-codeblock.js +42 -0
- package/dist/reason.js +79 -0
- package/dist/rmd.js +84 -0
- package/dist/rnamespace.js +283 -0
- package/dist/ruby.js +95 -0
- package/dist/ruby.tmLanguage.js +2784 -0
- package/dist/rust.js +84 -0
- package/dist/rust.tmLanguage.js +1178 -0
- package/dist/sassdoc.tmLanguage.js +362 -0
- package/dist/scala.js +85 -0
- package/dist/scalameta.js +224 -0
- package/dist/scss.js +117 -0
- package/dist/scss.tmLanguage.js +1887 -0
- package/dist/sdl.js +162 -0
- package/dist/sdl2.js +90 -0
- package/dist/semanticdb.js +62 -0
- package/dist/shell-unix-bash.tmLanguage.js +2038 -0
- package/dist/shellscript.js +93 -0
- package/dist/solargraph.js +192 -0
- package/dist/solidity-solidity.js +213 -0
- package/dist/solidity.js +1224 -0
- package/dist/solidity2.js +71 -0
- package/dist/solidity3.js +143 -0
- package/dist/sql.js +99 -0
- package/dist/sql.tmLanguage.js +636 -0
- package/dist/svelte.js +120 -0
- package/dist/svelte.svelte-vscode-javascript.js +45 -0
- package/dist/svelte.svelte-vscode-svelte.js +46 -0
- package/dist/svelte.svelte-vscode-typescript.js +43 -0
- package/dist/svelte.svelte-vscode.js +383 -0
- package/dist/svelte.tmLanguage.src.yaml.js +1099 -0
- package/dist/svlangserver-systemverilog.js +395 -0
- package/dist/svlangserver.js +85 -0
- package/dist/swift-swift.code-snippets.js +183 -0
- package/dist/swift.js +90 -0
- package/dist/swift.tmLanguage.js +3312 -0
- package/dist/systemverilog.js +187 -0
- package/dist/systemverilog.tmLanguage.js +1259 -0
- package/dist/tasty.js +72 -0
- package/dist/tcl-tcl.js +151 -0
- package/dist/tcl.js +78 -0
- package/dist/tcl.tmlanguage.yaml.js +5490 -0
- package/dist/template.js +207 -0
- package/dist/theme/index.d.ts +4 -1
- package/dist/theme-defaults~dark_plus.js +210 -0
- package/dist/theme-defaults~dark_plus_experimental.js +145 -0
- package/dist/theme-defaults~dark_vs.js +412 -0
- package/dist/theme-defaults~hc_black.js +471 -0
- package/dist/theme-defaults~hc_light.js +595 -0
- package/dist/theme-defaults~light_plus.js +212 -0
- package/dist/theme-defaults~light_plus_experimental.js +158 -0
- package/dist/theme-defaults~light_vs.js +441 -0
- package/dist/tools/EditorOpenHandlerRegistry.d.ts +2 -3
- package/dist/ts.worker.js +6 -0
- package/dist/typescript-basics-typescript.code-snippets.js +313 -0
- package/dist/typescript-language-features.js +1103 -0
- package/dist/typescript.js +216 -0
- package/dist/typescriptreact.js +216 -0
- package/dist/vb-vb.code-snippets.js +88 -0
- package/dist/vb.js +79 -0
- package/dist/verilog.js +187 -0
- package/dist/{node_modules/monaco-vim/lib/cm/keymap_vim.js → vim.js} +1790 -4
- package/dist/volar-vue.js +289 -0
- package/dist/vscode-R-r-snippets.js +534 -0
- package/dist/vscode-R-rmarkdown.js +461 -0
- package/dist/vscode-R.js +660 -0
- package/dist/vscode-django-filters.js +340 -0
- package/dist/vscode-django.js +37 -0
- package/dist/vscode-go-go.js +276 -0
- package/dist/vscode-go.js +1610 -0
- package/dist/vscode-groovy.js +28 -0
- package/dist/vscode-python.js +706 -0
- package/dist/vue-directives.js +25 -0
- package/dist/vue-interpolations.js +25 -0
- package/dist/vue-sfc-style-variable-injection.js +63 -0
- package/dist/vue.js +151 -0
- package/dist/vue.tmLanguage.js +1218 -0
- package/dist/worker.d.ts +10 -1
- package/dist/worker.js +43 -11
- package/dist/xml.js +116 -0
- package/dist/xml.tmLanguage.js +395 -0
- package/dist/xsl.js +39 -0
- package/dist/xsl.tmLanguage.js +102 -0
- package/dist/yaml.js +82 -0
- package/dist/yaml.tmLanguage.js +629 -0
- package/package.json +67 -127
- package/stats.html +1429 -90
- package/dist/_virtual/_monaco-editor.js +0 -6
- package/dist/_virtual/actions.js +0 -3
- package/dist/_virtual/basicInput.js +0 -3
- package/dist/_virtual/cm_adapter.js +0 -3
- package/dist/_virtual/commands.js +0 -3
- package/dist/_virtual/editor.api.js +0 -6
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/keymap_vim.js +0 -3
- package/dist/_virtual/shiftCommand.js +0 -6
- package/dist/_virtual/state.js +0 -3
- package/dist/_virtual/statusbar.js +0 -3
- package/dist/_virtual/util.js +0 -3
- package/dist/assets/Angular.ng-template-16.1.8.vsix/expression-c051cd51.json +0 -834
- package/dist/assets/Angular.ng-template-16.1.8.vsix/inline-styles-59ea31e9.json +0 -92
- package/dist/assets/Angular.ng-template-16.1.8.vsix/inline-template-f0c3f556.json +0 -76
- package/dist/assets/Angular.ng-template-16.1.8.vsix/template-e24e3ba1.json +0 -195
- package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/dart-bea1db40.json +0 -534
- package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/dart-language-configuration-c4b1f694.json +0 -29
- package/dist/assets/Dart-Code.dart-code-3.75.20231009.vsix/flutter_activity_bar-17811551.svg +0 -14
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/codeblock-67e70f41.json +0 -81
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/language-configuration-3467c3a6.json +0 -57
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog-ff001e9f.json +0 -349
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog.tmLanguage-31a99a46.json +0 -1246
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/tasks.schema-832643df.json +0 -30
- package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/eex-e9a5e762.json +0 -41
- package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/eex-language-configuration-6fb789e3.json +0 -58
- package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/elixir-7cb5db44.json +0 -2580
- package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/elixir-language-configuration-4bd217f4.json +0 -74
- package/dist/assets/JakeBecker.elixir-ls-0.17.1.vsix/html-eex-3079072a.json +0 -25
- package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity-1f693465.json +0 -213
- package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity-642a30e7.json +0 -1215
- package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity.configuration-d0229207.json +0 -32
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Markdown Redcarpet-12881a56.json +0 -146
- package/dist/assets/REditorSupport.r-2.8.2.vsix/RMarkdown-0bbb72c0.json +0 -13
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Rcpp-cea57c6d.json +0 -34
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Rd (R Documentation)-555f4e62.json +0 -117
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Rlogo-6d3318a6.svg +0 -14
- package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf-3d561f42.json +0 -82
- package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf-configuration-d58bba2d.json +0 -24
- package/dist/assets/REditorSupport.r-2.8.2.vsix/r-configuration-78e137e5.json +0 -33
- package/dist/assets/REditorSupport.r-2.8.2.vsix/r-fe2a45c3.json +0 -647
- package/dist/assets/REditorSupport.r-2.8.2.vsix/r-snippets-9e46c45c.json +0 -475
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore-9cfe22f1.json +0 -27
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore-configuration-8eb95bcb.json +0 -2
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rd-configuration-194dd9d9.json +0 -27
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rmarkdown-dea1e283.json +0 -459
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rmd-configuration-b4c6dc23.json +0 -27
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rnamespace-290042cd.json +0 -222
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls-8c1cec26.json +0 -24
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls.pt-br-50a237c2.json +0 -24
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal-365151a8.json +0 -414
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal-93ca5af8.tmLanguage +0 -243
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal.configuration-650e481b.json +0 -32
- package/dist/assets/batisteo.vscode-django-1.14.0.vsix/django-html.tmLanguage-a755b992.json +0 -701
- package/dist/assets/batisteo.vscode-django-1.14.0.vsix/django-txt.tmLanguage-856346a9.json +0 -255
- package/dist/assets/batisteo.vscode-django-1.14.0.vsix/filters-f60b575d.json +0 -339
- package/dist/assets/batisteo.vscode-django-1.14.0.vsix/language-configuration-f8af0b2f.json +0 -63
- package/dist/assets/batisteo.vscode-django-1.14.0.vsix/tags-43e8b685.json +0 -496
- package/dist/assets/bitwisecook.tcl-0.4.3.vsix/language-configuration-e9539ff0.json +0 -75
- package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl-10fb1e40.json +0 -142
- package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl-d73ae460.json +0 -5474
- package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/COBOL.tmLanguage-67e1eefb.json +0 -216
- package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/lang-config-a301d1b9.json +0 -27
- package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/pgm_conf.schema-f8558717.json +0 -24
- package/dist/assets/broadcomMFD.cobol-language-support-2.0.3.vsix/proc_grps.schema-428d2a80.json +0 -55
- package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/language-configuration-b3cf7aac.json +0 -25
- package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/pgsql-a84fddae.tmLanguage +0 -413
- package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/postgres-explorer-ce4bf408.svg +0 -100
- package/dist/assets/golang.Go-0.39.1.vsix/go-71588b74.json +0 -274
- package/dist/assets/golang.Go-0.39.1.vsix/go.mod.language-configuration-0301a994.json +0 -5
- package/dist/assets/golang.Go-0.39.1.vsix/go.mod.tmGrammar-6cbef28b.json +0 -171
- package/dist/assets/golang.Go-0.39.1.vsix/go.sum.tmGrammar-36d4acfd.json +0 -44
- package/dist/assets/golang.Go-0.39.1.vsix/govulncheck.tmGrammar-3741e2c9.json +0 -123
- package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-directives-77c45bf9.json +0 -123
- package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-interpolations-b1f89745.json +0 -44
- package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-template-language-configuration-4cd1b761.json +0 -8
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs-c12145c8.json +0 -23
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs-configuration-dc72a3f0.json +0 -29
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs-685ef114.json +0 -23
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs-configuration-15e5e5c3.json +0 -30
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/alex-07217e37.json +0 -236
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal-8f2b8b9f.json +0 -53
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal-configuration-64e517a3.json +0 -6
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-cabal-34484e34.json +0 -28
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-haskell-138d661e.json +0 -28
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-literate-haskell-90d8db8f.json +0 -28
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/happy-3cd8fa35.json +0 -196
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell-192ef944.json +0 -2525
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell-configuration-54079281.json +0 -29
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literate-haskell-configuration-23cbb80e.json +0 -29
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literateHaskell-0a08d9f7.json +0 -56
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/Kotlin-5d2aa580.tmLanguage +0 -1067
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/codeblock-8be87145.json +0 -22
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin-9f43cb02.json +0 -107
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin.configuration-1d328649.json +0 -35
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/aspnetcorerazor.tmLanguage-7002af3f.json +0 -1812
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/csharp-a17ace76.json +0 -493
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/language-configuration-f8b16509.json +0 -24
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls-b9937871.json +0 -419
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.cs-80b9e0b3.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.de-2f7710c0.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.es-d1bd829b.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.fr-e0bc41f9.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.it-0e21bedf.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ja-2384013f.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ko-621d3dfe.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.pl-bd72e09e.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.pt-br-a446b36f.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.ru-923ade42.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.tr-10253fa3.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.zh-cn-00cb169d.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/package.nls.zh-tw-1c34b33a.json +0 -201
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/vs2019_dark-a56f6e51.json +0 -783
- package/dist/assets/ms-dotnettools.csharp-2.6.24.vsix/vs2019_light-fd29b4ae.json +0 -807
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/conda-environment-3aa03e16.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/conda-meta-e7f42ee0.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/condarc-8ad258e5.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls-c97ce436.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.cs-5dee4ffc.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.de-b852e3ec.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.es-66adbb9e.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.fr-6abf0276.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.it-12650beb.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ja-de4ee3bd.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ko-254d6467.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.pl-f957d6c6.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.pt-br-d02ca4d9.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.qps-ploc-f24b5e76.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.ru-e6ba5e62.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.tr-05d98040.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.zh-cn-f41941e0.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/package.nls.zh-tw-02c30e90.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/pip-requirements-85cd5b06.json +0 -1
- package/dist/assets/ms-python.python-2023.19.12861011.vsix/pip-requirements.tmLanguage-5dcdde1f.json +0 -1
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls-faad5326.json +0 -1006
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.cs-1c63e64b.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.de-a80f3548.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.es-ed5f9669.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.fr-0a6f6680.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.it-690d744e.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ja-9e548ee8.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ko-b7c6d97d.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.pl-fac1f880.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.pt-br-618e6fff.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.ru-b8aa8e97.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.tr-61b293ea.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.zh-cn-2fb473f1.json +0 -441
- package/dist/assets/ms-vscode.cpptools-1.18.0.vsix/package.nls.zh-tw-bd960e98.json +0 -441
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/META-a4e7fa6f.json +0 -56
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/META-e71a284d.json +0 -10
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/atd-03beef93.json +0 -57
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/cram-947e10d8.json +0 -167
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-3f9df928.json +0 -24
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-ac59c79b.json +0 -2949
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-b84b8558.json +0 -30
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-project-1f8165b1.json +0 -26
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-project-c3d6414c.json +0 -326
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/dune-workspace-714d48f4.json +0 -191
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/logo-1ec58c70.svg +0 -3
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-318b208e.json +0 -349
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-action-1de9ecfe.json +0 -29
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/menhir-ba3ffd84.json +0 -27
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/merlin-68658127.json +0 -73
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/oasis-6cb9104d.json +0 -6
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/oasis-b3731651.json +0 -69
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-2b852e88.json +0 -54
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-721ae493.json +0 -654
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-8263d04c.json +0 -49
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml-markdown-codeblock-d59b1879.json +0 -24
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocaml.interface-82c9d397.json +0 -161
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlbuild-28c2016d.json +0 -110
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlbuild-68c3ee9d.json +0 -16
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamldoc-68623cf8.json +0 -31
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlformat-12d00ff4.json +0 -5
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamlformat-566f44ca.json +0 -191
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-16f56b53.json +0 -6
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-2f54f6a7.json +0 -21
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/ocamllex-9eea3c0f.json +0 -108
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-051cc018.json +0 -24
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-a3126c97.json +0 -111
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-install-24f044a3.json +0 -23
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/opam-install-5c433c27.json +0 -19
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-46868a8a.json +0 -2357
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-e5da4a73.json +0 -25
- package/dist/assets/ocamllabs.ocaml-platform-1.13.1.vsix/reason-markdown-codeblock-80e4eeb5.json +0 -24
- package/dist/assets/pgourlain.erlang-0.9.7.vsix/Erlang-dc87abbd.plist +0 -2719
- package/dist/assets/pgourlain.erlang-0.9.7.vsix/erlang-ceac2319.json +0 -197
- package/dist/assets/pgourlain.erlang-0.9.7.vsix/erlang.configuration-52d0fdab.json +0 -25
- package/dist/assets/redhat.java-1.24.2023101604.vsix/JavaProperties.tmLanguage-0a8c48eb.json +0 -103
- package/dist/assets/redhat.java-1.24.2023101604.vsix/java-properties-configuration-97f1db18.json +0 -67
- package/dist/assets/redhat.java-1.24.2023101604.vsix/java.tmLanguage-7cffeca4.json +0 -1892
- package/dist/assets/redhat.java-1.24.2023101604.vsix/language-configuration-054e92b8.json +0 -92
- package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls-2147d73e.json +0 -29
- package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.ko-a7811004.json +0 -26
- package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.zh-cn-5b3edff8.json +0 -27
- package/dist/assets/redhat.java-1.24.2023101604.vsix/package.nls.zh-tw-236ee4a0.json +0 -26
- package/dist/assets/redhat.java-1.24.2023101604.vsix/package.schema-58232c4f.json +0 -28
- package/dist/assets/scala-lang.scala-0.5.7.vsix/Scala.tmLanguage-e9b79520.json +0 -1
- package/dist/assets/scala-lang.scala-0.5.7.vsix/language-configuration-acc80ed1.json +0 -33
- package/dist/assets/scalameta.metals-1.25.2.vsix/book-dark-6f0d6908.svg +0 -5
- package/dist/assets/scalameta.metals-1.25.2.vsix/book-light-ba883494.svg +0 -1
- package/dist/assets/scalameta.metals-1.25.2.vsix/buildtarget-73bbface.json +0 -37
- package/dist/assets/scalameta.metals-1.25.2.vsix/file_type_java-36bb31ca.svg +0 -1
- package/dist/assets/scalameta.metals-1.25.2.vsix/file_type_scala-b6c14b23.svg +0 -1
- package/dist/assets/scalameta.metals-1.25.2.vsix/jvm-bytecode-cab4d04e.json +0 -395
- package/dist/assets/scalameta.metals-1.25.2.vsix/jvm-bytecode-verbose-3611fa8e.json +0 -745
- package/dist/assets/scalameta.metals-1.25.2.vsix/scalameta-5e510695.svg +0 -11
- package/dist/assets/scalameta.metals-1.25.2.vsix/scalameta-logo-f3b7b0bf.png +0 -0
- package/dist/assets/scalameta.metals-1.25.2.vsix/semanticdb-44c14f33.json +0 -37
- package/dist/assets/scalameta.metals-1.25.2.vsix/tasty-c2b151f2.json +0 -56
- package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls-f1576108.json +0 -231
- package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.pt-br-44d0849d.json +0 -231
- package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.zh-cn-3f634909.json +0 -231
- package/dist/assets/sumneko.lua-3.7.0.vsix/package.nls.zh-tw-144dc848.json +0 -231
- package/dist/assets/sumneko.lua-3.7.0.vsix/schema-dedfd658.json +0 -3421
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/javascript-7aebc91a.json +0 -43
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/language-configuration-3cb1f78d.json +0 -38
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-4cd58a41.json +0 -45
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-css-0fdc510e.json +0 -23
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/markdown-svelte-js-cd568059.json +0 -23
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/package-json-schema-ec2f7bd4.json +0 -9
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/postcss-05883dcd.json +0 -377
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/prettier-options-schema-9e36a684.json +0 -112
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-04246371.json +0 -293
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-dotblock-b92db507.json +0 -55
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/pug-svelte-tags-65124af1.json +0 -201
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/svelte-a1bb47f3.json +0 -22
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/svelte.tmLanguage-aec82be9.json +0 -1163
- package/dist/assets/svelte.svelte-vscode-107.12.0.vsix/typescript-bd1c0ff1.json +0 -37
- package/dist/assets/webfreak.code-d-0.23.2.vsix/d-2da26fd0.json +0 -3163
- package/dist/assets/webfreak.code-d-0.23.2.vsix/d-316cb838.json +0 -90
- package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-0b761e76.json +0 -87
- package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-7fe4fdb7.json +0 -92
- package/dist/assets/webfreak.code-d-0.23.2.vsix/diet-83c1bebc.json +0 -742
- package/dist/assets/webfreak.code-d-0.23.2.vsix/dml-ef6957d3.json +0 -157
- package/dist/assets/webfreak.code-d-0.23.2.vsix/dub.schema-77c2f417.json +0 -377
- package/dist/assets/webfreak.code-d-0.23.2.vsix/general-7b927912.json +0 -84
- package/dist/assets/webfreak.code-d-0.23.2.vsix/sdl-b6c61596.json +0 -149
- package/dist/configuration/index.js +0 -45
- package/dist/editor/autofold.js +0 -24
- package/dist/editor/cobol.js +0 -67
- package/dist/editor/index.js +0 -9
- package/dist/extensions/Angular.ng-template-16.1.8.vsix.js +0 -16
- package/dist/extensions/Dart-Code.dart-code-3.75.20231009.vsix.js +0 -14
- package/dist/extensions/IMCTradingBV.svlangserver-0.4.1.vsix.js +0 -18
- package/dist/extensions/JakeBecker.elixir-ls-0.17.1.vsix.js +0 -18
- package/dist/extensions/JuanBlanco.solidity-0.0.165.vsix.js +0 -14
- package/dist/extensions/REditorSupport.r-2.8.2.vsix.js +0 -42
- package/dist/extensions/alefragnani.pascal-9.6.0.vsix.js +0 -18
- package/dist/extensions/batisteo.vscode-django-1.14.0.vsix.js +0 -18
- package/dist/extensions/bitwisecook.tcl-0.4.3.vsix.js +0 -14
- package/dist/extensions/broadcomMFD.cobol-language-support-2.0.3.vsix.js +0 -16
- package/dist/extensions/castwide.solargraph-0.24.0.vsix.js +0 -5
- package/dist/extensions/ckolkman.vscode-postgres-1.4.3.vsix.js +0 -14
- package/dist/extensions/golang.Go-0.39.1.vsix.js +0 -18
- package/dist/extensions/johnsoncodehk.vscode-angular-1.0.22.vsix.js +0 -14
- package/dist/extensions/justusadam.language-haskell-3.6.0.vsix.js +0 -38
- package/dist/extensions/mathiasfrohlich.Kotlin-1.7.1.vsix.js +0 -16
- package/dist/extensions/ms-dotnettools.csharp-2.6.24.vsix.js +0 -46
- package/dist/extensions/ms-python.python-2023.19.12861011.vsix.js +0 -48
- package/dist/extensions/ms-vscode.cpptools-1.18.0.vsix.js +0 -36
- package/dist/extensions/ocamllabs.ocaml-platform-1.13.1.vsix.js +0 -82
- package/dist/extensions/pgourlain.erlang-0.9.7.vsix.js +0 -14
- package/dist/extensions/redhat.java-1.24.2023101604.vsix.js +0 -26
- package/dist/extensions/scala-lang.scala-0.5.7.vsix.js +0 -12
- package/dist/extensions/scalameta.metals-1.25.2.vsix.js +0 -30
- package/dist/extensions/sumneko.lua-3.7.0.vsix.js +0 -18
- package/dist/extensions/svelte.svelte-vscode-107.12.0.vsix.js +0 -36
- package/dist/extensions/webfreak.code-d-0.23.2.vsix.js +0 -26
- package/dist/extensions.d.ts +0 -36
- package/dist/features/debug.js +0 -6
- package/dist/features/extensionHostWorker.js +0 -11
- package/dist/features/search.d.ts +0 -1
- package/dist/features/search.js +0 -7
- package/dist/features/viewPanels.d.ts +0 -1
- package/dist/features/viewPanels.js +0 -11
- package/dist/features/views.d.ts +0 -4
- package/dist/features/views.js +0 -27
- package/dist/keybindings/index.js +0 -36
- package/dist/keybindings/vim.js +0 -82
- package/dist/languages/index.js +0 -40
- package/dist/monaco.js +0 -93
- package/dist/node_modules/lodash.kebabcase/index.js +0 -439
- package/dist/node_modules/lodash.throttle/index.js +0 -443
- package/dist/node_modules/monaco-emacs/lib/emacs/actions.js +0 -596
- package/dist/node_modules/monaco-emacs/lib/emacs/basicInput.js +0 -113
- package/dist/node_modules/monaco-emacs/lib/emacs/commands.js +0 -184
- package/dist/node_modules/monaco-emacs/lib/emacs/index.js +0 -186
- package/dist/node_modules/monaco-emacs/lib/emacs/state.js +0 -116
- package/dist/node_modules/monaco-emacs/lib/emacs/util.js +0 -112
- package/dist/node_modules/monaco-emacs/lib/index.js +0 -31
- package/dist/node_modules/monaco-vim/lib/cm_adapter.js +0 -1393
- package/dist/node_modules/monaco-vim/lib/index.js +0 -71
- package/dist/node_modules/monaco-vim/lib/statusbar.js +0 -239
- package/dist/services.d.ts +0 -8
- package/dist/services.js +0 -73
- package/dist/style.js +0 -12
- package/dist/theme/index.js +0 -21
- package/dist/tools/EditorOpenHandlerRegistry.js +0 -108
- package/dist/tools/FakeWorker.d.ts +0 -5
- package/dist/tools/FakeWorker.js +0 -8
- package/dist/tools.js +0 -235
- /package/dist/{editor → extensions}/autofold.d.ts +0 -0
- /package/dist/{editor → extensions}/cobol.d.ts +0 -0
- /package/dist/{editor → extensions}/index.d.ts +0 -0
- /package/dist/{features/debug.d.ts → languages/snippets/index.d.ts} +0 -0
- /package/dist/{features/extensionHostWorker.d.ts → languages/textMate/semanticTokens.d.ts} +0 -0
|
@@ -1,6 +1,1408 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
1
|
+
import { g as getAugmentedNamespace, r as require$$0 } from './_monaco-editor_commonjs-external.js';
|
|
2
|
+
import * as shiftCommand from 'monaco-editor/esm/vs/editor/common/commands/shiftCommand';
|
|
3
|
+
import { configurationRegistry, ConfigurationScope } from 'vscode/service-override/configuration';
|
|
4
|
+
import { o as onConfigurationChanged, g as getConfiguration } from './index2.js';
|
|
5
|
+
import 'monaco-editor/esm/vs/editor/editor.api';
|
|
6
|
+
import 'vscode/services';
|
|
7
|
+
import './_rollupPluginBabelHelpers.js';
|
|
8
|
+
|
|
9
|
+
var lib = {};
|
|
10
|
+
|
|
11
|
+
var keymap_vim = {};
|
|
12
|
+
|
|
13
|
+
var cm_adapter = {};
|
|
14
|
+
|
|
15
|
+
var require$$1 = /*@__PURE__*/getAugmentedNamespace(shiftCommand);
|
|
16
|
+
|
|
17
|
+
(function (exports) {
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports["default"] = void 0;
|
|
23
|
+
|
|
24
|
+
var _monacoEditor = require$$0;
|
|
25
|
+
|
|
26
|
+
var _shiftCommand = require$$1;
|
|
27
|
+
|
|
28
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
+
|
|
30
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31
|
+
|
|
32
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
33
|
+
|
|
34
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
35
|
+
|
|
36
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
37
|
+
|
|
38
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
+
|
|
40
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
41
|
+
|
|
42
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43
|
+
|
|
44
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
45
|
+
|
|
46
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
47
|
+
|
|
48
|
+
var VerticalRevealType = {
|
|
49
|
+
Bottom: 4
|
|
50
|
+
}; // for monaco 0.19.x where x < 3
|
|
51
|
+
|
|
52
|
+
var EditorOptConstants = {
|
|
53
|
+
readOnly: 65,
|
|
54
|
+
cursorWidth: 20,
|
|
55
|
+
fontInfo: 32
|
|
56
|
+
};
|
|
57
|
+
var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
58
|
+
|
|
59
|
+
function isWordCharBasic(ch) {
|
|
60
|
+
return /\w/.test(ch) || ch > "\x80" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function Pos(line, column) {
|
|
64
|
+
if (!(this instanceof Pos)) {
|
|
65
|
+
return new Pos(line, column);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
this.line = line;
|
|
69
|
+
this.ch = column;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function signal(cm, signal, args) {
|
|
73
|
+
cm.dispatch(signal, args);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
function dummy(key) {
|
|
77
|
+
return function () {// console.log(key, 'dummy function called with', Array.prototype.slice.call(arguments));
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
var StringStream = function StringStream(string, tabSize) {
|
|
82
|
+
this.pos = this.start = 0;
|
|
83
|
+
this.string = string;
|
|
84
|
+
this.tabSize = tabSize || 8;
|
|
85
|
+
this.lastColumnPos = this.lastColumnValue = 0;
|
|
86
|
+
this.lineStart = 0;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
StringStream.prototype = {
|
|
90
|
+
eol: function eol() {
|
|
91
|
+
return this.pos >= this.string.length;
|
|
92
|
+
},
|
|
93
|
+
sol: function sol() {
|
|
94
|
+
return this.pos == this.lineStart;
|
|
95
|
+
},
|
|
96
|
+
peek: function peek() {
|
|
97
|
+
return this.string.charAt(this.pos) || undefined;
|
|
98
|
+
},
|
|
99
|
+
next: function next() {
|
|
100
|
+
if (this.pos < this.string.length) return this.string.charAt(this.pos++);
|
|
101
|
+
},
|
|
102
|
+
eat: function eat(match) {
|
|
103
|
+
var ch = this.string.charAt(this.pos);
|
|
104
|
+
if (typeof match == "string") var ok = ch == match;else var ok = ch && (match.test ? match.test(ch) : match(ch));
|
|
105
|
+
|
|
106
|
+
if (ok) {
|
|
107
|
+
++this.pos;
|
|
108
|
+
return ch;
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
eatWhile: function eatWhile(match) {
|
|
112
|
+
var start = this.pos;
|
|
113
|
+
|
|
114
|
+
while (this.eat(match)) {}
|
|
115
|
+
|
|
116
|
+
return this.pos > start;
|
|
117
|
+
},
|
|
118
|
+
eatSpace: function eatSpace() {
|
|
119
|
+
var start = this.pos;
|
|
120
|
+
|
|
121
|
+
while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) {
|
|
122
|
+
++this.pos;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return this.pos > start;
|
|
126
|
+
},
|
|
127
|
+
skipToEnd: function skipToEnd() {
|
|
128
|
+
this.pos = this.string.length;
|
|
129
|
+
},
|
|
130
|
+
skipTo: function skipTo(ch) {
|
|
131
|
+
var found = this.string.indexOf(ch, this.pos);
|
|
132
|
+
|
|
133
|
+
if (found > -1) {
|
|
134
|
+
this.pos = found;
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
backUp: function backUp(n) {
|
|
139
|
+
this.pos -= n;
|
|
140
|
+
},
|
|
141
|
+
column: function column() {
|
|
142
|
+
throw "not implemented";
|
|
143
|
+
},
|
|
144
|
+
indentation: function indentation() {
|
|
145
|
+
throw "not implemented";
|
|
146
|
+
},
|
|
147
|
+
match: function match(pattern, consume, caseInsensitive) {
|
|
148
|
+
if (typeof pattern == "string") {
|
|
149
|
+
var cased = function cased(str) {
|
|
150
|
+
return caseInsensitive ? str.toLowerCase() : str;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
var substr = this.string.substr(this.pos, pattern.length);
|
|
154
|
+
|
|
155
|
+
if (cased(substr) == cased(pattern)) {
|
|
156
|
+
if (consume !== false) this.pos += pattern.length;
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
var match = this.string.slice(this.pos).match(pattern);
|
|
161
|
+
if (match && match.index > 0) return null;
|
|
162
|
+
if (match && consume !== false) this.pos += match[0].length;
|
|
163
|
+
return match;
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
current: function current() {
|
|
167
|
+
return this.string.slice(this.start, this.pos);
|
|
168
|
+
},
|
|
169
|
+
hideFirstChars: function hideFirstChars(n, inner) {
|
|
170
|
+
this.lineStart += n;
|
|
171
|
+
|
|
172
|
+
try {
|
|
173
|
+
return inner();
|
|
174
|
+
} finally {
|
|
175
|
+
this.lineStart -= n;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
function toCmPos(pos) {
|
|
181
|
+
return new Pos(pos.lineNumber - 1, pos.column - 1);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function toMonacoPos(pos) {
|
|
185
|
+
return new _monacoEditor.Position(pos.line + 1, pos.ch + 1);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
var Marker = /*#__PURE__*/function () {
|
|
189
|
+
function Marker(cm, id, line, ch) {
|
|
190
|
+
_classCallCheck(this, Marker);
|
|
191
|
+
|
|
192
|
+
this.cm = cm;
|
|
193
|
+
this.id = id;
|
|
194
|
+
this.lineNumber = line + 1;
|
|
195
|
+
this.column = ch + 1;
|
|
196
|
+
cm.marks[this.id] = this;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
_createClass(Marker, [{
|
|
200
|
+
key: "clear",
|
|
201
|
+
value: function clear() {
|
|
202
|
+
delete this.cm.marks[this.id];
|
|
203
|
+
}
|
|
204
|
+
}, {
|
|
205
|
+
key: "find",
|
|
206
|
+
value: function find() {
|
|
207
|
+
return toCmPos(this);
|
|
208
|
+
}
|
|
209
|
+
}]);
|
|
210
|
+
|
|
211
|
+
return Marker;
|
|
212
|
+
}();
|
|
213
|
+
|
|
214
|
+
function monacoToCmKey(e) {
|
|
215
|
+
var skip = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
216
|
+
var addQuotes = true;
|
|
217
|
+
var keyName = _monacoEditor.KeyCode[e.keyCode];
|
|
218
|
+
|
|
219
|
+
if (e.key) {
|
|
220
|
+
keyName = e.key;
|
|
221
|
+
addQuotes = false;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
var key = keyName;
|
|
225
|
+
var skipOnlyShiftCheck = skip;
|
|
226
|
+
|
|
227
|
+
switch (e.keyCode) {
|
|
228
|
+
case _monacoEditor.KeyCode.Shift:
|
|
229
|
+
case _monacoEditor.KeyCode.Meta:
|
|
230
|
+
case _monacoEditor.KeyCode.Alt:
|
|
231
|
+
case _monacoEditor.KeyCode.Ctrl:
|
|
232
|
+
return key;
|
|
233
|
+
|
|
234
|
+
case _monacoEditor.KeyCode.Escape:
|
|
235
|
+
skipOnlyShiftCheck = true;
|
|
236
|
+
key = "Esc";
|
|
237
|
+
break;
|
|
238
|
+
|
|
239
|
+
case _monacoEditor.KeyCode.Space:
|
|
240
|
+
skipOnlyShiftCheck = true;
|
|
241
|
+
break;
|
|
242
|
+
} // `Key` check for monaco >= 0.30.0
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
if (keyName.startsWith("Key") || keyName.startsWith("KEY_")) {
|
|
246
|
+
key = keyName[keyName.length - 1].toLowerCase();
|
|
247
|
+
} else if (keyName.startsWith("Digit")) {
|
|
248
|
+
key = keyName.slice(5, 6);
|
|
249
|
+
} else if (keyName.startsWith("Numpad")) {
|
|
250
|
+
key = keyName.slice(6, 7);
|
|
251
|
+
} else if (keyName.endsWith("Arrow")) {
|
|
252
|
+
skipOnlyShiftCheck = true;
|
|
253
|
+
key = keyName.substring(0, keyName.length - 5);
|
|
254
|
+
} else if (keyName.startsWith("US_") || // `Bracket` check for monaco >= 0.30.0
|
|
255
|
+
keyName.startsWith("Bracket") || !key) {
|
|
256
|
+
key = e.browserEvent.key;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (!skipOnlyShiftCheck && !e.altKey && !e.ctrlKey && !e.metaKey) {
|
|
260
|
+
key = e.key || e.browserEvent.key;
|
|
261
|
+
} else {
|
|
262
|
+
if (e.altKey) {
|
|
263
|
+
key = "Alt-".concat(key);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (e.ctrlKey) {
|
|
267
|
+
key = "Ctrl-".concat(key);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
if (e.metaKey) {
|
|
271
|
+
key = "Meta-".concat(key);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (e.shiftKey) {
|
|
275
|
+
key = "Shift-".concat(key);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (key.length === 1 && addQuotes) {
|
|
280
|
+
key = "'".concat(key, "'");
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return key;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
var CMAdapter = /*#__PURE__*/function () {
|
|
287
|
+
function CMAdapter(editor) {
|
|
288
|
+
_classCallCheck(this, CMAdapter);
|
|
289
|
+
|
|
290
|
+
_initialiseProps.call(this);
|
|
291
|
+
|
|
292
|
+
this.editor = editor;
|
|
293
|
+
this.state = {
|
|
294
|
+
keyMap: "vim"
|
|
295
|
+
};
|
|
296
|
+
this.marks = {};
|
|
297
|
+
this.$uid = 0;
|
|
298
|
+
this.disposables = [];
|
|
299
|
+
this.listeners = {};
|
|
300
|
+
this.curOp = {};
|
|
301
|
+
this.attached = false;
|
|
302
|
+
this.statusBar = null;
|
|
303
|
+
this.options = {};
|
|
304
|
+
this.addLocalListeners();
|
|
305
|
+
this.ctxInsert = this.editor.createContextKey("insertMode", true);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
_createClass(CMAdapter, [{
|
|
309
|
+
key: "attach",
|
|
310
|
+
value: function attach() {
|
|
311
|
+
CMAdapter.keyMap.vim.attach(this);
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
key: "addLocalListeners",
|
|
315
|
+
value: function addLocalListeners() {
|
|
316
|
+
this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange), this.editor.onDidChangeModelContent(this.handleChange), this.editor.onKeyDown(this.handleKeyDown));
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
key: "handleReplaceMode",
|
|
320
|
+
value: function handleReplaceMode(key, e) {
|
|
321
|
+
var fromReplace = false;
|
|
322
|
+
var _char = key;
|
|
323
|
+
var pos = this.editor.getPosition();
|
|
324
|
+
var range = new _monacoEditor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column + 1);
|
|
325
|
+
var forceMoveMarkers = true;
|
|
326
|
+
|
|
327
|
+
if (key.startsWith("'")) {
|
|
328
|
+
_char = key[1];
|
|
329
|
+
} else if (_char === "Enter") {
|
|
330
|
+
_char = "\n";
|
|
331
|
+
} else if (_char === "Backspace") {
|
|
332
|
+
var lastItem = this.replaceStack.pop();
|
|
333
|
+
|
|
334
|
+
if (!lastItem) {
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
fromReplace = true;
|
|
339
|
+
_char = lastItem;
|
|
340
|
+
range = new _monacoEditor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column - 1);
|
|
341
|
+
} else {
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
e.preventDefault();
|
|
346
|
+
e.stopPropagation();
|
|
347
|
+
|
|
348
|
+
if (!this.replaceStack) {
|
|
349
|
+
this.replaceStack = [];
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (!fromReplace) {
|
|
353
|
+
this.replaceStack.push(this.editor.getModel().getValueInRange(range));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
this.editor.executeEdits("vim", [{
|
|
357
|
+
text: _char,
|
|
358
|
+
range: range,
|
|
359
|
+
forceMoveMarkers: forceMoveMarkers
|
|
360
|
+
}]);
|
|
361
|
+
|
|
362
|
+
if (fromReplace) {
|
|
363
|
+
this.editor.setPosition(range.getStartPosition());
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}, {
|
|
367
|
+
key: "setOption",
|
|
368
|
+
value: function setOption(key, value) {
|
|
369
|
+
this.state[key] = value;
|
|
370
|
+
|
|
371
|
+
if (key === "theme") {
|
|
372
|
+
_monacoEditor.editor.setTheme(value);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}, {
|
|
376
|
+
key: "getConfiguration",
|
|
377
|
+
value: function getConfiguration() {
|
|
378
|
+
var editor = this.editor;
|
|
379
|
+
var opts = EditorOptConstants;
|
|
380
|
+
|
|
381
|
+
if (typeof editor.getConfiguration === "function") {
|
|
382
|
+
return editor.getConfiguration();
|
|
383
|
+
} else if ("EditorOption" in _monacoEditor.editor) {
|
|
384
|
+
// for monaco 0.19.3 onwards
|
|
385
|
+
opts = _monacoEditor.editor.EditorOption;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
return {
|
|
389
|
+
readOnly: editor.getOption(opts.readOnly),
|
|
390
|
+
viewInfo: {
|
|
391
|
+
cursorWidth: editor.getOption(opts.cursorWidth)
|
|
392
|
+
},
|
|
393
|
+
fontInfo: editor.getOption(opts.fontInfo)
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
}, {
|
|
397
|
+
key: "getOption",
|
|
398
|
+
value: function getOption(key) {
|
|
399
|
+
if (key === "readOnly") {
|
|
400
|
+
return this.getConfiguration().readOnly;
|
|
401
|
+
} else if (key === "firstLineNumber") {
|
|
402
|
+
return this.firstLine() + 1;
|
|
403
|
+
} else if (key === "indentWithTabs") {
|
|
404
|
+
return !this.editor.getModel().getOptions().insertSpaces;
|
|
405
|
+
} else {
|
|
406
|
+
if (typeof this.editor.getConfiguration === "function") {
|
|
407
|
+
return this.editor.getRawConfiguration()[key];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return this.editor.getRawOptions()[key];
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}, {
|
|
414
|
+
key: "dispatch",
|
|
415
|
+
value: function dispatch(signal) {
|
|
416
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
417
|
+
args[_key - 1] = arguments[_key];
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
var listeners = this.listeners[signal];
|
|
421
|
+
|
|
422
|
+
if (!listeners) {
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
listeners.forEach(function (handler) {
|
|
427
|
+
return handler.apply(void 0, args);
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
key: "on",
|
|
432
|
+
value: function on(event, handler) {
|
|
433
|
+
if (!this.listeners[event]) {
|
|
434
|
+
this.listeners[event] = [];
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
this.listeners[event].push(handler);
|
|
438
|
+
}
|
|
439
|
+
}, {
|
|
440
|
+
key: "off",
|
|
441
|
+
value: function off(event, handler) {
|
|
442
|
+
var listeners = this.listeners[event];
|
|
443
|
+
|
|
444
|
+
if (!listeners) {
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
this.listeners[event] = listeners.filter(function (l) {
|
|
449
|
+
return l !== handler;
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
}, {
|
|
453
|
+
key: "firstLine",
|
|
454
|
+
value: function firstLine() {
|
|
455
|
+
return 0;
|
|
456
|
+
}
|
|
457
|
+
}, {
|
|
458
|
+
key: "lastLine",
|
|
459
|
+
value: function lastLine() {
|
|
460
|
+
return this.lineCount() - 1;
|
|
461
|
+
}
|
|
462
|
+
}, {
|
|
463
|
+
key: "lineCount",
|
|
464
|
+
value: function lineCount() {
|
|
465
|
+
return this.editor.getModel().getLineCount();
|
|
466
|
+
}
|
|
467
|
+
}, {
|
|
468
|
+
key: "defaultTextHeight",
|
|
469
|
+
value: function defaultTextHeight() {
|
|
470
|
+
return 1;
|
|
471
|
+
}
|
|
472
|
+
}, {
|
|
473
|
+
key: "getLine",
|
|
474
|
+
value: function getLine(line) {
|
|
475
|
+
if (line < 0) {
|
|
476
|
+
return "";
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
var model = this.editor.getModel();
|
|
480
|
+
var maxLines = model.getLineCount();
|
|
481
|
+
|
|
482
|
+
if (line + 1 > maxLines) {
|
|
483
|
+
line = maxLines - 1;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
return this.editor.getModel().getLineContent(line + 1);
|
|
487
|
+
}
|
|
488
|
+
}, {
|
|
489
|
+
key: "getAnchorForSelection",
|
|
490
|
+
value: function getAnchorForSelection(selection) {
|
|
491
|
+
if (selection.isEmpty()) {
|
|
492
|
+
return selection.getPosition();
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
var selDir = selection.getDirection();
|
|
496
|
+
return selDir === _monacoEditor.SelectionDirection.LTR ? selection.getStartPosition() : selection.getEndPosition();
|
|
497
|
+
}
|
|
498
|
+
}, {
|
|
499
|
+
key: "getHeadForSelection",
|
|
500
|
+
value: function getHeadForSelection(selection) {
|
|
501
|
+
if (selection.isEmpty()) {
|
|
502
|
+
return selection.getPosition();
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
var selDir = selection.getDirection();
|
|
506
|
+
return selDir === _monacoEditor.SelectionDirection.LTR ? selection.getEndPosition() : selection.getStartPosition();
|
|
507
|
+
}
|
|
508
|
+
}, {
|
|
509
|
+
key: "getCursor",
|
|
510
|
+
value: function getCursor() {
|
|
511
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
512
|
+
|
|
513
|
+
if (!type) {
|
|
514
|
+
return toCmPos(this.editor.getPosition());
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
var sel = this.editor.getSelection();
|
|
518
|
+
var pos;
|
|
519
|
+
|
|
520
|
+
if (sel.isEmpty()) {
|
|
521
|
+
pos = sel.getPosition();
|
|
522
|
+
} else if (type === "anchor") {
|
|
523
|
+
pos = this.getAnchorForSelection(sel);
|
|
524
|
+
} else {
|
|
525
|
+
pos = this.getHeadForSelection(sel);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
return toCmPos(pos);
|
|
529
|
+
}
|
|
530
|
+
}, {
|
|
531
|
+
key: "getRange",
|
|
532
|
+
value: function getRange(start, end) {
|
|
533
|
+
var p1 = toMonacoPos(start);
|
|
534
|
+
var p2 = toMonacoPos(end);
|
|
535
|
+
return this.editor.getModel().getValueInRange(_monacoEditor.Range.fromPositions(p1, p2));
|
|
536
|
+
}
|
|
537
|
+
}, {
|
|
538
|
+
key: "getSelection",
|
|
539
|
+
value: function getSelection() {
|
|
540
|
+
var list = [];
|
|
541
|
+
var editor = this.editor;
|
|
542
|
+
editor.getSelections().map(function (sel) {
|
|
543
|
+
list.push(editor.getModel().getValueInRange(sel));
|
|
544
|
+
});
|
|
545
|
+
return list.join("\n");
|
|
546
|
+
}
|
|
547
|
+
}, {
|
|
548
|
+
key: "replaceRange",
|
|
549
|
+
value: function replaceRange(text, start, end) {
|
|
550
|
+
var p1 = toMonacoPos(start);
|
|
551
|
+
var p2 = !end ? p1 : toMonacoPos(end);
|
|
552
|
+
this.editor.executeEdits("vim", [{
|
|
553
|
+
text: text,
|
|
554
|
+
range: _monacoEditor.Range.fromPositions(p1, p2)
|
|
555
|
+
}]); // @TODO - Check if this breaks any other expectation
|
|
556
|
+
|
|
557
|
+
this.pushUndoStop();
|
|
558
|
+
}
|
|
559
|
+
}, {
|
|
560
|
+
key: "pushUndoStop",
|
|
561
|
+
value: function pushUndoStop() {
|
|
562
|
+
this.editor.pushUndoStop();
|
|
563
|
+
}
|
|
564
|
+
}, {
|
|
565
|
+
key: "setCursor",
|
|
566
|
+
value: function setCursor(line, ch) {
|
|
567
|
+
var pos = line;
|
|
568
|
+
|
|
569
|
+
if (_typeof(line) !== "object") {
|
|
570
|
+
pos = {};
|
|
571
|
+
pos.line = line;
|
|
572
|
+
pos.ch = ch;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
var monacoPos = this.editor.getModel().validatePosition(toMonacoPos(pos));
|
|
576
|
+
this.editor.setPosition(toMonacoPos(pos));
|
|
577
|
+
this.editor.revealPosition(monacoPos);
|
|
578
|
+
}
|
|
579
|
+
}, {
|
|
580
|
+
key: "somethingSelected",
|
|
581
|
+
value: function somethingSelected() {
|
|
582
|
+
return !this.editor.getSelection().isEmpty();
|
|
583
|
+
}
|
|
584
|
+
}, {
|
|
585
|
+
key: "operation",
|
|
586
|
+
value: function operation(fn, force) {
|
|
587
|
+
return fn();
|
|
588
|
+
}
|
|
589
|
+
}, {
|
|
590
|
+
key: "listSelections",
|
|
591
|
+
value: function listSelections() {
|
|
592
|
+
var _this = this;
|
|
593
|
+
|
|
594
|
+
var selections = this.editor.getSelections();
|
|
595
|
+
|
|
596
|
+
if (!selections.length || this.inVirtualSelectionMode) {
|
|
597
|
+
return [{
|
|
598
|
+
anchor: this.getCursor("anchor"),
|
|
599
|
+
head: this.getCursor("head")
|
|
600
|
+
}];
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
return selections.map(function (sel) {
|
|
604
|
+
sel.getPosition();
|
|
605
|
+
sel.getStartPosition();
|
|
606
|
+
sel.getEndPosition();
|
|
607
|
+
return {
|
|
608
|
+
anchor: _this.clipPos(toCmPos(_this.getAnchorForSelection(sel))),
|
|
609
|
+
head: _this.clipPos(toCmPos(_this.getHeadForSelection(sel)))
|
|
610
|
+
};
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
}, {
|
|
614
|
+
key: "focus",
|
|
615
|
+
value: function focus() {
|
|
616
|
+
this.editor.focus();
|
|
617
|
+
}
|
|
618
|
+
}, {
|
|
619
|
+
key: "setSelections",
|
|
620
|
+
value: function setSelections(selections, primIndex) {
|
|
621
|
+
var hasSel = !!this.editor.getSelections().length;
|
|
622
|
+
var sels = selections.map(function (sel, index) {
|
|
623
|
+
var anchor = sel.anchor,
|
|
624
|
+
head = sel.head;
|
|
625
|
+
|
|
626
|
+
if (hasSel) {
|
|
627
|
+
return _monacoEditor.Selection.fromPositions(toMonacoPos(anchor), toMonacoPos(head));
|
|
628
|
+
} else {
|
|
629
|
+
return _monacoEditor.Selection.fromPositions(toMonacoPos(head), toMonacoPos(anchor));
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
|
|
633
|
+
if (!primIndex) ; else if (sels[primIndex]) {
|
|
634
|
+
sels.push(sels.splice(primIndex, 1)[0]);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
if (!sels.length) {
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
var sel = sels[0];
|
|
642
|
+
var posToReveal;
|
|
643
|
+
|
|
644
|
+
if (sel.getDirection() === _monacoEditor.SelectionDirection.LTR) {
|
|
645
|
+
posToReveal = sel.getEndPosition();
|
|
646
|
+
} else {
|
|
647
|
+
posToReveal = sel.getStartPosition();
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
this.editor.setSelections(sels);
|
|
651
|
+
this.editor.revealPosition(posToReveal);
|
|
652
|
+
}
|
|
653
|
+
}, {
|
|
654
|
+
key: "setSelection",
|
|
655
|
+
value: function setSelection(frm, to) {
|
|
656
|
+
var range = _monacoEditor.Range.fromPositions(toMonacoPos(frm), toMonacoPos(to));
|
|
657
|
+
|
|
658
|
+
this.editor.setSelection(range);
|
|
659
|
+
}
|
|
660
|
+
}, {
|
|
661
|
+
key: "getSelections",
|
|
662
|
+
value: function getSelections() {
|
|
663
|
+
var editor = this.editor;
|
|
664
|
+
return editor.getSelections().map(function (sel) {
|
|
665
|
+
return editor.getModel().getValueInRange(sel);
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
}, {
|
|
669
|
+
key: "replaceSelections",
|
|
670
|
+
value: function replaceSelections(texts) {
|
|
671
|
+
var editor = this.editor;
|
|
672
|
+
editor.getSelections().forEach(function (sel, index) {
|
|
673
|
+
editor.executeEdits("vim", [{
|
|
674
|
+
range: sel,
|
|
675
|
+
text: texts[index],
|
|
676
|
+
forceMoveMarkers: false
|
|
677
|
+
}]);
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
}, {
|
|
681
|
+
key: "toggleOverwrite",
|
|
682
|
+
value: function toggleOverwrite(toggle) {
|
|
683
|
+
if (toggle) {
|
|
684
|
+
this.enterVimMode();
|
|
685
|
+
this.replaceMode = true;
|
|
686
|
+
} else {
|
|
687
|
+
this.leaveVimMode();
|
|
688
|
+
this.replaceMode = false;
|
|
689
|
+
this.replaceStack = [];
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}, {
|
|
693
|
+
key: "charCoords",
|
|
694
|
+
value: function charCoords(pos, mode) {
|
|
695
|
+
return {
|
|
696
|
+
top: pos.line,
|
|
697
|
+
left: pos.ch
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
}, {
|
|
701
|
+
key: "coordsChar",
|
|
702
|
+
value: function coordsChar(pos, mode) {
|
|
703
|
+
}
|
|
704
|
+
}, {
|
|
705
|
+
key: "clipPos",
|
|
706
|
+
value: function clipPos(p) {
|
|
707
|
+
var pos = this.editor.getModel().validatePosition(toMonacoPos(p));
|
|
708
|
+
return toCmPos(pos);
|
|
709
|
+
}
|
|
710
|
+
}, {
|
|
711
|
+
key: "setBookmark",
|
|
712
|
+
value: function setBookmark(cursor, options) {
|
|
713
|
+
var bm = new Marker(this, this.$uid++, cursor.line, cursor.ch);
|
|
714
|
+
|
|
715
|
+
if (!options || !options.insertLeft) {
|
|
716
|
+
bm.$insertRight = true;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
this.marks[bm.id] = bm;
|
|
720
|
+
return bm;
|
|
721
|
+
}
|
|
722
|
+
}, {
|
|
723
|
+
key: "getScrollInfo",
|
|
724
|
+
value: function getScrollInfo() {
|
|
725
|
+
var editor = this.editor;
|
|
726
|
+
|
|
727
|
+
var _editor$getVisibleRan = editor.getVisibleRanges(),
|
|
728
|
+
_editor$getVisibleRan2 = _slicedToArray(_editor$getVisibleRan, 1),
|
|
729
|
+
range = _editor$getVisibleRan2[0];
|
|
730
|
+
|
|
731
|
+
return {
|
|
732
|
+
left: 0,
|
|
733
|
+
top: range.startLineNumber - 1,
|
|
734
|
+
height: editor.getModel().getLineCount(),
|
|
735
|
+
clientHeight: range.endLineNumber - range.startLineNumber + 1
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
}, {
|
|
739
|
+
key: "triggerEditorAction",
|
|
740
|
+
value: function triggerEditorAction(action) {
|
|
741
|
+
this.editor.trigger("vim", action);
|
|
742
|
+
}
|
|
743
|
+
}, {
|
|
744
|
+
key: "dispose",
|
|
745
|
+
value: function dispose() {
|
|
746
|
+
this.dispatch("dispose");
|
|
747
|
+
this.removeOverlay();
|
|
748
|
+
|
|
749
|
+
if (CMAdapter.keyMap.vim) {
|
|
750
|
+
CMAdapter.keyMap.vim.detach(this);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
this.disposables.forEach(function (d) {
|
|
754
|
+
return d.dispose();
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}, {
|
|
758
|
+
key: "getInputField",
|
|
759
|
+
value: function getInputField() {}
|
|
760
|
+
}, {
|
|
761
|
+
key: "getWrapperElement",
|
|
762
|
+
value: function getWrapperElement() {}
|
|
763
|
+
}, {
|
|
764
|
+
key: "enterVimMode",
|
|
765
|
+
value: function enterVimMode() {
|
|
766
|
+
this.ctxInsert.set(false);
|
|
767
|
+
var config = this.getConfiguration();
|
|
768
|
+
this.initialCursorWidth = config.viewInfo.cursorWidth || 0;
|
|
769
|
+
this.editor.updateOptions({
|
|
770
|
+
cursorWidth: config.fontInfo.typicalFullwidthCharacterWidth,
|
|
771
|
+
cursorBlinking: "solid"
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}, {
|
|
775
|
+
key: "leaveVimMode",
|
|
776
|
+
value: function leaveVimMode() {
|
|
777
|
+
this.ctxInsert.set(true);
|
|
778
|
+
this.editor.updateOptions({
|
|
779
|
+
cursorWidth: this.initialCursorWidth || 0,
|
|
780
|
+
cursorBlinking: "blink"
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
}, {
|
|
784
|
+
key: "virtualSelectionMode",
|
|
785
|
+
value: function virtualSelectionMode() {
|
|
786
|
+
return this.inVirtualSelectionMode;
|
|
787
|
+
}
|
|
788
|
+
}, {
|
|
789
|
+
key: "markText",
|
|
790
|
+
value: function markText() {
|
|
791
|
+
// only used for fat-cursor, not needed
|
|
792
|
+
return {
|
|
793
|
+
clear: function clear() {},
|
|
794
|
+
find: function find() {}
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
}, {
|
|
798
|
+
key: "getUserVisibleLines",
|
|
799
|
+
value: function getUserVisibleLines() {
|
|
800
|
+
var ranges = this.editor.getVisibleRanges();
|
|
801
|
+
|
|
802
|
+
if (!ranges.length) {
|
|
803
|
+
return {
|
|
804
|
+
top: 0,
|
|
805
|
+
bottom: 0
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
var res = {
|
|
810
|
+
top: Infinity,
|
|
811
|
+
bottom: 0
|
|
812
|
+
};
|
|
813
|
+
ranges.reduce(function (acc, range) {
|
|
814
|
+
if (range.startLineNumber < acc.top) {
|
|
815
|
+
acc.top = range.startLineNumber;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (range.endLineNumber > acc.bottom) {
|
|
819
|
+
acc.bottom = range.endLineNumber;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
return acc;
|
|
823
|
+
}, res);
|
|
824
|
+
res.top -= 1;
|
|
825
|
+
res.bottom -= 1;
|
|
826
|
+
return res;
|
|
827
|
+
}
|
|
828
|
+
}, {
|
|
829
|
+
key: "findPosV",
|
|
830
|
+
value: function findPosV(startPos, amount, unit) {
|
|
831
|
+
var editor = this.editor;
|
|
832
|
+
var finalAmount = amount;
|
|
833
|
+
var finalUnit = unit;
|
|
834
|
+
var pos = toMonacoPos(startPos);
|
|
835
|
+
|
|
836
|
+
if (unit === "page") {
|
|
837
|
+
var editorHeight = editor.getLayoutInfo().height;
|
|
838
|
+
var lineHeight = this.getConfiguration().fontInfo.lineHeight;
|
|
839
|
+
finalAmount = finalAmount * Math.floor(editorHeight / lineHeight);
|
|
840
|
+
finalUnit = "line";
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
if (finalUnit === "line") {
|
|
844
|
+
pos.lineNumber += finalAmount;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
return toCmPos(pos);
|
|
848
|
+
}
|
|
849
|
+
}, {
|
|
850
|
+
key: "findMatchingBracket",
|
|
851
|
+
value: function findMatchingBracket(pos) {
|
|
852
|
+
var mPos = toMonacoPos(pos);
|
|
853
|
+
var model = this.editor.getModel();
|
|
854
|
+
var res; // for monaco versions >= 0.28.0
|
|
855
|
+
|
|
856
|
+
if (model.bracketPairs) {
|
|
857
|
+
res = model.bracketPairs.matchBracket(mPos);
|
|
858
|
+
} else {
|
|
859
|
+
var _model$matchBracket;
|
|
860
|
+
|
|
861
|
+
res = (_model$matchBracket = model.matchBracket) === null || _model$matchBracket === void 0 ? void 0 : _model$matchBracket.call(model, mPos);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (!res || !(res.length === 2)) {
|
|
865
|
+
return {
|
|
866
|
+
to: null
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
return {
|
|
871
|
+
to: toCmPos(res[1].getStartPosition())
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
}, {
|
|
875
|
+
key: "findFirstNonWhiteSpaceCharacter",
|
|
876
|
+
value: function findFirstNonWhiteSpaceCharacter(line) {
|
|
877
|
+
return this.editor.getModel().getLineFirstNonWhitespaceColumn(line + 1) - 1;
|
|
878
|
+
}
|
|
879
|
+
}, {
|
|
880
|
+
key: "scrollTo",
|
|
881
|
+
value: function scrollTo(x, y) {
|
|
882
|
+
if (!x && !y) {
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
if (!x) {
|
|
887
|
+
if (y < 0) {
|
|
888
|
+
y = this.editor.getPosition().lineNumber - y;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
this.editor.setScrollTop(this.editor.getTopForLineNumber(y + 1));
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}, {
|
|
895
|
+
key: "moveCurrentLineTo",
|
|
896
|
+
value: function moveCurrentLineTo(viewPosition) {
|
|
897
|
+
var _editor$_revealRange;
|
|
898
|
+
|
|
899
|
+
var editor = this.editor;
|
|
900
|
+
var pos = editor.getPosition();
|
|
901
|
+
|
|
902
|
+
var range = _monacoEditor.Range.fromPositions(pos, pos);
|
|
903
|
+
|
|
904
|
+
switch (viewPosition) {
|
|
905
|
+
case "top":
|
|
906
|
+
editor.revealRangeAtTop(range);
|
|
907
|
+
return;
|
|
908
|
+
|
|
909
|
+
case "center":
|
|
910
|
+
editor.revealRangeInCenter(range);
|
|
911
|
+
return;
|
|
912
|
+
|
|
913
|
+
case "bottom":
|
|
914
|
+
// private api. no other way
|
|
915
|
+
(_editor$_revealRange = editor._revealRange) === null || _editor$_revealRange === void 0 ? void 0 : _editor$_revealRange.call(editor, range, VerticalRevealType.Bottom);
|
|
916
|
+
return;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}, {
|
|
920
|
+
key: "getSearchCursor",
|
|
921
|
+
value: function getSearchCursor(query, pos) {
|
|
922
|
+
var matchCase = false;
|
|
923
|
+
var isRegex = false;
|
|
924
|
+
|
|
925
|
+
if (query instanceof RegExp && !query.global) {
|
|
926
|
+
matchCase = !query.ignoreCase;
|
|
927
|
+
query = query.source;
|
|
928
|
+
isRegex = true;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
if (pos.ch == undefined) pos.ch = Number.MAX_VALUE;
|
|
932
|
+
var monacoPos = toMonacoPos(pos);
|
|
933
|
+
var context = this;
|
|
934
|
+
var editor = this.editor;
|
|
935
|
+
var lastSearch = null;
|
|
936
|
+
var model = editor.getModel();
|
|
937
|
+
var matches = model.findMatches(query, false, isRegex, matchCase) || [];
|
|
938
|
+
return {
|
|
939
|
+
getMatches: function getMatches() {
|
|
940
|
+
return matches;
|
|
941
|
+
},
|
|
942
|
+
findNext: function findNext() {
|
|
943
|
+
return this.find(false);
|
|
944
|
+
},
|
|
945
|
+
findPrevious: function findPrevious() {
|
|
946
|
+
return this.find(true);
|
|
947
|
+
},
|
|
948
|
+
jumpTo: function jumpTo(index) {
|
|
949
|
+
if (!matches || !matches.length) {
|
|
950
|
+
return false;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
var match = matches[index];
|
|
954
|
+
lastSearch = match.range;
|
|
955
|
+
context.highlightRanges([lastSearch], "currentFindMatch");
|
|
956
|
+
context.highlightRanges(matches.map(function (m) {
|
|
957
|
+
return m.range;
|
|
958
|
+
}).filter(function (r) {
|
|
959
|
+
return !r.equalsRange(lastSearch);
|
|
960
|
+
}));
|
|
961
|
+
return lastSearch;
|
|
962
|
+
},
|
|
963
|
+
find: function find(back) {
|
|
964
|
+
if (!matches || !matches.length) {
|
|
965
|
+
return false;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
var match;
|
|
969
|
+
|
|
970
|
+
if (back) {
|
|
971
|
+
var _pos = lastSearch ? lastSearch.getStartPosition() : monacoPos;
|
|
972
|
+
|
|
973
|
+
match = model.findPreviousMatch(query, _pos, isRegex, matchCase);
|
|
974
|
+
|
|
975
|
+
if (!match || !match.range.getStartPosition().isBeforeOrEqual(_pos)) {
|
|
976
|
+
return false;
|
|
977
|
+
}
|
|
978
|
+
} else {
|
|
979
|
+
var _pos2 = lastSearch ? model.getPositionAt(model.getOffsetAt(lastSearch.getStartPosition()) + 1) : monacoPos;
|
|
980
|
+
|
|
981
|
+
match = model.findNextMatch(query, _pos2, isRegex, matchCase);
|
|
982
|
+
|
|
983
|
+
if (!match || !_pos2.isBeforeOrEqual(match.range.getStartPosition())) {
|
|
984
|
+
return false;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
lastSearch = match.range;
|
|
989
|
+
context.highlightRanges([lastSearch], "currentFindMatch");
|
|
990
|
+
context.highlightRanges(matches.map(function (m) {
|
|
991
|
+
return m.range;
|
|
992
|
+
}).filter(function (r) {
|
|
993
|
+
return !r.equalsRange(lastSearch);
|
|
994
|
+
}));
|
|
995
|
+
return lastSearch;
|
|
996
|
+
},
|
|
997
|
+
from: function from() {
|
|
998
|
+
return lastSearch && toCmPos(lastSearch.getStartPosition());
|
|
999
|
+
},
|
|
1000
|
+
to: function to() {
|
|
1001
|
+
return lastSearch && toCmPos(lastSearch.getEndPosition());
|
|
1002
|
+
},
|
|
1003
|
+
replace: function replace(text) {
|
|
1004
|
+
if (lastSearch) {
|
|
1005
|
+
editor.executeEdits("vim", [{
|
|
1006
|
+
range: lastSearch,
|
|
1007
|
+
text: text,
|
|
1008
|
+
forceMoveMarkers: true
|
|
1009
|
+
}]);
|
|
1010
|
+
lastSearch.setEndPosition(editor.getPosition());
|
|
1011
|
+
editor.setPosition(lastSearch.getStartPosition());
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
}, {
|
|
1017
|
+
key: "highlightRanges",
|
|
1018
|
+
value: function highlightRanges(ranges) {
|
|
1019
|
+
var className = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "findMatch";
|
|
1020
|
+
var decorationKey = "decoration".concat(className);
|
|
1021
|
+
this[decorationKey] = this.editor.deltaDecorations(this[decorationKey] || [], ranges.map(function (range) {
|
|
1022
|
+
return {
|
|
1023
|
+
range: range,
|
|
1024
|
+
options: {
|
|
1025
|
+
stickiness: _monacoEditor.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
|
|
1026
|
+
zIndex: 13,
|
|
1027
|
+
className: className,
|
|
1028
|
+
showIfCollapsed: true
|
|
1029
|
+
}
|
|
1030
|
+
};
|
|
1031
|
+
}));
|
|
1032
|
+
return this[decorationKey];
|
|
1033
|
+
}
|
|
1034
|
+
}, {
|
|
1035
|
+
key: "addOverlay",
|
|
1036
|
+
value: function addOverlay(_ref, hasBoundary, style) {
|
|
1037
|
+
var query = _ref.query;
|
|
1038
|
+
var matchCase = false;
|
|
1039
|
+
var isRegex = false;
|
|
1040
|
+
|
|
1041
|
+
if (query && query instanceof RegExp && !query.global) {
|
|
1042
|
+
isRegex = true;
|
|
1043
|
+
matchCase = !query.ignoreCase;
|
|
1044
|
+
query = query.source;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
var match = this.editor.getModel().findNextMatch(query, this.editor.getPosition(), isRegex, matchCase);
|
|
1048
|
+
|
|
1049
|
+
if (!match || !match.range) {
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
this.highlightRanges([match.range]);
|
|
1054
|
+
}
|
|
1055
|
+
}, {
|
|
1056
|
+
key: "removeOverlay",
|
|
1057
|
+
value: function removeOverlay() {
|
|
1058
|
+
var _this2 = this;
|
|
1059
|
+
|
|
1060
|
+
["currentFindMatch", "findMatch"].forEach(function (key) {
|
|
1061
|
+
_this2.editor.deltaDecorations(_this2["decoration".concat(key)] || [], []);
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
}, {
|
|
1065
|
+
key: "scrollIntoView",
|
|
1066
|
+
value: function scrollIntoView(pos) {
|
|
1067
|
+
if (!pos) {
|
|
1068
|
+
return;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
this.editor.revealPosition(toMonacoPos(pos));
|
|
1072
|
+
}
|
|
1073
|
+
}, {
|
|
1074
|
+
key: "moveH",
|
|
1075
|
+
value: function moveH(units, type) {
|
|
1076
|
+
if (type !== "char") {
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
var pos = this.editor.getPosition();
|
|
1081
|
+
this.editor.setPosition(new _monacoEditor.Position(pos.lineNumber, pos.column + units));
|
|
1082
|
+
}
|
|
1083
|
+
}, {
|
|
1084
|
+
key: "scanForBracket",
|
|
1085
|
+
value: function scanForBracket(pos, dir, dd, config) {
|
|
1086
|
+
var bracketRegex = config.bracketRegex;
|
|
1087
|
+
var mPos = toMonacoPos(pos);
|
|
1088
|
+
var model = this.editor.getModel();
|
|
1089
|
+
var searchFunc = (dir === -1 ? model.findPreviousMatch : model.findNextMatch).bind(model);
|
|
1090
|
+
var stack = [];
|
|
1091
|
+
var iterations = 0;
|
|
1092
|
+
|
|
1093
|
+
while (true) {
|
|
1094
|
+
if (iterations > 10) {
|
|
1095
|
+
// Searched too far, give up.
|
|
1096
|
+
return undefined;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
var match = searchFunc(bracketRegex.source, mPos, true, true, null, true);
|
|
1100
|
+
var thisBracket = match.matches[0];
|
|
1101
|
+
|
|
1102
|
+
if (match === undefined) {
|
|
1103
|
+
return undefined;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
var matchingBracket = CMAdapter.matchingBrackets[thisBracket];
|
|
1107
|
+
|
|
1108
|
+
if (matchingBracket && matchingBracket.charAt(1) === ">" == dir > 0) {
|
|
1109
|
+
stack.push(thisBracket);
|
|
1110
|
+
} else if (stack.length === 0) {
|
|
1111
|
+
var res = match.range.getStartPosition();
|
|
1112
|
+
return {
|
|
1113
|
+
pos: toCmPos(res)
|
|
1114
|
+
};
|
|
1115
|
+
} else {
|
|
1116
|
+
stack.pop();
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
mPos = model.getPositionAt(model.getOffsetAt(match.range.getStartPosition()) + dir);
|
|
1120
|
+
iterations += 1;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}, {
|
|
1124
|
+
key: "indexFromPos",
|
|
1125
|
+
value: function indexFromPos(pos) {
|
|
1126
|
+
return this.editor.getModel().getOffsetAt(toMonacoPos(pos));
|
|
1127
|
+
}
|
|
1128
|
+
}, {
|
|
1129
|
+
key: "posFromIndex",
|
|
1130
|
+
value: function posFromIndex(offset) {
|
|
1131
|
+
return toCmPos(this.editor.getModel().getPositionAt(offset));
|
|
1132
|
+
}
|
|
1133
|
+
}, {
|
|
1134
|
+
key: "indentLine",
|
|
1135
|
+
value: function indentLine(line) {
|
|
1136
|
+
var indentRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1137
|
+
var editor = this.editor;
|
|
1138
|
+
var cursorConfig; // Monaco >= 0.21.x
|
|
1139
|
+
|
|
1140
|
+
if (editor._getViewModel) {
|
|
1141
|
+
cursorConfig = editor._getViewModel().cursorConfig;
|
|
1142
|
+
} else {
|
|
1143
|
+
cursorConfig = editor._getCursors().context.config;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
var pos = new _monacoEditor.Position(line + 1, 1);
|
|
1147
|
+
|
|
1148
|
+
var sel = _monacoEditor.Selection.fromPositions(pos, pos); // no other way than to use internal apis to preserve the undoStack for a batch of indents
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
editor.executeCommand("vim", new _shiftCommand.ShiftCommand(sel, {
|
|
1152
|
+
isUnshift: !indentRight,
|
|
1153
|
+
tabSize: cursorConfig.tabSize,
|
|
1154
|
+
indentSize: cursorConfig.indentSize,
|
|
1155
|
+
insertSpaces: cursorConfig.insertSpaces,
|
|
1156
|
+
useTabStops: cursorConfig.useTabStops,
|
|
1157
|
+
autoIndent: cursorConfig.autoIndent
|
|
1158
|
+
}));
|
|
1159
|
+
}
|
|
1160
|
+
}, {
|
|
1161
|
+
key: "setStatusBar",
|
|
1162
|
+
value: function setStatusBar(statusBar) {
|
|
1163
|
+
this.statusBar = statusBar;
|
|
1164
|
+
}
|
|
1165
|
+
}, {
|
|
1166
|
+
key: "openDialog",
|
|
1167
|
+
value: function openDialog(html, callback, options) {
|
|
1168
|
+
if (!this.statusBar) {
|
|
1169
|
+
return;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
return this.statusBar.setSec(html, callback, options);
|
|
1173
|
+
}
|
|
1174
|
+
}, {
|
|
1175
|
+
key: "openNotification",
|
|
1176
|
+
value: function openNotification(html) {
|
|
1177
|
+
if (!this.statusBar) {
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
this.statusBar.showNotification(html);
|
|
1182
|
+
}
|
|
1183
|
+
}, {
|
|
1184
|
+
key: "smartIndent",
|
|
1185
|
+
value: function smartIndent() {
|
|
1186
|
+
// Only works if a formatter is added for the current language.
|
|
1187
|
+
// reindentselectedlines does not work here.
|
|
1188
|
+
this.editor.getAction("editor.action.formatSelection").run();
|
|
1189
|
+
}
|
|
1190
|
+
}, {
|
|
1191
|
+
key: "moveCursorTo",
|
|
1192
|
+
value: function moveCursorTo(to) {
|
|
1193
|
+
var newPos = this.editor.getPosition();
|
|
1194
|
+
|
|
1195
|
+
if (to === "start") {
|
|
1196
|
+
newPos.column = 1;
|
|
1197
|
+
} else if (to === "end") {
|
|
1198
|
+
newPos.column = this.editor.getModel().getLineMaxColumn(newPos.lineNumber);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
this.editor.setPosition(newPos);
|
|
1202
|
+
}
|
|
1203
|
+
}, {
|
|
1204
|
+
key: "execCommand",
|
|
1205
|
+
value: function execCommand(command) {
|
|
1206
|
+
switch (command) {
|
|
1207
|
+
case "goLineLeft":
|
|
1208
|
+
this.moveCursorTo("start");
|
|
1209
|
+
break;
|
|
1210
|
+
|
|
1211
|
+
case "goLineRight":
|
|
1212
|
+
this.moveCursorTo("end");
|
|
1213
|
+
break;
|
|
1214
|
+
|
|
1215
|
+
case "indentAuto":
|
|
1216
|
+
this.smartIndent();
|
|
1217
|
+
break;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
}]);
|
|
1221
|
+
|
|
1222
|
+
return CMAdapter;
|
|
1223
|
+
}();
|
|
1224
|
+
|
|
1225
|
+
CMAdapter.Pos = Pos;
|
|
1226
|
+
CMAdapter.signal = signal;
|
|
1227
|
+
CMAdapter.on = dummy();
|
|
1228
|
+
CMAdapter.off = dummy();
|
|
1229
|
+
CMAdapter.addClass = dummy();
|
|
1230
|
+
CMAdapter.rmClass = dummy();
|
|
1231
|
+
CMAdapter.defineOption = dummy();
|
|
1232
|
+
CMAdapter.keyMap = {
|
|
1233
|
+
"default": function _default(key) {
|
|
1234
|
+
return function (cm) {
|
|
1235
|
+
return true;
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
};
|
|
1239
|
+
CMAdapter.matchingBrackets = {
|
|
1240
|
+
"(": ")>",
|
|
1241
|
+
")": "(<",
|
|
1242
|
+
"[": "]>",
|
|
1243
|
+
"]": "[<",
|
|
1244
|
+
"{": "}>",
|
|
1245
|
+
"}": "{<",
|
|
1246
|
+
"<": ">>",
|
|
1247
|
+
">": "<<"
|
|
1248
|
+
};
|
|
1249
|
+
CMAdapter.isWordChar = isWordCharBasic;
|
|
1250
|
+
CMAdapter.keyName = monacoToCmKey;
|
|
1251
|
+
CMAdapter.StringStream = StringStream;
|
|
1252
|
+
|
|
1253
|
+
CMAdapter.e_stop = function (e) {
|
|
1254
|
+
if (e.stopPropagation) {
|
|
1255
|
+
e.stopPropagation();
|
|
1256
|
+
} else {
|
|
1257
|
+
e.cancelBubble = true;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
CMAdapter.e_preventDefault(e);
|
|
1261
|
+
return false;
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
CMAdapter.e_preventDefault = function (e) {
|
|
1265
|
+
if (e.preventDefault) {
|
|
1266
|
+
e.preventDefault();
|
|
1267
|
+
|
|
1268
|
+
if (e.browserEvent) {
|
|
1269
|
+
e.browserEvent.preventDefault();
|
|
1270
|
+
}
|
|
1271
|
+
} else {
|
|
1272
|
+
e.returnValue = false;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
return false;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
CMAdapter.commands = {
|
|
1279
|
+
redo: function redo(cm) {
|
|
1280
|
+
cm.editor.getModel().redo();
|
|
1281
|
+
},
|
|
1282
|
+
undo: function undo(cm) {
|
|
1283
|
+
cm.editor.getModel().undo();
|
|
1284
|
+
},
|
|
1285
|
+
newlineAndIndent: function newlineAndIndent(cm) {
|
|
1286
|
+
cm.triggerEditorAction("editor.action.insertLineAfter");
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
CMAdapter.lookupKey = function lookupKey(key, map, handle) {
|
|
1291
|
+
if (typeof map === "string") {
|
|
1292
|
+
map = CMAdapter.keyMap[map];
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
var found = typeof map == "function" ? map(key) : map[key];
|
|
1296
|
+
if (found === false) return "nothing";
|
|
1297
|
+
if (found === "...") return "multi";
|
|
1298
|
+
if (found != null && handle(found)) return "handled";
|
|
1299
|
+
|
|
1300
|
+
if (map.fallthrough) {
|
|
1301
|
+
if (!Array.isArray(map.fallthrough)) return lookupKey(key, map.fallthrough, handle);
|
|
1302
|
+
|
|
1303
|
+
for (var i = 0; i < map.fallthrough.length; i++) {
|
|
1304
|
+
var result = lookupKey(key, map.fallthrough[i], handle);
|
|
1305
|
+
if (result) return result;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1310
|
+
CMAdapter.defineExtension = function (name, fn) {
|
|
1311
|
+
CMAdapter.prototype[name] = fn;
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
var _initialiseProps = function _initialiseProps() {
|
|
1315
|
+
var _this3 = this;
|
|
1316
|
+
|
|
1317
|
+
this.handleKeyDown = function (e) {
|
|
1318
|
+
// Allow previously registered keydown listeners to handle the event and
|
|
1319
|
+
// prevent this extension from also handling it.
|
|
1320
|
+
if (e.browserEvent.defaultPrevented & e.keyCode !== _monacoEditor.KeyCode.Escape) {
|
|
1321
|
+
return;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
if (!_this3.attached) {
|
|
1325
|
+
return;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
var key = monacoToCmKey(e);
|
|
1329
|
+
|
|
1330
|
+
if (_this3.replaceMode) {
|
|
1331
|
+
_this3.handleReplaceMode(key, e);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
if (!key) {
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
var keymap = _this3.state.keyMap;
|
|
1339
|
+
|
|
1340
|
+
if (CMAdapter.keyMap[keymap] && CMAdapter.keyMap[keymap].call) {
|
|
1341
|
+
var cmd = CMAdapter.keyMap[keymap].call(key, _this3);
|
|
1342
|
+
|
|
1343
|
+
if (cmd) {
|
|
1344
|
+
e.preventDefault();
|
|
1345
|
+
e.stopPropagation();
|
|
1346
|
+
|
|
1347
|
+
try {
|
|
1348
|
+
cmd();
|
|
1349
|
+
} catch (err) {
|
|
1350
|
+
console.error(err);
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
this.handleCursorChange = function (e) {
|
|
1357
|
+
var position = e.position;
|
|
1358
|
+
e.source;
|
|
1359
|
+
var editor = _this3.editor;
|
|
1360
|
+
var selection = editor.getSelection();
|
|
1361
|
+
|
|
1362
|
+
if (!_this3.ctxInsert.get() && e.source === "mouse" && selection.isEmpty()) {
|
|
1363
|
+
var maxCol = editor.getModel().getLineMaxColumn(position.lineNumber);
|
|
1364
|
+
|
|
1365
|
+
if (e.position.column === maxCol) {
|
|
1366
|
+
editor.setPosition(new _monacoEditor.Position(e.position.lineNumber, maxCol - 1));
|
|
1367
|
+
return;
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
_this3.dispatch("cursorActivity", _this3, e);
|
|
1372
|
+
};
|
|
1373
|
+
|
|
1374
|
+
this.handleChange = function (e) {
|
|
1375
|
+
var changes = e.changes;
|
|
1376
|
+
var change = {
|
|
1377
|
+
text: changes.reduce(function (acc, change) {
|
|
1378
|
+
acc.push(change.text);
|
|
1379
|
+
return acc;
|
|
1380
|
+
}, []),
|
|
1381
|
+
origin: "+input"
|
|
1382
|
+
};
|
|
1383
|
+
var curOp = _this3.curOp = _this3.curOp || {};
|
|
1384
|
+
|
|
1385
|
+
if (!curOp.changeHandlers) {
|
|
1386
|
+
curOp.changeHandlers = _this3.listeners["change"] && _this3.listeners["change"].slice();
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
if (_this3.virtualSelectionMode()) {
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
if (!curOp.lastChange) {
|
|
1394
|
+
curOp.lastChange = curOp.change = change;
|
|
1395
|
+
} else {
|
|
1396
|
+
curOp.lastChange.next = curOp.lastChange = change;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
_this3.dispatch("change", _this3, change);
|
|
1400
|
+
};
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
var _default2 = CMAdapter;
|
|
1404
|
+
exports["default"] = _default2;
|
|
1405
|
+
} (cm_adapter));
|
|
4
1406
|
|
|
5
1407
|
(function (exports) {
|
|
6
1408
|
|
|
@@ -7910,5 +9312,389 @@ import { __exports as cm_adapter } from '../../../../_virtual/cm_adapter.js';
|
|
|
7910
9312
|
exports.Vim = Vim;
|
|
7911
9313
|
_cm_adapter["default"].Vim = Vim();
|
|
7912
9314
|
var _default = _cm_adapter["default"];
|
|
7913
|
-
exports["default"] = _default;
|
|
9315
|
+
exports["default"] = _default;
|
|
7914
9316
|
} (keymap_vim));
|
|
9317
|
+
|
|
9318
|
+
var statusbar = {};
|
|
9319
|
+
|
|
9320
|
+
(function (exports) {
|
|
9321
|
+
|
|
9322
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9323
|
+
value: true
|
|
9324
|
+
});
|
|
9325
|
+
exports["default"] = void 0;
|
|
9326
|
+
|
|
9327
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9328
|
+
|
|
9329
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
9330
|
+
|
|
9331
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
9332
|
+
|
|
9333
|
+
var VimStatusBar = /*#__PURE__*/function () {
|
|
9334
|
+
function VimStatusBar(node, editor) {
|
|
9335
|
+
var _this = this;
|
|
9336
|
+
|
|
9337
|
+
var sanitizer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
9338
|
+
|
|
9339
|
+
_classCallCheck(this, VimStatusBar);
|
|
9340
|
+
|
|
9341
|
+
this.closeInput = function () {
|
|
9342
|
+
_this.removeInputListeners();
|
|
9343
|
+
|
|
9344
|
+
_this.input = null;
|
|
9345
|
+
|
|
9346
|
+
_this.setSec("");
|
|
9347
|
+
|
|
9348
|
+
if (_this.editor) {
|
|
9349
|
+
_this.editor.focus();
|
|
9350
|
+
}
|
|
9351
|
+
};
|
|
9352
|
+
|
|
9353
|
+
this.clear = function () {
|
|
9354
|
+
_this.setInnerHtml_(_this.node, "");
|
|
9355
|
+
};
|
|
9356
|
+
|
|
9357
|
+
this.inputKeyUp = function (e) {
|
|
9358
|
+
var options = _this.input.options;
|
|
9359
|
+
|
|
9360
|
+
if (options && options.onKeyUp) {
|
|
9361
|
+
options.onKeyUp(e, e.target.value, _this.closeInput);
|
|
9362
|
+
}
|
|
9363
|
+
};
|
|
9364
|
+
|
|
9365
|
+
this.inputKeyInput = function (e) {
|
|
9366
|
+
var options = _this.input.options;
|
|
9367
|
+
|
|
9368
|
+
if (options && options.onKeyInput) {
|
|
9369
|
+
options.onKeyUp(e, e.target.value, _this.closeInput);
|
|
9370
|
+
}
|
|
9371
|
+
};
|
|
9372
|
+
|
|
9373
|
+
this.inputBlur = function () {
|
|
9374
|
+
var options = _this.input.options;
|
|
9375
|
+
|
|
9376
|
+
if (options.closeOnBlur) {
|
|
9377
|
+
_this.closeInput();
|
|
9378
|
+
}
|
|
9379
|
+
};
|
|
9380
|
+
|
|
9381
|
+
this.inputKeyDown = function (e) {
|
|
9382
|
+
var _this$input = _this.input,
|
|
9383
|
+
options = _this$input.options,
|
|
9384
|
+
callback = _this$input.callback;
|
|
9385
|
+
|
|
9386
|
+
if (options && options.onKeyDown && options.onKeyDown(e, e.target.value, _this.closeInput)) {
|
|
9387
|
+
return;
|
|
9388
|
+
}
|
|
9389
|
+
|
|
9390
|
+
if (e.keyCode === 27 || options && options.closeOnEnter !== false && e.keyCode == 13) {
|
|
9391
|
+
_this.input.node.blur();
|
|
9392
|
+
|
|
9393
|
+
e.stopPropagation();
|
|
9394
|
+
|
|
9395
|
+
_this.closeInput();
|
|
9396
|
+
}
|
|
9397
|
+
|
|
9398
|
+
if (e.keyCode === 13 && callback) {
|
|
9399
|
+
e.stopPropagation();
|
|
9400
|
+
e.preventDefault();
|
|
9401
|
+
callback(e.target.value);
|
|
9402
|
+
}
|
|
9403
|
+
};
|
|
9404
|
+
|
|
9405
|
+
this.node = node;
|
|
9406
|
+
this.modeInfoNode = document.createElement("span");
|
|
9407
|
+
this.secInfoNode = document.createElement("span");
|
|
9408
|
+
this.notifNode = document.createElement("span");
|
|
9409
|
+
this.notifNode.className = "vim-notification";
|
|
9410
|
+
this.keyInfoNode = document.createElement("span");
|
|
9411
|
+
this.keyInfoNode.setAttribute("style", "float: right");
|
|
9412
|
+
this.node.appendChild(this.modeInfoNode);
|
|
9413
|
+
this.node.appendChild(this.secInfoNode);
|
|
9414
|
+
this.node.appendChild(this.notifNode);
|
|
9415
|
+
this.node.appendChild(this.keyInfoNode);
|
|
9416
|
+
this.toggleVisibility(false);
|
|
9417
|
+
this.editor = editor;
|
|
9418
|
+
this.sanitizer = sanitizer;
|
|
9419
|
+
}
|
|
9420
|
+
|
|
9421
|
+
_createClass(VimStatusBar, [{
|
|
9422
|
+
key: "setMode",
|
|
9423
|
+
value: function setMode(ev) {
|
|
9424
|
+
if (ev.mode === "visual") {
|
|
9425
|
+
if (ev.subMode === "linewise") {
|
|
9426
|
+
this.setText("--VISUAL LINE--");
|
|
9427
|
+
} else if (ev.subMode === "blockwise") {
|
|
9428
|
+
this.setText("--VISUAL BLOCK--");
|
|
9429
|
+
} else {
|
|
9430
|
+
this.setText("--VISUAL--");
|
|
9431
|
+
}
|
|
9432
|
+
|
|
9433
|
+
return;
|
|
9434
|
+
}
|
|
9435
|
+
|
|
9436
|
+
this.setText("--".concat(ev.mode.toUpperCase(), "--"));
|
|
9437
|
+
}
|
|
9438
|
+
}, {
|
|
9439
|
+
key: "setKeyBuffer",
|
|
9440
|
+
value: function setKeyBuffer(key) {
|
|
9441
|
+
this.keyInfoNode.textContent = key;
|
|
9442
|
+
}
|
|
9443
|
+
}, {
|
|
9444
|
+
key: "setSec",
|
|
9445
|
+
value: function setSec(text, callback, options) {
|
|
9446
|
+
this.notifNode.textContent = "";
|
|
9447
|
+
|
|
9448
|
+
if (text === undefined) {
|
|
9449
|
+
return this.closeInput;
|
|
9450
|
+
}
|
|
9451
|
+
|
|
9452
|
+
this.setInnerHtml_(this.secInfoNode, text);
|
|
9453
|
+
var input = this.secInfoNode.querySelector("input");
|
|
9454
|
+
|
|
9455
|
+
if (input) {
|
|
9456
|
+
input.focus();
|
|
9457
|
+
this.input = {
|
|
9458
|
+
callback: callback,
|
|
9459
|
+
options: options,
|
|
9460
|
+
node: input
|
|
9461
|
+
};
|
|
9462
|
+
|
|
9463
|
+
if (options) {
|
|
9464
|
+
if (options.selectValueOnOpen) {
|
|
9465
|
+
input.select();
|
|
9466
|
+
}
|
|
9467
|
+
|
|
9468
|
+
if (options.value) {
|
|
9469
|
+
input.value = options.value;
|
|
9470
|
+
}
|
|
9471
|
+
}
|
|
9472
|
+
|
|
9473
|
+
this.addInputListeners();
|
|
9474
|
+
}
|
|
9475
|
+
|
|
9476
|
+
return this.closeInput;
|
|
9477
|
+
}
|
|
9478
|
+
}, {
|
|
9479
|
+
key: "setText",
|
|
9480
|
+
value: function setText(text) {
|
|
9481
|
+
this.modeInfoNode.textContent = text;
|
|
9482
|
+
}
|
|
9483
|
+
}, {
|
|
9484
|
+
key: "toggleVisibility",
|
|
9485
|
+
value: function toggleVisibility(toggle) {
|
|
9486
|
+
if (toggle) {
|
|
9487
|
+
this.node.style.display = "block";
|
|
9488
|
+
} else {
|
|
9489
|
+
this.node.style.display = "none";
|
|
9490
|
+
}
|
|
9491
|
+
|
|
9492
|
+
if (this.input) {
|
|
9493
|
+
this.removeInputListeners();
|
|
9494
|
+
}
|
|
9495
|
+
|
|
9496
|
+
clearInterval(this.notifTimeout);
|
|
9497
|
+
}
|
|
9498
|
+
}, {
|
|
9499
|
+
key: "addInputListeners",
|
|
9500
|
+
value: function addInputListeners() {
|
|
9501
|
+
var node = this.input.node;
|
|
9502
|
+
node.addEventListener("keyup", this.inputKeyUp);
|
|
9503
|
+
node.addEventListener("keydown", this.inputKeyDown);
|
|
9504
|
+
node.addEventListener("input", this.inputKeyInput);
|
|
9505
|
+
node.addEventListener("blur", this.inputBlur);
|
|
9506
|
+
}
|
|
9507
|
+
}, {
|
|
9508
|
+
key: "removeInputListeners",
|
|
9509
|
+
value: function removeInputListeners() {
|
|
9510
|
+
if (!this.input || !this.input.node) {
|
|
9511
|
+
return;
|
|
9512
|
+
}
|
|
9513
|
+
|
|
9514
|
+
var node = this.input.node;
|
|
9515
|
+
node.removeEventListener("keyup", this.inputKeyUp);
|
|
9516
|
+
node.removeEventListener("keydown", this.inputKeyDown);
|
|
9517
|
+
node.removeEventListener("input", this.inputKeyInput);
|
|
9518
|
+
node.removeEventListener("blur", this.inputBlur);
|
|
9519
|
+
}
|
|
9520
|
+
}, {
|
|
9521
|
+
key: "showNotification",
|
|
9522
|
+
value: function showNotification(text) {
|
|
9523
|
+
var _this2 = this;
|
|
9524
|
+
|
|
9525
|
+
var sp = document.createElement("span");
|
|
9526
|
+
this.setInnerHtml_(sp, text);
|
|
9527
|
+
this.notifNode.textContent = sp.textContent;
|
|
9528
|
+
this.notifTimeout = setTimeout(function () {
|
|
9529
|
+
_this2.notifNode.textContent = "";
|
|
9530
|
+
}, 5000);
|
|
9531
|
+
}
|
|
9532
|
+
}, {
|
|
9533
|
+
key: "setInnerHtml_",
|
|
9534
|
+
value: function setInnerHtml_(element, htmlContents) {
|
|
9535
|
+
// Clear out previous contents first.
|
|
9536
|
+
while (element.childNodes.length) {
|
|
9537
|
+
element.removeChild(element.childNodes[0]);
|
|
9538
|
+
}
|
|
9539
|
+
|
|
9540
|
+
if (!htmlContents) {
|
|
9541
|
+
return;
|
|
9542
|
+
}
|
|
9543
|
+
|
|
9544
|
+
if (this.sanitizer) {
|
|
9545
|
+
element.appendChild(this.sanitizer(htmlContents));
|
|
9546
|
+
} else {
|
|
9547
|
+
element.appendChild(htmlContents);
|
|
9548
|
+
}
|
|
9549
|
+
}
|
|
9550
|
+
}]);
|
|
9551
|
+
|
|
9552
|
+
return VimStatusBar;
|
|
9553
|
+
}();
|
|
9554
|
+
|
|
9555
|
+
exports["default"] = VimStatusBar;
|
|
9556
|
+
} (statusbar));
|
|
9557
|
+
|
|
9558
|
+
(function (exports) {
|
|
9559
|
+
|
|
9560
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9561
|
+
value: true
|
|
9562
|
+
});
|
|
9563
|
+
Object.defineProperty(exports, "StatusBar", {
|
|
9564
|
+
enumerable: true,
|
|
9565
|
+
get: function get() {
|
|
9566
|
+
return _statusbar["default"];
|
|
9567
|
+
}
|
|
9568
|
+
});
|
|
9569
|
+
Object.defineProperty(exports, "VimMode", {
|
|
9570
|
+
enumerable: true,
|
|
9571
|
+
get: function get() {
|
|
9572
|
+
return _keymap_vim["default"];
|
|
9573
|
+
}
|
|
9574
|
+
});
|
|
9575
|
+
exports.initVimMode = initVimMode;
|
|
9576
|
+
|
|
9577
|
+
var _keymap_vim = _interopRequireDefault(keymap_vim);
|
|
9578
|
+
|
|
9579
|
+
var _statusbar = _interopRequireDefault(statusbar);
|
|
9580
|
+
|
|
9581
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9582
|
+
|
|
9583
|
+
function initVimMode(editor) {
|
|
9584
|
+
var statusbarNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
9585
|
+
var StatusBarClass = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _statusbar["default"];
|
|
9586
|
+
var sanitizer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
9587
|
+
var vimAdapter = new _keymap_vim["default"](editor);
|
|
9588
|
+
|
|
9589
|
+
if (!statusbarNode) {
|
|
9590
|
+
vimAdapter.attach();
|
|
9591
|
+
return vimAdapter;
|
|
9592
|
+
}
|
|
9593
|
+
|
|
9594
|
+
var statusBar = new StatusBarClass(statusbarNode, editor, sanitizer);
|
|
9595
|
+
var keyBuffer = "";
|
|
9596
|
+
vimAdapter.on("vim-mode-change", function (mode) {
|
|
9597
|
+
statusBar.setMode(mode);
|
|
9598
|
+
});
|
|
9599
|
+
vimAdapter.on("vim-keypress", function (key) {
|
|
9600
|
+
if (key === ":") {
|
|
9601
|
+
keyBuffer = "";
|
|
9602
|
+
} else {
|
|
9603
|
+
keyBuffer += key;
|
|
9604
|
+
}
|
|
9605
|
+
|
|
9606
|
+
statusBar.setKeyBuffer(keyBuffer);
|
|
9607
|
+
});
|
|
9608
|
+
vimAdapter.on("vim-command-done", function () {
|
|
9609
|
+
keyBuffer = "";
|
|
9610
|
+
statusBar.setKeyBuffer(keyBuffer);
|
|
9611
|
+
});
|
|
9612
|
+
vimAdapter.on("dispose", function () {
|
|
9613
|
+
statusBar.toggleVisibility(false);
|
|
9614
|
+
statusBar.closeInput();
|
|
9615
|
+
statusBar.clear();
|
|
9616
|
+
});
|
|
9617
|
+
statusBar.toggleVisibility(true);
|
|
9618
|
+
vimAdapter.setStatusBar(statusBar);
|
|
9619
|
+
vimAdapter.attach();
|
|
9620
|
+
return vimAdapter;
|
|
9621
|
+
}
|
|
9622
|
+
} (lib));
|
|
9623
|
+
|
|
9624
|
+
const vimKeybindingsSchema = {
|
|
9625
|
+
type: 'object',
|
|
9626
|
+
properties: {
|
|
9627
|
+
before: {
|
|
9628
|
+
type: 'array',
|
|
9629
|
+
items: {
|
|
9630
|
+
type: 'string'
|
|
9631
|
+
}
|
|
9632
|
+
},
|
|
9633
|
+
after: {
|
|
9634
|
+
type: 'array',
|
|
9635
|
+
items: {
|
|
9636
|
+
type: 'string'
|
|
9637
|
+
}
|
|
9638
|
+
}
|
|
9639
|
+
}
|
|
9640
|
+
};
|
|
9641
|
+
configurationRegistry.registerConfiguration({
|
|
9642
|
+
id: 'vim',
|
|
9643
|
+
order: 5,
|
|
9644
|
+
type: 'object',
|
|
9645
|
+
title: 'Vim',
|
|
9646
|
+
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
9647
|
+
properties: {
|
|
9648
|
+
'vim.normalModeKeyBindings': {
|
|
9649
|
+
type: 'array',
|
|
9650
|
+
description: 'Remapped keys in Normal mode.',
|
|
9651
|
+
items: vimKeybindingsSchema
|
|
9652
|
+
},
|
|
9653
|
+
'vim.insertModeKeyBindings': {
|
|
9654
|
+
type: 'array',
|
|
9655
|
+
description: 'Remapped keys in Insert mode.',
|
|
9656
|
+
items: vimKeybindingsSchema
|
|
9657
|
+
},
|
|
9658
|
+
'vim.visualModeKeyBindings': {
|
|
9659
|
+
type: 'array',
|
|
9660
|
+
description: 'Remapped keys in Visual mode.',
|
|
9661
|
+
items: vimKeybindingsSchema
|
|
9662
|
+
}
|
|
9663
|
+
}
|
|
9664
|
+
});
|
|
9665
|
+
function mapVimKeyBindings(keybindingConfig, mode) {
|
|
9666
|
+
if (keybindingConfig != null) {
|
|
9667
|
+
for (const item of keybindingConfig) {
|
|
9668
|
+
if (item.after != null && item.before != null) {
|
|
9669
|
+
lib.VimMode.Vim.map(item.before.join(''), item.after.join(''), mode);
|
|
9670
|
+
}
|
|
9671
|
+
}
|
|
9672
|
+
}
|
|
9673
|
+
}
|
|
9674
|
+
function unmapVimKeyBindings(keybindingConfig, mode) {
|
|
9675
|
+
if (keybindingConfig != null) {
|
|
9676
|
+
for (const item of keybindingConfig) {
|
|
9677
|
+
if (item.after != null && item.before != null) {
|
|
9678
|
+
lib.VimMode.Vim.unmap(item.before.join(''), mode);
|
|
9679
|
+
}
|
|
9680
|
+
}
|
|
9681
|
+
}
|
|
9682
|
+
}
|
|
9683
|
+
let unmapPrevious = () => {};
|
|
9684
|
+
onConfigurationChanged(() => {
|
|
9685
|
+
unmapPrevious();
|
|
9686
|
+
const config = getConfiguration(undefined, 'vim');
|
|
9687
|
+
mapVimKeyBindings(config === null || config === void 0 ? void 0 : config.insertModeKeyBindings, 'insert');
|
|
9688
|
+
mapVimKeyBindings(config === null || config === void 0 ? void 0 : config.normalModeKeyBindings, 'normal');
|
|
9689
|
+
mapVimKeyBindings(config === null || config === void 0 ? void 0 : config.visualModeKeyBindings, 'visual');
|
|
9690
|
+
unmapPrevious = () => {
|
|
9691
|
+
unmapVimKeyBindings(config === null || config === void 0 ? void 0 : config.insertModeKeyBindings, 'insert');
|
|
9692
|
+
unmapVimKeyBindings(config === null || config === void 0 ? void 0 : config.normalModeKeyBindings, 'normal');
|
|
9693
|
+
unmapVimKeyBindings(config === null || config === void 0 ? void 0 : config.visualModeKeyBindings, 'visual');
|
|
9694
|
+
};
|
|
9695
|
+
});
|
|
9696
|
+
function initVimMode(editor, statusBarElement) {
|
|
9697
|
+
return lib.initVimMode(editor, statusBarElement);
|
|
9698
|
+
}
|
|
9699
|
+
|
|
9700
|
+
export { initVimMode };
|