@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,1393 +0,0 @@
|
|
|
1
|
-
import { __exports as cm_adapter } from '../../../_virtual/cm_adapter.js';
|
|
2
|
-
import require$$0 from '../../../_virtual/editor.api.js';
|
|
3
|
-
import require$$1 from '../../../_virtual/shiftCommand.js';
|
|
4
|
-
|
|
5
|
-
(function (exports) {
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _editor = require$$0;
|
|
13
|
-
|
|
14
|
-
var _shiftCommand = require$$1;
|
|
15
|
-
|
|
16
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
-
|
|
18
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
-
|
|
20
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
-
|
|
22
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
23
|
-
|
|
24
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
25
|
-
|
|
26
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
|
-
|
|
28
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
29
|
-
|
|
30
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
|
-
|
|
32
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
33
|
-
|
|
34
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
|
-
|
|
36
|
-
var VerticalRevealType = {
|
|
37
|
-
Bottom: 4
|
|
38
|
-
}; // for monaco 0.19.x where x < 3
|
|
39
|
-
|
|
40
|
-
var EditorOptConstants = {
|
|
41
|
-
readOnly: 65,
|
|
42
|
-
cursorWidth: 20,
|
|
43
|
-
fontInfo: 32
|
|
44
|
-
};
|
|
45
|
-
var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
46
|
-
|
|
47
|
-
function isWordCharBasic(ch) {
|
|
48
|
-
return /\w/.test(ch) || ch > "\x80" && (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function Pos(line, column) {
|
|
52
|
-
if (!(this instanceof Pos)) {
|
|
53
|
-
return new Pos(line, column);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
this.line = line;
|
|
57
|
-
this.ch = column;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function signal(cm, signal, args) {
|
|
61
|
-
cm.dispatch(signal, args);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function dummy(key) {
|
|
65
|
-
return function () {// console.log(key, 'dummy function called with', Array.prototype.slice.call(arguments));
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var StringStream = function StringStream(string, tabSize) {
|
|
70
|
-
this.pos = this.start = 0;
|
|
71
|
-
this.string = string;
|
|
72
|
-
this.tabSize = tabSize || 8;
|
|
73
|
-
this.lastColumnPos = this.lastColumnValue = 0;
|
|
74
|
-
this.lineStart = 0;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
StringStream.prototype = {
|
|
78
|
-
eol: function eol() {
|
|
79
|
-
return this.pos >= this.string.length;
|
|
80
|
-
},
|
|
81
|
-
sol: function sol() {
|
|
82
|
-
return this.pos == this.lineStart;
|
|
83
|
-
},
|
|
84
|
-
peek: function peek() {
|
|
85
|
-
return this.string.charAt(this.pos) || undefined;
|
|
86
|
-
},
|
|
87
|
-
next: function next() {
|
|
88
|
-
if (this.pos < this.string.length) return this.string.charAt(this.pos++);
|
|
89
|
-
},
|
|
90
|
-
eat: function eat(match) {
|
|
91
|
-
var ch = this.string.charAt(this.pos);
|
|
92
|
-
if (typeof match == "string") var ok = ch == match;else var ok = ch && (match.test ? match.test(ch) : match(ch));
|
|
93
|
-
|
|
94
|
-
if (ok) {
|
|
95
|
-
++this.pos;
|
|
96
|
-
return ch;
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
eatWhile: function eatWhile(match) {
|
|
100
|
-
var start = this.pos;
|
|
101
|
-
|
|
102
|
-
while (this.eat(match)) {}
|
|
103
|
-
|
|
104
|
-
return this.pos > start;
|
|
105
|
-
},
|
|
106
|
-
eatSpace: function eatSpace() {
|
|
107
|
-
var start = this.pos;
|
|
108
|
-
|
|
109
|
-
while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) {
|
|
110
|
-
++this.pos;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return this.pos > start;
|
|
114
|
-
},
|
|
115
|
-
skipToEnd: function skipToEnd() {
|
|
116
|
-
this.pos = this.string.length;
|
|
117
|
-
},
|
|
118
|
-
skipTo: function skipTo(ch) {
|
|
119
|
-
var found = this.string.indexOf(ch, this.pos);
|
|
120
|
-
|
|
121
|
-
if (found > -1) {
|
|
122
|
-
this.pos = found;
|
|
123
|
-
return true;
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
backUp: function backUp(n) {
|
|
127
|
-
this.pos -= n;
|
|
128
|
-
},
|
|
129
|
-
column: function column() {
|
|
130
|
-
throw "not implemented";
|
|
131
|
-
},
|
|
132
|
-
indentation: function indentation() {
|
|
133
|
-
throw "not implemented";
|
|
134
|
-
},
|
|
135
|
-
match: function match(pattern, consume, caseInsensitive) {
|
|
136
|
-
if (typeof pattern == "string") {
|
|
137
|
-
var cased = function cased(str) {
|
|
138
|
-
return caseInsensitive ? str.toLowerCase() : str;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
var substr = this.string.substr(this.pos, pattern.length);
|
|
142
|
-
|
|
143
|
-
if (cased(substr) == cased(pattern)) {
|
|
144
|
-
if (consume !== false) this.pos += pattern.length;
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
} else {
|
|
148
|
-
var match = this.string.slice(this.pos).match(pattern);
|
|
149
|
-
if (match && match.index > 0) return null;
|
|
150
|
-
if (match && consume !== false) this.pos += match[0].length;
|
|
151
|
-
return match;
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
current: function current() {
|
|
155
|
-
return this.string.slice(this.start, this.pos);
|
|
156
|
-
},
|
|
157
|
-
hideFirstChars: function hideFirstChars(n, inner) {
|
|
158
|
-
this.lineStart += n;
|
|
159
|
-
|
|
160
|
-
try {
|
|
161
|
-
return inner();
|
|
162
|
-
} finally {
|
|
163
|
-
this.lineStart -= n;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
function toCmPos(pos) {
|
|
169
|
-
return new Pos(pos.lineNumber - 1, pos.column - 1);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function toMonacoPos(pos) {
|
|
173
|
-
return new _editor.Position(pos.line + 1, pos.ch + 1);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
var Marker = /*#__PURE__*/function () {
|
|
177
|
-
function Marker(cm, id, line, ch) {
|
|
178
|
-
_classCallCheck(this, Marker);
|
|
179
|
-
|
|
180
|
-
this.cm = cm;
|
|
181
|
-
this.id = id;
|
|
182
|
-
this.lineNumber = line + 1;
|
|
183
|
-
this.column = ch + 1;
|
|
184
|
-
cm.marks[this.id] = this;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
_createClass(Marker, [{
|
|
188
|
-
key: "clear",
|
|
189
|
-
value: function clear() {
|
|
190
|
-
delete this.cm.marks[this.id];
|
|
191
|
-
}
|
|
192
|
-
}, {
|
|
193
|
-
key: "find",
|
|
194
|
-
value: function find() {
|
|
195
|
-
return toCmPos(this);
|
|
196
|
-
}
|
|
197
|
-
}]);
|
|
198
|
-
|
|
199
|
-
return Marker;
|
|
200
|
-
}();
|
|
201
|
-
|
|
202
|
-
function monacoToCmKey(e) {
|
|
203
|
-
var skip = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
204
|
-
var addQuotes = true;
|
|
205
|
-
var keyName = _editor.KeyCode[e.keyCode];
|
|
206
|
-
|
|
207
|
-
if (e.key) {
|
|
208
|
-
keyName = e.key;
|
|
209
|
-
addQuotes = false;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
var key = keyName;
|
|
213
|
-
var skipOnlyShiftCheck = skip;
|
|
214
|
-
|
|
215
|
-
switch (e.keyCode) {
|
|
216
|
-
case _editor.KeyCode.Shift:
|
|
217
|
-
case _editor.KeyCode.Meta:
|
|
218
|
-
case _editor.KeyCode.Alt:
|
|
219
|
-
case _editor.KeyCode.Ctrl:
|
|
220
|
-
return key;
|
|
221
|
-
|
|
222
|
-
case _editor.KeyCode.Escape:
|
|
223
|
-
skipOnlyShiftCheck = true;
|
|
224
|
-
key = "Esc";
|
|
225
|
-
break;
|
|
226
|
-
|
|
227
|
-
case _editor.KeyCode.Space:
|
|
228
|
-
skipOnlyShiftCheck = true;
|
|
229
|
-
break;
|
|
230
|
-
} // `Key` check for monaco >= 0.30.0
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
if (keyName.startsWith("Key") || keyName.startsWith("KEY_")) {
|
|
234
|
-
key = keyName[keyName.length - 1].toLowerCase();
|
|
235
|
-
} else if (keyName.startsWith("Digit")) {
|
|
236
|
-
key = keyName.slice(5, 6);
|
|
237
|
-
} else if (keyName.startsWith("Numpad")) {
|
|
238
|
-
key = keyName.slice(6, 7);
|
|
239
|
-
} else if (keyName.endsWith("Arrow")) {
|
|
240
|
-
skipOnlyShiftCheck = true;
|
|
241
|
-
key = keyName.substring(0, keyName.length - 5);
|
|
242
|
-
} else if (keyName.startsWith("US_") || // `Bracket` check for monaco >= 0.30.0
|
|
243
|
-
keyName.startsWith("Bracket") || !key) {
|
|
244
|
-
key = e.browserEvent.key;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (!skipOnlyShiftCheck && !e.altKey && !e.ctrlKey && !e.metaKey) {
|
|
248
|
-
key = e.key || e.browserEvent.key;
|
|
249
|
-
} else {
|
|
250
|
-
if (e.altKey) {
|
|
251
|
-
key = "Alt-".concat(key);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
if (e.ctrlKey) {
|
|
255
|
-
key = "Ctrl-".concat(key);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
if (e.metaKey) {
|
|
259
|
-
key = "Meta-".concat(key);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
if (e.shiftKey) {
|
|
263
|
-
key = "Shift-".concat(key);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (key.length === 1 && addQuotes) {
|
|
268
|
-
key = "'".concat(key, "'");
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
return key;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
var CMAdapter = /*#__PURE__*/function () {
|
|
275
|
-
function CMAdapter(editor) {
|
|
276
|
-
_classCallCheck(this, CMAdapter);
|
|
277
|
-
|
|
278
|
-
_initialiseProps.call(this);
|
|
279
|
-
|
|
280
|
-
this.editor = editor;
|
|
281
|
-
this.state = {
|
|
282
|
-
keyMap: "vim"
|
|
283
|
-
};
|
|
284
|
-
this.marks = {};
|
|
285
|
-
this.$uid = 0;
|
|
286
|
-
this.disposables = [];
|
|
287
|
-
this.listeners = {};
|
|
288
|
-
this.curOp = {};
|
|
289
|
-
this.attached = false;
|
|
290
|
-
this.statusBar = null;
|
|
291
|
-
this.options = {};
|
|
292
|
-
this.addLocalListeners();
|
|
293
|
-
this.ctxInsert = this.editor.createContextKey("insertMode", true);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
_createClass(CMAdapter, [{
|
|
297
|
-
key: "attach",
|
|
298
|
-
value: function attach() {
|
|
299
|
-
CMAdapter.keyMap.vim.attach(this);
|
|
300
|
-
}
|
|
301
|
-
}, {
|
|
302
|
-
key: "addLocalListeners",
|
|
303
|
-
value: function addLocalListeners() {
|
|
304
|
-
this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange), this.editor.onDidChangeModelContent(this.handleChange), this.editor.onKeyDown(this.handleKeyDown));
|
|
305
|
-
}
|
|
306
|
-
}, {
|
|
307
|
-
key: "handleReplaceMode",
|
|
308
|
-
value: function handleReplaceMode(key, e) {
|
|
309
|
-
var fromReplace = false;
|
|
310
|
-
var _char = key;
|
|
311
|
-
var pos = this.editor.getPosition();
|
|
312
|
-
var range = new _editor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column + 1);
|
|
313
|
-
var forceMoveMarkers = true;
|
|
314
|
-
|
|
315
|
-
if (key.startsWith("'")) {
|
|
316
|
-
_char = key[1];
|
|
317
|
-
} else if (_char === "Enter") {
|
|
318
|
-
_char = "\n";
|
|
319
|
-
} else if (_char === "Backspace") {
|
|
320
|
-
var lastItem = this.replaceStack.pop();
|
|
321
|
-
|
|
322
|
-
if (!lastItem) {
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
fromReplace = true;
|
|
327
|
-
_char = lastItem;
|
|
328
|
-
range = new _editor.Range(pos.lineNumber, pos.column, pos.lineNumber, pos.column - 1);
|
|
329
|
-
} else {
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
e.preventDefault();
|
|
334
|
-
e.stopPropagation();
|
|
335
|
-
|
|
336
|
-
if (!this.replaceStack) {
|
|
337
|
-
this.replaceStack = [];
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
if (!fromReplace) {
|
|
341
|
-
this.replaceStack.push(this.editor.getModel().getValueInRange(range));
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
this.editor.executeEdits("vim", [{
|
|
345
|
-
text: _char,
|
|
346
|
-
range: range,
|
|
347
|
-
forceMoveMarkers: forceMoveMarkers
|
|
348
|
-
}]);
|
|
349
|
-
|
|
350
|
-
if (fromReplace) {
|
|
351
|
-
this.editor.setPosition(range.getStartPosition());
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}, {
|
|
355
|
-
key: "setOption",
|
|
356
|
-
value: function setOption(key, value) {
|
|
357
|
-
this.state[key] = value;
|
|
358
|
-
|
|
359
|
-
if (key === "theme") {
|
|
360
|
-
_editor.editor.setTheme(value);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
key: "getConfiguration",
|
|
365
|
-
value: function getConfiguration() {
|
|
366
|
-
var editor = this.editor;
|
|
367
|
-
var opts = EditorOptConstants;
|
|
368
|
-
|
|
369
|
-
if (typeof editor.getConfiguration === "function") {
|
|
370
|
-
return editor.getConfiguration();
|
|
371
|
-
} else if ("EditorOption" in _editor.editor) {
|
|
372
|
-
// for monaco 0.19.3 onwards
|
|
373
|
-
opts = _editor.editor.EditorOption;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
return {
|
|
377
|
-
readOnly: editor.getOption(opts.readOnly),
|
|
378
|
-
viewInfo: {
|
|
379
|
-
cursorWidth: editor.getOption(opts.cursorWidth)
|
|
380
|
-
},
|
|
381
|
-
fontInfo: editor.getOption(opts.fontInfo)
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
}, {
|
|
385
|
-
key: "getOption",
|
|
386
|
-
value: function getOption(key) {
|
|
387
|
-
if (key === "readOnly") {
|
|
388
|
-
return this.getConfiguration().readOnly;
|
|
389
|
-
} else if (key === "firstLineNumber") {
|
|
390
|
-
return this.firstLine() + 1;
|
|
391
|
-
} else if (key === "indentWithTabs") {
|
|
392
|
-
return !this.editor.getModel().getOptions().insertSpaces;
|
|
393
|
-
} else {
|
|
394
|
-
if (typeof this.editor.getConfiguration === "function") {
|
|
395
|
-
return this.editor.getRawConfiguration()[key];
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
return this.editor.getRawOptions()[key];
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}, {
|
|
402
|
-
key: "dispatch",
|
|
403
|
-
value: function dispatch(signal) {
|
|
404
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
405
|
-
args[_key - 1] = arguments[_key];
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
var listeners = this.listeners[signal];
|
|
409
|
-
|
|
410
|
-
if (!listeners) {
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
listeners.forEach(function (handler) {
|
|
415
|
-
return handler.apply(void 0, args);
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}, {
|
|
419
|
-
key: "on",
|
|
420
|
-
value: function on(event, handler) {
|
|
421
|
-
if (!this.listeners[event]) {
|
|
422
|
-
this.listeners[event] = [];
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
this.listeners[event].push(handler);
|
|
426
|
-
}
|
|
427
|
-
}, {
|
|
428
|
-
key: "off",
|
|
429
|
-
value: function off(event, handler) {
|
|
430
|
-
var listeners = this.listeners[event];
|
|
431
|
-
|
|
432
|
-
if (!listeners) {
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
this.listeners[event] = listeners.filter(function (l) {
|
|
437
|
-
return l !== handler;
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
}, {
|
|
441
|
-
key: "firstLine",
|
|
442
|
-
value: function firstLine() {
|
|
443
|
-
return 0;
|
|
444
|
-
}
|
|
445
|
-
}, {
|
|
446
|
-
key: "lastLine",
|
|
447
|
-
value: function lastLine() {
|
|
448
|
-
return this.lineCount() - 1;
|
|
449
|
-
}
|
|
450
|
-
}, {
|
|
451
|
-
key: "lineCount",
|
|
452
|
-
value: function lineCount() {
|
|
453
|
-
return this.editor.getModel().getLineCount();
|
|
454
|
-
}
|
|
455
|
-
}, {
|
|
456
|
-
key: "defaultTextHeight",
|
|
457
|
-
value: function defaultTextHeight() {
|
|
458
|
-
return 1;
|
|
459
|
-
}
|
|
460
|
-
}, {
|
|
461
|
-
key: "getLine",
|
|
462
|
-
value: function getLine(line) {
|
|
463
|
-
if (line < 0) {
|
|
464
|
-
return "";
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
var model = this.editor.getModel();
|
|
468
|
-
var maxLines = model.getLineCount();
|
|
469
|
-
|
|
470
|
-
if (line + 1 > maxLines) {
|
|
471
|
-
line = maxLines - 1;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
return this.editor.getModel().getLineContent(line + 1);
|
|
475
|
-
}
|
|
476
|
-
}, {
|
|
477
|
-
key: "getAnchorForSelection",
|
|
478
|
-
value: function getAnchorForSelection(selection) {
|
|
479
|
-
if (selection.isEmpty()) {
|
|
480
|
-
return selection.getPosition();
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
var selDir = selection.getDirection();
|
|
484
|
-
return selDir === _editor.SelectionDirection.LTR ? selection.getStartPosition() : selection.getEndPosition();
|
|
485
|
-
}
|
|
486
|
-
}, {
|
|
487
|
-
key: "getHeadForSelection",
|
|
488
|
-
value: function getHeadForSelection(selection) {
|
|
489
|
-
if (selection.isEmpty()) {
|
|
490
|
-
return selection.getPosition();
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
var selDir = selection.getDirection();
|
|
494
|
-
return selDir === _editor.SelectionDirection.LTR ? selection.getEndPosition() : selection.getStartPosition();
|
|
495
|
-
}
|
|
496
|
-
}, {
|
|
497
|
-
key: "getCursor",
|
|
498
|
-
value: function getCursor() {
|
|
499
|
-
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
500
|
-
|
|
501
|
-
if (!type) {
|
|
502
|
-
return toCmPos(this.editor.getPosition());
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
var sel = this.editor.getSelection();
|
|
506
|
-
var pos;
|
|
507
|
-
|
|
508
|
-
if (sel.isEmpty()) {
|
|
509
|
-
pos = sel.getPosition();
|
|
510
|
-
} else if (type === "anchor") {
|
|
511
|
-
pos = this.getAnchorForSelection(sel);
|
|
512
|
-
} else {
|
|
513
|
-
pos = this.getHeadForSelection(sel);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
return toCmPos(pos);
|
|
517
|
-
}
|
|
518
|
-
}, {
|
|
519
|
-
key: "getRange",
|
|
520
|
-
value: function getRange(start, end) {
|
|
521
|
-
var p1 = toMonacoPos(start);
|
|
522
|
-
var p2 = toMonacoPos(end);
|
|
523
|
-
return this.editor.getModel().getValueInRange(_editor.Range.fromPositions(p1, p2));
|
|
524
|
-
}
|
|
525
|
-
}, {
|
|
526
|
-
key: "getSelection",
|
|
527
|
-
value: function getSelection() {
|
|
528
|
-
var list = [];
|
|
529
|
-
var editor = this.editor;
|
|
530
|
-
editor.getSelections().map(function (sel) {
|
|
531
|
-
list.push(editor.getModel().getValueInRange(sel));
|
|
532
|
-
});
|
|
533
|
-
return list.join("\n");
|
|
534
|
-
}
|
|
535
|
-
}, {
|
|
536
|
-
key: "replaceRange",
|
|
537
|
-
value: function replaceRange(text, start, end) {
|
|
538
|
-
var p1 = toMonacoPos(start);
|
|
539
|
-
var p2 = !end ? p1 : toMonacoPos(end);
|
|
540
|
-
this.editor.executeEdits("vim", [{
|
|
541
|
-
text: text,
|
|
542
|
-
range: _editor.Range.fromPositions(p1, p2)
|
|
543
|
-
}]); // @TODO - Check if this breaks any other expectation
|
|
544
|
-
|
|
545
|
-
this.pushUndoStop();
|
|
546
|
-
}
|
|
547
|
-
}, {
|
|
548
|
-
key: "pushUndoStop",
|
|
549
|
-
value: function pushUndoStop() {
|
|
550
|
-
this.editor.pushUndoStop();
|
|
551
|
-
}
|
|
552
|
-
}, {
|
|
553
|
-
key: "setCursor",
|
|
554
|
-
value: function setCursor(line, ch) {
|
|
555
|
-
var pos = line;
|
|
556
|
-
|
|
557
|
-
if (_typeof(line) !== "object") {
|
|
558
|
-
pos = {};
|
|
559
|
-
pos.line = line;
|
|
560
|
-
pos.ch = ch;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
var monacoPos = this.editor.getModel().validatePosition(toMonacoPos(pos));
|
|
564
|
-
this.editor.setPosition(toMonacoPos(pos));
|
|
565
|
-
this.editor.revealPosition(monacoPos);
|
|
566
|
-
}
|
|
567
|
-
}, {
|
|
568
|
-
key: "somethingSelected",
|
|
569
|
-
value: function somethingSelected() {
|
|
570
|
-
return !this.editor.getSelection().isEmpty();
|
|
571
|
-
}
|
|
572
|
-
}, {
|
|
573
|
-
key: "operation",
|
|
574
|
-
value: function operation(fn, force) {
|
|
575
|
-
return fn();
|
|
576
|
-
}
|
|
577
|
-
}, {
|
|
578
|
-
key: "listSelections",
|
|
579
|
-
value: function listSelections() {
|
|
580
|
-
var _this = this;
|
|
581
|
-
|
|
582
|
-
var selections = this.editor.getSelections();
|
|
583
|
-
|
|
584
|
-
if (!selections.length || this.inVirtualSelectionMode) {
|
|
585
|
-
return [{
|
|
586
|
-
anchor: this.getCursor("anchor"),
|
|
587
|
-
head: this.getCursor("head")
|
|
588
|
-
}];
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
return selections.map(function (sel) {
|
|
592
|
-
sel.getPosition();
|
|
593
|
-
sel.getStartPosition();
|
|
594
|
-
sel.getEndPosition();
|
|
595
|
-
return {
|
|
596
|
-
anchor: _this.clipPos(toCmPos(_this.getAnchorForSelection(sel))),
|
|
597
|
-
head: _this.clipPos(toCmPos(_this.getHeadForSelection(sel)))
|
|
598
|
-
};
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
}, {
|
|
602
|
-
key: "focus",
|
|
603
|
-
value: function focus() {
|
|
604
|
-
this.editor.focus();
|
|
605
|
-
}
|
|
606
|
-
}, {
|
|
607
|
-
key: "setSelections",
|
|
608
|
-
value: function setSelections(selections, primIndex) {
|
|
609
|
-
var hasSel = !!this.editor.getSelections().length;
|
|
610
|
-
var sels = selections.map(function (sel, index) {
|
|
611
|
-
var anchor = sel.anchor,
|
|
612
|
-
head = sel.head;
|
|
613
|
-
|
|
614
|
-
if (hasSel) {
|
|
615
|
-
return _editor.Selection.fromPositions(toMonacoPos(anchor), toMonacoPos(head));
|
|
616
|
-
} else {
|
|
617
|
-
return _editor.Selection.fromPositions(toMonacoPos(head), toMonacoPos(anchor));
|
|
618
|
-
}
|
|
619
|
-
});
|
|
620
|
-
|
|
621
|
-
if (!primIndex) ; else if (sels[primIndex]) {
|
|
622
|
-
sels.push(sels.splice(primIndex, 1)[0]);
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
if (!sels.length) {
|
|
626
|
-
return;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
var sel = sels[0];
|
|
630
|
-
var posToReveal;
|
|
631
|
-
|
|
632
|
-
if (sel.getDirection() === _editor.SelectionDirection.LTR) {
|
|
633
|
-
posToReveal = sel.getEndPosition();
|
|
634
|
-
} else {
|
|
635
|
-
posToReveal = sel.getStartPosition();
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
this.editor.setSelections(sels);
|
|
639
|
-
this.editor.revealPosition(posToReveal);
|
|
640
|
-
}
|
|
641
|
-
}, {
|
|
642
|
-
key: "setSelection",
|
|
643
|
-
value: function setSelection(frm, to) {
|
|
644
|
-
var range = _editor.Range.fromPositions(toMonacoPos(frm), toMonacoPos(to));
|
|
645
|
-
|
|
646
|
-
this.editor.setSelection(range);
|
|
647
|
-
}
|
|
648
|
-
}, {
|
|
649
|
-
key: "getSelections",
|
|
650
|
-
value: function getSelections() {
|
|
651
|
-
var editor = this.editor;
|
|
652
|
-
return editor.getSelections().map(function (sel) {
|
|
653
|
-
return editor.getModel().getValueInRange(sel);
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
}, {
|
|
657
|
-
key: "replaceSelections",
|
|
658
|
-
value: function replaceSelections(texts) {
|
|
659
|
-
var editor = this.editor;
|
|
660
|
-
editor.getSelections().forEach(function (sel, index) {
|
|
661
|
-
editor.executeEdits("vim", [{
|
|
662
|
-
range: sel,
|
|
663
|
-
text: texts[index],
|
|
664
|
-
forceMoveMarkers: false
|
|
665
|
-
}]);
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
}, {
|
|
669
|
-
key: "toggleOverwrite",
|
|
670
|
-
value: function toggleOverwrite(toggle) {
|
|
671
|
-
if (toggle) {
|
|
672
|
-
this.enterVimMode();
|
|
673
|
-
this.replaceMode = true;
|
|
674
|
-
} else {
|
|
675
|
-
this.leaveVimMode();
|
|
676
|
-
this.replaceMode = false;
|
|
677
|
-
this.replaceStack = [];
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
}, {
|
|
681
|
-
key: "charCoords",
|
|
682
|
-
value: function charCoords(pos, mode) {
|
|
683
|
-
return {
|
|
684
|
-
top: pos.line,
|
|
685
|
-
left: pos.ch
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
}, {
|
|
689
|
-
key: "coordsChar",
|
|
690
|
-
value: function coordsChar(pos, mode) {
|
|
691
|
-
}
|
|
692
|
-
}, {
|
|
693
|
-
key: "clipPos",
|
|
694
|
-
value: function clipPos(p) {
|
|
695
|
-
var pos = this.editor.getModel().validatePosition(toMonacoPos(p));
|
|
696
|
-
return toCmPos(pos);
|
|
697
|
-
}
|
|
698
|
-
}, {
|
|
699
|
-
key: "setBookmark",
|
|
700
|
-
value: function setBookmark(cursor, options) {
|
|
701
|
-
var bm = new Marker(this, this.$uid++, cursor.line, cursor.ch);
|
|
702
|
-
|
|
703
|
-
if (!options || !options.insertLeft) {
|
|
704
|
-
bm.$insertRight = true;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
this.marks[bm.id] = bm;
|
|
708
|
-
return bm;
|
|
709
|
-
}
|
|
710
|
-
}, {
|
|
711
|
-
key: "getScrollInfo",
|
|
712
|
-
value: function getScrollInfo() {
|
|
713
|
-
var editor = this.editor;
|
|
714
|
-
|
|
715
|
-
var _editor$getVisibleRan = editor.getVisibleRanges(),
|
|
716
|
-
_editor$getVisibleRan2 = _slicedToArray(_editor$getVisibleRan, 1),
|
|
717
|
-
range = _editor$getVisibleRan2[0];
|
|
718
|
-
|
|
719
|
-
return {
|
|
720
|
-
left: 0,
|
|
721
|
-
top: range.startLineNumber - 1,
|
|
722
|
-
height: editor.getModel().getLineCount(),
|
|
723
|
-
clientHeight: range.endLineNumber - range.startLineNumber + 1
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
}, {
|
|
727
|
-
key: "triggerEditorAction",
|
|
728
|
-
value: function triggerEditorAction(action) {
|
|
729
|
-
this.editor.trigger("vim", action);
|
|
730
|
-
}
|
|
731
|
-
}, {
|
|
732
|
-
key: "dispose",
|
|
733
|
-
value: function dispose() {
|
|
734
|
-
this.dispatch("dispose");
|
|
735
|
-
this.removeOverlay();
|
|
736
|
-
|
|
737
|
-
if (CMAdapter.keyMap.vim) {
|
|
738
|
-
CMAdapter.keyMap.vim.detach(this);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
this.disposables.forEach(function (d) {
|
|
742
|
-
return d.dispose();
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
}, {
|
|
746
|
-
key: "getInputField",
|
|
747
|
-
value: function getInputField() {}
|
|
748
|
-
}, {
|
|
749
|
-
key: "getWrapperElement",
|
|
750
|
-
value: function getWrapperElement() {}
|
|
751
|
-
}, {
|
|
752
|
-
key: "enterVimMode",
|
|
753
|
-
value: function enterVimMode() {
|
|
754
|
-
this.ctxInsert.set(false);
|
|
755
|
-
var config = this.getConfiguration();
|
|
756
|
-
this.initialCursorWidth = config.viewInfo.cursorWidth || 0;
|
|
757
|
-
this.editor.updateOptions({
|
|
758
|
-
cursorWidth: config.fontInfo.typicalFullwidthCharacterWidth,
|
|
759
|
-
cursorBlinking: "solid"
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
}, {
|
|
763
|
-
key: "leaveVimMode",
|
|
764
|
-
value: function leaveVimMode() {
|
|
765
|
-
this.ctxInsert.set(true);
|
|
766
|
-
this.editor.updateOptions({
|
|
767
|
-
cursorWidth: this.initialCursorWidth || 0,
|
|
768
|
-
cursorBlinking: "blink"
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
}, {
|
|
772
|
-
key: "virtualSelectionMode",
|
|
773
|
-
value: function virtualSelectionMode() {
|
|
774
|
-
return this.inVirtualSelectionMode;
|
|
775
|
-
}
|
|
776
|
-
}, {
|
|
777
|
-
key: "markText",
|
|
778
|
-
value: function markText() {
|
|
779
|
-
// only used for fat-cursor, not needed
|
|
780
|
-
return {
|
|
781
|
-
clear: function clear() {},
|
|
782
|
-
find: function find() {}
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
}, {
|
|
786
|
-
key: "getUserVisibleLines",
|
|
787
|
-
value: function getUserVisibleLines() {
|
|
788
|
-
var ranges = this.editor.getVisibleRanges();
|
|
789
|
-
|
|
790
|
-
if (!ranges.length) {
|
|
791
|
-
return {
|
|
792
|
-
top: 0,
|
|
793
|
-
bottom: 0
|
|
794
|
-
};
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
var res = {
|
|
798
|
-
top: Infinity,
|
|
799
|
-
bottom: 0
|
|
800
|
-
};
|
|
801
|
-
ranges.reduce(function (acc, range) {
|
|
802
|
-
if (range.startLineNumber < acc.top) {
|
|
803
|
-
acc.top = range.startLineNumber;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
if (range.endLineNumber > acc.bottom) {
|
|
807
|
-
acc.bottom = range.endLineNumber;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
return acc;
|
|
811
|
-
}, res);
|
|
812
|
-
res.top -= 1;
|
|
813
|
-
res.bottom -= 1;
|
|
814
|
-
return res;
|
|
815
|
-
}
|
|
816
|
-
}, {
|
|
817
|
-
key: "findPosV",
|
|
818
|
-
value: function findPosV(startPos, amount, unit) {
|
|
819
|
-
var editor = this.editor;
|
|
820
|
-
var finalAmount = amount;
|
|
821
|
-
var finalUnit = unit;
|
|
822
|
-
var pos = toMonacoPos(startPos);
|
|
823
|
-
|
|
824
|
-
if (unit === "page") {
|
|
825
|
-
var editorHeight = editor.getLayoutInfo().height;
|
|
826
|
-
var lineHeight = this.getConfiguration().fontInfo.lineHeight;
|
|
827
|
-
finalAmount = finalAmount * Math.floor(editorHeight / lineHeight);
|
|
828
|
-
finalUnit = "line";
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
if (finalUnit === "line") {
|
|
832
|
-
pos.lineNumber += finalAmount;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
return toCmPos(pos);
|
|
836
|
-
}
|
|
837
|
-
}, {
|
|
838
|
-
key: "findMatchingBracket",
|
|
839
|
-
value: function findMatchingBracket(pos) {
|
|
840
|
-
var mPos = toMonacoPos(pos);
|
|
841
|
-
var model = this.editor.getModel();
|
|
842
|
-
var res; // for monaco versions >= 0.28.0
|
|
843
|
-
|
|
844
|
-
if (model.bracketPairs) {
|
|
845
|
-
res = model.bracketPairs.matchBracket(mPos);
|
|
846
|
-
} else {
|
|
847
|
-
var _model$matchBracket;
|
|
848
|
-
|
|
849
|
-
res = (_model$matchBracket = model.matchBracket) === null || _model$matchBracket === void 0 ? void 0 : _model$matchBracket.call(model, mPos);
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
if (!res || !(res.length === 2)) {
|
|
853
|
-
return {
|
|
854
|
-
to: null
|
|
855
|
-
};
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
return {
|
|
859
|
-
to: toCmPos(res[1].getStartPosition())
|
|
860
|
-
};
|
|
861
|
-
}
|
|
862
|
-
}, {
|
|
863
|
-
key: "findFirstNonWhiteSpaceCharacter",
|
|
864
|
-
value: function findFirstNonWhiteSpaceCharacter(line) {
|
|
865
|
-
return this.editor.getModel().getLineFirstNonWhitespaceColumn(line + 1) - 1;
|
|
866
|
-
}
|
|
867
|
-
}, {
|
|
868
|
-
key: "scrollTo",
|
|
869
|
-
value: function scrollTo(x, y) {
|
|
870
|
-
if (!x && !y) {
|
|
871
|
-
return;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
if (!x) {
|
|
875
|
-
if (y < 0) {
|
|
876
|
-
y = this.editor.getPosition().lineNumber - y;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
this.editor.setScrollTop(this.editor.getTopForLineNumber(y + 1));
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
}, {
|
|
883
|
-
key: "moveCurrentLineTo",
|
|
884
|
-
value: function moveCurrentLineTo(viewPosition) {
|
|
885
|
-
var _editor$_revealRange;
|
|
886
|
-
|
|
887
|
-
var editor = this.editor;
|
|
888
|
-
var pos = editor.getPosition();
|
|
889
|
-
|
|
890
|
-
var range = _editor.Range.fromPositions(pos, pos);
|
|
891
|
-
|
|
892
|
-
switch (viewPosition) {
|
|
893
|
-
case "top":
|
|
894
|
-
editor.revealRangeAtTop(range);
|
|
895
|
-
return;
|
|
896
|
-
|
|
897
|
-
case "center":
|
|
898
|
-
editor.revealRangeInCenter(range);
|
|
899
|
-
return;
|
|
900
|
-
|
|
901
|
-
case "bottom":
|
|
902
|
-
// private api. no other way
|
|
903
|
-
(_editor$_revealRange = editor._revealRange) === null || _editor$_revealRange === void 0 ? void 0 : _editor$_revealRange.call(editor, range, VerticalRevealType.Bottom);
|
|
904
|
-
return;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
}, {
|
|
908
|
-
key: "getSearchCursor",
|
|
909
|
-
value: function getSearchCursor(query, pos) {
|
|
910
|
-
var matchCase = false;
|
|
911
|
-
var isRegex = false;
|
|
912
|
-
|
|
913
|
-
if (query instanceof RegExp && !query.global) {
|
|
914
|
-
matchCase = !query.ignoreCase;
|
|
915
|
-
query = query.source;
|
|
916
|
-
isRegex = true;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
if (pos.ch == undefined) pos.ch = Number.MAX_VALUE;
|
|
920
|
-
var monacoPos = toMonacoPos(pos);
|
|
921
|
-
var context = this;
|
|
922
|
-
var editor = this.editor;
|
|
923
|
-
var lastSearch = null;
|
|
924
|
-
var model = editor.getModel();
|
|
925
|
-
var matches = model.findMatches(query, false, isRegex, matchCase) || [];
|
|
926
|
-
return {
|
|
927
|
-
getMatches: function getMatches() {
|
|
928
|
-
return matches;
|
|
929
|
-
},
|
|
930
|
-
findNext: function findNext() {
|
|
931
|
-
return this.find(false);
|
|
932
|
-
},
|
|
933
|
-
findPrevious: function findPrevious() {
|
|
934
|
-
return this.find(true);
|
|
935
|
-
},
|
|
936
|
-
jumpTo: function jumpTo(index) {
|
|
937
|
-
if (!matches || !matches.length) {
|
|
938
|
-
return false;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
var match = matches[index];
|
|
942
|
-
lastSearch = match.range;
|
|
943
|
-
context.highlightRanges([lastSearch], "currentFindMatch");
|
|
944
|
-
context.highlightRanges(matches.map(function (m) {
|
|
945
|
-
return m.range;
|
|
946
|
-
}).filter(function (r) {
|
|
947
|
-
return !r.equalsRange(lastSearch);
|
|
948
|
-
}));
|
|
949
|
-
return lastSearch;
|
|
950
|
-
},
|
|
951
|
-
find: function find(back) {
|
|
952
|
-
if (!matches || !matches.length) {
|
|
953
|
-
return false;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
var match;
|
|
957
|
-
|
|
958
|
-
if (back) {
|
|
959
|
-
var _pos = lastSearch ? lastSearch.getStartPosition() : monacoPos;
|
|
960
|
-
|
|
961
|
-
match = model.findPreviousMatch(query, _pos, isRegex, matchCase);
|
|
962
|
-
|
|
963
|
-
if (!match || !match.range.getStartPosition().isBeforeOrEqual(_pos)) {
|
|
964
|
-
return false;
|
|
965
|
-
}
|
|
966
|
-
} else {
|
|
967
|
-
var _pos2 = lastSearch ? model.getPositionAt(model.getOffsetAt(lastSearch.getStartPosition()) + 1) : monacoPos;
|
|
968
|
-
|
|
969
|
-
match = model.findNextMatch(query, _pos2, isRegex, matchCase);
|
|
970
|
-
|
|
971
|
-
if (!match || !_pos2.isBeforeOrEqual(match.range.getStartPosition())) {
|
|
972
|
-
return false;
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
lastSearch = match.range;
|
|
977
|
-
context.highlightRanges([lastSearch], "currentFindMatch");
|
|
978
|
-
context.highlightRanges(matches.map(function (m) {
|
|
979
|
-
return m.range;
|
|
980
|
-
}).filter(function (r) {
|
|
981
|
-
return !r.equalsRange(lastSearch);
|
|
982
|
-
}));
|
|
983
|
-
return lastSearch;
|
|
984
|
-
},
|
|
985
|
-
from: function from() {
|
|
986
|
-
return lastSearch && toCmPos(lastSearch.getStartPosition());
|
|
987
|
-
},
|
|
988
|
-
to: function to() {
|
|
989
|
-
return lastSearch && toCmPos(lastSearch.getEndPosition());
|
|
990
|
-
},
|
|
991
|
-
replace: function replace(text) {
|
|
992
|
-
if (lastSearch) {
|
|
993
|
-
editor.executeEdits("vim", [{
|
|
994
|
-
range: lastSearch,
|
|
995
|
-
text: text,
|
|
996
|
-
forceMoveMarkers: true
|
|
997
|
-
}]);
|
|
998
|
-
lastSearch.setEndPosition(editor.getPosition());
|
|
999
|
-
editor.setPosition(lastSearch.getStartPosition());
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
};
|
|
1003
|
-
}
|
|
1004
|
-
}, {
|
|
1005
|
-
key: "highlightRanges",
|
|
1006
|
-
value: function highlightRanges(ranges) {
|
|
1007
|
-
var className = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "findMatch";
|
|
1008
|
-
var decorationKey = "decoration".concat(className);
|
|
1009
|
-
this[decorationKey] = this.editor.deltaDecorations(this[decorationKey] || [], ranges.map(function (range) {
|
|
1010
|
-
return {
|
|
1011
|
-
range: range,
|
|
1012
|
-
options: {
|
|
1013
|
-
stickiness: _editor.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
|
|
1014
|
-
zIndex: 13,
|
|
1015
|
-
className: className,
|
|
1016
|
-
showIfCollapsed: true
|
|
1017
|
-
}
|
|
1018
|
-
};
|
|
1019
|
-
}));
|
|
1020
|
-
return this[decorationKey];
|
|
1021
|
-
}
|
|
1022
|
-
}, {
|
|
1023
|
-
key: "addOverlay",
|
|
1024
|
-
value: function addOverlay(_ref, hasBoundary, style) {
|
|
1025
|
-
var query = _ref.query;
|
|
1026
|
-
var matchCase = false;
|
|
1027
|
-
var isRegex = false;
|
|
1028
|
-
|
|
1029
|
-
if (query && query instanceof RegExp && !query.global) {
|
|
1030
|
-
isRegex = true;
|
|
1031
|
-
matchCase = !query.ignoreCase;
|
|
1032
|
-
query = query.source;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
var match = this.editor.getModel().findNextMatch(query, this.editor.getPosition(), isRegex, matchCase);
|
|
1036
|
-
|
|
1037
|
-
if (!match || !match.range) {
|
|
1038
|
-
return;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
this.highlightRanges([match.range]);
|
|
1042
|
-
}
|
|
1043
|
-
}, {
|
|
1044
|
-
key: "removeOverlay",
|
|
1045
|
-
value: function removeOverlay() {
|
|
1046
|
-
var _this2 = this;
|
|
1047
|
-
|
|
1048
|
-
["currentFindMatch", "findMatch"].forEach(function (key) {
|
|
1049
|
-
_this2.editor.deltaDecorations(_this2["decoration".concat(key)] || [], []);
|
|
1050
|
-
});
|
|
1051
|
-
}
|
|
1052
|
-
}, {
|
|
1053
|
-
key: "scrollIntoView",
|
|
1054
|
-
value: function scrollIntoView(pos) {
|
|
1055
|
-
if (!pos) {
|
|
1056
|
-
return;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
this.editor.revealPosition(toMonacoPos(pos));
|
|
1060
|
-
}
|
|
1061
|
-
}, {
|
|
1062
|
-
key: "moveH",
|
|
1063
|
-
value: function moveH(units, type) {
|
|
1064
|
-
if (type !== "char") {
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
var pos = this.editor.getPosition();
|
|
1069
|
-
this.editor.setPosition(new _editor.Position(pos.lineNumber, pos.column + units));
|
|
1070
|
-
}
|
|
1071
|
-
}, {
|
|
1072
|
-
key: "scanForBracket",
|
|
1073
|
-
value: function scanForBracket(pos, dir, dd, config) {
|
|
1074
|
-
var bracketRegex = config.bracketRegex;
|
|
1075
|
-
var mPos = toMonacoPos(pos);
|
|
1076
|
-
var model = this.editor.getModel();
|
|
1077
|
-
var searchFunc = (dir === -1 ? model.findPreviousMatch : model.findNextMatch).bind(model);
|
|
1078
|
-
var stack = [];
|
|
1079
|
-
var iterations = 0;
|
|
1080
|
-
|
|
1081
|
-
while (true) {
|
|
1082
|
-
if (iterations > 10) {
|
|
1083
|
-
// Searched too far, give up.
|
|
1084
|
-
return undefined;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
var match = searchFunc(bracketRegex.source, mPos, true, true, null, true);
|
|
1088
|
-
var thisBracket = match.matches[0];
|
|
1089
|
-
|
|
1090
|
-
if (match === undefined) {
|
|
1091
|
-
return undefined;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
var matchingBracket = CMAdapter.matchingBrackets[thisBracket];
|
|
1095
|
-
|
|
1096
|
-
if (matchingBracket && matchingBracket.charAt(1) === ">" == dir > 0) {
|
|
1097
|
-
stack.push(thisBracket);
|
|
1098
|
-
} else if (stack.length === 0) {
|
|
1099
|
-
var res = match.range.getStartPosition();
|
|
1100
|
-
return {
|
|
1101
|
-
pos: toCmPos(res)
|
|
1102
|
-
};
|
|
1103
|
-
} else {
|
|
1104
|
-
stack.pop();
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
mPos = model.getPositionAt(model.getOffsetAt(match.range.getStartPosition()) + dir);
|
|
1108
|
-
iterations += 1;
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
}, {
|
|
1112
|
-
key: "indexFromPos",
|
|
1113
|
-
value: function indexFromPos(pos) {
|
|
1114
|
-
return this.editor.getModel().getOffsetAt(toMonacoPos(pos));
|
|
1115
|
-
}
|
|
1116
|
-
}, {
|
|
1117
|
-
key: "posFromIndex",
|
|
1118
|
-
value: function posFromIndex(offset) {
|
|
1119
|
-
return toCmPos(this.editor.getModel().getPositionAt(offset));
|
|
1120
|
-
}
|
|
1121
|
-
}, {
|
|
1122
|
-
key: "indentLine",
|
|
1123
|
-
value: function indentLine(line) {
|
|
1124
|
-
var indentRight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1125
|
-
var editor = this.editor;
|
|
1126
|
-
var cursorConfig; // Monaco >= 0.21.x
|
|
1127
|
-
|
|
1128
|
-
if (editor._getViewModel) {
|
|
1129
|
-
cursorConfig = editor._getViewModel().cursorConfig;
|
|
1130
|
-
} else {
|
|
1131
|
-
cursorConfig = editor._getCursors().context.config;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
var pos = new _editor.Position(line + 1, 1);
|
|
1135
|
-
|
|
1136
|
-
var sel = _editor.Selection.fromPositions(pos, pos); // no other way than to use internal apis to preserve the undoStack for a batch of indents
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
editor.executeCommand("vim", new _shiftCommand.ShiftCommand(sel, {
|
|
1140
|
-
isUnshift: !indentRight,
|
|
1141
|
-
tabSize: cursorConfig.tabSize,
|
|
1142
|
-
indentSize: cursorConfig.indentSize,
|
|
1143
|
-
insertSpaces: cursorConfig.insertSpaces,
|
|
1144
|
-
useTabStops: cursorConfig.useTabStops,
|
|
1145
|
-
autoIndent: cursorConfig.autoIndent
|
|
1146
|
-
}));
|
|
1147
|
-
}
|
|
1148
|
-
}, {
|
|
1149
|
-
key: "setStatusBar",
|
|
1150
|
-
value: function setStatusBar(statusBar) {
|
|
1151
|
-
this.statusBar = statusBar;
|
|
1152
|
-
}
|
|
1153
|
-
}, {
|
|
1154
|
-
key: "openDialog",
|
|
1155
|
-
value: function openDialog(html, callback, options) {
|
|
1156
|
-
if (!this.statusBar) {
|
|
1157
|
-
return;
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
return this.statusBar.setSec(html, callback, options);
|
|
1161
|
-
}
|
|
1162
|
-
}, {
|
|
1163
|
-
key: "openNotification",
|
|
1164
|
-
value: function openNotification(html) {
|
|
1165
|
-
if (!this.statusBar) {
|
|
1166
|
-
return;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
this.statusBar.showNotification(html);
|
|
1170
|
-
}
|
|
1171
|
-
}, {
|
|
1172
|
-
key: "smartIndent",
|
|
1173
|
-
value: function smartIndent() {
|
|
1174
|
-
// Only works if a formatter is added for the current language.
|
|
1175
|
-
// reindentselectedlines does not work here.
|
|
1176
|
-
this.editor.getAction("editor.action.formatSelection").run();
|
|
1177
|
-
}
|
|
1178
|
-
}, {
|
|
1179
|
-
key: "moveCursorTo",
|
|
1180
|
-
value: function moveCursorTo(to) {
|
|
1181
|
-
var newPos = this.editor.getPosition();
|
|
1182
|
-
|
|
1183
|
-
if (to === "start") {
|
|
1184
|
-
newPos.column = 1;
|
|
1185
|
-
} else if (to === "end") {
|
|
1186
|
-
newPos.column = this.editor.getModel().getLineMaxColumn(newPos.lineNumber);
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
this.editor.setPosition(newPos);
|
|
1190
|
-
}
|
|
1191
|
-
}, {
|
|
1192
|
-
key: "execCommand",
|
|
1193
|
-
value: function execCommand(command) {
|
|
1194
|
-
switch (command) {
|
|
1195
|
-
case "goLineLeft":
|
|
1196
|
-
this.moveCursorTo("start");
|
|
1197
|
-
break;
|
|
1198
|
-
|
|
1199
|
-
case "goLineRight":
|
|
1200
|
-
this.moveCursorTo("end");
|
|
1201
|
-
break;
|
|
1202
|
-
|
|
1203
|
-
case "indentAuto":
|
|
1204
|
-
this.smartIndent();
|
|
1205
|
-
break;
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}]);
|
|
1209
|
-
|
|
1210
|
-
return CMAdapter;
|
|
1211
|
-
}();
|
|
1212
|
-
|
|
1213
|
-
CMAdapter.Pos = Pos;
|
|
1214
|
-
CMAdapter.signal = signal;
|
|
1215
|
-
CMAdapter.on = dummy();
|
|
1216
|
-
CMAdapter.off = dummy();
|
|
1217
|
-
CMAdapter.addClass = dummy();
|
|
1218
|
-
CMAdapter.rmClass = dummy();
|
|
1219
|
-
CMAdapter.defineOption = dummy();
|
|
1220
|
-
CMAdapter.keyMap = {
|
|
1221
|
-
"default": function _default(key) {
|
|
1222
|
-
return function (cm) {
|
|
1223
|
-
return true;
|
|
1224
|
-
};
|
|
1225
|
-
}
|
|
1226
|
-
};
|
|
1227
|
-
CMAdapter.matchingBrackets = {
|
|
1228
|
-
"(": ")>",
|
|
1229
|
-
")": "(<",
|
|
1230
|
-
"[": "]>",
|
|
1231
|
-
"]": "[<",
|
|
1232
|
-
"{": "}>",
|
|
1233
|
-
"}": "{<",
|
|
1234
|
-
"<": ">>",
|
|
1235
|
-
">": "<<"
|
|
1236
|
-
};
|
|
1237
|
-
CMAdapter.isWordChar = isWordCharBasic;
|
|
1238
|
-
CMAdapter.keyName = monacoToCmKey;
|
|
1239
|
-
CMAdapter.StringStream = StringStream;
|
|
1240
|
-
|
|
1241
|
-
CMAdapter.e_stop = function (e) {
|
|
1242
|
-
if (e.stopPropagation) {
|
|
1243
|
-
e.stopPropagation();
|
|
1244
|
-
} else {
|
|
1245
|
-
e.cancelBubble = true;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
CMAdapter.e_preventDefault(e);
|
|
1249
|
-
return false;
|
|
1250
|
-
};
|
|
1251
|
-
|
|
1252
|
-
CMAdapter.e_preventDefault = function (e) {
|
|
1253
|
-
if (e.preventDefault) {
|
|
1254
|
-
e.preventDefault();
|
|
1255
|
-
|
|
1256
|
-
if (e.browserEvent) {
|
|
1257
|
-
e.browserEvent.preventDefault();
|
|
1258
|
-
}
|
|
1259
|
-
} else {
|
|
1260
|
-
e.returnValue = false;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
return false;
|
|
1264
|
-
};
|
|
1265
|
-
|
|
1266
|
-
CMAdapter.commands = {
|
|
1267
|
-
redo: function redo(cm) {
|
|
1268
|
-
cm.editor.getModel().redo();
|
|
1269
|
-
},
|
|
1270
|
-
undo: function undo(cm) {
|
|
1271
|
-
cm.editor.getModel().undo();
|
|
1272
|
-
},
|
|
1273
|
-
newlineAndIndent: function newlineAndIndent(cm) {
|
|
1274
|
-
cm.triggerEditorAction("editor.action.insertLineAfter");
|
|
1275
|
-
}
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
CMAdapter.lookupKey = function lookupKey(key, map, handle) {
|
|
1279
|
-
if (typeof map === "string") {
|
|
1280
|
-
map = CMAdapter.keyMap[map];
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
var found = typeof map == "function" ? map(key) : map[key];
|
|
1284
|
-
if (found === false) return "nothing";
|
|
1285
|
-
if (found === "...") return "multi";
|
|
1286
|
-
if (found != null && handle(found)) return "handled";
|
|
1287
|
-
|
|
1288
|
-
if (map.fallthrough) {
|
|
1289
|
-
if (!Array.isArray(map.fallthrough)) return lookupKey(key, map.fallthrough, handle);
|
|
1290
|
-
|
|
1291
|
-
for (var i = 0; i < map.fallthrough.length; i++) {
|
|
1292
|
-
var result = lookupKey(key, map.fallthrough[i], handle);
|
|
1293
|
-
if (result) return result;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
CMAdapter.defineExtension = function (name, fn) {
|
|
1299
|
-
CMAdapter.prototype[name] = fn;
|
|
1300
|
-
};
|
|
1301
|
-
|
|
1302
|
-
var _initialiseProps = function _initialiseProps() {
|
|
1303
|
-
var _this3 = this;
|
|
1304
|
-
|
|
1305
|
-
this.handleKeyDown = function (e) {
|
|
1306
|
-
// Allow previously registered keydown listeners to handle the event and
|
|
1307
|
-
// prevent this extension from also handling it.
|
|
1308
|
-
if (e.browserEvent.defaultPrevented & e.keyCode !== _editor.KeyCode.Escape) {
|
|
1309
|
-
return;
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
if (!_this3.attached) {
|
|
1313
|
-
return;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
var key = monacoToCmKey(e);
|
|
1317
|
-
|
|
1318
|
-
if (_this3.replaceMode) {
|
|
1319
|
-
_this3.handleReplaceMode(key, e);
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
if (!key) {
|
|
1323
|
-
return;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
var keymap = _this3.state.keyMap;
|
|
1327
|
-
|
|
1328
|
-
if (CMAdapter.keyMap[keymap] && CMAdapter.keyMap[keymap].call) {
|
|
1329
|
-
var cmd = CMAdapter.keyMap[keymap].call(key, _this3);
|
|
1330
|
-
|
|
1331
|
-
if (cmd) {
|
|
1332
|
-
e.preventDefault();
|
|
1333
|
-
e.stopPropagation();
|
|
1334
|
-
|
|
1335
|
-
try {
|
|
1336
|
-
cmd();
|
|
1337
|
-
} catch (err) {
|
|
1338
|
-
console.error(err);
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
this.handleCursorChange = function (e) {
|
|
1345
|
-
var position = e.position;
|
|
1346
|
-
e.source;
|
|
1347
|
-
var editor = _this3.editor;
|
|
1348
|
-
var selection = editor.getSelection();
|
|
1349
|
-
|
|
1350
|
-
if (!_this3.ctxInsert.get() && e.source === "mouse" && selection.isEmpty()) {
|
|
1351
|
-
var maxCol = editor.getModel().getLineMaxColumn(position.lineNumber);
|
|
1352
|
-
|
|
1353
|
-
if (e.position.column === maxCol) {
|
|
1354
|
-
editor.setPosition(new _editor.Position(e.position.lineNumber, maxCol - 1));
|
|
1355
|
-
return;
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
_this3.dispatch("cursorActivity", _this3, e);
|
|
1360
|
-
};
|
|
1361
|
-
|
|
1362
|
-
this.handleChange = function (e) {
|
|
1363
|
-
var changes = e.changes;
|
|
1364
|
-
var change = {
|
|
1365
|
-
text: changes.reduce(function (acc, change) {
|
|
1366
|
-
acc.push(change.text);
|
|
1367
|
-
return acc;
|
|
1368
|
-
}, []),
|
|
1369
|
-
origin: "+input"
|
|
1370
|
-
};
|
|
1371
|
-
var curOp = _this3.curOp = _this3.curOp || {};
|
|
1372
|
-
|
|
1373
|
-
if (!curOp.changeHandlers) {
|
|
1374
|
-
curOp.changeHandlers = _this3.listeners["change"] && _this3.listeners["change"].slice();
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
if (_this3.virtualSelectionMode()) {
|
|
1378
|
-
return;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
if (!curOp.lastChange) {
|
|
1382
|
-
curOp.lastChange = curOp.change = change;
|
|
1383
|
-
} else {
|
|
1384
|
-
curOp.lastChange.next = curOp.lastChange = change;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
_this3.dispatch("change", _this3, change);
|
|
1388
|
-
};
|
|
1389
|
-
};
|
|
1390
|
-
|
|
1391
|
-
var _default2 = CMAdapter;
|
|
1392
|
-
exports["default"] = _default2;
|
|
1393
|
-
} (cm_adapter));
|