@codingame/monaco-editor-wrapper 4.0.0-next.1 → 4.0.0-next.3
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 +3 -0
- package/dist/services.js +55 -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,71 @@
|
|
|
1
|
+
import { __exports as lib } from '../../../_virtual/index.js';
|
|
2
|
+
import './cm/keymap_vim.js';
|
|
3
|
+
import './statusbar.js';
|
|
4
|
+
import { __exports as keymap_vim } from '../../../_virtual/keymap_vim.js';
|
|
5
|
+
import { __exports as statusbar } from '../../../_virtual/statusbar.js';
|
|
6
|
+
|
|
7
|
+
(function (exports) {
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "StatusBar", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _statusbar["default"];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "VimMode", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _keymap_vim["default"];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
exports.initVimMode = initVimMode;
|
|
25
|
+
|
|
26
|
+
var _keymap_vim = _interopRequireDefault(keymap_vim);
|
|
27
|
+
|
|
28
|
+
var _statusbar = _interopRequireDefault(statusbar);
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
function initVimMode(editor) {
|
|
33
|
+
var statusbarNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
34
|
+
var StatusBarClass = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _statusbar["default"];
|
|
35
|
+
var sanitizer = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
36
|
+
var vimAdapter = new _keymap_vim["default"](editor);
|
|
37
|
+
|
|
38
|
+
if (!statusbarNode) {
|
|
39
|
+
vimAdapter.attach();
|
|
40
|
+
return vimAdapter;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var statusBar = new StatusBarClass(statusbarNode, editor, sanitizer);
|
|
44
|
+
var keyBuffer = "";
|
|
45
|
+
vimAdapter.on("vim-mode-change", function (mode) {
|
|
46
|
+
statusBar.setMode(mode);
|
|
47
|
+
});
|
|
48
|
+
vimAdapter.on("vim-keypress", function (key) {
|
|
49
|
+
if (key === ":") {
|
|
50
|
+
keyBuffer = "";
|
|
51
|
+
} else {
|
|
52
|
+
keyBuffer += key;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
statusBar.setKeyBuffer(keyBuffer);
|
|
56
|
+
});
|
|
57
|
+
vimAdapter.on("vim-command-done", function () {
|
|
58
|
+
keyBuffer = "";
|
|
59
|
+
statusBar.setKeyBuffer(keyBuffer);
|
|
60
|
+
});
|
|
61
|
+
vimAdapter.on("dispose", function () {
|
|
62
|
+
statusBar.toggleVisibility(false);
|
|
63
|
+
statusBar.closeInput();
|
|
64
|
+
statusBar.clear();
|
|
65
|
+
});
|
|
66
|
+
statusBar.toggleVisibility(true);
|
|
67
|
+
vimAdapter.setStatusBar(statusBar);
|
|
68
|
+
vimAdapter.attach();
|
|
69
|
+
return vimAdapter;
|
|
70
|
+
}
|
|
71
|
+
} (lib));
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { __exports as statusbar } from '../../../_virtual/statusbar.js';
|
|
2
|
+
|
|
3
|
+
(function (exports) {
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
|
|
12
|
+
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); } }
|
|
13
|
+
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
|
|
16
|
+
var VimStatusBar = /*#__PURE__*/function () {
|
|
17
|
+
function VimStatusBar(node, editor) {
|
|
18
|
+
var _this = this;
|
|
19
|
+
|
|
20
|
+
var sanitizer = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
21
|
+
|
|
22
|
+
_classCallCheck(this, VimStatusBar);
|
|
23
|
+
|
|
24
|
+
this.closeInput = function () {
|
|
25
|
+
_this.removeInputListeners();
|
|
26
|
+
|
|
27
|
+
_this.input = null;
|
|
28
|
+
|
|
29
|
+
_this.setSec("");
|
|
30
|
+
|
|
31
|
+
if (_this.editor) {
|
|
32
|
+
_this.editor.focus();
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
this.clear = function () {
|
|
37
|
+
_this.setInnerHtml_(_this.node, "");
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
this.inputKeyUp = function (e) {
|
|
41
|
+
var options = _this.input.options;
|
|
42
|
+
|
|
43
|
+
if (options && options.onKeyUp) {
|
|
44
|
+
options.onKeyUp(e, e.target.value, _this.closeInput);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
this.inputKeyInput = function (e) {
|
|
49
|
+
var options = _this.input.options;
|
|
50
|
+
|
|
51
|
+
if (options && options.onKeyInput) {
|
|
52
|
+
options.onKeyUp(e, e.target.value, _this.closeInput);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
this.inputBlur = function () {
|
|
57
|
+
var options = _this.input.options;
|
|
58
|
+
|
|
59
|
+
if (options.closeOnBlur) {
|
|
60
|
+
_this.closeInput();
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
this.inputKeyDown = function (e) {
|
|
65
|
+
var _this$input = _this.input,
|
|
66
|
+
options = _this$input.options,
|
|
67
|
+
callback = _this$input.callback;
|
|
68
|
+
|
|
69
|
+
if (options && options.onKeyDown && options.onKeyDown(e, e.target.value, _this.closeInput)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (e.keyCode === 27 || options && options.closeOnEnter !== false && e.keyCode == 13) {
|
|
74
|
+
_this.input.node.blur();
|
|
75
|
+
|
|
76
|
+
e.stopPropagation();
|
|
77
|
+
|
|
78
|
+
_this.closeInput();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (e.keyCode === 13 && callback) {
|
|
82
|
+
e.stopPropagation();
|
|
83
|
+
e.preventDefault();
|
|
84
|
+
callback(e.target.value);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
this.node = node;
|
|
89
|
+
this.modeInfoNode = document.createElement("span");
|
|
90
|
+
this.secInfoNode = document.createElement("span");
|
|
91
|
+
this.notifNode = document.createElement("span");
|
|
92
|
+
this.notifNode.className = "vim-notification";
|
|
93
|
+
this.keyInfoNode = document.createElement("span");
|
|
94
|
+
this.keyInfoNode.setAttribute("style", "float: right");
|
|
95
|
+
this.node.appendChild(this.modeInfoNode);
|
|
96
|
+
this.node.appendChild(this.secInfoNode);
|
|
97
|
+
this.node.appendChild(this.notifNode);
|
|
98
|
+
this.node.appendChild(this.keyInfoNode);
|
|
99
|
+
this.toggleVisibility(false);
|
|
100
|
+
this.editor = editor;
|
|
101
|
+
this.sanitizer = sanitizer;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
_createClass(VimStatusBar, [{
|
|
105
|
+
key: "setMode",
|
|
106
|
+
value: function setMode(ev) {
|
|
107
|
+
if (ev.mode === "visual") {
|
|
108
|
+
if (ev.subMode === "linewise") {
|
|
109
|
+
this.setText("--VISUAL LINE--");
|
|
110
|
+
} else if (ev.subMode === "blockwise") {
|
|
111
|
+
this.setText("--VISUAL BLOCK--");
|
|
112
|
+
} else {
|
|
113
|
+
this.setText("--VISUAL--");
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
this.setText("--".concat(ev.mode.toUpperCase(), "--"));
|
|
120
|
+
}
|
|
121
|
+
}, {
|
|
122
|
+
key: "setKeyBuffer",
|
|
123
|
+
value: function setKeyBuffer(key) {
|
|
124
|
+
this.keyInfoNode.textContent = key;
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "setSec",
|
|
128
|
+
value: function setSec(text, callback, options) {
|
|
129
|
+
this.notifNode.textContent = "";
|
|
130
|
+
|
|
131
|
+
if (text === undefined) {
|
|
132
|
+
return this.closeInput;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
this.setInnerHtml_(this.secInfoNode, text);
|
|
136
|
+
var input = this.secInfoNode.querySelector("input");
|
|
137
|
+
|
|
138
|
+
if (input) {
|
|
139
|
+
input.focus();
|
|
140
|
+
this.input = {
|
|
141
|
+
callback: callback,
|
|
142
|
+
options: options,
|
|
143
|
+
node: input
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
if (options) {
|
|
147
|
+
if (options.selectValueOnOpen) {
|
|
148
|
+
input.select();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (options.value) {
|
|
152
|
+
input.value = options.value;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
this.addInputListeners();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return this.closeInput;
|
|
160
|
+
}
|
|
161
|
+
}, {
|
|
162
|
+
key: "setText",
|
|
163
|
+
value: function setText(text) {
|
|
164
|
+
this.modeInfoNode.textContent = text;
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
key: "toggleVisibility",
|
|
168
|
+
value: function toggleVisibility(toggle) {
|
|
169
|
+
if (toggle) {
|
|
170
|
+
this.node.style.display = "block";
|
|
171
|
+
} else {
|
|
172
|
+
this.node.style.display = "none";
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (this.input) {
|
|
176
|
+
this.removeInputListeners();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
clearInterval(this.notifTimeout);
|
|
180
|
+
}
|
|
181
|
+
}, {
|
|
182
|
+
key: "addInputListeners",
|
|
183
|
+
value: function addInputListeners() {
|
|
184
|
+
var node = this.input.node;
|
|
185
|
+
node.addEventListener("keyup", this.inputKeyUp);
|
|
186
|
+
node.addEventListener("keydown", this.inputKeyDown);
|
|
187
|
+
node.addEventListener("input", this.inputKeyInput);
|
|
188
|
+
node.addEventListener("blur", this.inputBlur);
|
|
189
|
+
}
|
|
190
|
+
}, {
|
|
191
|
+
key: "removeInputListeners",
|
|
192
|
+
value: function removeInputListeners() {
|
|
193
|
+
if (!this.input || !this.input.node) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
var node = this.input.node;
|
|
198
|
+
node.removeEventListener("keyup", this.inputKeyUp);
|
|
199
|
+
node.removeEventListener("keydown", this.inputKeyDown);
|
|
200
|
+
node.removeEventListener("input", this.inputKeyInput);
|
|
201
|
+
node.removeEventListener("blur", this.inputBlur);
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
key: "showNotification",
|
|
205
|
+
value: function showNotification(text) {
|
|
206
|
+
var _this2 = this;
|
|
207
|
+
|
|
208
|
+
var sp = document.createElement("span");
|
|
209
|
+
this.setInnerHtml_(sp, text);
|
|
210
|
+
this.notifNode.textContent = sp.textContent;
|
|
211
|
+
this.notifTimeout = setTimeout(function () {
|
|
212
|
+
_this2.notifNode.textContent = "";
|
|
213
|
+
}, 5000);
|
|
214
|
+
}
|
|
215
|
+
}, {
|
|
216
|
+
key: "setInnerHtml_",
|
|
217
|
+
value: function setInnerHtml_(element, htmlContents) {
|
|
218
|
+
// Clear out previous contents first.
|
|
219
|
+
while (element.childNodes.length) {
|
|
220
|
+
element.removeChild(element.childNodes[0]);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (!htmlContents) {
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (this.sanitizer) {
|
|
228
|
+
element.appendChild(this.sanitizer(htmlContents));
|
|
229
|
+
} else {
|
|
230
|
+
element.appendChild(htmlContents);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}]);
|
|
234
|
+
|
|
235
|
+
return VimStatusBar;
|
|
236
|
+
}();
|
|
237
|
+
|
|
238
|
+
exports["default"] = VimStatusBar;
|
|
239
|
+
} (statusbar));
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var __assign = function() {
|
|
19
|
+
__assign = Object.assign || function __assign(t) {
|
|
20
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21
|
+
s = arguments[i];
|
|
22
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function __generator(thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function __spreadArray(to, from, pack) {
|
|
68
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
69
|
+
if (ar || !(i in from)) {
|
|
70
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
71
|
+
ar[i] = from[i];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { __assign, __awaiter, __generator, __spreadArray };
|
package/dist/services.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
1
2
|
import EditorOpenHandlerRegistry from './tools/EditorOpenHandlerRegistry';
|
|
3
|
+
import 'vscode/ext-hosts/all';
|
|
2
4
|
declare const editorOpenHandlerRegistry: EditorOpenHandlerRegistry;
|
|
5
|
+
export declare function registerServices(newServices: monaco.editor.IEditorOverrideServices): void;
|
|
3
6
|
export declare function initialize(): Promise<void>;
|
|
4
7
|
export { editorOpenHandlerRegistry };
|
package/dist/services.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import getModelServiceOverride from 'vscode/service-override/model';
|
|
2
|
+
import getDialogsServiceOverride from 'vscode/service-override/dialogs';
|
|
3
|
+
import getConfigurationServiceOverride from 'vscode/service-override/configuration';
|
|
4
|
+
import getKeybindingsServiceOverride from 'vscode/service-override/keybindings';
|
|
5
|
+
import getTextmateServiceOverride from 'vscode/service-override/textmate';
|
|
6
|
+
import getThemeServiceOverride from 'vscode/service-override/theme';
|
|
7
|
+
import getLanguagesServiceOverride from 'vscode/service-override/languages';
|
|
8
|
+
import getAudioCueServiceOverride from 'vscode/service-override/audioCue';
|
|
9
|
+
import getPreferencesServiceOverride from 'vscode/service-override/preferences';
|
|
10
|
+
import getSnippetServiceOverride from 'vscode/service-override/snippets';
|
|
11
|
+
import getQuickAccessServiceOverride from 'vscode/service-override/quickaccess';
|
|
12
|
+
import getAccessibilityServiceOverride from 'vscode/service-override/accessibility';
|
|
13
|
+
import getEditorServiceOverride from 'vscode/service-override/editor';
|
|
14
|
+
import { initialize as initialize$1, StandaloneServices, ILogService, LogLevel } from 'vscode/services';
|
|
15
|
+
import { initialize as initialize$2 } from 'vscode/extensions';
|
|
16
|
+
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
17
|
+
import EditorOpenHandlerRegistry from './tools/EditorOpenHandlerRegistry.js';
|
|
18
|
+
import 'vscode/ext-hosts/all';
|
|
19
|
+
|
|
20
|
+
const editorOpenHandlerRegistry = new EditorOpenHandlerRegistry();
|
|
21
|
+
let services = {
|
|
22
|
+
...getModelServiceOverride(),
|
|
23
|
+
...getDialogsServiceOverride(),
|
|
24
|
+
...getConfigurationServiceOverride(monaco.Uri.file('/tmp/project')),
|
|
25
|
+
...getKeybindingsServiceOverride(),
|
|
26
|
+
...getTextmateServiceOverride(),
|
|
27
|
+
...getThemeServiceOverride(),
|
|
28
|
+
...getLanguagesServiceOverride(),
|
|
29
|
+
...getAudioCueServiceOverride(),
|
|
30
|
+
...getPreferencesServiceOverride(),
|
|
31
|
+
...getSnippetServiceOverride(),
|
|
32
|
+
...getQuickAccessServiceOverride({
|
|
33
|
+
isKeybindingConfigurationVisible: () => false,
|
|
34
|
+
shouldUseGlobalPicker: () => false
|
|
35
|
+
}),
|
|
36
|
+
...getEditorServiceOverride((model, input, sideBySide) => {
|
|
37
|
+
return editorOpenHandlerRegistry.openCodeEditor(model, input, sideBySide);
|
|
38
|
+
}),
|
|
39
|
+
...getAccessibilityServiceOverride()
|
|
40
|
+
};
|
|
41
|
+
function registerServices(newServices) {
|
|
42
|
+
services = {
|
|
43
|
+
...services,
|
|
44
|
+
...newServices
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async function initialize() {
|
|
48
|
+
// wait a short time for the services to be registered
|
|
49
|
+
await new Promise(resolve => setTimeout(resolve, 0));
|
|
50
|
+
await initialize$1(services);
|
|
51
|
+
StandaloneServices.get(ILogService).setLevel(LogLevel.Off);
|
|
52
|
+
await initialize$2();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { editorOpenHandlerRegistry, initialize, registerServices };
|
package/dist/style.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function addStyle(styleString) {
|
|
2
|
+
const style = document.createElement('style');
|
|
3
|
+
style.textContent = styleString;
|
|
4
|
+
document.head.append(style);
|
|
5
|
+
}
|
|
6
|
+
addStyle(`
|
|
7
|
+
.monaco-hover-content h1, .monaco-hover-content h2, .monaco-hover-content h3, .monaco-hover-content h4, .monaco-hover-content h5, .monaco-hover-content h6 {
|
|
8
|
+
all: revert;
|
|
9
|
+
}
|
|
10
|
+
`);
|
|
11
|
+
|
|
12
|
+
export { addStyle };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { registerColor } from 'vscode/monaco';
|
|
2
|
+
|
|
3
|
+
// Export 3 new colors used
|
|
4
|
+
registerColor('statusBar.foreground', {
|
|
5
|
+
dark: '#ffffff',
|
|
6
|
+
light: '#20252a',
|
|
7
|
+
hcDark: '#ffffff',
|
|
8
|
+
hcLight: '#20252a'
|
|
9
|
+
}, 'Status bar foreground color.');
|
|
10
|
+
registerColor('statusBar.background', {
|
|
11
|
+
dark: '#252e38',
|
|
12
|
+
light: '#ffffff',
|
|
13
|
+
hcDark: null,
|
|
14
|
+
hcLight: null
|
|
15
|
+
}, 'Status bar background color.');
|
|
16
|
+
registerColor('statusBar.border', {
|
|
17
|
+
dark: '#41454a',
|
|
18
|
+
light: '#dadada',
|
|
19
|
+
hcDark: '#41454a',
|
|
20
|
+
hcLight: '#dadada'
|
|
21
|
+
}, 'Status bar border color.');
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { createEditor } from '../monaco.js';
|
|
2
|
+
|
|
3
|
+
let currentEditor = null;
|
|
4
|
+
async function openNewCodeEditor(modelRef) {
|
|
5
|
+
if (currentEditor != null && modelRef.object.textEditorModel === currentEditor.model) {
|
|
6
|
+
return currentEditor.editor;
|
|
7
|
+
}
|
|
8
|
+
if (currentEditor != null) {
|
|
9
|
+
currentEditor.dispose();
|
|
10
|
+
currentEditor = null;
|
|
11
|
+
}
|
|
12
|
+
const container = document.createElement('div');
|
|
13
|
+
container.style.position = 'fixed';
|
|
14
|
+
container.style.zIndex = '10000';
|
|
15
|
+
container.style.backgroundColor = 'rgba(0, 0, 0, 0.5)';
|
|
16
|
+
container.style.top = container.style.bottom = container.style.left = container.style.right = '0';
|
|
17
|
+
container.style.cursor = 'pointer';
|
|
18
|
+
const editorElem = document.createElement('div');
|
|
19
|
+
editorElem.style.position = 'absolute';
|
|
20
|
+
editorElem.style.top = editorElem.style.bottom = editorElem.style.left = editorElem.style.right = '0';
|
|
21
|
+
editorElem.style.margin = 'auto';
|
|
22
|
+
editorElem.style.width = '80%';
|
|
23
|
+
editorElem.style.height = '80%';
|
|
24
|
+
container.appendChild(editorElem);
|
|
25
|
+
document.body.appendChild(container);
|
|
26
|
+
try {
|
|
27
|
+
const editor = await createEditor(editorElem, {
|
|
28
|
+
model: modelRef.object.textEditorModel,
|
|
29
|
+
readOnly: true,
|
|
30
|
+
automaticLayout: true
|
|
31
|
+
});
|
|
32
|
+
currentEditor = {
|
|
33
|
+
dispose: () => {
|
|
34
|
+
modelRef.dispose();
|
|
35
|
+
editor.dispose();
|
|
36
|
+
document.body.removeChild(container);
|
|
37
|
+
currentEditor = null;
|
|
38
|
+
},
|
|
39
|
+
model: modelRef.object.textEditorModel,
|
|
40
|
+
editor
|
|
41
|
+
};
|
|
42
|
+
container.addEventListener('mousedown', (event) => {
|
|
43
|
+
if (event.target !== container) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
currentEditor?.dispose();
|
|
47
|
+
});
|
|
48
|
+
return editor;
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
document.body.removeChild(container);
|
|
52
|
+
currentEditor = null;
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
class EditorOpenHandlerRegistry {
|
|
57
|
+
constructor() {
|
|
58
|
+
this.handlers = [];
|
|
59
|
+
this.openCodeEditor = async (modelRef, options, sideBySide) => {
|
|
60
|
+
let modelEditor;
|
|
61
|
+
for (const handler of this.handlers) {
|
|
62
|
+
const handlerEditor = await handler(modelRef, options, null, sideBySide);
|
|
63
|
+
if (handlerEditor != null) {
|
|
64
|
+
modelEditor = handlerEditor;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (modelEditor == null) {
|
|
69
|
+
modelEditor = await openNewCodeEditor(modelRef);
|
|
70
|
+
// Destroy model ref when we close the editor popup
|
|
71
|
+
const onModelUnmount = () => {
|
|
72
|
+
modelRef.dispose();
|
|
73
|
+
};
|
|
74
|
+
const onDidDisposeDisposable = modelEditor.onDidDispose(() => {
|
|
75
|
+
onModelUnmount();
|
|
76
|
+
});
|
|
77
|
+
const onDidChangeModelDisposable = modelEditor.onDidChangeModel((e) => {
|
|
78
|
+
if (e.newModelUrl == null || e.newModelUrl.toString() !== modelRef.object.textEditorModel.uri.toString()) {
|
|
79
|
+
onModelUnmount();
|
|
80
|
+
onDidDisposeDisposable.dispose();
|
|
81
|
+
onDidChangeModelDisposable.dispose();
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
modelEditor.focus();
|
|
86
|
+
if (modelEditor.getDomNode()?.scrollIntoView != null) {
|
|
87
|
+
modelEditor.getDomNode()?.scrollIntoView({
|
|
88
|
+
block: 'nearest',
|
|
89
|
+
inline: 'nearest'
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return modelEditor;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
registerEditorOpenHandler(handler) {
|
|
96
|
+
this.handlers.push(handler);
|
|
97
|
+
return {
|
|
98
|
+
dispose: () => {
|
|
99
|
+
const index = this.handlers.indexOf(handler);
|
|
100
|
+
if (index >= 0) {
|
|
101
|
+
this.handlers.splice(index, 1);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { EditorOpenHandlerRegistry as default };
|