@codingame/monaco-editor-wrapper 4.0.0-next.1 → 4.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/Angular.ng-template-15.2.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/C2Hs-configuration.json.raw.js +3 -0
- package/dist/_virtual/Dart-Code.dart-code-3.63.20230419.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/Hsc2Hs-configuration.json.raw.js +3 -0
- package/dist/_virtual/IMCTradingBV.svlangserver-0.4.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/JakeBecker.elixir-ls-0.14.5.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/JuanBlanco.solidity-0.0.152.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/META.json.raw2.js +3 -0
- package/dist/_virtual/REditorSupport.r-2.7.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/Rlogo.svg.raw.js +3 -0
- package/dist/{_commonjsHelpers.js → _virtual/_commonjsHelpers.js} +1 -1
- package/dist/_virtual/_monaco-editor.js +6 -0
- package/dist/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +31 -0
- package/dist/_virtual/actions.js +3 -0
- package/dist/_virtual/alefragnani.pascal-9.6.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/angular-template-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/basicInput.js +3 -0
- package/dist/_virtual/batisteo.vscode-django-1.10.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/bitwisecook.tcl-0.4.3.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/book-dark.svg.raw.js +3 -0
- package/dist/_virtual/book-light.svg.raw.js +3 -0
- package/dist/_virtual/broadcomMFD.cobol-language-support-1.2.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/cabal-configuration.json.raw.js +3 -0
- package/dist/_virtual/castwide.solargraph-0.24.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ckolkman.vscode-postgres-1.4.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/cm_adapter.js +3 -0
- package/dist/_virtual/commands.js +3 -0
- package/dist/_virtual/conda-environment.json.raw.js +3 -0
- package/dist/_virtual/conda-meta.json.raw.js +3 -0
- package/dist/_virtual/condarc.json.raw.js +3 -0
- package/dist/{css.worker.js → _virtual/css.worker.js} +1 -1
- package/dist/_virtual/d.json.raw2.js +3 -0
- package/dist/_virtual/dart-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/dcf-configuration.json.raw.js +3 -0
- package/dist/_virtual/diet.json.raw3.js +3 -0
- package/dist/_virtual/dub.schema.json.raw.js +3 -0
- package/dist/_virtual/dune.json.raw3.js +3 -0
- package/dist/_virtual/editor.api.js +6 -0
- package/dist/_virtual/editor.worker.js +6 -0
- package/dist/_virtual/eex-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/elixir-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/erlang.configuration.json.raw.js +3 -0
- package/dist/_virtual/file_type_java.svg.raw.js +3 -0
- package/dist/_virtual/file_type_scala.svg.raw.js +3 -0
- package/dist/_virtual/flutter_activity_bar.svg.raw.js +3 -0
- package/dist/_virtual/general.json.raw.js +3 -0
- package/dist/_virtual/go.mod.language-configuration.json.raw.js +3 -0
- package/dist/_virtual/golang.Go-0.38.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/haskell-configuration.json.raw.js +3 -0
- package/dist/{html.worker.js → _virtual/html.worker.js} +1 -1
- package/dist/_virtual/index.js +3 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index3.js +3 -0
- package/dist/_virtual/java-properties-configuration.json.raw.js +3 -0
- package/dist/_virtual/johnsoncodehk.vscode-angular-1.0.22.vsix_package.json.vsjson.js +3 -0
- package/dist/{json.worker.js → _virtual/json.worker.js} +1 -1
- package/dist/_virtual/justusadam.language-haskell-3.6.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/keymap_vim.js +3 -0
- package/dist/_virtual/kotlin.configuration.json.raw.js +3 -0
- package/dist/_virtual/lang-config.json.raw.js +3 -0
- package/dist/_virtual/language-configuration.json.raw.js +3 -0
- package/dist/_virtual/language-configuration.json.raw2.js +3 -0
- package/dist/_virtual/language-configuration.json.raw3.js +3 -0
- package/dist/_virtual/language-configuration.json.raw4.js +3 -0
- package/dist/_virtual/language-configuration.json.raw5.js +3 -0
- package/dist/_virtual/language-configuration.json.raw6.js +3 -0
- package/dist/_virtual/language-configuration.json.raw7.js +3 -0
- package/dist/_virtual/language-configuration.json.raw8.js +3 -0
- package/dist/_virtual/literate-haskell-configuration.json.raw.js +3 -0
- package/dist/_virtual/logo.svg.raw.js +3 -0
- package/dist/_virtual/mathiasfrohlich.Kotlin-1.7.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/menhir.json.raw2.js +3 -0
- package/dist/_virtual/ms-dotnettools.csharp-1.25.4.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ms-python.python-2023.7.11111009.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ms-vscode.cpptools-1.15.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/oasis.json.raw2.js +3 -0
- package/dist/_virtual/ocaml.json.raw3.js +3 -0
- package/dist/_virtual/ocamlbuild.json.raw2.js +3 -0
- package/dist/_virtual/ocamlformat.json.raw2.js +3 -0
- package/dist/_virtual/ocamllabs.ocaml-platform-1.12.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ocamllex.json.raw3.js +3 -0
- package/dist/_virtual/opam-install.json.raw2.js +3 -0
- package/dist/_virtual/opam.json.raw2.js +3 -0
- package/dist/_virtual/package-json-schema.json.raw.js +3 -0
- package/dist/_virtual/package.schema.json.raw.js +3 -0
- package/dist/_virtual/pascal.configuration.json.raw.js +3 -0
- package/dist/_virtual/pgourlain.erlang-0.8.8.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/pip-requirements.json.raw.js +3 -0
- package/dist/_virtual/postgres-explorer.svg.raw.js +3 -0
- package/dist/_virtual/prettier-options-schema.json.raw.js +3 -0
- package/dist/_virtual/r-configuration.json.raw.js +3 -0
- package/dist/_virtual/rbuildignore-configuration.json.raw.js +3 -0
- package/dist/_virtual/rd-configuration.json.raw.js +3 -0
- package/dist/{reason.json2.js → _virtual/reason.json.raw2.js} +2 -2
- package/dist/_virtual/redhat.java-1.18.2023042204.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/rmd-configuration.json.raw.js +3 -0
- package/dist/_virtual/rnamespace-configuration.json.raw.js +3 -0
- package/dist/_virtual/scala-lang.scala-0.5.6.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/scalameta-logo.png.raw.js +3 -0
- package/dist/_virtual/scalameta.metals-1.23.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/scalameta.svg.raw.js +3 -0
- package/dist/_virtual/schema.json.raw.js +3 -0
- package/dist/_virtual/shiftCommand.js +6 -0
- package/dist/_virtual/solidity.configuration.json.raw.js +3 -0
- package/dist/_virtual/state.js +3 -0
- package/dist/_virtual/statusbar.js +3 -0
- package/dist/_virtual/sumneko.lua-3.6.18.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/svelte.svelte-vscode-107.3.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/tasks.schema.json.raw.js +3 -0
- package/dist/{ts.worker.js → _virtual/ts.worker.js} +1 -1
- package/dist/_virtual/util.js +3 -0
- package/dist/_virtual/webfreak.code-d-0.23.2.vsix_package.json.vsjson.js +3 -0
- package/dist/configuration/index.js +45 -0
- package/dist/editor/autofold.js +24 -0
- package/dist/editor/cobol.js +67 -0
- package/dist/editor/index.js +9 -0
- package/dist/extensions/Angular.ng-template-15.2.1.vsix.js +15 -0
- package/dist/extensions/Dart-Code.dart-code-3.63.20230419.vsix.js +14 -0
- package/dist/extensions/IMCTradingBV.svlangserver-0.4.1.vsix.js +18 -0
- package/dist/extensions/JakeBecker.elixir-ls-0.14.5.vsix.js +18 -0
- package/dist/extensions/JuanBlanco.solidity-0.0.152.vsix.js +13 -0
- package/dist/extensions/REditorSupport.r-2.7.2.vsix.js +47 -0
- package/dist/extensions/alefragnani.pascal-9.6.0.vsix.js +13 -0
- package/dist/extensions/batisteo.vscode-django-1.10.0.vsix.js +17 -0
- package/dist/extensions/bitwisecook.tcl-0.4.3.vsix.js +13 -0
- package/dist/extensions/broadcomMFD.cobol-language-support-1.2.1.vsix.js +11 -0
- package/dist/extensions/castwide.solargraph-0.24.0.vsix.js +8 -0
- package/dist/extensions/ckolkman.vscode-postgres-1.4.2.vsix.js +14 -0
- package/dist/extensions/golang.Go-0.38.0.vsix.js +17 -0
- package/dist/extensions/johnsoncodehk.vscode-angular-1.0.22.vsix.js +13 -0
- package/dist/extensions/justusadam.language-haskell-3.6.0.vsix.js +41 -0
- package/dist/extensions/mathiasfrohlich.Kotlin-1.7.1.vsix.js +15 -0
- package/dist/extensions/ms-dotnettools.csharp-1.25.4.vsix.js +17 -0
- package/dist/extensions/ms-python.python-2023.7.11111009.vsix.js +20 -0
- package/dist/extensions/ms-vscode.cpptools-1.15.2.vsix.js +8 -0
- package/dist/extensions/ocamllabs.ocaml-platform-1.12.2.vsix.js +92 -0
- package/dist/extensions/pgourlain.erlang-0.8.8.vsix.js +13 -0
- package/dist/extensions/redhat.java-1.18.2023042204.vsix.js +19 -0
- package/dist/extensions/scala-lang.scala-0.5.6.vsix.js +11 -0
- package/dist/extensions/scalameta.metals-1.23.0.vsix.js +34 -0
- package/dist/extensions/sumneko.lua-3.6.18.vsix.js +10 -0
- package/dist/extensions/svelte.svelte-vscode-107.3.0.vsix.js +37 -0
- package/dist/extensions/webfreak.code-d-0.23.2.vsix.js +28 -0
- package/dist/extensions.d.ts +3 -2
- package/dist/features/cssContribution.js +4 -5
- package/dist/features/debug.d.ts +1 -0
- package/dist/features/debug.js +7 -0
- package/dist/features/htmlContribution.js +79 -88
- package/dist/features/jsonContribution.js +10 -12
- package/dist/features/search.d.ts +1 -0
- package/dist/features/search.js +7 -0
- package/dist/features/typescriptContribution.js +27 -15
- package/dist/features/viewPanels.d.ts +1 -0
- package/dist/features/viewPanels.js +9 -0
- package/dist/features/views.d.ts +4 -0
- package/dist/features/views.js +17 -0
- package/dist/keybindings/index.js +36 -0
- package/dist/keybindings/vim.js +82 -0
- package/dist/languages/index.js +40 -0
- package/dist/main.js +6 -1286
- package/dist/monaco.d.ts +0 -1
- package/dist/monaco.js +90 -0
- package/dist/node_modules/@types/node/console.d.js +3 -0
- package/dist/node_modules/@types/node/globals.d.js +3 -0
- package/dist/node_modules/@types/node/process.d.js +3 -0
- package/dist/node_modules/lodash.kebabcase/index.js +439 -0
- package/dist/node_modules/lodash.throttle/index.js +443 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/actions.js +596 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/basicInput.js +113 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/commands.js +184 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/index.js +186 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/state.js +116 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/util.js +112 -0
- package/dist/node_modules/monaco-emacs/lib/index.js +31 -0
- package/dist/{vim.js → node_modules/monaco-vim/lib/cm/keymap_vim.js} +3 -1790
- package/dist/node_modules/monaco-vim/lib/cm_adapter.js +1393 -0
- package/dist/node_modules/monaco-vim/lib/index.js +71 -0
- package/dist/node_modules/monaco-vim/lib/statusbar.js +239 -0
- package/dist/node_modules/tslib/tslib.es6.js +77 -0
- package/dist/services.d.ts +2 -0
- package/dist/services.js +50 -0
- package/dist/style.js +12 -0
- package/dist/theme/index.js +21 -0
- package/dist/tools/EditorOpenHandlerRegistry.js +108 -0
- package/dist/tools.js +235 -0
- package/dist/worker.d.ts +1 -10
- package/dist/worker.js +9 -58
- package/package.json +28 -37
- package/stats.html +1 -1
- package/dist/C2Hs-configuration.json.js +0 -3
- package/dist/Hsc2Hs-configuration.json.js +0 -3
- package/dist/META.json2.js +0 -3
- package/dist/_monaco-editor_commonjs-external.js +0 -39
- package/dist/_rollupPluginBabelHelpers.js +0 -51
- package/dist/add.svg.js +0 -3
- package/dist/add.svg2.js +0 -3
- package/dist/adddep-dark.svg.js +0 -3
- package/dist/adddep-light.svg.js +0 -3
- package/dist/angular-template-language-configuration.json.js +0 -3
- package/dist/arrow-circle-up-dark.svg.js +0 -3
- package/dist/arrow-circle-up-light.svg.js +0 -3
- package/dist/book-dark.svg.js +0 -3
- package/dist/book-light.svg.js +0 -3
- package/dist/book-open-dark.svg.js +0 -3
- package/dist/book-open-light.svg.js +0 -3
- package/dist/cabal-configuration.json.js +0 -3
- package/dist/d.json2.js +0 -3
- package/dist/dart-language-configuration.json.js +0 -3
- package/dist/dcf-configuration.json.js +0 -3
- package/dist/diet.json3.js +0 -3
- package/dist/document-search-dark.svg.js +0 -3
- package/dist/document-search-light.svg.js +0 -3
- package/dist/documentation-inverse.svg.js +0 -3
- package/dist/documentation.svg.js +0 -3
- package/dist/dub-convert-inverse.svg.js +0 -3
- package/dist/dub-convert.svg.js +0 -3
- package/dist/dune.json3.js +0 -3
- package/dist/edit-dub-inverse.svg.js +0 -3
- package/dist/edit-dub.svg.js +0 -3
- package/dist/edit-source-inverse.svg.js +0 -3
- package/dist/edit-source.svg.js +0 -3
- package/dist/eex-language-configuration.json.js +0 -3
- package/dist/elixir-language-configuration.json.js +0 -3
- package/dist/erlang.configuration.json.js +0 -3
- package/dist/extension-web.js.js +0 -3
- package/dist/extension-web.js2.js +0 -3
- package/dist/extension.browser.js.js +0 -3
- package/dist/file_type_java.svg.js +0 -3
- package/dist/file_type_scala.svg.js +0 -3
- package/dist/focus-dark.svg.js +0 -3
- package/dist/focus-light.svg.js +0 -3
- package/dist/general.json.js +0 -3
- package/dist/get-inverse.svg.js +0 -3
- package/dist/get.svg.js +0 -3
- package/dist/go.mod.language-configuration.json.js +0 -3
- package/dist/haskell-configuration.json.js +0 -3
- package/dist/hot-reload-tb.png.js +0 -3
- package/dist/hot-reload.svg.js +0 -3
- package/dist/index.js +0 -2210
- package/dist/index2.js +0 -49
- package/dist/inspector.svg.js +0 -3
- package/dist/java-properties-configuration.json.js +0 -3
- package/dist/kotlin.configuration.json.js +0 -3
- package/dist/lang-config.json.js +0 -3
- package/dist/language-configuration.json.js +0 -3
- package/dist/language-configuration.json2.js +0 -3
- package/dist/language-configuration.json3.js +0 -3
- package/dist/language-configuration.json4.js +0 -3
- package/dist/language-configuration.json5.js +0 -3
- package/dist/language-configuration.json6.js +0 -3
- package/dist/language-configuration.json7.js +0 -3
- package/dist/language-configuration.json8.js +0 -3
- package/dist/literate-haskell-configuration.json.js +0 -3
- package/dist/menhir.json2.js +0 -3
- package/dist/oasis.json2.js +0 -3
- package/dist/ocaml.json3.js +0 -3
- package/dist/ocamlbuild.json2.js +0 -3
- package/dist/ocamlformat.json2.js +0 -3
- package/dist/ocamllex.json3.js +0 -3
- package/dist/opam-install.json2.js +0 -3
- package/dist/opam.json2.js +0 -3
- package/dist/outdated-inverse.svg.js +0 -3
- package/dist/outdated.svg.js +0 -3
- package/dist/pascal.configuration.json.js +0 -3
- package/dist/performance.svg.js +0 -3
- package/dist/pip-requirements.json.js +0 -3
- package/dist/plus-dark.svg.js +0 -3
- package/dist/plus-light.svg.js +0 -3
- package/dist/preview-right-dark.svg.js +0 -3
- package/dist/preview-right-light.svg.js +0 -3
- package/dist/r-configuration.json.js +0 -3
- package/dist/rbuildignore-configuration.json.js +0 -3
- package/dist/rd-configuration.json.js +0 -3
- package/dist/ref-group-by-type-dark.svg.js +0 -3
- package/dist/ref-group-by-type-light.svg.js +0 -3
- package/dist/ref-ungroup-by-type-dark.svg.js +0 -3
- package/dist/ref-ungroup-by-type-light.svg.js +0 -3
- package/dist/refresh-dark.svg.js +0 -3
- package/dist/refresh-dark.svg2.js +0 -3
- package/dist/refresh-light.svg.js +0 -3
- package/dist/refresh-light.svg2.js +0 -3
- package/dist/repl.svg.js +0 -3
- package/dist/repl.svg2.js +0 -3
- package/dist/rmd-configuration.json.js +0 -3
- package/dist/rnamespace-configuration.json.js +0 -3
- package/dist/save.svg.js +0 -3
- package/dist/save.svg2.js +0 -3
- package/dist/scalameta-logo.png.js +0 -3
- package/dist/solidity.configuration.json.js +0 -3
- package/dist/switch-impl-intf.dark.svg.js +0 -3
- package/dist/switch-impl-intf.light.svg.js +0 -3
- package/dist/upgrade-inverse.svg.js +0 -3
- package/dist/upgrade.svg.js +0 -3
- package/dist/x-dark.svg.js +0 -3
- package/dist/x-light.svg.js +0 -3
- /package/dist/{C2Hs.json.js → _virtual/C2Hs.json.raw.js} +0 -0
- /package/dist/{COBOL.tmLanguage.json.js → _virtual/COBOL.tmLanguage.json.raw.js} +0 -0
- /package/dist/{Erlang.plist.js → _virtual/Erlang.plist.raw.js} +0 -0
- /package/dist/{Hsc2Hs.json.js → _virtual/Hsc2Hs.json.raw.js} +0 -0
- /package/dist/{JavaProperties.tmLanguage.json.js → _virtual/JavaProperties.tmLanguage.json.raw.js} +0 -0
- /package/dist/{Kotlin.tmLanguage.js → _virtual/Kotlin.tmLanguage.raw.js} +0 -0
- /package/dist/{META.json.js → _virtual/META.json.raw.js} +0 -0
- /package/dist/{Markdown Redcarpet.json.js → _virtual/Markdown Redcarpet.json.raw.js} +0 -0
- /package/dist/{RMarkdown.json.js → _virtual/RMarkdown.json.raw.js} +0 -0
- /package/dist/{Rcpp.json.js → _virtual/Rcpp.json.raw.js} +0 -0
- /package/dist/{Rd (R Documentation).json.js → _virtual/Rd (R Documentation).json.raw.js} +0 -0
- /package/dist/{Scala.tmLanguage.json.js → _virtual/Scala.tmLanguage.json.raw.js} +0 -0
- /package/dist/{alex.json.js → _virtual/alex.json.raw.js} +0 -0
- /package/dist/{angular-directives.json.js → _virtual/angular-directives.json.raw.js} +0 -0
- /package/dist/{angular-interpolations.json.js → _virtual/angular-interpolations.json.raw.js} +0 -0
- /package/dist/{aspnetcorerazor.tmLanguage.json.js → _virtual/aspnetcorerazor.tmLanguage.json.raw.js} +0 -0
- /package/dist/{atd.json.js → _virtual/atd.json.raw.js} +0 -0
- /package/dist/{buildtarget.json.js → _virtual/buildtarget.json.raw.js} +0 -0
- /package/dist/{cabal.json.js → _virtual/cabal.json.raw.js} +0 -0
- /package/dist/{codeblock-cabal.json.js → _virtual/codeblock-cabal.json.raw.js} +0 -0
- /package/dist/{codeblock-haskell.json.js → _virtual/codeblock-haskell.json.raw.js} +0 -0
- /package/dist/{codeblock-literate-haskell.json.js → _virtual/codeblock-literate-haskell.json.raw.js} +0 -0
- /package/dist/{codeblock.json.js → _virtual/codeblock.json.raw.js} +0 -0
- /package/dist/{codeblock.json2.js → _virtual/codeblock.json.raw2.js} +0 -0
- /package/dist/{cram.json.js → _virtual/cram.json.raw.js} +0 -0
- /package/dist/{csharp.json.js → _virtual/csharp.json.raw.js} +0 -0
- /package/dist/{d.json.js → _virtual/d.json.raw.js} +0 -0
- /package/dist/{dart.json.js → _virtual/dart.json.raw.js} +0 -0
- /package/dist/{dcf.json.js → _virtual/dcf.json.raw.js} +0 -0
- /package/dist/{diet.json.js → _virtual/diet.json.raw.js} +0 -0
- /package/dist/{diet.json2.js → _virtual/diet.json.raw2.js} +0 -0
- /package/dist/{django-html.tmLanguage.json.js → _virtual/django-html.tmLanguage.json.raw.js} +0 -0
- /package/dist/{django-txt.tmLanguage.json.js → _virtual/django-txt.tmLanguage.json.raw.js} +0 -0
- /package/dist/{dml.json.js → _virtual/dml.json.raw.js} +0 -0
- /package/dist/{dune-project.json.js → _virtual/dune-project.json.raw.js} +0 -0
- /package/dist/{dune-project.json2.js → _virtual/dune-project.json.raw2.js} +0 -0
- /package/dist/{dune-workspace.json.js → _virtual/dune-workspace.json.raw.js} +0 -0
- /package/dist/{dune.json.js → _virtual/dune.json.raw.js} +0 -0
- /package/dist/{dune.json2.js → _virtual/dune.json.raw2.js} +0 -0
- /package/dist/{eex.json.js → _virtual/eex.json.raw.js} +0 -0
- /package/dist/{elixir.json.js → _virtual/elixir.json.raw.js} +0 -0
- /package/dist/{erlang.json.js → _virtual/erlang.json.raw.js} +0 -0
- /package/dist/{expression.json.js → _virtual/expression.json.raw.js} +0 -0
- /package/dist/{filters.json.js → _virtual/filters.json.raw.js} +0 -0
- /package/dist/{go.json.js → _virtual/go.json.raw.js} +0 -0
- /package/dist/{go.mod.tmGrammar.json.js → _virtual/go.mod.tmGrammar.json.raw.js} +0 -0
- /package/dist/{go.sum.tmGrammar.json.js → _virtual/go.sum.tmGrammar.json.raw.js} +0 -0
- /package/dist/{govulncheck.tmGrammar.json.js → _virtual/govulncheck.tmGrammar.json.raw.js} +0 -0
- /package/dist/{happy.json.js → _virtual/happy.json.raw.js} +0 -0
- /package/dist/{haskell.json.js → _virtual/haskell.json.raw.js} +0 -0
- /package/dist/{html-eex.json.js → _virtual/html-eex.json.raw.js} +0 -0
- /package/dist/{inline-styles.json.js → _virtual/inline-styles.json.raw.js} +0 -0
- /package/dist/{inline-template.json.js → _virtual/inline-template.json.raw.js} +0 -0
- /package/dist/{java.json.js → _virtual/java.json.raw.js} +0 -0
- /package/dist/{javascript.json.js → _virtual/javascript.json.raw.js} +0 -0
- /package/dist/{jvm-bytecode-verbose.json.js → _virtual/jvm-bytecode-verbose.json.raw.js} +0 -0
- /package/dist/{jvm-bytecode.json.js → _virtual/jvm-bytecode.json.raw.js} +0 -0
- /package/dist/{kotlin.json.js → _virtual/kotlin.json.raw.js} +0 -0
- /package/dist/{literateHaskell.json.js → _virtual/literateHaskell.json.raw.js} +0 -0
- /package/dist/{markdown-svelte-css.json.js → _virtual/markdown-svelte-css.json.raw.js} +0 -0
- /package/dist/{markdown-svelte-js.json.js → _virtual/markdown-svelte-js.json.raw.js} +0 -0
- /package/dist/{markdown-svelte.json.js → _virtual/markdown-svelte.json.raw.js} +0 -0
- /package/dist/{menhir-action.json.js → _virtual/menhir-action.json.raw.js} +0 -0
- /package/dist/{menhir.json.js → _virtual/menhir.json.raw.js} +0 -0
- /package/dist/{merlin.json.js → _virtual/merlin.json.raw.js} +0 -0
- /package/dist/{oasis.json.js → _virtual/oasis.json.raw.js} +0 -0
- /package/dist/{ocaml-markdown-codeblock.json.js → _virtual/ocaml-markdown-codeblock.json.raw.js} +0 -0
- /package/dist/{ocaml.interface.json.js → _virtual/ocaml.interface.json.raw.js} +0 -0
- /package/dist/{ocaml.json.js → _virtual/ocaml.json.raw.js} +0 -0
- /package/dist/{ocaml.json2.js → _virtual/ocaml.json.raw2.js} +0 -0
- /package/dist/{ocamlbuild.json.js → _virtual/ocamlbuild.json.raw.js} +0 -0
- /package/dist/{ocamldoc.json.js → _virtual/ocamldoc.json.raw.js} +0 -0
- /package/dist/{ocamlformat.json.js → _virtual/ocamlformat.json.raw.js} +0 -0
- /package/dist/{ocamllex.json.js → _virtual/ocamllex.json.raw.js} +0 -0
- /package/dist/{ocamllex.json2.js → _virtual/ocamllex.json.raw2.js} +0 -0
- /package/dist/{opam-install.json.js → _virtual/opam-install.json.raw.js} +0 -0
- /package/dist/{opam.json.js → _virtual/opam.json.raw.js} +0 -0
- /package/dist/{pascal.json.js → _virtual/pascal.json.raw.js} +0 -0
- /package/dist/{pascal.tmLanguage.js → _virtual/pascal.tmLanguage.raw.js} +0 -0
- /package/dist/{pgsql.tmLanguage.js → _virtual/pgsql.tmLanguage.raw.js} +0 -0
- /package/dist/{pip-requirements.tmLanguage.json.js → _virtual/pip-requirements.tmLanguage.json.raw.js} +0 -0
- /package/dist/{postcss.json.js → _virtual/postcss.json.raw.js} +0 -0
- /package/dist/{pug-svelte-dotblock.json.js → _virtual/pug-svelte-dotblock.json.raw.js} +0 -0
- /package/dist/{pug-svelte-tags.json.js → _virtual/pug-svelte-tags.json.raw.js} +0 -0
- /package/dist/{pug-svelte.json.js → _virtual/pug-svelte.json.raw.js} +0 -0
- /package/dist/{r-snippets.json.js → _virtual/r-snippets.json.raw.js} +0 -0
- /package/dist/{r.json.js → _virtual/r.json.raw.js} +0 -0
- /package/dist/{rbuildignore.json.js → _virtual/rbuildignore.json.raw.js} +0 -0
- /package/dist/{reason-markdown-codeblock.json.js → _virtual/reason-markdown-codeblock.json.raw.js} +0 -0
- /package/dist/{reason.json.js → _virtual/reason.json.raw.js} +0 -0
- /package/dist/{rmarkdown.json2.js → _virtual/rmarkdown.json.raw2.js} +0 -0
- /package/dist/{rnamespace.json.js → _virtual/rnamespace.json.raw.js} +0 -0
- /package/dist/{sdl.json.js → _virtual/sdl.json.raw.js} +0 -0
- /package/dist/{semanticdb.json.js → _virtual/semanticdb.json.raw.js} +0 -0
- /package/dist/{solidity.json.js → _virtual/solidity.json.raw.js} +0 -0
- /package/dist/{solidity.json2.js → _virtual/solidity.json.raw2.js} +0 -0
- /package/dist/{svelte.json.js → _virtual/svelte.json.raw.js} +0 -0
- /package/dist/{svelte.tmLanguage.json.js → _virtual/svelte.tmLanguage.json.raw.js} +0 -0
- /package/dist/{systemverilog.json.js → _virtual/systemverilog.json.raw.js} +0 -0
- /package/dist/{systemverilog.tmLanguage.json.js → _virtual/systemverilog.tmLanguage.json.raw.js} +0 -0
- /package/dist/{tags.json.js → _virtual/tags.json.raw.js} +0 -0
- /package/dist/{tasty.json.js → _virtual/tasty.json.raw.js} +0 -0
- /package/dist/{tcl.json.js → _virtual/tcl.json.raw.js} +0 -0
- /package/dist/{tcl.json2.js → _virtual/tcl.json.raw2.js} +0 -0
- /package/dist/{template.json.js → _virtual/template.json.raw.js} +0 -0
- /package/dist/{typescript.json.js → _virtual/typescript.json.raw.js} +0 -0
- /package/dist/{vs2019_dark.json.js → _virtual/vs2019_dark.json.raw.js} +0 -0
- /package/dist/{vs2019_light.json.js → _virtual/vs2019_light.json.raw.js} +0 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { __exports as basicInput } from '../../../../_virtual/basicInput.js';
|
|
2
|
+
import require$$0 from '../../../../_virtual/_monaco-editor.js';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(basicInput, "__esModule", { value: true });
|
|
5
|
+
basicInput.BasicInputWidget = void 0;
|
|
6
|
+
var monaco = require$$0;
|
|
7
|
+
var BASE_CLASS = 'ext-emacs-basic-input';
|
|
8
|
+
function generateCss() {
|
|
9
|
+
return "\n .".concat(BASE_CLASS, " {\n color: #d4d4d4;\n transition: top 200ms linear;\n visibility: hidden;\n width: 200px;\n display: flex;\n align-items: center;\n padding: 5px;\n }\n\n .").concat(BASE_CLASS, ".").concat(BASE_CLASS, "-visible {\n visibility: visible;\n }\n\n .").concat(BASE_CLASS, " input {\n color: rgb(97, 97, 97);\n background-color: transparent;\n display: inline-block;\n box-sizing: border-box;\n height: 100%;\n line-height: inherit;\n border: none;\n font-family: inherit;\n font-size: inherit;\n resize: none;\n padding-top: 2px;\n padding-bottom: 2px;\n margin-left: 5px;\n max-width: 50px;\n }\n\n .").concat(BASE_CLASS, " input:focus {\n outline: none;\n }\n\n .vs .").concat(BASE_CLASS, " {\n color: rgb(97, 97, 97);\n background-color: #efeff2;\n box-shadow: 0 2px 8px #a8a8a8;\n }\n\n .vs-dark .").concat(BASE_CLASS, " {\n background-color: #2d2d30;\n box-shadow: 0 2px 8px #000000;\n }\n\n .vs-dark .").concat(BASE_CLASS, " input {\n color: rgb(204, 204, 204);\n }\n\n .hc-black .").concat(BASE_CLASS, " {\n border: 2px solid #6fc3df;\n background-color: #0c141f;\n color: #ffffff;\n }\n\n .hc-black .").concat(BASE_CLASS, " input {\n color: #ffffff;\n }\n");
|
|
10
|
+
}
|
|
11
|
+
var BasicInputWidget = (function () {
|
|
12
|
+
function BasicInputWidget() {
|
|
13
|
+
var _this = this;
|
|
14
|
+
this._pendingPromise = null;
|
|
15
|
+
this.onKeyDown = function (ev) {
|
|
16
|
+
if (ev.altKey || ev.ctrlKey || ev.metaKey) {
|
|
17
|
+
ev.preventDefault();
|
|
18
|
+
ev.stopPropagation();
|
|
19
|
+
}
|
|
20
|
+
if (ev.which === 13) {
|
|
21
|
+
if (_this._pendingPromise) {
|
|
22
|
+
ev.preventDefault();
|
|
23
|
+
_this._pendingPromise.resolve(ev.target.value);
|
|
24
|
+
_this._pendingPromise = null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else if (ev.which === 27) {
|
|
28
|
+
if (_this._pendingPromise) {
|
|
29
|
+
_this._pendingPromise.reject();
|
|
30
|
+
_this._pendingPromise = null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
this.onBlur = function () {
|
|
35
|
+
if (_this._pendingPromise) {
|
|
36
|
+
_this._pendingPromise.reject();
|
|
37
|
+
_this._pendingPromise = null;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
this._dom = document.createElement('div');
|
|
41
|
+
this._messageDom = document.createElement('div');
|
|
42
|
+
var medDom = document.createElement('div');
|
|
43
|
+
this._dom.setAttribute('class', BASE_CLASS);
|
|
44
|
+
this._dom.setAttribute('aria-hidden', 'true');
|
|
45
|
+
this._input = document.createElement('input');
|
|
46
|
+
this._dom.appendChild(this._messageDom);
|
|
47
|
+
medDom.appendChild(this._input);
|
|
48
|
+
this._dom.appendChild(medDom);
|
|
49
|
+
this.addListeners();
|
|
50
|
+
this._style = document.createElement('style');
|
|
51
|
+
this._style.type = 'text/css';
|
|
52
|
+
this._style.textContent = generateCss();
|
|
53
|
+
(document.head || document.body).appendChild(this._style);
|
|
54
|
+
}
|
|
55
|
+
BasicInputWidget.prototype.getDomNode = function () {
|
|
56
|
+
return this._dom;
|
|
57
|
+
};
|
|
58
|
+
BasicInputWidget.prototype.getId = function () {
|
|
59
|
+
return 'extension.emacs.basicinput';
|
|
60
|
+
};
|
|
61
|
+
BasicInputWidget.prototype.getPosition = function () {
|
|
62
|
+
return {
|
|
63
|
+
preference: monaco.editor.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER,
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
BasicInputWidget.prototype.addListeners = function () {
|
|
67
|
+
this._input.addEventListener('keydown', this.onKeyDown);
|
|
68
|
+
this._input.addEventListener('blur', this.onBlur);
|
|
69
|
+
};
|
|
70
|
+
BasicInputWidget.prototype.showWidgetAndFocus = function (message) {
|
|
71
|
+
this._dom.classList.add("".concat(BASE_CLASS, "-visible"));
|
|
72
|
+
this._dom.setAttribute('aria-hidden', 'false');
|
|
73
|
+
this._messageDom.textContent = message;
|
|
74
|
+
this._input.focus();
|
|
75
|
+
};
|
|
76
|
+
BasicInputWidget.prototype.cleanup = function () {
|
|
77
|
+
this._dom.classList.remove("".concat(BASE_CLASS, "-visible"));
|
|
78
|
+
this._dom.setAttribute('aria-hidden', 'true');
|
|
79
|
+
this._messageDom.textContent = '';
|
|
80
|
+
this._input.placeholder = '';
|
|
81
|
+
this._input.value = '';
|
|
82
|
+
};
|
|
83
|
+
BasicInputWidget.prototype.getInput = function (message) {
|
|
84
|
+
var _this = this;
|
|
85
|
+
if (this._pendingPromise) {
|
|
86
|
+
this._pendingPromise.reject();
|
|
87
|
+
this._pendingPromise = null;
|
|
88
|
+
}
|
|
89
|
+
return new Promise(function (resolve, reject) {
|
|
90
|
+
_this._pendingPromise = {
|
|
91
|
+
resolve: function (val) {
|
|
92
|
+
resolve(val);
|
|
93
|
+
_this.cleanup();
|
|
94
|
+
},
|
|
95
|
+
reject: function () {
|
|
96
|
+
reject();
|
|
97
|
+
_this.cleanup();
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
_this.showWidgetAndFocus(message);
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
BasicInputWidget.prototype.dispose = function () {
|
|
104
|
+
this.cleanup();
|
|
105
|
+
this._input.removeEventListener('keydown', this.onKeyDown);
|
|
106
|
+
this._input.removeEventListener('blur', this.onBlur);
|
|
107
|
+
(document.head || document.body).removeChild(this._style);
|
|
108
|
+
};
|
|
109
|
+
return BasicInputWidget;
|
|
110
|
+
}());
|
|
111
|
+
basicInput.BasicInputWidget = BasicInputWidget;
|
|
112
|
+
|
|
113
|
+
export { basicInput as default };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { __exports as commands } from '../../../../_virtual/commands.js';
|
|
2
|
+
import './actions.js';
|
|
3
|
+
import { __exports as actions } from '../../../../_virtual/actions.js';
|
|
4
|
+
|
|
5
|
+
(function (exports) {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getAllMappings = exports.unregisterKey = exports.registerGlobalCommand = exports.executeCommand = exports.COMMANDS = exports.prefixPreservingKeys = void 0;
|
|
8
|
+
var Actions = actions;
|
|
9
|
+
exports.prefixPreservingKeys = {
|
|
10
|
+
"M-g": true,
|
|
11
|
+
"C-x": true,
|
|
12
|
+
"C-q": true,
|
|
13
|
+
"C-u": true,
|
|
14
|
+
};
|
|
15
|
+
var setMarkAction = new Actions.SetMark();
|
|
16
|
+
var undoAction = new Actions.UndoAction();
|
|
17
|
+
var moveCursorDown = new Actions.MoveCursorDown();
|
|
18
|
+
var moveCursorUp = new Actions.MoveCursorUp();
|
|
19
|
+
var moveCursorRight = new Actions.MoveCursorRight();
|
|
20
|
+
var moveCursorLeft = new Actions.MoveCursorLeft();
|
|
21
|
+
exports.COMMANDS = {
|
|
22
|
+
'M-/': {
|
|
23
|
+
description: '',
|
|
24
|
+
action: 'editor.action.triggerSuggest',
|
|
25
|
+
},
|
|
26
|
+
'C-\'': {
|
|
27
|
+
description: '',
|
|
28
|
+
action: 'editor.action.triggerSuggest',
|
|
29
|
+
},
|
|
30
|
+
'M-;': {
|
|
31
|
+
description: '',
|
|
32
|
+
action: 'editor.action.commentLine',
|
|
33
|
+
},
|
|
34
|
+
'C-t': {
|
|
35
|
+
description: '',
|
|
36
|
+
action: 'editor.action.transposeLetters',
|
|
37
|
+
},
|
|
38
|
+
'C-x C-p': {
|
|
39
|
+
description: '',
|
|
40
|
+
action: 'editor.action.selectAll',
|
|
41
|
+
},
|
|
42
|
+
'Tab': {
|
|
43
|
+
description: '',
|
|
44
|
+
action: 'editor.action.formatDocument',
|
|
45
|
+
},
|
|
46
|
+
'C-Backspace': {
|
|
47
|
+
description: '',
|
|
48
|
+
action: 'deleteWordLeft',
|
|
49
|
+
},
|
|
50
|
+
'C-d': {
|
|
51
|
+
description: '',
|
|
52
|
+
action: 'deleteRight',
|
|
53
|
+
},
|
|
54
|
+
'M-Backspace': {
|
|
55
|
+
description: '',
|
|
56
|
+
action: 'deleteWordLeft',
|
|
57
|
+
},
|
|
58
|
+
'M-Delete': {
|
|
59
|
+
description: '',
|
|
60
|
+
action: 'deleteWordLeft',
|
|
61
|
+
},
|
|
62
|
+
'C-x C-u': {
|
|
63
|
+
description: '',
|
|
64
|
+
action: 'editor.action.transformToUppercase',
|
|
65
|
+
},
|
|
66
|
+
'C-x C-l': {
|
|
67
|
+
description: '',
|
|
68
|
+
action: 'editor.action.transformToLowercase',
|
|
69
|
+
},
|
|
70
|
+
'C-v': {
|
|
71
|
+
description: '',
|
|
72
|
+
action: 'cursorPageDown',
|
|
73
|
+
},
|
|
74
|
+
'PageDown': {
|
|
75
|
+
description: '',
|
|
76
|
+
action: 'cursorPageDown',
|
|
77
|
+
},
|
|
78
|
+
'M-v': {
|
|
79
|
+
description: '',
|
|
80
|
+
action: 'cursorPageUp',
|
|
81
|
+
},
|
|
82
|
+
'PageUp': {
|
|
83
|
+
description: '',
|
|
84
|
+
action: 'cursorPageUp',
|
|
85
|
+
},
|
|
86
|
+
'M-g n': {
|
|
87
|
+
description: '',
|
|
88
|
+
action: 'editor.action.marker.next',
|
|
89
|
+
},
|
|
90
|
+
'M-g p': {
|
|
91
|
+
description: '',
|
|
92
|
+
action: 'editor.action.marker.prev',
|
|
93
|
+
},
|
|
94
|
+
'M-C-n': {
|
|
95
|
+
description: '',
|
|
96
|
+
action: 'editor.action.addSelectionToNextFindMatch',
|
|
97
|
+
},
|
|
98
|
+
'C-h': {
|
|
99
|
+
description: '',
|
|
100
|
+
action: 'deleteLeft',
|
|
101
|
+
},
|
|
102
|
+
'M-d': {
|
|
103
|
+
description: '',
|
|
104
|
+
action: 'deleteWordRight',
|
|
105
|
+
},
|
|
106
|
+
'S-C-': {
|
|
107
|
+
description: '',
|
|
108
|
+
action: 'editor.action.triggerParameterHints',
|
|
109
|
+
},
|
|
110
|
+
'C-SPC': setMarkAction,
|
|
111
|
+
'S-C-2': setMarkAction,
|
|
112
|
+
'C-/': undoAction,
|
|
113
|
+
'S-C--': undoAction,
|
|
114
|
+
'C-z': undoAction,
|
|
115
|
+
'C-x u': undoAction,
|
|
116
|
+
'C-n': moveCursorDown,
|
|
117
|
+
'C-p': moveCursorUp,
|
|
118
|
+
'C-f': moveCursorRight,
|
|
119
|
+
'C-b': moveCursorLeft,
|
|
120
|
+
'S-C-Backspace': new Actions.DeleteLines(),
|
|
121
|
+
'M-f': new Actions.MoveCursorWordRight(),
|
|
122
|
+
'M-b': new Actions.MoveCursorWordLeft(),
|
|
123
|
+
'C-k': new Actions.KillLines(),
|
|
124
|
+
'C-m': new Actions.InsertLineAfter(),
|
|
125
|
+
'C-w': new Actions.KillSelection(),
|
|
126
|
+
'C-o': new Actions.InsertLineBelow(),
|
|
127
|
+
'C-g': new Actions.KeyBoardQuit(),
|
|
128
|
+
'C-e': new Actions.MoveCursorToLineEnd(),
|
|
129
|
+
'C-a': new Actions.MoveCursorToLineStart(),
|
|
130
|
+
'C-y': new Actions.Yank(),
|
|
131
|
+
'M-w': new Actions.YankSelectionToRing(),
|
|
132
|
+
'M-y': new Actions.YankRotate(),
|
|
133
|
+
'C-l': new Actions.RevealToCenterAction(),
|
|
134
|
+
'C-q Tab': new Actions.InsertTabs(),
|
|
135
|
+
'M-r': new Actions.RotateCursorOnScreen(),
|
|
136
|
+
'M-g g': new Actions.GotoLine(),
|
|
137
|
+
'M-g M-g': new Actions.GotoLine(),
|
|
138
|
+
'C-x C-x': new Actions.InvertSelection(),
|
|
139
|
+
'S-M-.': new Actions.MoveCursorBottom(),
|
|
140
|
+
'S-M-,': new Actions.MoveCursorTop(),
|
|
141
|
+
'C-s': new Actions.Search(),
|
|
142
|
+
'C-r': new Actions.Search(),
|
|
143
|
+
'S-M-5': new Actions.SearchReplace(),
|
|
144
|
+
};
|
|
145
|
+
function executeCommand(ext, command, inputBuffer, repeatedTrigger) {
|
|
146
|
+
var editor = ext.getEditor();
|
|
147
|
+
var repeat = parseInt(inputBuffer) || 1;
|
|
148
|
+
if (command.run) {
|
|
149
|
+
command.run(editor, ext, repeat, repeatedTrigger);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (typeof command.action === 'string') {
|
|
153
|
+
for (var i = 0; i < repeat; i++) {
|
|
154
|
+
editor.trigger(Actions.SOURCE, command.action, null);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else if (Array.isArray(command.action)) {
|
|
158
|
+
for (var i = 0; i < repeat; i++) {
|
|
159
|
+
command.action.forEach(function (cmd) {
|
|
160
|
+
editor.trigger(Actions.SOURCE, cmd, null);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
exports.executeCommand = executeCommand;
|
|
166
|
+
function registerGlobalCommand(key, command) {
|
|
167
|
+
exports.COMMANDS[key] = command;
|
|
168
|
+
}
|
|
169
|
+
exports.registerGlobalCommand = registerGlobalCommand;
|
|
170
|
+
function unregisterKey(key) {
|
|
171
|
+
if (exports.COMMANDS[key]) {
|
|
172
|
+
delete exports.COMMANDS[key];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
exports.unregisterKey = unregisterKey;
|
|
176
|
+
function getAllMappings() {
|
|
177
|
+
var result = {};
|
|
178
|
+
Object.keys(exports.COMMANDS).forEach(function (key) {
|
|
179
|
+
result[key] = exports.COMMANDS[key].description;
|
|
180
|
+
});
|
|
181
|
+
return result;
|
|
182
|
+
}
|
|
183
|
+
exports.getAllMappings = getAllMappings;
|
|
184
|
+
} (commands));
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { __exports as emacs } from '../../../../_virtual/index3.js';
|
|
2
|
+
import require$$0 from '../../../../_virtual/_monaco-editor.js';
|
|
3
|
+
import { l as lodash_throttle } from '../../../lodash.throttle/index.js';
|
|
4
|
+
import { l as lodash_kebabcase } from '../../../lodash.kebabcase/index.js';
|
|
5
|
+
import './commands.js';
|
|
6
|
+
import './util.js';
|
|
7
|
+
import './basicInput.js';
|
|
8
|
+
import './state.js';
|
|
9
|
+
import { __exports as commands } from '../../../../_virtual/commands.js';
|
|
10
|
+
import { __exports as util } from '../../../../_virtual/util.js';
|
|
11
|
+
import { __exports as state } from '../../../../_virtual/state.js';
|
|
12
|
+
import { __exports as basicInput } from '../../../../_virtual/basicInput.js';
|
|
13
|
+
|
|
14
|
+
Object.defineProperty(emacs, "__esModule", { value: true });
|
|
15
|
+
emacs.getConfiguration = emacs.EmacsExtension = void 0;
|
|
16
|
+
var monaco = require$$0;
|
|
17
|
+
var throttle = lodash_throttle;
|
|
18
|
+
var kebabCase = lodash_kebabcase;
|
|
19
|
+
var commands_1 = commands;
|
|
20
|
+
var util_1 = util;
|
|
21
|
+
var basicInput_1 = basicInput;
|
|
22
|
+
var state_1 = state;
|
|
23
|
+
var _a = monaco.editor, TextEditorCursorBlinkingStyle = _a.TextEditorCursorBlinkingStyle, TextEditorCursorStyle = _a.TextEditorCursorStyle;
|
|
24
|
+
var EmacsExtension = (function () {
|
|
25
|
+
function EmacsExtension(editor) {
|
|
26
|
+
this._disposables = [];
|
|
27
|
+
this._inSelectionMode = false;
|
|
28
|
+
this._changeDisposable = null;
|
|
29
|
+
this._state = new state_1.State();
|
|
30
|
+
this._onDidMarkChange = new util_1.Emitter();
|
|
31
|
+
this.onDidMarkChange = this._onDidMarkChange.event;
|
|
32
|
+
this._onDidChangeKey = new util_1.Emitter();
|
|
33
|
+
this.onDidChangeKey = this._onDidChangeKey.event;
|
|
34
|
+
this._editor = editor;
|
|
35
|
+
var config = getConfiguration(editor);
|
|
36
|
+
this._intialCursorType = config.cursorStyle;
|
|
37
|
+
this._intialCursorBlinking = config.cursorBlinking;
|
|
38
|
+
this._basicInputWidget = new basicInput_1.BasicInputWidget();
|
|
39
|
+
}
|
|
40
|
+
EmacsExtension.prototype.start = function () {
|
|
41
|
+
if (this._disposables.length) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
this.addListeners();
|
|
45
|
+
this._editor.updateOptions({
|
|
46
|
+
cursorStyle: kebabCase(TextEditorCursorStyle[TextEditorCursorStyle.Block]),
|
|
47
|
+
cursorBlinking: kebabCase(TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle.Blink]),
|
|
48
|
+
});
|
|
49
|
+
this._editor.addOverlayWidget(this._basicInputWidget);
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(EmacsExtension.prototype, "state", {
|
|
52
|
+
get: function () {
|
|
53
|
+
return this._state;
|
|
54
|
+
},
|
|
55
|
+
enumerable: false,
|
|
56
|
+
configurable: true
|
|
57
|
+
});
|
|
58
|
+
EmacsExtension.prototype.getEditor = function () {
|
|
59
|
+
return this._editor;
|
|
60
|
+
};
|
|
61
|
+
EmacsExtension.prototype.addListeners = function () {
|
|
62
|
+
this._disposables.push(this._editor.onKeyDown(this.onKeyDown.bind(this)));
|
|
63
|
+
this._throttledScroll = throttle(this.onEditorScroll.bind(this), 500);
|
|
64
|
+
this._disposables.push(this._editor.onDidScrollChange(this._throttledScroll));
|
|
65
|
+
};
|
|
66
|
+
EmacsExtension.prototype.cancelKey = function (ev) {
|
|
67
|
+
ev.preventDefault();
|
|
68
|
+
ev.stopPropagation();
|
|
69
|
+
};
|
|
70
|
+
EmacsExtension.prototype.onKeyDown = function (ev) {
|
|
71
|
+
if (ev.browserEvent.defaultPrevented) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
var key = (0, util_1.monacoToEmacsKey)(ev);
|
|
75
|
+
if (!key) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
key = this._state.updateAndGetKey(key);
|
|
79
|
+
this._onDidChangeKey.fire(this._state.getReadableState());
|
|
80
|
+
if (key === state_1.EAT_UP_KEY) {
|
|
81
|
+
this._onDidChangeKey.fire(this._state.getReadableState());
|
|
82
|
+
this.cancelKey(ev);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
var command = commands_1.COMMANDS[key];
|
|
86
|
+
if (!command) {
|
|
87
|
+
this._onDidChangeKey.fire(this._state.getReadableState());
|
|
88
|
+
this._state.setLastCommandKey(key);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
this.cancelKey(ev);
|
|
92
|
+
var repeatedTrigger = this._state.isLastCommandKey(key);
|
|
93
|
+
(0, commands_1.executeCommand)(this, command, this._state.getInputBuffer(), repeatedTrigger);
|
|
94
|
+
this._state.setLastCommandKey(key);
|
|
95
|
+
this._state.updateStateOnExecution();
|
|
96
|
+
};
|
|
97
|
+
EmacsExtension.prototype.onEditorScroll = function () {
|
|
98
|
+
var height = this._editor.getLayoutInfo().height;
|
|
99
|
+
var layout = this._editor.getScrolledVisiblePosition(this._editor.getPosition());
|
|
100
|
+
if (layout.top >= 0 && layout.top <= height) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
var ranges = this._editor.getVisibleRanges();
|
|
104
|
+
if (!ranges.length) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
var newPos;
|
|
108
|
+
var sel = this._editor.getSelection();
|
|
109
|
+
if (layout.top < 0) {
|
|
110
|
+
newPos = new monaco.Position(ranges[0].getStartPosition().lineNumber, 1);
|
|
111
|
+
}
|
|
112
|
+
else if (layout.top > height) {
|
|
113
|
+
newPos = new monaco.Position(ranges[ranges.length - 1].getEndPosition().lineNumber, 1);
|
|
114
|
+
}
|
|
115
|
+
if (this._inSelectionMode) {
|
|
116
|
+
this._editor.setSelection(monaco.Selection.fromPositions(sel.getStartPosition(), newPos));
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
this._editor.setPosition(newPos);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
EmacsExtension.prototype.onContentChange = function () {
|
|
123
|
+
this.selectionMode = false;
|
|
124
|
+
};
|
|
125
|
+
EmacsExtension.prototype.clearState = function () {
|
|
126
|
+
this._state.updateStateOnExecution();
|
|
127
|
+
};
|
|
128
|
+
Object.defineProperty(EmacsExtension.prototype, "selectionMode", {
|
|
129
|
+
get: function () {
|
|
130
|
+
return this._inSelectionMode;
|
|
131
|
+
},
|
|
132
|
+
set: function (mode) {
|
|
133
|
+
if (mode === this._inSelectionMode) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
this._inSelectionMode = mode;
|
|
137
|
+
if (mode) {
|
|
138
|
+
this._changeDisposable = this._editor.onDidChangeModelContent(this.onContentChange.bind(this));
|
|
139
|
+
}
|
|
140
|
+
else if (this._changeDisposable) {
|
|
141
|
+
this._changeDisposable.dispose();
|
|
142
|
+
this._changeDisposable = null;
|
|
143
|
+
}
|
|
144
|
+
this._onDidMarkChange.fire(mode);
|
|
145
|
+
},
|
|
146
|
+
enumerable: false,
|
|
147
|
+
configurable: true
|
|
148
|
+
});
|
|
149
|
+
EmacsExtension.prototype.getCursorAnchor = function () {
|
|
150
|
+
var sel = this._editor.getSelection();
|
|
151
|
+
var dir = sel.getDirection();
|
|
152
|
+
return dir === monaco.SelectionDirection.LTR ? sel.getEndPosition() : sel.getStartPosition();
|
|
153
|
+
};
|
|
154
|
+
EmacsExtension.prototype.getBasicInput = function (message) {
|
|
155
|
+
return this._basicInputWidget.getInput(message);
|
|
156
|
+
};
|
|
157
|
+
EmacsExtension.prototype.dispose = function () {
|
|
158
|
+
this._disposables.forEach(function (d) { return d.dispose(); });
|
|
159
|
+
this._disposables = undefined;
|
|
160
|
+
if (this._changeDisposable) {
|
|
161
|
+
this._changeDisposable.dispose();
|
|
162
|
+
this._changeDisposable = null;
|
|
163
|
+
}
|
|
164
|
+
this._editor.updateOptions({
|
|
165
|
+
cursorStyle: this._intialCursorType,
|
|
166
|
+
cursorBlinking: this._intialCursorBlinking,
|
|
167
|
+
});
|
|
168
|
+
this._editor.removeOverlayWidget(this._basicInputWidget);
|
|
169
|
+
this._basicInputWidget.dispose();
|
|
170
|
+
this._throttledScroll.cancel();
|
|
171
|
+
this._state = null;
|
|
172
|
+
};
|
|
173
|
+
return EmacsExtension;
|
|
174
|
+
}());
|
|
175
|
+
emacs.EmacsExtension = EmacsExtension;
|
|
176
|
+
function getConfiguration(editor) {
|
|
177
|
+
var cursorStyle = editor.getOption(monaco.editor.EditorOption.cursorStyle);
|
|
178
|
+
var cursorBlinking = editor.getOption(monaco.editor.EditorOption.cursorBlinking);
|
|
179
|
+
return {
|
|
180
|
+
cursorStyle: kebabCase(TextEditorCursorStyle[cursorStyle]),
|
|
181
|
+
cursorBlinking: kebabCase(TextEditorCursorBlinkingStyle[cursorBlinking]),
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
emacs.getConfiguration = getConfiguration;
|
|
185
|
+
|
|
186
|
+
export { emacs as default };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { __exports as state } from '../../../../_virtual/state.js';
|
|
2
|
+
import './commands.js';
|
|
3
|
+
import { __exports as commands } from '../../../../_virtual/commands.js';
|
|
4
|
+
|
|
5
|
+
(function (exports) {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.State = exports.EAT_UP_KEY = void 0;
|
|
8
|
+
var commands_1 = commands;
|
|
9
|
+
exports.EAT_UP_KEY = '==-==';
|
|
10
|
+
var State = (function () {
|
|
11
|
+
function State() {
|
|
12
|
+
this._inargumentMode = false;
|
|
13
|
+
this._killRing = [];
|
|
14
|
+
}
|
|
15
|
+
State.prototype.updateAndGetKey = function (key) {
|
|
16
|
+
if (key === 'C-g' && (this._inargumentMode || this._prefixKey)) {
|
|
17
|
+
this.resetState();
|
|
18
|
+
return exports.EAT_UP_KEY;
|
|
19
|
+
}
|
|
20
|
+
if (this.updateCuMode(key)) {
|
|
21
|
+
return exports.EAT_UP_KEY;
|
|
22
|
+
}
|
|
23
|
+
if (!this._prefixKey) {
|
|
24
|
+
if (commands_1.prefixPreservingKeys[key]) {
|
|
25
|
+
this._prefixKey = key;
|
|
26
|
+
return exports.EAT_UP_KEY;
|
|
27
|
+
}
|
|
28
|
+
return key;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return "".concat(this._prefixKey, " ").concat(key);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
State.prototype.setLastCommandKey = function (lastCommandKey) {
|
|
35
|
+
this._lastCommandKey = lastCommandKey;
|
|
36
|
+
};
|
|
37
|
+
State.prototype.isLastCommandKey = function (lastCommandKey) {
|
|
38
|
+
return this._lastCommandKey == lastCommandKey;
|
|
39
|
+
};
|
|
40
|
+
State.prototype.resetState = function (setLastInput) {
|
|
41
|
+
if (setLastInput === void 0) { setLastInput = false; }
|
|
42
|
+
this._inargumentMode = setLastInput;
|
|
43
|
+
this._prefixKey = null;
|
|
44
|
+
if (setLastInput) {
|
|
45
|
+
this._lastInputBuffer = this._inputBuffer;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this._lastInputBuffer = null;
|
|
49
|
+
}
|
|
50
|
+
this._inputBuffer = null;
|
|
51
|
+
};
|
|
52
|
+
State.prototype.updateCuMode = function (key) {
|
|
53
|
+
if (this._inargumentMode) {
|
|
54
|
+
if (typeof key === 'string' && (/^\d$/.test(key))) {
|
|
55
|
+
this._inputBuffer = (this._inputBuffer || '') + key;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
else if (commands_1.prefixPreservingKeys[key]) {
|
|
59
|
+
this.resetState(true);
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else if (!this._prefixKey && key === 'C-u') {
|
|
64
|
+
this._inargumentMode = true;
|
|
65
|
+
this._inputBuffer = null;
|
|
66
|
+
this._lastInputBuffer = null;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
State.prototype.updateStateOnExecution = function (reset) {
|
|
71
|
+
if (reset === void 0) { reset = false; }
|
|
72
|
+
this.resetState(reset);
|
|
73
|
+
};
|
|
74
|
+
State.prototype.getInputBuffer = function () {
|
|
75
|
+
return this._lastInputBuffer || this._inputBuffer;
|
|
76
|
+
};
|
|
77
|
+
State.prototype.addToRing = function (str) {
|
|
78
|
+
this._killRing.push(str);
|
|
79
|
+
if (this._killRing.length > 50)
|
|
80
|
+
this._killRing.shift();
|
|
81
|
+
};
|
|
82
|
+
State.prototype.growRingTop = function (str) {
|
|
83
|
+
if (!this._killRing.length) {
|
|
84
|
+
this.addToRing(str);
|
|
85
|
+
}
|
|
86
|
+
this._killRing[this._killRing.length - 1] += str;
|
|
87
|
+
};
|
|
88
|
+
State.prototype.getFromRing = function (n) {
|
|
89
|
+
return this._killRing[this._killRing.length - (n ? Math.min(n, 1) : 1)] || '';
|
|
90
|
+
};
|
|
91
|
+
State.prototype.popFromRing = function () {
|
|
92
|
+
if (this._killRing.length > 1) {
|
|
93
|
+
return this._killRing.pop();
|
|
94
|
+
}
|
|
95
|
+
return this.getFromRing();
|
|
96
|
+
};
|
|
97
|
+
State.prototype.getReadableState = function () {
|
|
98
|
+
var str = '';
|
|
99
|
+
if (this._inargumentMode) {
|
|
100
|
+
str += 'C-u';
|
|
101
|
+
if (this._inputBuffer) {
|
|
102
|
+
str += " ".concat(this._inputBuffer);
|
|
103
|
+
}
|
|
104
|
+
else if (this._lastInputBuffer) {
|
|
105
|
+
str += " ".concat(this._lastInputBuffer);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (this._prefixKey) {
|
|
109
|
+
str += " ".concat(this._prefixKey);
|
|
110
|
+
}
|
|
111
|
+
return str;
|
|
112
|
+
};
|
|
113
|
+
return State;
|
|
114
|
+
}());
|
|
115
|
+
exports.State = State;
|
|
116
|
+
} (state));
|