@lvce-editor/server 0.0.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/LICENSE +21 -0
- package/README.md +7 -0
- package/ThirdPartyNotices.txt +134 -0
- package/bin/server.js +3 -0
- package/package.json +15 -0
- package/src/server.js +299 -0
- package/static/1914fad/config/builtinCommands.json +367 -0
- package/static/1914fad/config/colorTheme.json +98 -0
- package/static/1914fad/config/defaultKeyBindings.json +649 -0
- package/static/1914fad/config/defaultSettings.json +17 -0
- package/static/1914fad/css/App.css +2318 -0
- package/static/1914fad/file-icons/default_file.svg +1 -0
- package/static/1914fad/file-icons/default_folder.svg +1 -0
- package/static/1914fad/file-icons/default_folder_opened.svg +1 -0
- package/static/1914fad/file-icons/default_root_folder.svg +1 -0
- package/static/1914fad/file-icons/default_root_folder_opened.svg +1 -0
- package/static/1914fad/file-icons/file_type_access.svg +1 -0
- package/static/1914fad/file-icons/file_type_access2.svg +1 -0
- package/static/1914fad/file-icons/file_type_actionscript.svg +1 -0
- package/static/1914fad/file-icons/file_type_actionscript2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ada.svg +1 -0
- package/static/1914fad/file-icons/file_type_advpl.svg +1 -0
- package/static/1914fad/file-icons/file_type_affectscript.svg +1 -0
- package/static/1914fad/file-icons/file_type_affinitydesigner.svg +1 -0
- package/static/1914fad/file-icons/file_type_affinityphoto.svg +1 -0
- package/static/1914fad/file-icons/file_type_affinitypublisher.svg +1 -0
- package/static/1914fad/file-icons/file_type_ai.svg +1 -0
- package/static/1914fad/file-icons/file_type_ai2.svg +1 -0
- package/static/1914fad/file-icons/file_type_al.svg +1 -0
- package/static/1914fad/file-icons/file_type_angular.svg +1 -0
- package/static/1914fad/file-icons/file_type_ansible.svg +1 -0
- package/static/1914fad/file-icons/file_type_antlr.svg +1 -0
- package/static/1914fad/file-icons/file_type_anyscript.svg +1 -0
- package/static/1914fad/file-icons/file_type_apache.svg +1 -0
- package/static/1914fad/file-icons/file_type_apex.svg +1 -0
- package/static/1914fad/file-icons/file_type_api_extractor.svg +1 -0
- package/static/1914fad/file-icons/file_type_apib.svg +1 -0
- package/static/1914fad/file-icons/file_type_apib2.svg +1 -0
- package/static/1914fad/file-icons/file_type_apl.svg +1 -0
- package/static/1914fad/file-icons/file_type_applescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_appscript.svg +1 -0
- package/static/1914fad/file-icons/file_type_appsemble.svg +1 -0
- package/static/1914fad/file-icons/file_type_appveyor.svg +1 -0
- package/static/1914fad/file-icons/file_type_arduino.svg +1 -0
- package/static/1914fad/file-icons/file_type_asciidoc.svg +1 -0
- package/static/1914fad/file-icons/file_type_asp.svg +1 -0
- package/static/1914fad/file-icons/file_type_aspx.svg +1 -0
- package/static/1914fad/file-icons/file_type_assembly.svg +1 -0
- package/static/1914fad/file-icons/file_type_astro.svg +1 -0
- package/static/1914fad/file-icons/file_type_astroconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_ats.svg +1 -0
- package/static/1914fad/file-icons/file_type_audio.svg +1 -0
- package/static/1914fad/file-icons/file_type_aurelia.svg +1 -0
- package/static/1914fad/file-icons/file_type_autohotkey.svg +1 -0
- package/static/1914fad/file-icons/file_type_autoit.svg +1 -0
- package/static/1914fad/file-icons/file_type_avif.svg +1 -0
- package/static/1914fad/file-icons/file_type_avro.svg +1 -0
- package/static/1914fad/file-icons/file_type_awk.svg +1 -0
- package/static/1914fad/file-icons/file_type_aws.svg +1 -0
- package/static/1914fad/file-icons/file_type_azure.svg +1 -0
- package/static/1914fad/file-icons/file_type_azurepipelines.svg +1 -0
- package/static/1914fad/file-icons/file_type_babel.svg +1 -0
- package/static/1914fad/file-icons/file_type_babel2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ballerina.svg +1 -0
- package/static/1914fad/file-icons/file_type_bat.svg +1 -0
- package/static/1914fad/file-icons/file_type_bats.svg +1 -0
- package/static/1914fad/file-icons/file_type_bazaar.svg +1 -0
- package/static/1914fad/file-icons/file_type_bazel.svg +1 -0
- package/static/1914fad/file-icons/file_type_befunge.svg +1 -0
- package/static/1914fad/file-icons/file_type_bicep.svg +1 -0
- package/static/1914fad/file-icons/file_type_biml.svg +1 -0
- package/static/1914fad/file-icons/file_type_binary.svg +1 -0
- package/static/1914fad/file-icons/file_type_bitbucketpipeline.svg +1 -0
- package/static/1914fad/file-icons/file_type_bithound.svg +1 -0
- package/static/1914fad/file-icons/file_type_blade.svg +1 -0
- package/static/1914fad/file-icons/file_type_blitzbasic.svg +1 -0
- package/static/1914fad/file-icons/file_type_bolt.svg +1 -0
- package/static/1914fad/file-icons/file_type_bosque.svg +1 -0
- package/static/1914fad/file-icons/file_type_bower.svg +1 -0
- package/static/1914fad/file-icons/file_type_bower2.svg +1 -0
- package/static/1914fad/file-icons/file_type_browserslist.svg +1 -0
- package/static/1914fad/file-icons/file_type_buckbuild.svg +1 -0
- package/static/1914fad/file-icons/file_type_bundler.svg +1 -0
- package/static/1914fad/file-icons/file_type_c.svg +1 -0
- package/static/1914fad/file-icons/file_type_c2.svg +1 -0
- package/static/1914fad/file-icons/file_type_c3.svg +1 -0
- package/static/1914fad/file-icons/file_type_c_al.svg +1 -0
- package/static/1914fad/file-icons/file_type_cabal.svg +1 -0
- package/static/1914fad/file-icons/file_type_caddy.svg +1 -0
- package/static/1914fad/file-icons/file_type_cake.svg +1 -0
- package/static/1914fad/file-icons/file_type_cakephp.svg +1 -0
- package/static/1914fad/file-icons/file_type_capacitor.svg +1 -0
- package/static/1914fad/file-icons/file_type_cargo.svg +1 -0
- package/static/1914fad/file-icons/file_type_casc.svg +1 -0
- package/static/1914fad/file-icons/file_type_cddl.svg +1 -0
- package/static/1914fad/file-icons/file_type_cert.svg +1 -0
- package/static/1914fad/file-icons/file_type_ceylon.svg +1 -0
- package/static/1914fad/file-icons/file_type_cf.svg +1 -0
- package/static/1914fad/file-icons/file_type_cf2.svg +1 -0
- package/static/1914fad/file-icons/file_type_cfc.svg +1 -0
- package/static/1914fad/file-icons/file_type_cfc2.svg +1 -0
- package/static/1914fad/file-icons/file_type_cfm.svg +1 -0
- package/static/1914fad/file-icons/file_type_cfm2.svg +1 -0
- package/static/1914fad/file-icons/file_type_cheader.svg +1 -0
- package/static/1914fad/file-icons/file_type_chef.svg +1 -0
- package/static/1914fad/file-icons/file_type_chef_cookbook.svg +1 -0
- package/static/1914fad/file-icons/file_type_circleci.svg +1 -0
- package/static/1914fad/file-icons/file_type_class.svg +1 -0
- package/static/1914fad/file-icons/file_type_clojure.svg +1 -0
- package/static/1914fad/file-icons/file_type_clojurescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_cloudfoundry.svg +1 -0
- package/static/1914fad/file-icons/file_type_cmake.svg +1 -0
- package/static/1914fad/file-icons/file_type_cobol.svg +1 -0
- package/static/1914fad/file-icons/file_type_codacy.svg +1 -0
- package/static/1914fad/file-icons/file_type_codeclimate.svg +1 -0
- package/static/1914fad/file-icons/file_type_codecov.svg +1 -0
- package/static/1914fad/file-icons/file_type_codekit.svg +1 -0
- package/static/1914fad/file-icons/file_type_codeowners.svg +1 -0
- package/static/1914fad/file-icons/file_type_codeql.svg +1 -0
- package/static/1914fad/file-icons/file_type_coffeelint.svg +1 -0
- package/static/1914fad/file-icons/file_type_coffeescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_commitizen.svg +1 -0
- package/static/1914fad/file-icons/file_type_commitlint.svg +1 -0
- package/static/1914fad/file-icons/file_type_compass.svg +1 -0
- package/static/1914fad/file-icons/file_type_composer.svg +1 -0
- package/static/1914fad/file-icons/file_type_conan.svg +1 -0
- package/static/1914fad/file-icons/file_type_conda.svg +1 -0
- package/static/1914fad/file-icons/file_type_config.svg +1 -0
- package/static/1914fad/file-icons/file_type_confluence.svg +1 -0
- package/static/1914fad/file-icons/file_type_coveralls.svg +1 -0
- package/static/1914fad/file-icons/file_type_cpp.svg +1 -0
- package/static/1914fad/file-icons/file_type_cpp2.svg +1 -0
- package/static/1914fad/file-icons/file_type_cpp3.svg +1 -0
- package/static/1914fad/file-icons/file_type_cppheader.svg +1 -0
- package/static/1914fad/file-icons/file_type_crowdin.svg +1 -0
- package/static/1914fad/file-icons/file_type_crystal.svg +1 -0
- package/static/1914fad/file-icons/file_type_csharp.svg +1 -0
- package/static/1914fad/file-icons/file_type_csharp2.svg +1 -0
- package/static/1914fad/file-icons/file_type_csproj.svg +1 -0
- package/static/1914fad/file-icons/file_type_css.svg +1 -0
- package/static/1914fad/file-icons/file_type_csscomb.svg +1 -0
- package/static/1914fad/file-icons/file_type_csslint.svg +1 -0
- package/static/1914fad/file-icons/file_type_cssmap.svg +1 -0
- package/static/1914fad/file-icons/file_type_cucumber.svg +1 -0
- package/static/1914fad/file-icons/file_type_cuda.svg +1 -0
- package/static/1914fad/file-icons/file_type_cvs.svg +1 -0
- package/static/1914fad/file-icons/file_type_cypress.svg +1 -0
- package/static/1914fad/file-icons/file_type_cypress_spec.svg +1 -0
- package/static/1914fad/file-icons/file_type_cython.svg +1 -0
- package/static/1914fad/file-icons/file_type_dal.svg +1 -0
- package/static/1914fad/file-icons/file_type_darcs.svg +1 -0
- package/static/1914fad/file-icons/file_type_dartlang.svg +1 -0
- package/static/1914fad/file-icons/file_type_dartlang_generated.svg +1 -0
- package/static/1914fad/file-icons/file_type_dartlang_ignore.svg +1 -0
- package/static/1914fad/file-icons/file_type_db.svg +1 -0
- package/static/1914fad/file-icons/file_type_delphi.svg +1 -0
- package/static/1914fad/file-icons/file_type_dependabot.svg +1 -0
- package/static/1914fad/file-icons/file_type_dependencies.svg +1 -0
- package/static/1914fad/file-icons/file_type_devcontainer.svg +1 -0
- package/static/1914fad/file-icons/file_type_dhall.svg +1 -0
- package/static/1914fad/file-icons/file_type_diff.svg +1 -0
- package/static/1914fad/file-icons/file_type_django.svg +1 -0
- package/static/1914fad/file-icons/file_type_dlang.svg +1 -0
- package/static/1914fad/file-icons/file_type_docker.svg +1 -0
- package/static/1914fad/file-icons/file_type_docker2.svg +1 -0
- package/static/1914fad/file-icons/file_type_dockertest.svg +1 -0
- package/static/1914fad/file-icons/file_type_dockertest2.svg +1 -0
- package/static/1914fad/file-icons/file_type_docpad.svg +1 -0
- package/static/1914fad/file-icons/file_type_docz.svg +1 -0
- package/static/1914fad/file-icons/file_type_dojo.svg +1 -0
- package/static/1914fad/file-icons/file_type_doppler.svg +1 -0
- package/static/1914fad/file-icons/file_type_dotjs.svg +1 -0
- package/static/1914fad/file-icons/file_type_doxygen.svg +1 -0
- package/static/1914fad/file-icons/file_type_drawio.svg +1 -0
- package/static/1914fad/file-icons/file_type_drone.svg +1 -0
- package/static/1914fad/file-icons/file_type_drools.svg +1 -0
- package/static/1914fad/file-icons/file_type_dustjs.svg +1 -0
- package/static/1914fad/file-icons/file_type_dvc.svg +1 -0
- package/static/1914fad/file-icons/file_type_dylan.svg +1 -0
- package/static/1914fad/file-icons/file_type_earthly.svg +1 -0
- package/static/1914fad/file-icons/file_type_edge.svg +1 -0
- package/static/1914fad/file-icons/file_type_edge2.svg +1 -0
- package/static/1914fad/file-icons/file_type_editorconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_eex.svg +1 -0
- package/static/1914fad/file-icons/file_type_ejs.svg +1 -0
- package/static/1914fad/file-icons/file_type_elastic.svg +1 -0
- package/static/1914fad/file-icons/file_type_elasticbeanstalk.svg +1 -0
- package/static/1914fad/file-icons/file_type_elixir.svg +1 -0
- package/static/1914fad/file-icons/file_type_elm.svg +1 -0
- package/static/1914fad/file-icons/file_type_elm2.svg +1 -0
- package/static/1914fad/file-icons/file_type_emacs.svg +1 -0
- package/static/1914fad/file-icons/file_type_ember.svg +1 -0
- package/static/1914fad/file-icons/file_type_ensime.svg +1 -0
- package/static/1914fad/file-icons/file_type_eps.svg +1 -0
- package/static/1914fad/file-icons/file_type_erb.svg +1 -0
- package/static/1914fad/file-icons/file_type_erlang.svg +1 -0
- package/static/1914fad/file-icons/file_type_erlang2.svg +1 -0
- package/static/1914fad/file-icons/file_type_eslint.svg +1 -0
- package/static/1914fad/file-icons/file_type_eslint2.svg +1 -0
- package/static/1914fad/file-icons/file_type_excel.svg +1 -0
- package/static/1914fad/file-icons/file_type_excel2.svg +1 -0
- package/static/1914fad/file-icons/file_type_expo.svg +1 -0
- package/static/1914fad/file-icons/file_type_falcon.svg +1 -0
- package/static/1914fad/file-icons/file_type_fauna.svg +1 -0
- package/static/1914fad/file-icons/file_type_favicon.svg +1 -0
- package/static/1914fad/file-icons/file_type_fbx.svg +1 -0
- package/static/1914fad/file-icons/file_type_firebase.svg +1 -0
- package/static/1914fad/file-icons/file_type_firebasehosting.svg +1 -0
- package/static/1914fad/file-icons/file_type_firestore.svg +1 -0
- package/static/1914fad/file-icons/file_type_fitbit.svg +1 -0
- package/static/1914fad/file-icons/file_type_fla.svg +1 -0
- package/static/1914fad/file-icons/file_type_flareact.svg +1 -0
- package/static/1914fad/file-icons/file_type_flash.svg +1 -0
- package/static/1914fad/file-icons/file_type_floobits.svg +1 -0
- package/static/1914fad/file-icons/file_type_flow.svg +1 -0
- package/static/1914fad/file-icons/file_type_flutter.svg +1 -0
- package/static/1914fad/file-icons/file_type_flutter_package.svg +1 -0
- package/static/1914fad/file-icons/file_type_font.svg +1 -0
- package/static/1914fad/file-icons/file_type_formkit.svg +1 -0
- package/static/1914fad/file-icons/file_type_fortran.svg +1 -0
- package/static/1914fad/file-icons/file_type_fossa.svg +1 -0
- package/static/1914fad/file-icons/file_type_fossil.svg +1 -0
- package/static/1914fad/file-icons/file_type_freemarker.svg +1 -0
- package/static/1914fad/file-icons/file_type_fsharp.svg +1 -0
- package/static/1914fad/file-icons/file_type_fsharp2.svg +1 -0
- package/static/1914fad/file-icons/file_type_fsproj.svg +1 -0
- package/static/1914fad/file-icons/file_type_fthtml.svg +1 -0
- package/static/1914fad/file-icons/file_type_funding.svg +1 -0
- package/static/1914fad/file-icons/file_type_fusebox.svg +1 -0
- package/static/1914fad/file-icons/file_type_galen.svg +1 -0
- package/static/1914fad/file-icons/file_type_galen2.svg +1 -0
- package/static/1914fad/file-icons/file_type_gamemaker.svg +1 -0
- package/static/1914fad/file-icons/file_type_gamemaker2.svg +1 -0
- package/static/1914fad/file-icons/file_type_gamemaker81.svg +1 -0
- package/static/1914fad/file-icons/file_type_gatsby.svg +1 -0
- package/static/1914fad/file-icons/file_type_gcode.svg +1 -0
- package/static/1914fad/file-icons/file_type_genstat.svg +1 -0
- package/static/1914fad/file-icons/file_type_git.svg +1 -0
- package/static/1914fad/file-icons/file_type_git2.svg +1 -0
- package/static/1914fad/file-icons/file_type_gitlab.svg +1 -0
- package/static/1914fad/file-icons/file_type_gitpod.svg +1 -0
- package/static/1914fad/file-icons/file_type_glide.svg +1 -0
- package/static/1914fad/file-icons/file_type_glitter.svg +1 -0
- package/static/1914fad/file-icons/file_type_glsl.svg +1 -0
- package/static/1914fad/file-icons/file_type_glyphs.svg +1 -0
- package/static/1914fad/file-icons/file_type_gnuplot.svg +1 -0
- package/static/1914fad/file-icons/file_type_go.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_aqua.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_black.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_fuchsia.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_gopher.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_lightblue.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_package.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_white.svg +1 -0
- package/static/1914fad/file-icons/file_type_go_yellow.svg +1 -0
- package/static/1914fad/file-icons/file_type_goctl.svg +1 -0
- package/static/1914fad/file-icons/file_type_godot.svg +1 -0
- package/static/1914fad/file-icons/file_type_gradle.svg +1 -0
- package/static/1914fad/file-icons/file_type_gradle2.svg +1 -0
- package/static/1914fad/file-icons/file_type_graphql.svg +1 -0
- package/static/1914fad/file-icons/file_type_graphql_config.svg +1 -0
- package/static/1914fad/file-icons/file_type_graphviz.svg +1 -0
- package/static/1914fad/file-icons/file_type_greenkeeper.svg +1 -0
- package/static/1914fad/file-icons/file_type_gridsome.svg +1 -0
- package/static/1914fad/file-icons/file_type_groovy.svg +1 -0
- package/static/1914fad/file-icons/file_type_groovy2.svg +1 -0
- package/static/1914fad/file-icons/file_type_grunt.svg +1 -0
- package/static/1914fad/file-icons/file_type_gulp.svg +1 -0
- package/static/1914fad/file-icons/file_type_haml.svg +1 -0
- package/static/1914fad/file-icons/file_type_handlebars.svg +1 -0
- package/static/1914fad/file-icons/file_type_handlebars2.svg +1 -0
- package/static/1914fad/file-icons/file_type_harbour.svg +1 -0
- package/static/1914fad/file-icons/file_type_hardhat.svg +1 -0
- package/static/1914fad/file-icons/file_type_haskell.svg +1 -0
- package/static/1914fad/file-icons/file_type_haskell2.svg +1 -0
- package/static/1914fad/file-icons/file_type_haxe.svg +1 -0
- package/static/1914fad/file-icons/file_type_haxecheckstyle.svg +1 -0
- package/static/1914fad/file-icons/file_type_haxedevelop.svg +1 -0
- package/static/1914fad/file-icons/file_type_helix.svg +1 -0
- package/static/1914fad/file-icons/file_type_helm.svg +1 -0
- package/static/1914fad/file-icons/file_type_hjson.svg +1 -0
- package/static/1914fad/file-icons/file_type_hlsl.svg +1 -0
- package/static/1914fad/file-icons/file_type_homeassistant.svg +1 -0
- package/static/1914fad/file-icons/file_type_horusec.svg +1 -0
- package/static/1914fad/file-icons/file_type_host.svg +1 -0
- package/static/1914fad/file-icons/file_type_html.svg +1 -0
- package/static/1914fad/file-icons/file_type_htmlhint.svg +1 -0
- package/static/1914fad/file-icons/file_type_http.svg +1 -0
- package/static/1914fad/file-icons/file_type_hunspell.svg +1 -0
- package/static/1914fad/file-icons/file_type_husky.svg +1 -0
- package/static/1914fad/file-icons/file_type_hy.svg +1 -0
- package/static/1914fad/file-icons/file_type_hygen.svg +1 -0
- package/static/1914fad/file-icons/file_type_hypr.svg +1 -0
- package/static/1914fad/file-icons/file_type_icl.svg +1 -0
- package/static/1914fad/file-icons/file_type_idris.svg +1 -0
- package/static/1914fad/file-icons/file_type_idrisbin.svg +1 -0
- package/static/1914fad/file-icons/file_type_idrispkg.svg +1 -0
- package/static/1914fad/file-icons/file_type_image.svg +1 -0
- package/static/1914fad/file-icons/file_type_imba.svg +1 -0
- package/static/1914fad/file-icons/file_type_inc.svg +1 -0
- package/static/1914fad/file-icons/file_type_infopath.svg +1 -0
- package/static/1914fad/file-icons/file_type_informix.svg +1 -0
- package/static/1914fad/file-icons/file_type_ini.svg +1 -0
- package/static/1914fad/file-icons/file_type_ink.svg +1 -0
- package/static/1914fad/file-icons/file_type_innosetup.svg +1 -0
- package/static/1914fad/file-icons/file_type_io.svg +1 -0
- package/static/1914fad/file-icons/file_type_iodine.svg +1 -0
- package/static/1914fad/file-icons/file_type_ionic.svg +1 -0
- package/static/1914fad/file-icons/file_type_jake.svg +1 -0
- package/static/1914fad/file-icons/file_type_janet.svg +1 -0
- package/static/1914fad/file-icons/file_type_jar.svg +1 -0
- package/static/1914fad/file-icons/file_type_jasmine.svg +1 -0
- package/static/1914fad/file-icons/file_type_java.svg +1 -0
- package/static/1914fad/file-icons/file_type_jbuilder.svg +1 -0
- package/static/1914fad/file-icons/file_type_jekyll.svg +1 -0
- package/static/1914fad/file-icons/file_type_jenkins.svg +1 -0
- package/static/1914fad/file-icons/file_type_jest.svg +1 -0
- package/static/1914fad/file-icons/file_type_jest_snapshot.svg +1 -0
- package/static/1914fad/file-icons/file_type_jinja.svg +1 -0
- package/static/1914fad/file-icons/file_type_jpm.svg +1 -0
- package/static/1914fad/file-icons/file_type_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_js_official.svg +1 -0
- package/static/1914fad/file-icons/file_type_jsbeautify.svg +1 -0
- package/static/1914fad/file-icons/file_type_jsconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_jscpd.svg +1 -0
- package/static/1914fad/file-icons/file_type_jshint.svg +1 -0
- package/static/1914fad/file-icons/file_type_jsmap.svg +1 -0
- package/static/1914fad/file-icons/file_type_json.svg +1 -0
- package/static/1914fad/file-icons/file_type_json2.svg +1 -0
- package/static/1914fad/file-icons/file_type_json5.svg +1 -0
- package/static/1914fad/file-icons/file_type_json_official.svg +1 -0
- package/static/1914fad/file-icons/file_type_jsonld.svg +1 -0
- package/static/1914fad/file-icons/file_type_jsonnet.svg +1 -0
- package/static/1914fad/file-icons/file_type_jsp.svg +1 -0
- package/static/1914fad/file-icons/file_type_jss.svg +1 -0
- package/static/1914fad/file-icons/file_type_julia.svg +1 -0
- package/static/1914fad/file-icons/file_type_julia2.svg +1 -0
- package/static/1914fad/file-icons/file_type_jupyter.svg +1 -0
- package/static/1914fad/file-icons/file_type_k.svg +1 -0
- package/static/1914fad/file-icons/file_type_karma.svg +1 -0
- package/static/1914fad/file-icons/file_type_key.svg +1 -0
- package/static/1914fad/file-icons/file_type_kitchenci.svg +1 -0
- package/static/1914fad/file-icons/file_type_kite.svg +1 -0
- package/static/1914fad/file-icons/file_type_kivy.svg +1 -0
- package/static/1914fad/file-icons/file_type_kos.svg +1 -0
- package/static/1914fad/file-icons/file_type_kotlin.svg +1 -0
- package/static/1914fad/file-icons/file_type_kusto.svg +1 -0
- package/static/1914fad/file-icons/file_type_latino.svg +1 -0
- package/static/1914fad/file-icons/file_type_layout.svg +1 -0
- package/static/1914fad/file-icons/file_type_lerna.svg +1 -0
- package/static/1914fad/file-icons/file_type_less.svg +1 -0
- package/static/1914fad/file-icons/file_type_lex.svg +1 -0
- package/static/1914fad/file-icons/file_type_license.svg +1 -0
- package/static/1914fad/file-icons/file_type_licensebat.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_actionscript2.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_ada.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_apl.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_babel.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_babel2.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_cabal.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_circleci.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_cloudfoundry.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_codacy.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_codeclimate.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_codeowners.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_config.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_crystal.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_cypress.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_cypress_spec.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_db.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_dhall.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_docpad.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_drone.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_expo.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_firebasehosting.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_fla.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_font.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_gamemaker2.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_gradle.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_hjson.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_ini.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_io.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_jsconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_jsmap.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_json.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_json5.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_jsonld.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_kite.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_lerna.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_mdx.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_mlang.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_mustache.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_next.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_nim.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_objidconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_openHAB.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_pcl.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_pnpm.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_prettier.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_prisma.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_purescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_quasar.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_razzle.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_rehype.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_remark.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_replit.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_retext.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_rubocop.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_rust.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_rust_toolchain.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_shaderlab.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_solidity.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_stylelint.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_stylus.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_symfony.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_systemd.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_systemverilog.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_testcafe.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_testjs.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_tex.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_todo.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_toit.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_toml.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_turbo.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_unibeautify.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_vash.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_vsix.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_vsixmanifest.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_xfl.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_yaml.svg +1 -0
- package/static/1914fad/file-icons/file_type_light_zeit.svg +1 -0
- package/static/1914fad/file-icons/file_type_lighthouse.svg +1 -0
- package/static/1914fad/file-icons/file_type_lime.svg +1 -0
- package/static/1914fad/file-icons/file_type_lintstagedrc.svg +1 -0
- package/static/1914fad/file-icons/file_type_liquid.svg +1 -0
- package/static/1914fad/file-icons/file_type_lisp.svg +1 -0
- package/static/1914fad/file-icons/file_type_livescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_lnk.svg +1 -0
- package/static/1914fad/file-icons/file_type_locale.svg +1 -0
- package/static/1914fad/file-icons/file_type_log.svg +1 -0
- package/static/1914fad/file-icons/file_type_lolcode.svg +1 -0
- package/static/1914fad/file-icons/file_type_lsl.svg +1 -0
- package/static/1914fad/file-icons/file_type_lua.svg +1 -0
- package/static/1914fad/file-icons/file_type_luau.svg +1 -0
- package/static/1914fad/file-icons/file_type_lync.svg +1 -0
- package/static/1914fad/file-icons/file_type_makefile.svg +1 -0
- package/static/1914fad/file-icons/file_type_manifest.svg +1 -0
- package/static/1914fad/file-icons/file_type_manifest_bak.svg +1 -0
- package/static/1914fad/file-icons/file_type_manifest_skip.svg +1 -0
- package/static/1914fad/file-icons/file_type_map.svg +1 -0
- package/static/1914fad/file-icons/file_type_mariadb.svg +1 -0
- package/static/1914fad/file-icons/file_type_markdown.svg +1 -0
- package/static/1914fad/file-icons/file_type_markdownlint.svg +1 -0
- package/static/1914fad/file-icons/file_type_markdownlint_ignore.svg +1 -0
- package/static/1914fad/file-icons/file_type_marko.svg +1 -0
- package/static/1914fad/file-icons/file_type_markojs.svg +1 -0
- package/static/1914fad/file-icons/file_type_matlab.svg +1 -0
- package/static/1914fad/file-icons/file_type_maven.svg +1 -0
- package/static/1914fad/file-icons/file_type_maxscript.svg +1 -0
- package/static/1914fad/file-icons/file_type_maya.svg +1 -0
- package/static/1914fad/file-icons/file_type_mdx.svg +1 -0
- package/static/1914fad/file-icons/file_type_mediawiki.svg +1 -0
- package/static/1914fad/file-icons/file_type_mercurial.svg +1 -0
- package/static/1914fad/file-icons/file_type_meson.svg +1 -0
- package/static/1914fad/file-icons/file_type_meteor.svg +1 -0
- package/static/1914fad/file-icons/file_type_mjml.svg +1 -0
- package/static/1914fad/file-icons/file_type_mlang.svg +1 -0
- package/static/1914fad/file-icons/file_type_mocha.svg +1 -0
- package/static/1914fad/file-icons/file_type_modernizr.svg +1 -0
- package/static/1914fad/file-icons/file_type_mojolicious.svg +1 -0
- package/static/1914fad/file-icons/file_type_moleculer.svg +1 -0
- package/static/1914fad/file-icons/file_type_mongo.svg +1 -0
- package/static/1914fad/file-icons/file_type_monotone.svg +1 -0
- package/static/1914fad/file-icons/file_type_mson.svg +1 -0
- package/static/1914fad/file-icons/file_type_mustache.svg +1 -0
- package/static/1914fad/file-icons/file_type_mysql.svg +1 -0
- package/static/1914fad/file-icons/file_type_ndst.svg +7 -0
- package/static/1914fad/file-icons/file_type_nearly.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_adapter_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_adapter_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_controller_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_controller_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_decorator_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_decorator_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_filter_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_filter_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_gateway_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_gateway_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_guard_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_guard_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_interceptor_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_interceptor_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_middleware_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_middleware_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_module_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_module_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_pipe_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_pipe_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_service_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_nest_service_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_nestjs.svg +1 -0
- package/static/1914fad/file-icons/file_type_netlify.svg +1 -0
- package/static/1914fad/file-icons/file_type_next.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_css.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_html.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_js2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_less.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_sass.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_scss.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_component_ts2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_controller_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_controller_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_directive_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_directive_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_directive_js2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_directive_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_directive_ts2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_guard_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_guard_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_guard_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_interceptor_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_interceptor_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_interceptor_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_module_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_module_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_module_js2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_module_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_module_ts2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_pipe_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_pipe_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_pipe_js2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_pipe_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_pipe_ts2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_routing_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_routing_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_routing_js2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_routing_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_routing_ts2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_service_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_service_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_service_js2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_service_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_service_ts2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_smart_component_dart.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_smart_component_js.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_smart_component_js2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_smart_component_ts.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_smart_component_ts2.svg +1 -0
- package/static/1914fad/file-icons/file_type_ng_tailwind.svg +1 -0
- package/static/1914fad/file-icons/file_type_nginx.svg +1 -0
- package/static/1914fad/file-icons/file_type_nim.svg +1 -0
- package/static/1914fad/file-icons/file_type_nimble.svg +1 -0
- package/static/1914fad/file-icons/file_type_ninja.svg +1 -0
- package/static/1914fad/file-icons/file_type_nix.svg +1 -0
- package/static/1914fad/file-icons/file_type_njsproj.svg +1 -0
- package/static/1914fad/file-icons/file_type_noc.svg +1 -0
- package/static/1914fad/file-icons/file_type_node.svg +1 -0
- package/static/1914fad/file-icons/file_type_node2.svg +1 -0
- package/static/1914fad/file-icons/file_type_nodemon.svg +1 -0
- package/static/1914fad/file-icons/file_type_npm.svg +1 -0
- package/static/1914fad/file-icons/file_type_nsi.svg +1 -0
- package/static/1914fad/file-icons/file_type_nsri-integrity.svg +1 -0
- package/static/1914fad/file-icons/file_type_nsri.svg +1 -0
- package/static/1914fad/file-icons/file_type_nuget.svg +1 -0
- package/static/1914fad/file-icons/file_type_numpy.svg +1 -0
- package/static/1914fad/file-icons/file_type_nunjucks.svg +1 -0
- package/static/1914fad/file-icons/file_type_nuxt.svg +1 -0
- package/static/1914fad/file-icons/file_type_nyc.svg +1 -0
- package/static/1914fad/file-icons/file_type_objectivec.svg +1 -0
- package/static/1914fad/file-icons/file_type_objectivecpp.svg +1 -0
- package/static/1914fad/file-icons/file_type_objidconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_ocaml.svg +1 -0
- package/static/1914fad/file-icons/file_type_ogone.svg +1 -0
- package/static/1914fad/file-icons/file_type_onenote.svg +1 -0
- package/static/1914fad/file-icons/file_type_openHAB.svg +1 -0
- package/static/1914fad/file-icons/file_type_opencl.svg +1 -0
- package/static/1914fad/file-icons/file_type_openscad.svg +1 -0
- package/static/1914fad/file-icons/file_type_org.svg +1 -0
- package/static/1914fad/file-icons/file_type_outlook.svg +1 -0
- package/static/1914fad/file-icons/file_type_ovpn.svg +1 -0
- package/static/1914fad/file-icons/file_type_package.svg +1 -0
- package/static/1914fad/file-icons/file_type_paket.svg +1 -0
- package/static/1914fad/file-icons/file_type_patch.svg +1 -0
- package/static/1914fad/file-icons/file_type_pcl.svg +1 -0
- package/static/1914fad/file-icons/file_type_pddl.svg +1 -0
- package/static/1914fad/file-icons/file_type_pddl_happenings.svg +1 -0
- package/static/1914fad/file-icons/file_type_pddl_plan.svg +1 -0
- package/static/1914fad/file-icons/file_type_pdf.svg +1 -0
- package/static/1914fad/file-icons/file_type_pdf2.svg +1 -0
- package/static/1914fad/file-icons/file_type_peeky.svg +1 -0
- package/static/1914fad/file-icons/file_type_perl.svg +1 -0
- package/static/1914fad/file-icons/file_type_perl2.svg +1 -0
- package/static/1914fad/file-icons/file_type_perl6.svg +1 -0
- package/static/1914fad/file-icons/file_type_pgsql.svg +1 -0
- package/static/1914fad/file-icons/file_type_photoshop.svg +1 -0
- package/static/1914fad/file-icons/file_type_photoshop2.svg +1 -0
- package/static/1914fad/file-icons/file_type_php.svg +1 -0
- package/static/1914fad/file-icons/file_type_php2.svg +1 -0
- package/static/1914fad/file-icons/file_type_php3.svg +1 -0
- package/static/1914fad/file-icons/file_type_phpcsfixer.svg +1 -0
- package/static/1914fad/file-icons/file_type_phpunit.svg +1 -0
- package/static/1914fad/file-icons/file_type_phraseapp.svg +1 -0
- package/static/1914fad/file-icons/file_type_pine.svg +1 -0
- package/static/1914fad/file-icons/file_type_pip.svg +1 -0
- package/static/1914fad/file-icons/file_type_pipeline.svg +3 -0
- package/static/1914fad/file-icons/file_type_plantuml.svg +1 -0
- package/static/1914fad/file-icons/file_type_platformio.svg +1 -0
- package/static/1914fad/file-icons/file_type_playwright.svg +1 -0
- package/static/1914fad/file-icons/file_type_plsql.svg +1 -0
- package/static/1914fad/file-icons/file_type_plsql_package.svg +1 -0
- package/static/1914fad/file-icons/file_type_plsql_package_body.svg +1 -0
- package/static/1914fad/file-icons/file_type_plsql_package_header.svg +1 -0
- package/static/1914fad/file-icons/file_type_plsql_package_spec.svg +1 -0
- package/static/1914fad/file-icons/file_type_pnpm.svg +1 -0
- package/static/1914fad/file-icons/file_type_poedit.svg +1 -0
- package/static/1914fad/file-icons/file_type_polymer.svg +1 -0
- package/static/1914fad/file-icons/file_type_pony.svg +1 -0
- package/static/1914fad/file-icons/file_type_postcss.svg +1 -0
- package/static/1914fad/file-icons/file_type_postcssconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_powerpoint.svg +1 -0
- package/static/1914fad/file-icons/file_type_powerpoint2.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell2.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell_format.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell_psd.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell_psd2.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell_psm.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell_psm2.svg +1 -0
- package/static/1914fad/file-icons/file_type_powershell_types.svg +1 -0
- package/static/1914fad/file-icons/file_type_preact.svg +1 -0
- package/static/1914fad/file-icons/file_type_precommit.svg +1 -0
- package/static/1914fad/file-icons/file_type_prettier.svg +1 -0
- package/static/1914fad/file-icons/file_type_prisma.svg +1 -0
- package/static/1914fad/file-icons/file_type_processinglang.svg +1 -0
- package/static/1914fad/file-icons/file_type_procfile.svg +1 -0
- package/static/1914fad/file-icons/file_type_progress.svg +1 -0
- package/static/1914fad/file-icons/file_type_prolog.svg +1 -0
- package/static/1914fad/file-icons/file_type_prometheus.svg +1 -0
- package/static/1914fad/file-icons/file_type_protobuf.svg +1 -0
- package/static/1914fad/file-icons/file_type_protractor.svg +1 -0
- package/static/1914fad/file-icons/file_type_publisher.svg +1 -0
- package/static/1914fad/file-icons/file_type_pug.svg +1 -0
- package/static/1914fad/file-icons/file_type_puppet.svg +1 -0
- package/static/1914fad/file-icons/file_type_purescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_pyret.svg +1 -0
- package/static/1914fad/file-icons/file_type_python.svg +1 -0
- package/static/1914fad/file-icons/file_type_pytyped.svg +1 -0
- package/static/1914fad/file-icons/file_type_pyup.svg +1 -0
- package/static/1914fad/file-icons/file_type_q.svg +1 -0
- package/static/1914fad/file-icons/file_type_qbs.svg +1 -0
- package/static/1914fad/file-icons/file_type_qlikview.svg +1 -0
- package/static/1914fad/file-icons/file_type_qml.svg +1 -0
- package/static/1914fad/file-icons/file_type_qmldir.svg +1 -0
- package/static/1914fad/file-icons/file_type_qsharp.svg +1 -0
- package/static/1914fad/file-icons/file_type_quasar.svg +1 -0
- package/static/1914fad/file-icons/file_type_r.svg +1 -0
- package/static/1914fad/file-icons/file_type_racket.svg +1 -0
- package/static/1914fad/file-icons/file_type_rails.svg +1 -0
- package/static/1914fad/file-icons/file_type_rake.svg +1 -0
- package/static/1914fad/file-icons/file_type_raml.svg +1 -0
- package/static/1914fad/file-icons/file_type_razor.svg +1 -0
- package/static/1914fad/file-icons/file_type_razzle.svg +1 -0
- package/static/1914fad/file-icons/file_type_reactjs.svg +1 -0
- package/static/1914fad/file-icons/file_type_reacttemplate.svg +1 -0
- package/static/1914fad/file-icons/file_type_reactts.svg +1 -0
- package/static/1914fad/file-icons/file_type_reason.svg +1 -0
- package/static/1914fad/file-icons/file_type_red.svg +1 -0
- package/static/1914fad/file-icons/file_type_registry.svg +1 -0
- package/static/1914fad/file-icons/file_type_rego.svg +1 -0
- package/static/1914fad/file-icons/file_type_rehype.svg +1 -0
- package/static/1914fad/file-icons/file_type_remark.svg +1 -0
- package/static/1914fad/file-icons/file_type_renovate.svg +1 -0
- package/static/1914fad/file-icons/file_type_replit.svg +1 -0
- package/static/1914fad/file-icons/file_type_rescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_rest.svg +1 -0
- package/static/1914fad/file-icons/file_type_retext.svg +1 -0
- package/static/1914fad/file-icons/file_type_rexx.svg +1 -0
- package/static/1914fad/file-icons/file_type_riot.svg +1 -0
- package/static/1914fad/file-icons/file_type_rmd.svg +1 -0
- package/static/1914fad/file-icons/file_type_robotframework.svg +1 -0
- package/static/1914fad/file-icons/file_type_robots.svg +1 -0
- package/static/1914fad/file-icons/file_type_rollup.svg +1 -0
- package/static/1914fad/file-icons/file_type_ron.svg +1 -0
- package/static/1914fad/file-icons/file_type_rproj.svg +1 -0
- package/static/1914fad/file-icons/file_type_rspec.svg +1 -0
- package/static/1914fad/file-icons/file_type_rubocop.svg +1 -0
- package/static/1914fad/file-icons/file_type_ruby.svg +1 -0
- package/static/1914fad/file-icons/file_type_rust.svg +1 -0
- package/static/1914fad/file-icons/file_type_rust_toolchain.svg +1 -0
- package/static/1914fad/file-icons/file_type_sails.svg +1 -0
- package/static/1914fad/file-icons/file_type_saltstack.svg +1 -0
- package/static/1914fad/file-icons/file_type_san.svg +1 -0
- package/static/1914fad/file-icons/file_type_sas.svg +1 -0
- package/static/1914fad/file-icons/file_type_sass.svg +1 -0
- package/static/1914fad/file-icons/file_type_sbt.svg +1 -0
- package/static/1914fad/file-icons/file_type_scala.svg +1 -0
- package/static/1914fad/file-icons/file_type_scilab.svg +1 -0
- package/static/1914fad/file-icons/file_type_script.svg +1 -0
- package/static/1914fad/file-icons/file_type_scss.svg +1 -0
- package/static/1914fad/file-icons/file_type_scss2.svg +1 -0
- package/static/1914fad/file-icons/file_type_sdlang.svg +1 -0
- package/static/1914fad/file-icons/file_type_sentry.svg +1 -0
- package/static/1914fad/file-icons/file_type_sequelize.svg +1 -0
- package/static/1914fad/file-icons/file_type_serverless.svg +1 -0
- package/static/1914fad/file-icons/file_type_shaderlab.svg +1 -0
- package/static/1914fad/file-icons/file_type_shell.svg +1 -0
- package/static/1914fad/file-icons/file_type_silverstripe.svg +1 -0
- package/static/1914fad/file-icons/file_type_siyuan.svg +1 -0
- package/static/1914fad/file-icons/file_type_sketch.svg +1 -0
- package/static/1914fad/file-icons/file_type_skipper.svg +1 -0
- package/static/1914fad/file-icons/file_type_slang.svg +1 -0
- package/static/1914fad/file-icons/file_type_slashup.svg +1 -0
- package/static/1914fad/file-icons/file_type_slice.svg +1 -0
- package/static/1914fad/file-icons/file_type_slim.svg +1 -0
- package/static/1914fad/file-icons/file_type_sln.svg +1 -0
- package/static/1914fad/file-icons/file_type_sln2.svg +1 -0
- package/static/1914fad/file-icons/file_type_smarty.svg +1 -0
- package/static/1914fad/file-icons/file_type_snapcraft.svg +1 -0
- package/static/1914fad/file-icons/file_type_snort.svg +1 -0
- package/static/1914fad/file-icons/file_type_snyk.svg +1 -0
- package/static/1914fad/file-icons/file_type_solidarity.svg +1 -0
- package/static/1914fad/file-icons/file_type_solidity.svg +1 -0
- package/static/1914fad/file-icons/file_type_source.svg +1 -0
- package/static/1914fad/file-icons/file_type_spacengine.svg +1 -0
- package/static/1914fad/file-icons/file_type_sparql.svg +1 -0
- package/static/1914fad/file-icons/file_type_sqf.svg +1 -0
- package/static/1914fad/file-icons/file_type_sql.svg +1 -0
- package/static/1914fad/file-icons/file_type_sqlite.svg +1 -0
- package/static/1914fad/file-icons/file_type_squirrel.svg +1 -0
- package/static/1914fad/file-icons/file_type_sss.svg +1 -0
- package/static/1914fad/file-icons/file_type_stan.svg +1 -0
- package/static/1914fad/file-icons/file_type_stata.svg +1 -0
- package/static/1914fad/file-icons/file_type_stencil.svg +1 -0
- package/static/1914fad/file-icons/file_type_storyboard.svg +1 -0
- package/static/1914fad/file-icons/file_type_storybook.svg +1 -0
- package/static/1914fad/file-icons/file_type_stryker.svg +1 -0
- package/static/1914fad/file-icons/file_type_stylable.svg +1 -0
- package/static/1914fad/file-icons/file_type_style.svg +1 -0
- package/static/1914fad/file-icons/file_type_styled.svg +1 -0
- package/static/1914fad/file-icons/file_type_stylelint.svg +1 -0
- package/static/1914fad/file-icons/file_type_stylish_haskell.svg +1 -0
- package/static/1914fad/file-icons/file_type_stylus.svg +1 -0
- package/static/1914fad/file-icons/file_type_subversion.svg +1 -0
- package/static/1914fad/file-icons/file_type_svelte.svg +1 -0
- package/static/1914fad/file-icons/file_type_svg.svg +1 -0
- package/static/1914fad/file-icons/file_type_swagger.svg +1 -0
- package/static/1914fad/file-icons/file_type_swift.svg +1 -0
- package/static/1914fad/file-icons/file_type_swig.svg +1 -0
- package/static/1914fad/file-icons/file_type_symfony.svg +1 -0
- package/static/1914fad/file-icons/file_type_systemd.svg +1 -0
- package/static/1914fad/file-icons/file_type_systemverilog.svg +1 -0
- package/static/1914fad/file-icons/file_type_t4tt.svg +1 -0
- package/static/1914fad/file-icons/file_type_tailwind.svg +1 -0
- package/static/1914fad/file-icons/file_type_tauri.svg +1 -0
- package/static/1914fad/file-icons/file_type_tcl.svg +1 -0
- package/static/1914fad/file-icons/file_type_teal.svg +1 -0
- package/static/1914fad/file-icons/file_type_tera.svg +1 -0
- package/static/1914fad/file-icons/file_type_terraform.svg +1 -0
- package/static/1914fad/file-icons/file_type_test.svg +1 -0
- package/static/1914fad/file-icons/file_type_testcafe.svg +1 -0
- package/static/1914fad/file-icons/file_type_testjs.svg +1 -0
- package/static/1914fad/file-icons/file_type_testts.svg +1 -0
- package/static/1914fad/file-icons/file_type_tex.svg +1 -0
- package/static/1914fad/file-icons/file_type_text.svg +1 -0
- package/static/1914fad/file-icons/file_type_textile.svg +1 -0
- package/static/1914fad/file-icons/file_type_tfs.svg +1 -0
- package/static/1914fad/file-icons/file_type_tiltfile.svg +1 -0
- package/static/1914fad/file-icons/file_type_todo.svg +1 -0
- package/static/1914fad/file-icons/file_type_toit.svg +1 -0
- package/static/1914fad/file-icons/file_type_toml.svg +1 -0
- package/static/1914fad/file-icons/file_type_tox.svg +1 -0
- package/static/1914fad/file-icons/file_type_travis.svg +1 -0
- package/static/1914fad/file-icons/file_type_trunk.svg +1 -0
- package/static/1914fad/file-icons/file_type_tsconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_tsconfig_official.svg +1 -0
- package/static/1914fad/file-icons/file_type_tslint.svg +1 -0
- package/static/1914fad/file-icons/file_type_tt.svg +1 -0
- package/static/1914fad/file-icons/file_type_ttcn.svg +1 -0
- package/static/1914fad/file-icons/file_type_tuc.svg +1 -0
- package/static/1914fad/file-icons/file_type_turbo.svg +1 -0
- package/static/1914fad/file-icons/file_type_twig.svg +1 -0
- package/static/1914fad/file-icons/file_type_typedoc.svg +1 -0
- package/static/1914fad/file-icons/file_type_typescript.svg +1 -0
- package/static/1914fad/file-icons/file_type_typescript_official.svg +1 -0
- package/static/1914fad/file-icons/file_type_typescriptdef.svg +1 -0
- package/static/1914fad/file-icons/file_type_typescriptdef_official.svg +1 -0
- package/static/1914fad/file-icons/file_type_typo3.svg +1 -0
- package/static/1914fad/file-icons/file_type_unibeautify.svg +1 -0
- package/static/1914fad/file-icons/file_type_unlicense.svg +1 -0
- package/static/1914fad/file-icons/file_type_vagrant.svg +1 -0
- package/static/1914fad/file-icons/file_type_vala.svg +1 -0
- package/static/1914fad/file-icons/file_type_vanilla_extract.svg +1 -0
- package/static/1914fad/file-icons/file_type_vapi.svg +1 -0
- package/static/1914fad/file-icons/file_type_vapor.svg +1 -0
- package/static/1914fad/file-icons/file_type_vash.svg +1 -0
- package/static/1914fad/file-icons/file_type_vb.svg +1 -0
- package/static/1914fad/file-icons/file_type_vba.svg +1 -0
- package/static/1914fad/file-icons/file_type_vbhtml.svg +1 -0
- package/static/1914fad/file-icons/file_type_vbproj.svg +1 -0
- package/static/1914fad/file-icons/file_type_vcxproj.svg +1 -0
- package/static/1914fad/file-icons/file_type_velocity.svg +1 -0
- package/static/1914fad/file-icons/file_type_verilog.svg +1 -0
- package/static/1914fad/file-icons/file_type_vhdl.svg +1 -0
- package/static/1914fad/file-icons/file_type_video.svg +1 -0
- package/static/1914fad/file-icons/file_type_view.svg +1 -0
- package/static/1914fad/file-icons/file_type_vim.svg +1 -0
- package/static/1914fad/file-icons/file_type_vite.svg +1 -0
- package/static/1914fad/file-icons/file_type_vitest.svg +1 -0
- package/static/1914fad/file-icons/file_type_vlang.svg +1 -0
- package/static/1914fad/file-icons/file_type_volt.svg +1 -0
- package/static/1914fad/file-icons/file_type_vscode-insiders.svg +1 -0
- package/static/1914fad/file-icons/file_type_vscode.svg +1 -0
- package/static/1914fad/file-icons/file_type_vscode2.svg +1 -0
- package/static/1914fad/file-icons/file_type_vscode3.svg +1 -0
- package/static/1914fad/file-icons/file_type_vsix.svg +1 -0
- package/static/1914fad/file-icons/file_type_vsixmanifest.svg +1 -0
- package/static/1914fad/file-icons/file_type_vue.svg +1 -0
- package/static/1914fad/file-icons/file_type_vueconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_wallaby.svg +1 -0
- package/static/1914fad/file-icons/file_type_wasm.svg +1 -0
- package/static/1914fad/file-icons/file_type_watchmanconfig.svg +1 -0
- package/static/1914fad/file-icons/file_type_webpack.svg +1 -0
- package/static/1914fad/file-icons/file_type_wenyan.svg +1 -0
- package/static/1914fad/file-icons/file_type_wercker.svg +1 -0
- package/static/1914fad/file-icons/file_type_windi.svg +1 -0
- package/static/1914fad/file-icons/file_type_wolfram.svg +1 -0
- package/static/1914fad/file-icons/file_type_word.svg +1 -0
- package/static/1914fad/file-icons/file_type_word2.svg +1 -0
- package/static/1914fad/file-icons/file_type_wpml.svg +1 -0
- package/static/1914fad/file-icons/file_type_wurst.svg +1 -0
- package/static/1914fad/file-icons/file_type_wxml.svg +1 -0
- package/static/1914fad/file-icons/file_type_wxss.svg +1 -0
- package/static/1914fad/file-icons/file_type_xcode.svg +1 -0
- package/static/1914fad/file-icons/file_type_xfl.svg +1 -0
- package/static/1914fad/file-icons/file_type_xib.svg +1 -0
- package/static/1914fad/file-icons/file_type_xliff.svg +1 -0
- package/static/1914fad/file-icons/file_type_xmake.svg +1 -0
- package/static/1914fad/file-icons/file_type_xml.svg +1 -0
- package/static/1914fad/file-icons/file_type_xquery.svg +1 -0
- package/static/1914fad/file-icons/file_type_xsl.svg +1 -0
- package/static/1914fad/file-icons/file_type_yacc.svg +1 -0
- package/static/1914fad/file-icons/file_type_yaml.svg +1 -0
- package/static/1914fad/file-icons/file_type_yamllint.svg +1 -0
- package/static/1914fad/file-icons/file_type_yandex.svg +1 -0
- package/static/1914fad/file-icons/file_type_yang.svg +1 -0
- package/static/1914fad/file-icons/file_type_yarn.svg +1 -0
- package/static/1914fad/file-icons/file_type_yeoman.svg +1 -0
- package/static/1914fad/file-icons/file_type_zeit.svg +1 -0
- package/static/1914fad/file-icons/file_type_zig.svg +1 -0
- package/static/1914fad/file-icons/file_type_zip.svg +1 -0
- package/static/1914fad/file-icons/file_type_zip2.svg +1 -0
- package/static/1914fad/file-icons/folder_type_android.svg +1 -0
- package/static/1914fad/file-icons/folder_type_android_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_api.svg +1 -0
- package/static/1914fad/file-icons/folder_type_api_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_app.svg +1 -0
- package/static/1914fad/file-icons/folder_type_app_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_arangodb.svg +1 -0
- package/static/1914fad/file-icons/folder_type_arangodb_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_asset.svg +1 -0
- package/static/1914fad/file-icons/folder_type_asset_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_audio.svg +1 -0
- package/static/1914fad/file-icons/folder_type_audio_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_aurelia.svg +1 -0
- package/static/1914fad/file-icons/folder_type_aurelia_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_aws.svg +1 -0
- package/static/1914fad/file-icons/folder_type_aws_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_azure.svg +1 -0
- package/static/1914fad/file-icons/folder_type_azure_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_azurepipelines.svg +1 -0
- package/static/1914fad/file-icons/folder_type_azurepipelines_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_binary.svg +1 -0
- package/static/1914fad/file-icons/folder_type_binary_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_bloc.svg +1 -0
- package/static/1914fad/file-icons/folder_type_bloc_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_blueprint.svg +1 -0
- package/static/1914fad/file-icons/folder_type_blueprint_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_bower.svg +1 -0
- package/static/1914fad/file-icons/folder_type_bower_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_buildkite.svg +1 -0
- package/static/1914fad/file-icons/folder_type_buildkite_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cake.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cake_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_certificate.svg +1 -0
- package/static/1914fad/file-icons/folder_type_certificate_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_chef.svg +1 -0
- package/static/1914fad/file-icons/folder_type_chef_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_circleci.svg +1 -0
- package/static/1914fad/file-icons/folder_type_circleci_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cli.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cli_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_client.svg +1 -0
- package/static/1914fad/file-icons/folder_type_client_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cmake.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cmake_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_component.svg +1 -0
- package/static/1914fad/file-icons/folder_type_component_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_composer.svg +1 -0
- package/static/1914fad/file-icons/folder_type_composer_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_config.svg +1 -0
- package/static/1914fad/file-icons/folder_type_config_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_controller.svg +1 -0
- package/static/1914fad/file-icons/folder_type_controller_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_coverage.svg +1 -0
- package/static/1914fad/file-icons/folder_type_coverage_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_css.svg +1 -0
- package/static/1914fad/file-icons/folder_type_css_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cubit.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cubit_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cypress.svg +1 -0
- package/static/1914fad/file-icons/folder_type_cypress_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_dapr.svg +1 -0
- package/static/1914fad/file-icons/folder_type_dapr_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_db.svg +1 -0
- package/static/1914fad/file-icons/folder_type_db_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_debian.svg +1 -0
- package/static/1914fad/file-icons/folder_type_debian_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_dependabot.svg +1 -0
- package/static/1914fad/file-icons/folder_type_dependabot_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_devcontainer.svg +1 -0
- package/static/1914fad/file-icons/folder_type_devcontainer_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_dist.svg +1 -0
- package/static/1914fad/file-icons/folder_type_dist_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_docker.svg +1 -0
- package/static/1914fad/file-icons/folder_type_docker_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_docs.svg +1 -0
- package/static/1914fad/file-icons/folder_type_docs_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_e2e.svg +1 -0
- package/static/1914fad/file-icons/folder_type_e2e_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_elasticbeanstalk.svg +1 -0
- package/static/1914fad/file-icons/folder_type_elasticbeanstalk_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_electron.svg +1 -0
- package/static/1914fad/file-icons/folder_type_electron_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_expo.svg +1 -0
- package/static/1914fad/file-icons/folder_type_expo_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_favicon.svg +1 -0
- package/static/1914fad/file-icons/folder_type_favicon_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_flow.svg +1 -0
- package/static/1914fad/file-icons/folder_type_flow_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_fonts.svg +1 -0
- package/static/1914fad/file-icons/folder_type_fonts_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gcp.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gcp_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_git.svg +1 -0
- package/static/1914fad/file-icons/folder_type_git_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_github.svg +1 -0
- package/static/1914fad/file-icons/folder_type_github_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gitlab.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gitlab_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gradle.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gradle_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_graphql.svg +1 -0
- package/static/1914fad/file-icons/folder_type_graphql_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_grunt.svg +1 -0
- package/static/1914fad/file-icons/folder_type_grunt_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gulp.svg +1 -0
- package/static/1914fad/file-icons/folder_type_gulp_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_haxelib.svg +1 -0
- package/static/1914fad/file-icons/folder_type_haxelib_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_helper.svg +1 -0
- package/static/1914fad/file-icons/folder_type_helper_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_hook.svg +1 -0
- package/static/1914fad/file-icons/folder_type_hook_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_husky.svg +1 -0
- package/static/1914fad/file-icons/folder_type_husky_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_idea.svg +1 -0
- package/static/1914fad/file-icons/folder_type_idea_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_images.svg +1 -0
- package/static/1914fad/file-icons/folder_type_images_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_include.svg +1 -0
- package/static/1914fad/file-icons/folder_type_include_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_interfaces.svg +1 -0
- package/static/1914fad/file-icons/folder_type_interfaces_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_ios.svg +1 -0
- package/static/1914fad/file-icons/folder_type_ios_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_js.svg +1 -0
- package/static/1914fad/file-icons/folder_type_js_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_json.svg +1 -0
- package/static/1914fad/file-icons/folder_type_json_official.svg +1 -0
- package/static/1914fad/file-icons/folder_type_json_official_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_json_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_kubernetes.svg +1 -0
- package/static/1914fad/file-icons/folder_type_kubernetes_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_less.svg +1 -0
- package/static/1914fad/file-icons/folder_type_less_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_library.svg +1 -0
- package/static/1914fad/file-icons/folder_type_library_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_cypress.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_cypress_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_electron.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_electron_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_expo.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_expo_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_fonts.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_fonts_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_gradle.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_gradle_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_meteor.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_meteor_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_mysql.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_mysql_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_node.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_node_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_redux.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_redux_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_sass.svg +1 -0
- package/static/1914fad/file-icons/folder_type_light_sass_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_linux.svg +1 -0
- package/static/1914fad/file-icons/folder_type_linux_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_locale.svg +1 -0
- package/static/1914fad/file-icons/folder_type_locale_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_log.svg +1 -0
- package/static/1914fad/file-icons/folder_type_log_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_macos.svg +1 -0
- package/static/1914fad/file-icons/folder_type_macos_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mariadb.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mariadb_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_maven.svg +1 -0
- package/static/1914fad/file-icons/folder_type_maven_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_memcached.svg +1 -0
- package/static/1914fad/file-icons/folder_type_memcached_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_meteor.svg +1 -0
- package/static/1914fad/file-icons/folder_type_meteor_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_middleware.svg +1 -0
- package/static/1914fad/file-icons/folder_type_middleware_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_minikube.svg +1 -0
- package/static/1914fad/file-icons/folder_type_minikube_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mjml.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mjml_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mock.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mock_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_model.svg +1 -0
- package/static/1914fad/file-icons/folder_type_model_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_module.svg +1 -0
- package/static/1914fad/file-icons/folder_type_module_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mongodb.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mongodb_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mysql.svg +1 -0
- package/static/1914fad/file-icons/folder_type_mysql_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_next.svg +1 -0
- package/static/1914fad/file-icons/folder_type_next_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nginx.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nginx_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nix.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nix_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_node.svg +1 -0
- package/static/1914fad/file-icons/folder_type_node_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_notification.svg +1 -0
- package/static/1914fad/file-icons/folder_type_notification_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nuget.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nuget_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nuxt.svg +1 -0
- package/static/1914fad/file-icons/folder_type_nuxt_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_package.svg +1 -0
- package/static/1914fad/file-icons/folder_type_package_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_paket.svg +1 -0
- package/static/1914fad/file-icons/folder_type_paket_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_php.svg +1 -0
- package/static/1914fad/file-icons/folder_type_php_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_platformio.svg +1 -0
- package/static/1914fad/file-icons/folder_type_platformio_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_plugin.svg +1 -0
- package/static/1914fad/file-icons/folder_type_plugin_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_prisma.svg +1 -0
- package/static/1914fad/file-icons/folder_type_prisma_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_private.svg +1 -0
- package/static/1914fad/file-icons/folder_type_private_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_public.svg +1 -0
- package/static/1914fad/file-icons/folder_type_public_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_python.svg +1 -0
- package/static/1914fad/file-icons/folder_type_python_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_ravendb.svg +1 -0
- package/static/1914fad/file-icons/folder_type_ravendb_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_redis.svg +1 -0
- package/static/1914fad/file-icons/folder_type_redis_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_redux.svg +1 -0
- package/static/1914fad/file-icons/folder_type_redux_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_route.svg +1 -0
- package/static/1914fad/file-icons/folder_type_route_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_sass.svg +1 -0
- package/static/1914fad/file-icons/folder_type_sass_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_script.svg +1 -0
- package/static/1914fad/file-icons/folder_type_script_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_server.svg +1 -0
- package/static/1914fad/file-icons/folder_type_server_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_services.svg +1 -0
- package/static/1914fad/file-icons/folder_type_services_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_src.svg +1 -0
- package/static/1914fad/file-icons/folder_type_src_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_sso.svg +1 -0
- package/static/1914fad/file-icons/folder_type_sso_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_story.svg +1 -0
- package/static/1914fad/file-icons/folder_type_story_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_style.svg +1 -0
- package/static/1914fad/file-icons/folder_type_style_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_tauri.svg +1 -0
- package/static/1914fad/file-icons/folder_type_tauri_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_temp.svg +1 -0
- package/static/1914fad/file-icons/folder_type_temp_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_template.svg +1 -0
- package/static/1914fad/file-icons/folder_type_template_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_test.svg +1 -0
- package/static/1914fad/file-icons/folder_type_test_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_theme.svg +1 -0
- package/static/1914fad/file-icons/folder_type_theme_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_tools.svg +1 -0
- package/static/1914fad/file-icons/folder_type_tools_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_travis.svg +1 -0
- package/static/1914fad/file-icons/folder_type_travis_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_trunk.svg +1 -0
- package/static/1914fad/file-icons/folder_type_trunk_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_typescript.svg +1 -0
- package/static/1914fad/file-icons/folder_type_typescript_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_typings.svg +1 -0
- package/static/1914fad/file-icons/folder_type_typings2.svg +1 -0
- package/static/1914fad/file-icons/folder_type_typings2_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_typings_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vagrant.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vagrant_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_video.svg +1 -0
- package/static/1914fad/file-icons/folder_type_video_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_view.svg +1 -0
- package/static/1914fad/file-icons/folder_type_view_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vs.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vs2.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vs2_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vs_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode2.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode2_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode3.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode3_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode_test.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode_test2.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode_test2_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode_test3.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode_test3_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_vscode_test_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_webpack.svg +1 -0
- package/static/1914fad/file-icons/folder_type_webpack_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_windows.svg +1 -0
- package/static/1914fad/file-icons/folder_type_windows_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_www.svg +1 -0
- package/static/1914fad/file-icons/folder_type_www_opened.svg +1 -0
- package/static/1914fad/file-icons/folder_type_yarn.svg +1 -0
- package/static/1914fad/file-icons/folder_type_yarn_opened.svg +1 -0
- package/static/1914fad/fonts/FiraCode-VariableFont.ttf +0 -0
- package/static/1914fad/icons/arrow-right.svg +3 -0
- package/static/1914fad/icons/check.svg +1 -0
- package/static/1914fad/icons/chevron-right.svg +3 -0
- package/static/1914fad/icons/debug-alt-2.svg +3 -0
- package/static/1914fad/icons/ellipsis.svg +5 -0
- package/static/1914fad/icons/extensionDefaultIcon.png +0 -0
- package/static/1914fad/icons/extensions.svg +3 -0
- package/static/1914fad/icons/files.svg +3 -0
- package/static/1914fad/icons/icon-close.svg +3 -0
- package/static/1914fad/icons/icon-source-control.svg +3 -0
- package/static/1914fad/icons/icon-sync.svg +1 -0
- package/static/1914fad/icons/icon.png +0 -0
- package/static/1914fad/icons/language-icon.svg +1 -0
- package/static/1914fad/icons/pwa-icon-192.png +0 -0
- package/static/1914fad/icons/pwa-icon-512.png +0 -0
- package/static/1914fad/icons/search.svg +3 -0
- package/static/1914fad/icons/settings-gear.svg +3 -0
- package/static/1914fad/icons/source-control.svg +3 -0
- package/static/1914fad/icons/symbol-array.svg +3 -0
- package/static/1914fad/icons/symbol-boolean.svg +3 -0
- package/static/1914fad/icons/symbol-class.svg +3 -0
- package/static/1914fad/icons/symbol-color.svg +3 -0
- package/static/1914fad/icons/symbol-constant.svg +4 -0
- package/static/1914fad/icons/symbol-enum-member.svg +3 -0
- package/static/1914fad/icons/symbol-enum.svg +3 -0
- package/static/1914fad/icons/symbol-event.svg +3 -0
- package/static/1914fad/icons/symbol-field.svg +3 -0
- package/static/1914fad/icons/symbol-file.svg +3 -0
- package/static/1914fad/icons/symbol-interface.svg +3 -0
- package/static/1914fad/icons/symbol-key.svg +3 -0
- package/static/1914fad/icons/symbol-keyword.svg +3 -0
- package/static/1914fad/icons/symbol-method.svg +3 -0
- package/static/1914fad/icons/symbol-misc.svg +3 -0
- package/static/1914fad/icons/symbol-namespace.svg +3 -0
- package/static/1914fad/icons/symbol-numeric.svg +3 -0
- package/static/1914fad/icons/symbol-operator.svg +3 -0
- package/static/1914fad/icons/symbol-parameter.svg +3 -0
- package/static/1914fad/icons/symbol-property.svg +3 -0
- package/static/1914fad/icons/symbol-ruler.svg +3 -0
- package/static/1914fad/icons/symbol-snippet.svg +3 -0
- package/static/1914fad/icons/symbol-string.svg +3 -0
- package/static/1914fad/icons/symbol-structure.svg +3 -0
- package/static/1914fad/icons/symbol-variable.svg +3 -0
- package/static/1914fad/icons/theme-icon.png +0 -0
- package/static/1914fad/packages/renderer-process/dist/Audio.ipc.js +13 -0
- package/static/1914fad/packages/renderer-process/dist/Audio.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/Developer.ipc.js +80 -0
- package/static/1914fad/packages/renderer-process/dist/Developer.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/Dialog.ipc.js +181 -0
- package/static/1914fad/packages/renderer-process/dist/Dialog.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/EditorError.ipc.js +72 -0
- package/static/1914fad/packages/renderer-process/dist/EditorError.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/EditorHover.ipc.js +20 -0
- package/static/1914fad/packages/renderer-process/dist/EditorHover.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/EditorRename.ipc.js +46 -0
- package/static/1914fad/packages/renderer-process/dist/EditorRename.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/FindWidget.ipc.js +64 -0
- package/static/1914fad/packages/renderer-process/dist/FindWidget.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ImagePreview.ipc.js +12 -0
- package/static/1914fad/packages/renderer-process/dist/ImagePreview.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ImagePreview.js +72 -0
- package/static/1914fad/packages/renderer-process/dist/ImagePreview.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/InputBox.js +13 -0
- package/static/1914fad/packages/renderer-process/dist/InputBox.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/Menu.ipc.js +15 -0
- package/static/1914fad/packages/renderer-process/dist/Menu.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/Meta.ipc.js +17 -0
- package/static/1914fad/packages/renderer-process/dist/Meta.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/Notification.ipc.js +75 -0
- package/static/1914fad/packages/renderer-process/dist/Notification.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/SessionStorage.ipc.js +22 -0
- package/static/1914fad/packages/renderer-process/dist/SessionStorage.ipc.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletClock.js +25 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletClock.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletDebugConsole.js +27 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletDebugConsole.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorCompletion.js +127 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorCompletion.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorImage.js +27 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorImage.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorPlainText.js +24 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorPlainText.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorText.js +47 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEditorText.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEmpty.js +19 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletEmpty.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletExplorer.js +361 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletExplorer.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletExtensions.js +466 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletExtensions.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletImplementations.js +7 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletImplementations.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletLocations.js +136 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletLocations.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletMain.js +451 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletMain.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletOutput.js +96 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletOutput.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletPanel.js +111 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletPanel.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletProblems.js +34 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletProblems.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletQuickPick.js +336 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletQuickPick.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletReferences.js +7 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletReferences.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletRunAndDebug.js +54 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletRunAndDebug.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletSearch.js +171 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletSearch.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletSideBar.js +59 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletSideBar.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletSourceControl.js +93 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletSourceControl.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletTerminal.js +1628 -0
- package/static/1914fad/packages/renderer-process/dist/ViewletTerminal.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/renderer-process.modern.js +2 -0
- package/static/1914fad/packages/renderer-process/dist/renderer-process.modern.js.map +1 -0
- package/static/1914fad/packages/renderer-process/dist/rendererProcessMain.js +3795 -0
- package/static/1914fad/packages/renderer-process/dist/rendererProcessMain.js.map +1 -0
- package/static/1914fad/packages/renderer-process/src/parts/Allocator/Allocator.js +19 -0
- package/static/1914fad/packages/renderer-process/src/parts/AriaAlert/AriaAlert.js +39 -0
- package/static/1914fad/packages/renderer-process/src/parts/Assert/Assert.js +66 -0
- package/static/1914fad/packages/renderer-process/src/parts/Audio/Audio.ipc.js +6 -0
- package/static/1914fad/packages/renderer-process/src/parts/Audio/Audio.js +4 -0
- package/static/1914fad/packages/renderer-process/src/parts/BackDrop/BackDrop.js +5 -0
- package/static/1914fad/packages/renderer-process/src/parts/Callback/Callback.js +30 -0
- package/static/1914fad/packages/renderer-process/src/parts/Command/Command.js +325 -0
- package/static/1914fad/packages/renderer-process/src/parts/Context/Context.js +26 -0
- package/static/1914fad/packages/renderer-process/src/parts/Css/Css.ipc.js +6 -0
- package/static/1914fad/packages/renderer-process/src/parts/Css/Css.js +11 -0
- package/static/1914fad/packages/renderer-process/src/parts/Developer/Developer.ipc.js +7 -0
- package/static/1914fad/packages/renderer-process/src/parts/Developer/Developer.js +72 -0
- package/static/1914fad/packages/renderer-process/src/parts/Dialog/Dialog.ipc.js +9 -0
- package/static/1914fad/packages/renderer-process/src/parts/Dialog/Dialog.js +183 -0
- package/static/1914fad/packages/renderer-process/src/parts/Dom/Dom.js +22 -0
- package/static/1914fad/packages/renderer-process/src/parts/DomPool/DomPool.js +17 -0
- package/static/1914fad/packages/renderer-process/src/parts/DomScheduler/DomScheduler.js +18 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/Editor.js +623 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/EditorHelper.js +28 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerCursor.js +129 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerDecoration2.js +13 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerDiagnostics.js +55 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerLineNumbers.js +12 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerMarker.js +96 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerScreenReader.js +45 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerScrollBar.js +95 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerSelections.js +70 -0
- package/static/1914fad/packages/renderer-process/src/parts/Editor/LayerText.js +120 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorController/EditorController.js +18 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorError/EditorError.ipc.js +6 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorError/EditorError.js +28 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorGroup/EditorGroup.js +55 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorHover/EditorHover.ipc.js +6 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorHover/EditorHover.js +22 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorRename/EditorRename.ipc.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorRename/EditorRename.js +39 -0
- package/static/1914fad/packages/renderer-process/src/parts/EditorTab/EditorTab.js +128 -0
- package/static/1914fad/packages/renderer-process/src/parts/FindWidget/FindWidget.ipc.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/FindWidget/FindWidget.js +56 -0
- package/static/1914fad/packages/renderer-process/src/parts/Focus/Focus.js +50 -0
- package/static/1914fad/packages/renderer-process/src/parts/FocusHighlight/FocusHighlight.js +12 -0
- package/static/1914fad/packages/renderer-process/src/parts/GlobalEventBus/GlobalEventBus.js +26 -0
- package/static/1914fad/packages/renderer-process/src/parts/ImagePreview/ImagePreview.ipc.js +9 -0
- package/static/1914fad/packages/renderer-process/src/parts/ImagePreview/ImagePreview.js +69 -0
- package/static/1914fad/packages/renderer-process/src/parts/InputBox/InputBox.js +10 -0
- package/static/1914fad/packages/renderer-process/src/parts/KeyBindings/KeyBindings.ipc.js +7 -0
- package/static/1914fad/packages/renderer-process/src/parts/KeyBindings/KeyBindings.js +164 -0
- package/static/1914fad/packages/renderer-process/src/parts/Layout/Layout.ipc.js +17 -0
- package/static/1914fad/packages/renderer-process/src/parts/Layout/Layout.js +237 -0
- package/static/1914fad/packages/renderer-process/src/parts/LocalStorage/LocalStorage.ipc.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/LocalStorage/LocalStorage.js +11 -0
- package/static/1914fad/packages/renderer-process/src/parts/Location/Location.ipc.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/Location/Location.js +22 -0
- package/static/1914fad/packages/renderer-process/src/parts/MenuItem/MenuItem.js +60 -0
- package/static/1914fad/packages/renderer-process/src/parts/Meta/Meta.ipc.js +6 -0
- package/static/1914fad/packages/renderer-process/src/parts/Meta/Meta.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/Navigation/Navigation.js +33 -0
- package/static/1914fad/packages/renderer-process/src/parts/Notification/Notification.ipc.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/Notification/Notification.js +79 -0
- package/static/1914fad/packages/renderer-process/src/parts/OldMenu/Menu.ipc.js +13 -0
- package/static/1914fad/packages/renderer-process/src/parts/OldMenu/Menu.js +335 -0
- package/static/1914fad/packages/renderer-process/src/parts/OldMenu/Menu2.js +121 -0
- package/static/1914fad/packages/renderer-process/src/parts/Platform/Platform.js +128 -0
- package/static/1914fad/packages/renderer-process/src/parts/Renderer/Renderer.js +29 -0
- package/static/1914fad/packages/renderer-process/src/parts/Renderer/RendererExtension.js +75 -0
- package/static/1914fad/packages/renderer-process/src/parts/Renderer/RendererQuickPick.js +29 -0
- package/static/1914fad/packages/renderer-process/src/parts/Renderer/RendererSearchResult.js +18 -0
- package/static/1914fad/packages/renderer-process/src/parts/Renderer/RendererSuggestWidget.js +17 -0
- package/static/1914fad/packages/renderer-process/src/parts/Renderer/RendererTree.js +40 -0
- package/static/1914fad/packages/renderer-process/src/parts/RendererWorker/RendererWorker.ipc.js +6 -0
- package/static/1914fad/packages/renderer-process/src/parts/RendererWorker/RendererWorker.js +71 -0
- package/static/1914fad/packages/renderer-process/src/parts/ServiceWorker/ServiceWorker.ipc.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/ServiceWorker/ServiceWorker.js +36 -0
- package/static/1914fad/packages/renderer-process/src/parts/SessionStorage/SessionStorage.ipc.js +8 -0
- package/static/1914fad/packages/renderer-process/src/parts/SessionStorage/SessionStorage.js +11 -0
- package/static/1914fad/packages/renderer-process/src/parts/Terminal/Terminal.ipc.js +6 -0
- package/static/1914fad/packages/renderer-process/src/parts/Terminal/Terminal.js +18 -0
- package/static/1914fad/packages/renderer-process/src/parts/TitleBarMenuBar/TitleBarMenuBar.js +291 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ActiveViewlet.js +33 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ExplorerModel.js +45 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/TreeProviderJson.js +136 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/TreeProviderNpm.js +0 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/TreeView.js +296 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/TreeView2.js +189 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/TreeViewClass.js +30 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/TreeViewNumber.js +25 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/Viewlet.ipc.js +14 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/Viewlet.js +220 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletActivityBar.js +180 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletClock.js +22 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletDebugConsole.js +24 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletEditorCompletion.js +126 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletEditorImage.js +24 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletEditorPlainText.js +21 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletEditorText.js +45 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletEmpty.js +16 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletExplorer.js +383 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletExtensions.js +473 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletIframe.js +18 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletImplementations.js +3 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletList.js +218 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletLocations.js +138 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletMain.js +304 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletOutput.js +98 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletPanel.js +112 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletProblems.js +31 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletQuickPick.js +339 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletReferences.js +3 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletRunAndDebug.js +42 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletSearch.js +179 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletSideBar.js +57 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletSourceControl.js +94 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletStatusBar.js +115 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletTerminal.js +109 -0
- package/static/1914fad/packages/renderer-process/src/parts/Viewlet/ViewletTitleBar.js +33 -0
- package/static/1914fad/packages/renderer-process/src/parts/ViewletController/ViewletProblems.controller.js +22 -0
- package/static/1914fad/packages/renderer-process/src/parts/WebWorker/WebWorker.js +46 -0
- package/static/1914fad/packages/renderer-process/src/parts/Widget/Widget.js +50 -0
- package/static/1914fad/packages/renderer-process/src/parts/WidgetManager/WidgetManager.js +30 -0
- package/static/1914fad/packages/renderer-process/src/parts/Window/Window.ipc.js +11 -0
- package/static/1914fad/packages/renderer-process/src/parts/Window/Window.js +17 -0
- package/static/1914fad/packages/renderer-process/src/rendererProcessMain.js +92 -0
- package/static/1914fad/packages/renderer-process/src/shared/findIndex.js +20 -0
- package/static/1914fad/packages/renderer-worker/dist/rendererWorkerMain.js +19579 -0
- package/static/1914fad/packages/renderer-worker/dist/rendererWorkerMain.js.map +1 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Ajax/Ajax.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Ajax/Ajax.js +77 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Arrays/Arrays.js +25 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Assert/Assert.js +76 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Audio/Audio.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Audio/Audio.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Base64/Base64.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Base64/Base64.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Blob/Blob.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Blob/Blob.js +5 -0
- package/static/1914fad/packages/renderer-worker/src/parts/CacheStorage/CacheStorage.ipc.js +10 -0
- package/static/1914fad/packages/renderer-worker/src/parts/CacheStorage/CacheStorage.js +151 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Callback/Callback.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Callback/Callback.js +50 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ClipBoard/ClipBoard.ipc.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ClipBoard/ClipBoard.js +55 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ColorPicker/ColorPicker.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ColorPicker/ColorPicker.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ColorTheme/Color.js +170 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ColorTheme/ColorTheme.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ColorTheme/ColorTheme.js +114 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ColorThemeFromJson/ColorThemeFromJson.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ColorThemeFromJson/ColorThemeFromJson.js +124 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Command/Command.js +907 -0
- package/static/1914fad/packages/renderer-worker/src/parts/CommandInfo/CommandInfo.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/CommandInfo/CommandInfo.js +456 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Context/ContextImpl.js +17 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ContextMenu/ContextMenu.ipc.js +14 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ContextMenu/ContextMenu.js +15 -0
- package/static/1914fad/packages/renderer-worker/src/parts/CustomEditor/CustomEditor.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/CustomEditor/CustomEditorExtension.js +14 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Developer/Developer.ipc.js +26 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Developer/Developer.js +533 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Dialog/Dialog.ipc.js +10 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Dialog/Dialog.js +107 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Editor/Editor.js +351 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Editor/EditorCursor.js +73 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Editor/EditorScrolling.js +22 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Editor/EditorSelection.js +127 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Editor/EditorText.js +306 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommand.ipc.js +165 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandApplyEdit.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandBlur.js +20 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCancelSelection.js +15 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCompletion.js +228 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandComposition.js +48 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopy.js +20 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopyLineDown.js +22 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCopyLineUp.js +15 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorCharacterLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorCharacterRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorDown.js +21 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorEnd.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHome.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHorizontalLeft.js +30 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorHorizontalRight.js +30 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorSet.js +11 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorUp.js +21 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorVertical.js +92 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordLeft.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordPartLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordPartRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCursorWordRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandCut.js +17 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteAllLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteAllRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteCharacterLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteCharacterRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontal.js +25 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontalLeft.js +36 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteHorizontalRight.js +40 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteSelection.js +24 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordPartLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordPartRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDeleteWordRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandDelta.js +146 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandFormat.js +26 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetPositionLeft.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetPositionRight.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGetSelectionFromNativeRange.js +26 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGoToDefinition.js +106 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandGoToTypeDefinition.js +116 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleContextMenu.js +10 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleDoubleClick.js +11 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleMouseMove.js +33 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleMouseMoveWithAltKey.js +89 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleNativeBeforeInputFromContentEditable.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleNativeSelectionChange.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleScrollBarClick.js +52 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleScrollBarMove.js +26 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleSingleClick.js +38 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTab.js +49 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchEnd.js +31 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchMove.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTouchStart.js +17 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleTripleClick.js +11 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandHandleWheel.js +20 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndent.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentLess.js +27 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentMore.js +27 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandIndentSelection.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandInsertLineBreak.js +32 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveLineDown.js +30 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveLineUp.js +29 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveRectangleSelection.js +26 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveRectangleSelectionPx.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveSelection.js +72 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandMoveSelectionPx.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPaste.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPasteText.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandPosition.js +34 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandReplaceRange.js +1 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandReplaceSelection.js +15 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSave.js +21 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAll.js +16 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllOccurrences.js +146 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectAllRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectCharacterLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectCharacterRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectHorizontalLeft.js +31 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectHorizontalRight.js +24 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectInsideString.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectLine.js +25 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectNextOccurrence.js +235 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectPreviousOccurrence.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWord.js +33 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWordLeft.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelectWordRight.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSelection.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetDecorations.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetDeltaY.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSetLanguageId.js +23 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandShowMessage.js +42 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandSnippet.js +45 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandTabCompletion.js +24 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleBlockComment.js +226 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleComment.js +14 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandToggleLineComment.js +105 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandType.js +110 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandUndo.js +24 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorCommandUnindent.js +116 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorCommand/EditorIndent.js +49 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorDiagnostics/EditorDiagnostics.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorDiagnostics/EditorDiagnostics.js +103 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorError/EditorError.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorError/EditorError.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorRename/EditorRename.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/EditorRename/EditorRename.js +94 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Env/Env.js +1 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ErrorHandling/ErrorHandling.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ErrorHandling/ErrorHandling.js +91 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostBraceCompletion.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostClosingTagCompletion.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCommands.js +20 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCompletion.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostCore.js +46 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostDefinition.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostDiagnostic.js +15 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostFileSystem.js +93 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostFormatting.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostHover.js +11 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostImplementation.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostLanguages.js +37 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostManagement.js +86 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostOutput.js +11 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostQuickPick.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostReference.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostRename.js +21 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostSemanticTokens.js +16 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostSourceControl.js +21 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostStatusBarItems.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTabCompletion.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTextDocument.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/ExtensionHostTypeDefinition.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionHost/shared.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionManagement/ExtensionManagement.js +48 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionMarketplace/ExtensionMarketplace.js +14 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionMeta/ExtensionMeta.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Extensions/Extensions.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Extensions/Extensions.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ExtensionsSomething/ExtensionsSomething.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FileSystem/FileSystem.ipc.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FileSystem/FileSystem.js +101 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FileSystem/FileSystemApp.js +124 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FileSystem/FileSystemData.js +37 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FileSystem/FileSystemDisk.js +69 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FileSystem/FileSystemGitHub.js +77 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FileSystem/FileSystemWeb.js +304 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FindInWorkspace/FindInWorkspace.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FindInWorkspace/FindInWorkspace.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FindWidget/FindWidget.ipc.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FindWidget/FindWidget.js +55 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Focus/Focus.js +22 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Format/Format.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Format/Format.js +44 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FuzzySearch/FuzzySearch.js +1 -0
- package/static/1914fad/packages/renderer-worker/src/parts/FuzzySearch/FuzzySearchMrAleph.js +24 -0
- package/static/1914fad/packages/renderer-worker/src/parts/GitHubRestApi/GitHubRestApi.js +30 -0
- package/static/1914fad/packages/renderer-worker/src/parts/GlobalEventBus/GlobalEventBus.js +41 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Highlight/Highlight.js +52 -0
- package/static/1914fad/packages/renderer-worker/src/parts/History/History.js +5 -0
- package/static/1914fad/packages/renderer-worker/src/parts/IconTheme/IconTheme.ipc.js +10 -0
- package/static/1914fad/packages/renderer-worker/src/parts/IconTheme/IconTheme.js +162 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Id/Id.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ImagePreview/ImagePreview.ipc.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ImagePreview/ImagePreview.js +50 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Ipc/Ipc.js +20 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Json/Json.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/JsonRpc/JsonRpc.js +22 -0
- package/static/1914fad/packages/renderer-worker/src/parts/KeyBindings/KeyBindings.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/KeyBindings/KeyBindings.js +53 -0
- package/static/1914fad/packages/renderer-worker/src/parts/KeyBindingsInitial/KeyBindingsInitial.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/KeyBindingsInitial/KeyBindingsInitial.js +29 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Languages/Languages.js +79 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Layout/Layout.ipc.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Layout/Layout.js +412 -0
- package/static/1914fad/packages/renderer-worker/src/parts/LifeCycle/LifeCycle.js +44 -0
- package/static/1914fad/packages/renderer-worker/src/parts/List/List.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Listener/Listener.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Listener/Listener.js +24 -0
- package/static/1914fad/packages/renderer-worker/src/parts/LocalStorage/LocalStorage.ipc.js +12 -0
- package/static/1914fad/packages/renderer-worker/src/parts/LocalStorage/LocalStorage.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Location/Location.js +16 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/Main.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainCloseActiveEditor.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainCloseAllEditors.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainCloseEditorsToTheLeft.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainCloseEditorsToTheRight.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainFocusFirst.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainFocusIndex.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainFocusLast.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainFocusNext.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Main/MainFocusPrevious.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Mediator/Mediator.js +4 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Menu/Menu.ipc.js +14 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Menu/Menu.js +343 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuCore/MenuCore.js +47 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntries.js +45 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesActivityBar.js +34 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesActivityBarAdditionalViews.js +17 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesEdit.js +58 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesEditor.js +42 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorer.js +110 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorerFile.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesExplorerFolder.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesFile.js +52 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesGo.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesHelp.js +16 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesManageExtension.js +28 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesOpenRecent.js +48 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesRun.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesSelection.js +10 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesSettings.js +28 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTab.js +29 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTerminal.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesTitleBar.js +78 -0
- package/static/1914fad/packages/renderer-worker/src/parts/MenuEntries/MenuEntriesView.js +3 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Navigation/Navigation.ipc.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Navigation/Navigation.js +148 -0
- package/static/1914fad/packages/renderer-worker/src/parts/NestedError/NestedError.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Notification/Notification.ipc.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Notification/Notification.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Open/Open.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Open/Open.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Panel/Panel.ipc.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Performance/Performance.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Platform/Platform.js +183 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Position/Position.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Preferences/Preferences.ipc.js +11 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Preferences/Preferences.js +95 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPick.ipc.js +22 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPick.js +455 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickColorTheme.js +66 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickCommand.js +108 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickEverything.js +121 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickFile.js +80 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickGoToLine.js +59 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickNoop.js +27 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickNumber.js +57 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickOpenRecent.js +56 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickSymbol.js +30 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickView.js +31 -0
- package/static/1914fad/packages/renderer-worker/src/parts/QuickPick/QuickPickWorkspaceSymbol.js +32 -0
- package/static/1914fad/packages/renderer-worker/src/parts/RecentlyOpened/RecentlyOpened.ipc.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/RecentlyOpened/RecentlyOpened.js +82 -0
- package/static/1914fad/packages/renderer-worker/src/parts/RendererProcess/RendererProcess.js +108 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SaveState/SaveState.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SaveState/SaveState.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ServiceWorker/ServiceWorker.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ServiceWorker/ServiceWorker.js +37 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SessionStorage/SessionStorage.ipc.js +9 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SessionStorage/SessionStorage.js +30 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SharedProcess/SharedProcess.js +167 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SourceControl/SourceControl.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SourceControl/SourceControl.js +38 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Storage/Storage.js +27 -0
- package/static/1914fad/packages/renderer-worker/src/parts/SyntaxHighlightingWorker/SyntaxHighlightingWorker.js +33 -0
- package/static/1914fad/packages/renderer-worker/src/parts/TextDocument/TextDocument.js +190 -0
- package/static/1914fad/packages/renderer-worker/src/parts/TextSegmenter/TextSegmenter.js +37 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Timers/Timers.js +25 -0
- package/static/1914fad/packages/renderer-worker/src/parts/TitleBarMenuBar/TitleBarMenuBar.ipc.js +22 -0
- package/static/1914fad/packages/renderer-worker/src/parts/TitleBarMenuBar/TitleBarMenuBar.js +245 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Tokenizer/TokenizePlainText.js +33 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Tokenizer/Tokenizer.js +70 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/Viewlet.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/Viewlet.js +185 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletActivityBar.ipc.js +20 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletActivityBar.js +399 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletClock.js +36 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletContextMenu.js +70 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletCounter.js +44 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletDebugConsole.js +20 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletEditorCompletion.ipc.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletEditorCompletion.js +222 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletEditorImage.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletEditorPlainText.js +43 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletEditorText.js +164 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletEmpty.js +18 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletExplorer.ipc.js +37 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletExplorer.js +1063 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletExtension.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletExtensions.ipc.js +25 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletExtensions.js +773 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletExtensionsHeader.js +103 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletExtensionsList.js +559 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletIframe.js +40 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletImplementations.js +39 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletList.ipc.js +0 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletList.js +299 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletLocations.ipc.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletLocations.js +238 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletMain.ipc.js +23 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletMain.js +531 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletNoop.js +19 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletOutput.js +111 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletPanel.js +90 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletProblems.js +55 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletQuickPick.js +401 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletReferences.js +38 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletRunAndDebug.js +32 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletSearch.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletSearch.js +162 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletSideBar.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletSideBar.js +160 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletSourceControl.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletSourceControl.js +109 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletStatusBar.ipc.js +7 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletStatusBar.js +143 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletTerminal.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletTerminal.js +82 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletTitleBar.js +49 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Viewlet/ViewletTodoList.js +29 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ViewletManager/ViewletManager.js +237 -0
- package/static/1914fad/packages/renderer-worker/src/parts/ViewletStates/ViewletStates.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/WebSocket/WebSocket.js +28 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Window/Window.ipc.js +13 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Window/Window.js +61 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Workbench/Workbench.ipc.js +6 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Workbench/Workbench.js +184 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Worker/Worker.js +34 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Workspace/Workspace.ipc.js +8 -0
- package/static/1914fad/packages/renderer-worker/src/parts/Workspace/Workspace.js +172 -0
- package/static/1914fad/packages/renderer-worker/src/rendererWorkerMain.js +7 -0
- package/static/1914fad/sounds/bell.oga +0 -0
- package/static/1914fad/static/js/blob-util.js +143 -0
- package/static/1914fad/static/js/js-base64.js +296 -0
- package/static/1914fad/static/js/ky.js +345 -0
- package/static/1914fad/static/js/p-min-delay.js +9 -0
- package/static/1914fad/static/js/pretty-bytes.js +88 -0
- package/static/1914fad/static/js/termterm.js +1511 -0
- package/static/1914fad/static/js/yoctodelay.js +2 -0
- package/static/favicon.ico +0 -0
- package/static/images/screenshot.png +0 -0
- package/static/index.html +125 -0
- package/static/manifest.json +34 -0
- package/static/serviceWorker.js +97 -0
|
@@ -0,0 +1,3795 @@
|
|
|
1
|
+
const MODULE_NOTIFICATION = 2;
|
|
2
|
+
const MODULE_VIEWLET_SOURCE_CONTROL = 5;
|
|
3
|
+
const MODULE_VIEW_SERVICE = 9;
|
|
4
|
+
const MODULE_WINDOW = 14;
|
|
5
|
+
const MODULE_DEVELOPER = 15;
|
|
6
|
+
const MODULE_LAYOUT = 16;
|
|
7
|
+
const MODULE_PANEL = 18;
|
|
8
|
+
const MODULE_WORKBENCH = 20;
|
|
9
|
+
const MODULE_VIEWLET = 21;
|
|
10
|
+
const MODULE_VIEWLET_TERMINAL = 22;
|
|
11
|
+
const MODULE_FIND_WIDGET = 23;
|
|
12
|
+
const MODULE_KEYBINDINGS = 26;
|
|
13
|
+
const MODULE_MENU = 31;
|
|
14
|
+
const MODULE_RENDERER_WORKER = 33;
|
|
15
|
+
const MODULE_SESSION_STORAGE = 34;
|
|
16
|
+
const MODULE_LOCAL_STORAGE = 35;
|
|
17
|
+
const MODULE_DIALOG = 36;
|
|
18
|
+
const MODULE_EDITOR_HOVER = 37;
|
|
19
|
+
const MODULE_CSS = 38;
|
|
20
|
+
const MODULE_EDITOR_RENAME = 39;
|
|
21
|
+
const MODULE_EDITOR_ERROR = 40;
|
|
22
|
+
const MODULE_EDITOR_CONTROLLER = 41;
|
|
23
|
+
const MODULE_SERVICE_WORKER = 42;
|
|
24
|
+
const MODULE_IMAGE_PREVIEW = 43;
|
|
25
|
+
const MODULE_LOCATION = 44;
|
|
26
|
+
const MODULE_AUDIO = 45;
|
|
27
|
+
const MODULE_META = 46;
|
|
28
|
+
|
|
29
|
+
const state$b = {
|
|
30
|
+
commands: Object.create(null),
|
|
31
|
+
pendingModules: Object.create(null),
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const loadModule = (moduleId) => {
|
|
35
|
+
switch (moduleId) {
|
|
36
|
+
case MODULE_NOTIFICATION:
|
|
37
|
+
return import('./Notification.ipc.js')
|
|
38
|
+
case MODULE_VIEWLET_SOURCE_CONTROL:
|
|
39
|
+
return import('./ViewletExplorer.js')
|
|
40
|
+
case MODULE_WINDOW:
|
|
41
|
+
return Promise.resolve().then(function () { return M30; })
|
|
42
|
+
case MODULE_DEVELOPER:
|
|
43
|
+
return import('./Developer.ipc.js')
|
|
44
|
+
case MODULE_LAYOUT:
|
|
45
|
+
return Promise.resolve().then(function () { return M2; })
|
|
46
|
+
case MODULE_VIEWLET:
|
|
47
|
+
return Promise.resolve().then(function () { return M6; })
|
|
48
|
+
case MODULE_VIEWLET_TERMINAL:
|
|
49
|
+
return import('./ViewletTerminal.js')
|
|
50
|
+
case MODULE_FIND_WIDGET:
|
|
51
|
+
return import('./FindWidget.ipc.js')
|
|
52
|
+
case MODULE_KEYBINDINGS:
|
|
53
|
+
return Promise.resolve().then(function () { return M7; })
|
|
54
|
+
case MODULE_MENU:
|
|
55
|
+
return import('./Menu.ipc.js')
|
|
56
|
+
case MODULE_RENDERER_WORKER:
|
|
57
|
+
return Promise.resolve().then(function () { return M17; })
|
|
58
|
+
case MODULE_SESSION_STORAGE:
|
|
59
|
+
return import('./SessionStorage.ipc.js')
|
|
60
|
+
case MODULE_LOCAL_STORAGE:
|
|
61
|
+
return Promise.resolve().then(function () { return M15; })
|
|
62
|
+
case MODULE_DIALOG:
|
|
63
|
+
return import('./Dialog.ipc.js')
|
|
64
|
+
case MODULE_EDITOR_HOVER:
|
|
65
|
+
return import('./EditorHover.ipc.js')
|
|
66
|
+
case MODULE_CSS:
|
|
67
|
+
return Promise.resolve().then(function () { return M1; })
|
|
68
|
+
case MODULE_EDITOR_RENAME:
|
|
69
|
+
return import('./EditorRename.ipc.js')
|
|
70
|
+
case MODULE_EDITOR_ERROR:
|
|
71
|
+
return import('./EditorError.ipc.js')
|
|
72
|
+
case MODULE_SERVICE_WORKER:
|
|
73
|
+
return Promise.resolve().then(function () { return M22; })
|
|
74
|
+
case MODULE_IMAGE_PREVIEW:
|
|
75
|
+
return import('./ImagePreview.ipc.js')
|
|
76
|
+
case MODULE_LOCATION:
|
|
77
|
+
return Promise.resolve().then(function () { return M26; })
|
|
78
|
+
case MODULE_AUDIO:
|
|
79
|
+
return import('./Audio.ipc.js')
|
|
80
|
+
case MODULE_META:
|
|
81
|
+
return import('./Meta.ipc.js')
|
|
82
|
+
default:
|
|
83
|
+
throw new Error('unknown module')
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const getOrLoadModule = (moduleId) => {
|
|
88
|
+
if (!state$b.pendingModules[moduleId]) {
|
|
89
|
+
const importPromise = loadModule(moduleId);
|
|
90
|
+
state$b.pendingModules[moduleId] = importPromise.then((module) =>
|
|
91
|
+
module.__initialize__()
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
return state$b.pendingModules[moduleId]
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const getModuleId = (commandId) => {
|
|
98
|
+
switch (commandId) {
|
|
99
|
+
case 281:
|
|
100
|
+
case 282:
|
|
101
|
+
case 283:
|
|
102
|
+
case 284:
|
|
103
|
+
return MODULE_DEVELOPER
|
|
104
|
+
case 549:
|
|
105
|
+
case 550:
|
|
106
|
+
case 551:
|
|
107
|
+
return MODULE_VIEW_SERVICE
|
|
108
|
+
case 755:
|
|
109
|
+
case 756:
|
|
110
|
+
return MODULE_KEYBINDINGS
|
|
111
|
+
case 764:
|
|
112
|
+
case 765:
|
|
113
|
+
case 766:
|
|
114
|
+
case 767:
|
|
115
|
+
case 768:
|
|
116
|
+
case 769:
|
|
117
|
+
case 770:
|
|
118
|
+
case 771:
|
|
119
|
+
case 772:
|
|
120
|
+
case 773:
|
|
121
|
+
case 774:
|
|
122
|
+
case 775:
|
|
123
|
+
case 776:
|
|
124
|
+
case 777:
|
|
125
|
+
return MODULE_EDITOR_CONTROLLER
|
|
126
|
+
case 991:
|
|
127
|
+
case 992:
|
|
128
|
+
case 993:
|
|
129
|
+
case 994:
|
|
130
|
+
case 995:
|
|
131
|
+
case 996:
|
|
132
|
+
case 997:
|
|
133
|
+
case 998:
|
|
134
|
+
case 999:
|
|
135
|
+
return MODULE_NOTIFICATION
|
|
136
|
+
case 1100:
|
|
137
|
+
case 1101:
|
|
138
|
+
case 1102:
|
|
139
|
+
case 1103:
|
|
140
|
+
case 1104:
|
|
141
|
+
case 1105:
|
|
142
|
+
case 1106:
|
|
143
|
+
case 1107:
|
|
144
|
+
case 1108:
|
|
145
|
+
case 1109:
|
|
146
|
+
case 1110:
|
|
147
|
+
case 1111:
|
|
148
|
+
case 2222:
|
|
149
|
+
case 2223:
|
|
150
|
+
return MODULE_LAYOUT
|
|
151
|
+
case 3022:
|
|
152
|
+
case 3023:
|
|
153
|
+
case 3024:
|
|
154
|
+
case 3025:
|
|
155
|
+
case 3026:
|
|
156
|
+
case 3027:
|
|
157
|
+
case 3028:
|
|
158
|
+
case 3029:
|
|
159
|
+
case 3030:
|
|
160
|
+
case 3031:
|
|
161
|
+
case 3032:
|
|
162
|
+
case 3033:
|
|
163
|
+
case 3034:
|
|
164
|
+
case 3035:
|
|
165
|
+
case 3036:
|
|
166
|
+
case 3037:
|
|
167
|
+
case 3038:
|
|
168
|
+
return MODULE_VIEWLET
|
|
169
|
+
case 3211:
|
|
170
|
+
case 3212:
|
|
171
|
+
case 3213:
|
|
172
|
+
case 3214:
|
|
173
|
+
case 3215:
|
|
174
|
+
case 3216:
|
|
175
|
+
case 3217:
|
|
176
|
+
case 3218:
|
|
177
|
+
case 3219:
|
|
178
|
+
return MODULE_AUDIO
|
|
179
|
+
case 3666:
|
|
180
|
+
case 3667:
|
|
181
|
+
case 3668:
|
|
182
|
+
case 3669:
|
|
183
|
+
case 3670:
|
|
184
|
+
case 3671:
|
|
185
|
+
case 3672:
|
|
186
|
+
case 3673:
|
|
187
|
+
case 3674:
|
|
188
|
+
case 3675:
|
|
189
|
+
case 3676:
|
|
190
|
+
case 3677:
|
|
191
|
+
case 3678:
|
|
192
|
+
case 3679:
|
|
193
|
+
return MODULE_IMAGE_PREVIEW
|
|
194
|
+
case 3700:
|
|
195
|
+
case 3701:
|
|
196
|
+
case 3702:
|
|
197
|
+
case 3703:
|
|
198
|
+
case 3704:
|
|
199
|
+
case 3705:
|
|
200
|
+
return MODULE_EDITOR_ERROR
|
|
201
|
+
case 4100:
|
|
202
|
+
case 4102:
|
|
203
|
+
return MODULE_FIND_WIDGET
|
|
204
|
+
case 4512:
|
|
205
|
+
return MODULE_EDITOR_RENAME
|
|
206
|
+
case 4551:
|
|
207
|
+
return MODULE_CSS
|
|
208
|
+
case 5611:
|
|
209
|
+
case 5612:
|
|
210
|
+
case 5613:
|
|
211
|
+
case 5614:
|
|
212
|
+
case 5615:
|
|
213
|
+
case 5616:
|
|
214
|
+
case 5617:
|
|
215
|
+
case 5618:
|
|
216
|
+
case 5619:
|
|
217
|
+
return MODULE_LOCATION
|
|
218
|
+
case 6216:
|
|
219
|
+
case 6217:
|
|
220
|
+
case 6218:
|
|
221
|
+
case 6219:
|
|
222
|
+
case 6220:
|
|
223
|
+
case 6221:
|
|
224
|
+
case 6222:
|
|
225
|
+
case 6223:
|
|
226
|
+
case 6224:
|
|
227
|
+
return MODULE_EDITOR_HOVER
|
|
228
|
+
case 6661:
|
|
229
|
+
case 6662:
|
|
230
|
+
case 6663:
|
|
231
|
+
case 6664:
|
|
232
|
+
return MODULE_PANEL
|
|
233
|
+
case 8181:
|
|
234
|
+
return MODULE_VIEWLET_SOURCE_CONTROL
|
|
235
|
+
case 33111:
|
|
236
|
+
return MODULE_WORKBENCH
|
|
237
|
+
case 7833:
|
|
238
|
+
case 7834:
|
|
239
|
+
case 7835:
|
|
240
|
+
case 7836:
|
|
241
|
+
case 7837:
|
|
242
|
+
case 7838:
|
|
243
|
+
case 7839:
|
|
244
|
+
case 7840:
|
|
245
|
+
return MODULE_DIALOG
|
|
246
|
+
case 7900:
|
|
247
|
+
case 7901:
|
|
248
|
+
case 7902:
|
|
249
|
+
case 7903:
|
|
250
|
+
case 7904:
|
|
251
|
+
case 7905:
|
|
252
|
+
case 7906:
|
|
253
|
+
case 7907:
|
|
254
|
+
case 7908:
|
|
255
|
+
case 7909:
|
|
256
|
+
return MODULE_MENU
|
|
257
|
+
case 8080:
|
|
258
|
+
case 8081:
|
|
259
|
+
case 8082:
|
|
260
|
+
case 8083:
|
|
261
|
+
case 8084:
|
|
262
|
+
case 8085:
|
|
263
|
+
return MODULE_WINDOW
|
|
264
|
+
case 8976:
|
|
265
|
+
case 8977:
|
|
266
|
+
case 8978:
|
|
267
|
+
return MODULE_SESSION_STORAGE
|
|
268
|
+
case 8986:
|
|
269
|
+
case 8987:
|
|
270
|
+
case 8988:
|
|
271
|
+
return MODULE_LOCAL_STORAGE
|
|
272
|
+
case 9922:
|
|
273
|
+
return MODULE_VIEWLET_TERMINAL
|
|
274
|
+
case 11122:
|
|
275
|
+
return MODULE_META
|
|
276
|
+
case 43725:
|
|
277
|
+
case 43726:
|
|
278
|
+
case 43727:
|
|
279
|
+
case 43728:
|
|
280
|
+
case 43729:
|
|
281
|
+
return MODULE_SERVICE_WORKER
|
|
282
|
+
case 909090:
|
|
283
|
+
return MODULE_RENDERER_WORKER
|
|
284
|
+
default:
|
|
285
|
+
throw new Error(`command ${commandId} not found`)
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
const loadCommand = async (command) => {
|
|
290
|
+
await getOrLoadModule(getModuleId(command));
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
const register$1 = (commandId, listener) => {
|
|
294
|
+
state$b.commands[commandId] = listener;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
const hasThrown = new Set();
|
|
298
|
+
|
|
299
|
+
const executeCommandAsync = async (command, ...args) => {
|
|
300
|
+
try {
|
|
301
|
+
await loadCommand(command);
|
|
302
|
+
} catch (error) {
|
|
303
|
+
// @ts-ignore
|
|
304
|
+
throw new Error(`Failed to load command ${command}`, {
|
|
305
|
+
cause: error,
|
|
306
|
+
})
|
|
307
|
+
}
|
|
308
|
+
if (!(command in state$b.commands)) {
|
|
309
|
+
if (hasThrown.has(command)) {
|
|
310
|
+
return
|
|
311
|
+
}
|
|
312
|
+
hasThrown.add(command);
|
|
313
|
+
throw new Error(`Command did not register "${command}"`)
|
|
314
|
+
}
|
|
315
|
+
return execute(command, ...args)
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const execute = (command, ...args) => {
|
|
319
|
+
if (command in state$b.commands) {
|
|
320
|
+
return state$b.commands[command](...args)
|
|
321
|
+
}
|
|
322
|
+
return executeCommandAsync(command, ...args)
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
const setInlineStyle = (id, css) => {
|
|
326
|
+
const $ExistingStyle = document.getElementById(id);
|
|
327
|
+
if ($ExistingStyle) {
|
|
328
|
+
$ExistingStyle.textContent = css;
|
|
329
|
+
} else {
|
|
330
|
+
const $Style = document.createElement('style');
|
|
331
|
+
$Style.id = id;
|
|
332
|
+
$Style.textContent = css;
|
|
333
|
+
document.head.append($Style);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
const __initialize__$8 = () => {
|
|
338
|
+
register$1(4551, setInlineStyle);
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
var M1 = {
|
|
342
|
+
__proto__: null,
|
|
343
|
+
__initialize__: __initialize__$8
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
/* istanbul ignore file */
|
|
347
|
+
|
|
348
|
+
// TODO this should always be completely tree shaken out during build
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @returns {'electron'|'remote'|'web'}
|
|
352
|
+
*/
|
|
353
|
+
const getPlatform = () => {
|
|
354
|
+
// @ts-ignore
|
|
355
|
+
if (typeof PLATFORM !== 'undefined') {
|
|
356
|
+
// @ts-ignore
|
|
357
|
+
return PLATFORM
|
|
358
|
+
}
|
|
359
|
+
if (typeof process !== 'undefined' && process.env.NODE_ENV === 'test') {
|
|
360
|
+
return 'remote'
|
|
361
|
+
}
|
|
362
|
+
// @ts-ignore
|
|
363
|
+
const userAgentData = navigator.userAgentData;
|
|
364
|
+
// TODO this is probably a bad check but electron doesn't deliver anything and
|
|
365
|
+
// this will be tree shaken out anyway during build
|
|
366
|
+
if (userAgentData && userAgentData.brands.length === 0) {
|
|
367
|
+
return 'electron'
|
|
368
|
+
}
|
|
369
|
+
return 'remote'
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
const platform = getPlatform();
|
|
373
|
+
|
|
374
|
+
// TODO treeshake this function out when targeting electron
|
|
375
|
+
|
|
376
|
+
const state$a = {
|
|
377
|
+
cachedIsMobileOrTablet: undefined,
|
|
378
|
+
isMobileOrTablet() {
|
|
379
|
+
// @ts-ignore
|
|
380
|
+
const userAgentData = navigator.userAgentData;
|
|
381
|
+
if (userAgentData && userAgentData.mobile) {
|
|
382
|
+
return true
|
|
383
|
+
}
|
|
384
|
+
// copied from https://stackoverflow.com/questions/11381673/detecting-a-mobile-browser
|
|
385
|
+
let check = false
|
|
386
|
+
;(function (a) {
|
|
387
|
+
if (
|
|
388
|
+
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(
|
|
389
|
+
a
|
|
390
|
+
) ||
|
|
391
|
+
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[23]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(
|
|
392
|
+
a.slice(0, 4)
|
|
393
|
+
)
|
|
394
|
+
) {
|
|
395
|
+
check = true;
|
|
396
|
+
}
|
|
397
|
+
// @ts-ignore
|
|
398
|
+
})(navigator.userAgent || navigator.vendor || window.opera);
|
|
399
|
+
return check
|
|
400
|
+
},
|
|
401
|
+
getAssetDir() {
|
|
402
|
+
// @ts-ignore
|
|
403
|
+
if (typeof ASSET_DIR !== 'undefined') {
|
|
404
|
+
// @ts-ignore
|
|
405
|
+
return ASSET_DIR
|
|
406
|
+
}
|
|
407
|
+
if (platform === 'electron') {
|
|
408
|
+
return '../../../../..'
|
|
409
|
+
}
|
|
410
|
+
return ''
|
|
411
|
+
},
|
|
412
|
+
supportsHtml5Dialog() {
|
|
413
|
+
const $Dialog = document.createElement('dialog');
|
|
414
|
+
// @ts-ignore
|
|
415
|
+
return typeof $Dialog.showModal === 'function'
|
|
416
|
+
},
|
|
417
|
+
isElectron() {
|
|
418
|
+
return (
|
|
419
|
+
// @ts-ignore
|
|
420
|
+
window.myApi &&
|
|
421
|
+
// @ts-ignore
|
|
422
|
+
window.myApi.ipcConnect &&
|
|
423
|
+
// @ts-ignore
|
|
424
|
+
typeof window.myApi.ipcConnect === 'function'
|
|
425
|
+
)
|
|
426
|
+
},
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
const isMobileOrTablet = () => {
|
|
430
|
+
return state$a.isMobileOrTablet()
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
// TODO if necessary support more browser detection
|
|
434
|
+
const getBrowser = () => {
|
|
435
|
+
if (platform === 'electron') {
|
|
436
|
+
return 'electron'
|
|
437
|
+
}
|
|
438
|
+
// @ts-ignore
|
|
439
|
+
const userAgentData = navigator.userAgentData;
|
|
440
|
+
if (userAgentData) {
|
|
441
|
+
for (const brand of userAgentData.brands) {
|
|
442
|
+
const actualBrand = brand.brand.toLowerCase();
|
|
443
|
+
switch (actualBrand) {
|
|
444
|
+
case 'firefox':
|
|
445
|
+
return 'firefox'
|
|
446
|
+
case 'chromium':
|
|
447
|
+
return 'chromium'
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
452
|
+
if (userAgent.includes('firefox')) {
|
|
453
|
+
return 'firefox'
|
|
454
|
+
}
|
|
455
|
+
if (userAgent.includes('Electron')) {
|
|
456
|
+
return 'electron'
|
|
457
|
+
}
|
|
458
|
+
return 'chromium'
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
const getAssetDir = () => {
|
|
462
|
+
return state$a.getAssetDir()
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
const supportsHtml5Dialog = () => {
|
|
466
|
+
return state$a.supportsHtml5Dialog()
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
const isElectron = () => {
|
|
470
|
+
return state$a.isElectron()
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
var M18 = {
|
|
474
|
+
__proto__: null,
|
|
475
|
+
platform: platform,
|
|
476
|
+
state: state$a,
|
|
477
|
+
isMobileOrTablet: isMobileOrTablet,
|
|
478
|
+
getBrowser: getBrowser,
|
|
479
|
+
getAssetDir: getAssetDir,
|
|
480
|
+
supportsHtml5Dialog: supportsHtml5Dialog,
|
|
481
|
+
isElectron: isElectron
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
/* istanbul ignore file */
|
|
485
|
+
const METHOD_MESSAGE_PORT = 1;
|
|
486
|
+
const METHOD_MODULE_WORKER = 2;
|
|
487
|
+
const METHOD_REFERENCE_PORT = 3;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @type {number}
|
|
491
|
+
*/
|
|
492
|
+
const METHOD_PREFERRED = METHOD_MESSAGE_PORT;
|
|
493
|
+
|
|
494
|
+
const createModuleWorker = (url) => {
|
|
495
|
+
return new Worker(url, {
|
|
496
|
+
type: 'module',
|
|
497
|
+
})
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
const createMessagePort = async (url) => {
|
|
501
|
+
const port = await new Promise((resolve) => {
|
|
502
|
+
globalThis.acceptPort = resolve;
|
|
503
|
+
import(url);
|
|
504
|
+
});
|
|
505
|
+
delete globalThis.acceptPort;
|
|
506
|
+
return port
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
const createReferencePort = async (url) => {
|
|
510
|
+
const referencePort = await new Promise((resolve) => {
|
|
511
|
+
globalThis.acceptReferencePort = resolve;
|
|
512
|
+
import(url);
|
|
513
|
+
});
|
|
514
|
+
delete globalThis.acceptReferencePort;
|
|
515
|
+
return referencePort
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
const create$5 = async (url) => {
|
|
519
|
+
switch (METHOD_PREFERRED) {
|
|
520
|
+
case METHOD_MODULE_WORKER:
|
|
521
|
+
return createModuleWorker(url)
|
|
522
|
+
case METHOD_MESSAGE_PORT:
|
|
523
|
+
return createMessagePort(url)
|
|
524
|
+
case METHOD_REFERENCE_PORT:
|
|
525
|
+
return createReferencePort(url)
|
|
526
|
+
default:
|
|
527
|
+
throw new Error('unknown method')
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
// const URL_RENDERER_WORKER =
|
|
532
|
+
// '/packages/renderer-worker/distmin/rendererWorkerMain-0ead0bed.js'
|
|
533
|
+
|
|
534
|
+
const state$9 = {
|
|
535
|
+
send(message) {},
|
|
536
|
+
sendAndTransfer(message, transferables) {},
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
const handleMessageFromRendererWorker = (event) => {
|
|
540
|
+
const data = event.data;
|
|
541
|
+
if (event.ports && event.ports.length > 0) {
|
|
542
|
+
execute(...data, ...event.ports);
|
|
543
|
+
} else {
|
|
544
|
+
execute(...data);
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
const hydrate$3 = async (config) => {
|
|
549
|
+
const assetDir = getAssetDir();
|
|
550
|
+
const urlRendererWorker = `${assetDir}/packages/renderer-worker/src/rendererWorkerMain.js`;
|
|
551
|
+
const rendererWorker = await create$5(urlRendererWorker);
|
|
552
|
+
rendererWorker.onmessage = handleMessageFromRendererWorker;
|
|
553
|
+
state$9.send = (message) => {
|
|
554
|
+
rendererWorker.postMessage(message);
|
|
555
|
+
};
|
|
556
|
+
state$9.sendAndTransfer = (message, transferables) => {
|
|
557
|
+
rendererWorker.postMessage(message, transferables);
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
const send = (message) => {
|
|
562
|
+
if (!message[0]) {
|
|
563
|
+
console.warn('invalid message', message);
|
|
564
|
+
return
|
|
565
|
+
}
|
|
566
|
+
state$9.send(message);
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
const handleInvoke = async (callbackId, method, ...params) => {
|
|
570
|
+
let result;
|
|
571
|
+
try {
|
|
572
|
+
result = await execute(method, ...params);
|
|
573
|
+
} catch (error) {
|
|
574
|
+
state$9.send([
|
|
575
|
+
/* Callback.reject */ 67331,
|
|
576
|
+
/* callbackId */ callbackId,
|
|
577
|
+
/* error */ error,
|
|
578
|
+
]);
|
|
579
|
+
return
|
|
580
|
+
}
|
|
581
|
+
state$9.send([
|
|
582
|
+
/* Callback.resolve */ 67330,
|
|
583
|
+
/* callbackId */ callbackId,
|
|
584
|
+
/* result */ result,
|
|
585
|
+
]);
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
const state$8 = {
|
|
589
|
+
$ActivityBar: undefined,
|
|
590
|
+
$StatusBar: undefined,
|
|
591
|
+
$TitleBar: undefined,
|
|
592
|
+
$Main: undefined,
|
|
593
|
+
$SideBar: undefined,
|
|
594
|
+
$Panel: undefined,
|
|
595
|
+
$Workbench: undefined,
|
|
596
|
+
$SashSideBar: undefined,
|
|
597
|
+
$SashPanel: undefined,
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
// TODO when nodes are not visible, they are still kept in memory as detached dom nodes
|
|
601
|
+
// maybe it doesn't matter but maybe they should be garbage collected
|
|
602
|
+
|
|
603
|
+
const update = (points) => {
|
|
604
|
+
const $ActivityBar = state$8.$ActivityBar;
|
|
605
|
+
const $Main = state$8.$Main;
|
|
606
|
+
const $TitleBar = state$8.$TitleBar;
|
|
607
|
+
const $SideBar = state$8.$SideBar;
|
|
608
|
+
const $StatusBar = state$8.$StatusBar;
|
|
609
|
+
const $Panel = state$8.$Panel;
|
|
610
|
+
const $SashSideBar = state$8.$SashSideBar;
|
|
611
|
+
const $SashPanel = state$8.$SashPanel;
|
|
612
|
+
|
|
613
|
+
if (points.activityBarVisible) {
|
|
614
|
+
$ActivityBar.style.top = `${points.activityBarTop}px`;
|
|
615
|
+
$ActivityBar.style.left = `${points.activityBarLeft}px`;
|
|
616
|
+
$ActivityBar.style.width = `${points.activityBarWidth}px`;
|
|
617
|
+
$ActivityBar.style.height = `${points.activityBarHeight}px`;
|
|
618
|
+
$ActivityBar.style.display = '';
|
|
619
|
+
} else {
|
|
620
|
+
$ActivityBar.style.display = 'none';
|
|
621
|
+
}
|
|
622
|
+
if (points.mainVisible) {
|
|
623
|
+
$Main.style.top = `${points.mainTop}px`;
|
|
624
|
+
$Main.style.left = `${points.mainLeft}px`;
|
|
625
|
+
$Main.style.width = `${points.mainWidth}px`;
|
|
626
|
+
$Main.style.height = `${points.mainHeight}px`;
|
|
627
|
+
$Main.style.display = '';
|
|
628
|
+
} else {
|
|
629
|
+
$Main.style.display = 'none';
|
|
630
|
+
}
|
|
631
|
+
if (points.panelVisible) {
|
|
632
|
+
$Panel.style.top = `${points.panelTop}px`;
|
|
633
|
+
$Panel.style.left = `${points.panelLeft}px`;
|
|
634
|
+
$Panel.style.width = `${points.panelWidth}px`;
|
|
635
|
+
$Panel.style.height = `${points.panelHeight}px`;
|
|
636
|
+
$Panel.style.display = '';
|
|
637
|
+
|
|
638
|
+
$SashPanel.style.top = `${points.panelTop}px`;
|
|
639
|
+
$SashPanel.style.left = `${points.panelLeft}px`;
|
|
640
|
+
$SashPanel.style.width = `${points.panelWidth}px`;
|
|
641
|
+
} else {
|
|
642
|
+
$Panel.style.display = 'none';
|
|
643
|
+
}
|
|
644
|
+
if (points.sideBarVisible) {
|
|
645
|
+
$SideBar.style.top = `${points.sideBarTop}px`;
|
|
646
|
+
$SideBar.style.left = `${points.sideBarLeft}px`;
|
|
647
|
+
$SideBar.style.width = `${points.sideBarWidth}px`;
|
|
648
|
+
$SideBar.style.height = `${points.sideBarHeight}px`;
|
|
649
|
+
$SideBar.style.display = '';
|
|
650
|
+
|
|
651
|
+
$SashSideBar.style.left = `${points.sideBarLeft}px`;
|
|
652
|
+
$SashSideBar.style.top = `${points.sideBarTop}px`;
|
|
653
|
+
$SashSideBar.style.height = `${points.sideBarHeight}px`;
|
|
654
|
+
} else {
|
|
655
|
+
$SideBar.style.display = 'none';
|
|
656
|
+
}
|
|
657
|
+
if (points.statusBarVisible) {
|
|
658
|
+
$StatusBar.style.top = `${points.statusBarTop}px`;
|
|
659
|
+
$StatusBar.style.left = `${points.statusBarLeft}px`;
|
|
660
|
+
$StatusBar.style.width = `${points.statusBarWidth}px`;
|
|
661
|
+
$StatusBar.style.height = `${points.statusBarHeight}px`;
|
|
662
|
+
$StatusBar.style.display = '';
|
|
663
|
+
} else {
|
|
664
|
+
$StatusBar.style.display = 'none';
|
|
665
|
+
}
|
|
666
|
+
if (points.titleBarVisible) {
|
|
667
|
+
$TitleBar.style.top = `${points.titleBarTop}px`;
|
|
668
|
+
$TitleBar.style.left = `${points.titleBarLeft}px`;
|
|
669
|
+
$TitleBar.style.width = `${points.titleBarWidth}px`;
|
|
670
|
+
$TitleBar.style.height = `${points.titleBarHeight}px`;
|
|
671
|
+
$TitleBar.style.display = '';
|
|
672
|
+
} else {
|
|
673
|
+
// TODO remove elements from dom instead of hiding them
|
|
674
|
+
$TitleBar.style.display = 'none';
|
|
675
|
+
}
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
// export const get$ActivityBar = () => {
|
|
679
|
+
// return state.$ActivityBar
|
|
680
|
+
// }
|
|
681
|
+
|
|
682
|
+
// export const get$SideBar = () => {
|
|
683
|
+
// return state.$SideBar
|
|
684
|
+
// }
|
|
685
|
+
|
|
686
|
+
// export const get$Panel = () => {
|
|
687
|
+
// return state.$Panel
|
|
688
|
+
// }
|
|
689
|
+
|
|
690
|
+
// export const get$TitleBar = () => {
|
|
691
|
+
// return state.$TitleBar
|
|
692
|
+
// }
|
|
693
|
+
|
|
694
|
+
// export const get$Main = () => {
|
|
695
|
+
// return state.$Main
|
|
696
|
+
// }
|
|
697
|
+
|
|
698
|
+
const getTitleBarHeight = () => {
|
|
699
|
+
if (
|
|
700
|
+
// @ts-ignore
|
|
701
|
+
navigator.windowControlsOverlay &&
|
|
702
|
+
// @ts-ignore
|
|
703
|
+
navigator.windowControlsOverlay.getTitlebarAreaRect
|
|
704
|
+
) {
|
|
705
|
+
// @ts-ignore
|
|
706
|
+
const titleBarRect = navigator.windowControlsOverlay.getTitlebarAreaRect();
|
|
707
|
+
return titleBarRect.height
|
|
708
|
+
}
|
|
709
|
+
return 0
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
const getBounds = () => {
|
|
713
|
+
return {
|
|
714
|
+
windowWidth: window.innerWidth,
|
|
715
|
+
windowHeight: window.innerHeight,
|
|
716
|
+
titleBarHeight: getTitleBarHeight(),
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
const handleResize = (event) => {
|
|
721
|
+
send([
|
|
722
|
+
/* Layout.handleResize */ 1111,
|
|
723
|
+
/* bounds */ getBounds(),
|
|
724
|
+
]);
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
const handleSashPointerMove = (event) => {
|
|
728
|
+
// console.log({ event })
|
|
729
|
+
const x = event.clientX;
|
|
730
|
+
console.log({ x });
|
|
731
|
+
send([/* Layout.handleSashSideBarMove */ 1112, /* x */ x]);
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
const handleSashPointerUp = () => {
|
|
735
|
+
document.body.style.removeProperty('cursor');
|
|
736
|
+
window.removeEventListener('pointermove', handleSashPointerMove);
|
|
737
|
+
window.removeEventListener('pointerup', handleSashPointerUp);
|
|
738
|
+
const $Style = document.getElementById('SashStyle');
|
|
739
|
+
// @ts-ignore
|
|
740
|
+
$Style.remove();
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
const handleSashPointerDown = () => {
|
|
744
|
+
// TODO maybe add a class to body instead?
|
|
745
|
+
const $Style = document.createElement('style');
|
|
746
|
+
$Style.id = 'SashStyle';
|
|
747
|
+
$Style.textContent = `* {
|
|
748
|
+
cursor: col-resize !important;
|
|
749
|
+
pointer-events: none;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.SashVertical {
|
|
753
|
+
pointer-events: all;
|
|
754
|
+
}
|
|
755
|
+
.
|
|
756
|
+
`;
|
|
757
|
+
document.head.append($Style);
|
|
758
|
+
window.addEventListener('pointermove', handleSashPointerMove);
|
|
759
|
+
window.addEventListener('pointerup', handleSashPointerUp);
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
const hydrate$2 = (points) => {
|
|
763
|
+
const $ActivityBar = document.createElement('div');
|
|
764
|
+
$ActivityBar.id = 'ActivityBar';
|
|
765
|
+
|
|
766
|
+
const $StatusBar = document.createElement('div');
|
|
767
|
+
$StatusBar.id = 'StatusBar';
|
|
768
|
+
|
|
769
|
+
const $TitleBar = document.createElement('div');
|
|
770
|
+
$TitleBar.id = 'TitleBar';
|
|
771
|
+
|
|
772
|
+
const $Main = document.createElement('main');
|
|
773
|
+
$Main.id = 'Main';
|
|
774
|
+
|
|
775
|
+
const $SideBar = document.createElement('div');
|
|
776
|
+
$SideBar.id = 'SideBar';
|
|
777
|
+
|
|
778
|
+
const $Panel = document.createElement('div');
|
|
779
|
+
$Panel.id = 'Panel';
|
|
780
|
+
|
|
781
|
+
// TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
|
|
782
|
+
const $SashSideBar = document.createElement('div');
|
|
783
|
+
$SashSideBar.className = 'SashVertical';
|
|
784
|
+
|
|
785
|
+
// TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
|
|
786
|
+
const $SashPanel = document.createElement('div');
|
|
787
|
+
$SashPanel.className = 'SashHorizontal';
|
|
788
|
+
|
|
789
|
+
const $Workbench = document.createElement('div');
|
|
790
|
+
$Workbench.id = 'Workbench';
|
|
791
|
+
$Workbench.append(
|
|
792
|
+
$TitleBar,
|
|
793
|
+
$Main,
|
|
794
|
+
$SideBar,
|
|
795
|
+
$ActivityBar,
|
|
796
|
+
$Panel,
|
|
797
|
+
$StatusBar,
|
|
798
|
+
$SashSideBar,
|
|
799
|
+
$SashPanel
|
|
800
|
+
);
|
|
801
|
+
// TODO don't like the random side effects here
|
|
802
|
+
state$8.$ActivityBar = $ActivityBar;
|
|
803
|
+
state$8.$Main = $Main;
|
|
804
|
+
state$8.$Panel = $Panel;
|
|
805
|
+
state$8.$SideBar = $SideBar;
|
|
806
|
+
state$8.$StatusBar = $StatusBar;
|
|
807
|
+
state$8.$TitleBar = $TitleBar;
|
|
808
|
+
state$8.$Workbench = $Workbench;
|
|
809
|
+
state$8.$SashPanel = $SashPanel;
|
|
810
|
+
state$8.$SashSideBar = $SashSideBar;
|
|
811
|
+
update(points);
|
|
812
|
+
// document.body.setAttribute('role', 'application') // TODO this doesn't seem to work
|
|
813
|
+
$Workbench.setAttribute('role', 'application');
|
|
814
|
+
document.body.append($Workbench);
|
|
815
|
+
window.addEventListener('resize', handleResize, { passive: true });
|
|
816
|
+
$SashSideBar.addEventListener('pointerdown', handleSashPointerDown);
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
const hide$1 = () => {
|
|
820
|
+
state$8.$Workbench.remove();
|
|
821
|
+
window.removeEventListener('resize', handleResize);
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
const __initialize__$7 = () => {
|
|
825
|
+
register$1(1100, update);
|
|
826
|
+
// Command.register(1101, Layout.hideSideBar)
|
|
827
|
+
// Command.register(1102, Layout.toggleSideBar)
|
|
828
|
+
// Command.register(1103, Layout.showPanel)
|
|
829
|
+
// Command.register(1104, Layout.hidePanel)
|
|
830
|
+
// Command.register(1105, Layout.togglePanel)
|
|
831
|
+
// Command.register(1106, Layout.showActivityBar)
|
|
832
|
+
// Command.register(1107, Layout.hideActivityBar)
|
|
833
|
+
// Command.register(1108, Layout.toggleActivityBar)
|
|
834
|
+
register$1(1109, hydrate$2);
|
|
835
|
+
register$1(1110, hide$1);
|
|
836
|
+
register$1(1111, getBounds);
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
var M2 = {
|
|
840
|
+
__proto__: null,
|
|
841
|
+
__initialize__: __initialize__$7
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
const state$7 = {
|
|
845
|
+
// contexts: Object.create(null),
|
|
846
|
+
contexts: {},
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
// TODO all context keys should be numeric
|
|
850
|
+
// comparing numbers is faster and more efficient than comparing strings every time
|
|
851
|
+
// e.g. map 'focus.editor' -> 1
|
|
852
|
+
// e.g. map 'focus.explorer' -> 2
|
|
853
|
+
// Context.get(1), Context.get(2)
|
|
854
|
+
|
|
855
|
+
const get$1 = (key) => {
|
|
856
|
+
return state$7.contexts[key]
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
const set = (key, value) => {
|
|
860
|
+
state$7.contexts[key] = value;
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
const remove$1 = (key) => {
|
|
864
|
+
delete state$7.contexts[key];
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
// TODO not sure if its worth to have a separate module for this or keep it inside Context.js
|
|
868
|
+
// export const setFocus = (item) => {
|
|
869
|
+
// if (Context.state.currentFocus) {
|
|
870
|
+
// Context.remove(Context.state.currentFocus)
|
|
871
|
+
// }
|
|
872
|
+
// Context.set(`focus.${item}`, true)
|
|
873
|
+
// }
|
|
874
|
+
|
|
875
|
+
const state$6 = {
|
|
876
|
+
$PreviousFocusElement: undefined,
|
|
877
|
+
currentFocus: '',
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
const setFocus = (key) => {
|
|
881
|
+
if (state$6.currentFocus) {
|
|
882
|
+
remove$1(state$6.currentFocus);
|
|
883
|
+
}
|
|
884
|
+
// TODO could make focus key numeric enum which would be more efficient
|
|
885
|
+
state$6.currentFocus = `focus.${key}`;
|
|
886
|
+
set(state$6.currentFocus, true);
|
|
887
|
+
};
|
|
888
|
+
|
|
889
|
+
const setAdditionalFocus = (key) => {
|
|
890
|
+
// TODO key should be numeric
|
|
891
|
+
set(`focus.${key}`, true);
|
|
892
|
+
};
|
|
893
|
+
|
|
894
|
+
const removeAdditionalFocus = (key) => {
|
|
895
|
+
remove$1(`focus.${key}`);
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
const focus$4 = ($Element, key) => {
|
|
899
|
+
if ($Element === document.activeElement) {
|
|
900
|
+
console.log('focus return');
|
|
901
|
+
return
|
|
902
|
+
}
|
|
903
|
+
console.log(state$6.$PreviousFocusElement);
|
|
904
|
+
state$6.$PreviousFocusElement = document.activeElement;
|
|
905
|
+
$Element.focus({ preventScroll: true });
|
|
906
|
+
setFocus(key);
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
const focusPrevious = () => {
|
|
910
|
+
if (state$6.$PreviousFocusElement) {
|
|
911
|
+
console.log(state$6.$PreviousFocusElement);
|
|
912
|
+
state$6.$PreviousFocusElement.focus();
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
var M5 = {
|
|
917
|
+
__proto__: null,
|
|
918
|
+
state: state$6,
|
|
919
|
+
setFocus: setFocus,
|
|
920
|
+
setAdditionalFocus: setAdditionalFocus,
|
|
921
|
+
removeAdditionalFocus: removeAdditionalFocus,
|
|
922
|
+
focus: focus$4,
|
|
923
|
+
focusPrevious: focusPrevious
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
const state$5 = {
|
|
927
|
+
viewletStates: Object.create(null),
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
const getTarget = (event) => {
|
|
931
|
+
const $Target = event.target;
|
|
932
|
+
const $WantedTarget = $Target.closest('.Viewlet');
|
|
933
|
+
return $WantedTarget
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
const getStateFromEvent = (event) => {
|
|
937
|
+
const $Target = getTarget(event);
|
|
938
|
+
if (!$Target) {
|
|
939
|
+
console.warn('invalid handler');
|
|
940
|
+
return undefined
|
|
941
|
+
}
|
|
942
|
+
const id = $Target.dataset.viewletId;
|
|
943
|
+
const viewletState = state$5.viewletStates[id];
|
|
944
|
+
return viewletState
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
// TODO test deleteState function
|
|
948
|
+
const deleteState = (id) => {
|
|
949
|
+
delete state$5.viewletStates[id];
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
const create$Cursor = () => {
|
|
953
|
+
const $Cursor = document.createElement('div');
|
|
954
|
+
$Cursor.className = 'EditorCursor';
|
|
955
|
+
return $Cursor
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
const render$Cursor = ($Cursor, $Texts, cursor) => {
|
|
959
|
+
$Cursor.style.top = `${cursor.top}px`;
|
|
960
|
+
const range = document.createRange();
|
|
961
|
+
if (cursor.leftIndex === -1) {
|
|
962
|
+
console.warn('cursor left is negative');
|
|
963
|
+
$Cursor.style.left = `0px`; // TODO need to compute column width, this would only work for monospace fonts
|
|
964
|
+
return
|
|
965
|
+
}
|
|
966
|
+
const $Row = $Texts.children[cursor.topIndex];
|
|
967
|
+
if (!$Row) {
|
|
968
|
+
console.warn('no row', cursor, $Row);
|
|
969
|
+
return
|
|
970
|
+
}
|
|
971
|
+
const $Node = $Row.children[cursor.leftIndex];
|
|
972
|
+
if (!$Node) {
|
|
973
|
+
console.warn('no node', cursor, $Row);
|
|
974
|
+
return
|
|
975
|
+
}
|
|
976
|
+
if (cursor.leftIndex === 0 && cursor.remainingOffset === 0) {
|
|
977
|
+
$Cursor.style.left = `0px`;
|
|
978
|
+
} else {
|
|
979
|
+
const $TextNode = $Node.firstChild;
|
|
980
|
+
range.setStart($TextNode, cursor.remainingOffset);
|
|
981
|
+
range.setEnd($TextNode, cursor.remainingOffset);
|
|
982
|
+
const rect = range.getBoundingClientRect();
|
|
983
|
+
const left = Math.round(rect.left);
|
|
984
|
+
$Cursor.style.left = `${left}px`;
|
|
985
|
+
}
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
const render$CursorsLess = ($Cursors, $Texts, cursors) => {
|
|
989
|
+
for (let i = 0; i < $Cursors.children.length; i++) {
|
|
990
|
+
render$Cursor($Cursors.children[i], cursors[i]);
|
|
991
|
+
}
|
|
992
|
+
const fragment = document.createDocumentFragment();
|
|
993
|
+
for (let i = $Cursors.children.length; i < cursors.length; i++) {
|
|
994
|
+
const $Cursor = create$Cursor();
|
|
995
|
+
render$Cursor($Cursor, $Texts, cursors[i]);
|
|
996
|
+
fragment.append($Cursor);
|
|
997
|
+
}
|
|
998
|
+
$Cursors.append(fragment);
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
const render$CursorsEqual = ($Cursors, $Texts, cursors) => {
|
|
1002
|
+
for (let i = 0; i < cursors.length; i++) {
|
|
1003
|
+
render$Cursor($Cursors.children[i], $Texts, cursors[i]);
|
|
1004
|
+
}
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
const render$CursorsMore = ($Cursors, $Texts, cursors) => {
|
|
1008
|
+
for (let i = 0; i < cursors.length; i++) {
|
|
1009
|
+
render$Cursor($Cursors.children[i], $Texts, cursors[i]);
|
|
1010
|
+
}
|
|
1011
|
+
const diff = $Cursors.children.length - cursors.length;
|
|
1012
|
+
for (let i = 0; i < diff; i++) {
|
|
1013
|
+
$Cursors.lastChild.remove();
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
const render$Cursors = ($Cursors, $Texts, cursors) => {
|
|
1018
|
+
if ($Cursors.children.length < cursors.length) {
|
|
1019
|
+
render$CursorsLess($Cursors, $Texts, cursors);
|
|
1020
|
+
} else if ($Cursors.children.length === cursors.length) {
|
|
1021
|
+
render$CursorsEqual($Cursors, $Texts, cursors);
|
|
1022
|
+
} else {
|
|
1023
|
+
render$CursorsMore($Cursors, $Texts, cursors);
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
|
|
1027
|
+
const renderCursorsNative = (state, cursors) => {
|
|
1028
|
+
if (cursors.length > 1) {
|
|
1029
|
+
console.warn('[editor] cannot render more than one native cursor');
|
|
1030
|
+
return
|
|
1031
|
+
}
|
|
1032
|
+
if (cursors.length === 0) {
|
|
1033
|
+
return
|
|
1034
|
+
}
|
|
1035
|
+
const cursor = cursors[0];
|
|
1036
|
+
const $Rows = state.$LayerText;
|
|
1037
|
+
const $StartRow = $Rows.children[cursor.rowIndex];
|
|
1038
|
+
let startOffset = 0;
|
|
1039
|
+
let $Anchor;
|
|
1040
|
+
for (let i = 0; i < $StartRow.children.length; i++) {
|
|
1041
|
+
if (startOffset >= cursor.columnIndex) {
|
|
1042
|
+
console.log({ startOffset });
|
|
1043
|
+
$Anchor = $StartRow.children[i - 1].firstChild;
|
|
1044
|
+
startOffset -= $Anchor.textContent.length;
|
|
1045
|
+
startOffset = cursor.columnIndex - startOffset;
|
|
1046
|
+
break
|
|
1047
|
+
}
|
|
1048
|
+
startOffset += $StartRow.children[i].textContent.length;
|
|
1049
|
+
}
|
|
1050
|
+
if (!$Anchor) {
|
|
1051
|
+
$Anchor = $StartRow.children[$StartRow.children.length - 1].firstChild;
|
|
1052
|
+
startOffset -= $Anchor.textContent.length;
|
|
1053
|
+
startOffset = cursor.columnIndex - startOffset;
|
|
1054
|
+
}
|
|
1055
|
+
const selection = document.getSelection();
|
|
1056
|
+
if (
|
|
1057
|
+
selection.anchorNode === $Anchor &&
|
|
1058
|
+
selection.focusNode === $Anchor &&
|
|
1059
|
+
selection.anchorOffset === startOffset &&
|
|
1060
|
+
selection.focusOffset === startOffset
|
|
1061
|
+
) {
|
|
1062
|
+
return
|
|
1063
|
+
}
|
|
1064
|
+
state.shouldIgnoreSelectionChange = true;
|
|
1065
|
+
const documentRange = document.createRange();
|
|
1066
|
+
documentRange.setStart($Anchor, startOffset);
|
|
1067
|
+
documentRange.setEnd($Anchor, startOffset);
|
|
1068
|
+
selection.removeAllRanges();
|
|
1069
|
+
selection.addRange(documentRange);
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
const setCursors = (state, cursors) => {
|
|
1073
|
+
if (isMobileOrTablet()) {
|
|
1074
|
+
renderCursorsNative(state, cursors);
|
|
1075
|
+
return
|
|
1076
|
+
}
|
|
1077
|
+
render$Cursors(state.$LayerCursor, state.$LayerText, cursors);
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
const create$Diagnostic = () => {
|
|
1081
|
+
const $Diagnostic = document.createElement('div');
|
|
1082
|
+
$Diagnostic.className = 'EditorDiagnostic';
|
|
1083
|
+
return $Diagnostic
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
const render$Diagnostic = ($Diagnostic, diagnostic) => {
|
|
1087
|
+
$Diagnostic.style.top = `${diagnostic.top}px`;
|
|
1088
|
+
$Diagnostic.style.left = `${diagnostic.left}px`;
|
|
1089
|
+
$Diagnostic.style.width = `${diagnostic.width}px`;
|
|
1090
|
+
$Diagnostic.style.height = `${diagnostic.height}px`;
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
const render$DiagnosticsLess = ($Diagnostics, diagnostics) => {
|
|
1094
|
+
for (let i = 0; i < $Diagnostics.children.length; i++) {
|
|
1095
|
+
render$Diagnostic($Diagnostics.children[i], diagnostics[i]);
|
|
1096
|
+
}
|
|
1097
|
+
const fragment = document.createDocumentFragment();
|
|
1098
|
+
for (let i = $Diagnostics.children.length; i < diagnostics.length; i++) {
|
|
1099
|
+
const $Diagnostic = create$Diagnostic();
|
|
1100
|
+
render$Diagnostic($Diagnostic, diagnostics[i]);
|
|
1101
|
+
fragment.append($Diagnostic);
|
|
1102
|
+
}
|
|
1103
|
+
$Diagnostics.append(fragment);
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
const render$DiagnosticsEqual = ($Diagnostics, diagnostics) => {
|
|
1107
|
+
for (let i = 0; i < diagnostics.length; i++) {
|
|
1108
|
+
render$Diagnostic($Diagnostics.children[i], diagnostics[i]);
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
const render$DiagnosticsMore = ($Diagnostics, diagnostics) => {
|
|
1113
|
+
for (let i = 0; i < diagnostics.length; i++) {
|
|
1114
|
+
render$Diagnostic($Diagnostics.children[i], diagnostics[i]);
|
|
1115
|
+
}
|
|
1116
|
+
const diff = $Diagnostics.children.length - diagnostics.length;
|
|
1117
|
+
for (let i = 0; i < diff; i++) {
|
|
1118
|
+
$Diagnostics.lastChild.remove();
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
const render$Diagnostics = ($Diagnostics, diagnostics) => {
|
|
1123
|
+
if ($Diagnostics.children.length < diagnostics.length) {
|
|
1124
|
+
render$DiagnosticsLess($Diagnostics, diagnostics);
|
|
1125
|
+
} else if ($Diagnostics.children.length === diagnostics.length) {
|
|
1126
|
+
render$DiagnosticsEqual($Diagnostics, diagnostics);
|
|
1127
|
+
} else {
|
|
1128
|
+
render$DiagnosticsMore($Diagnostics, diagnostics);
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
const setDiagnostics$1 = (state, diagnostics) => {
|
|
1133
|
+
render$Diagnostics(state.$LayerDiagnostics, diagnostics);
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
const setPosition = (state, scrollBarY, scrollBarHeight) => {
|
|
1137
|
+
state.$ScrollBarThumb.style.top = `${scrollBarY}px`;
|
|
1138
|
+
state.$ScrollBarThumb.style.height = `${scrollBarHeight}px`;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
// TODO scrollbar decorations should be own layer maybe
|
|
1142
|
+
const create$ScrollBarDiagnostic = () => {
|
|
1143
|
+
const $ScrollBarDiagnostic = document.createElement('div');
|
|
1144
|
+
$ScrollBarDiagnostic.className = 'ScrollBarDiagnostic';
|
|
1145
|
+
return $ScrollBarDiagnostic
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
const render$ScrollBarDiagnostic = (
|
|
1149
|
+
$ScrollBarDiagnostic,
|
|
1150
|
+
scrollBarDiagnostic
|
|
1151
|
+
) => {
|
|
1152
|
+
$ScrollBarDiagnostic.style.top = `${scrollBarDiagnostic.top}px`;
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
const render$ScrollBarDiagnosticsLess = (
|
|
1156
|
+
$ScrollBarDiagnostics,
|
|
1157
|
+
scrollBarDiagnostics
|
|
1158
|
+
) => {
|
|
1159
|
+
for (let i = 0; i < $ScrollBarDiagnostics.children.length; i++) {
|
|
1160
|
+
render$ScrollBarDiagnostic(
|
|
1161
|
+
$ScrollBarDiagnostics.children[i],
|
|
1162
|
+
scrollBarDiagnostics[i]
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
const fragment = document.createDocumentFragment();
|
|
1166
|
+
for (
|
|
1167
|
+
let i = $ScrollBarDiagnostics.children.length;
|
|
1168
|
+
i < scrollBarDiagnostics.length;
|
|
1169
|
+
i++
|
|
1170
|
+
) {
|
|
1171
|
+
const $ScrollBarDiagnostic = create$ScrollBarDiagnostic();
|
|
1172
|
+
render$ScrollBarDiagnostic($ScrollBarDiagnostic, scrollBarDiagnostics[i]);
|
|
1173
|
+
fragment.append($ScrollBarDiagnostic);
|
|
1174
|
+
}
|
|
1175
|
+
$ScrollBarDiagnostics.append(fragment);
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
const render$ScrollBarDiagnosticsEqual = (
|
|
1179
|
+
$ScrollBarDiagnostics,
|
|
1180
|
+
scrollBarDiagnostics
|
|
1181
|
+
) => {
|
|
1182
|
+
for (let i = 0; i < scrollBarDiagnostics.length; i++) {
|
|
1183
|
+
render$ScrollBarDiagnostic(
|
|
1184
|
+
$ScrollBarDiagnostics.children[i],
|
|
1185
|
+
scrollBarDiagnostics[i]
|
|
1186
|
+
);
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
const render$ScrollBarDiagnosticsMore = (
|
|
1191
|
+
$ScrollBarDiagnostics,
|
|
1192
|
+
scrollBarDiagnostics
|
|
1193
|
+
) => {
|
|
1194
|
+
for (let i = 0; i < scrollBarDiagnostics.length; i++) {
|
|
1195
|
+
render$ScrollBarDiagnostic(
|
|
1196
|
+
$ScrollBarDiagnostics.children[i],
|
|
1197
|
+
scrollBarDiagnostics[i]
|
|
1198
|
+
);
|
|
1199
|
+
}
|
|
1200
|
+
const diff =
|
|
1201
|
+
$ScrollBarDiagnostics.children.length - scrollBarDiagnostics.length;
|
|
1202
|
+
for (let i = 0; i < diff; i++) {
|
|
1203
|
+
$ScrollBarDiagnostics.lastChild.remove();
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
const render$ScrollBarDiagnostics = (
|
|
1208
|
+
$ScrollBarDiagnostics,
|
|
1209
|
+
scrollBarDiagnostics
|
|
1210
|
+
) => {
|
|
1211
|
+
if ($ScrollBarDiagnostics.children.length < scrollBarDiagnostics.length) {
|
|
1212
|
+
render$ScrollBarDiagnosticsLess($ScrollBarDiagnostics, scrollBarDiagnostics);
|
|
1213
|
+
} else if (
|
|
1214
|
+
$ScrollBarDiagnostics.children.length === scrollBarDiagnostics.length
|
|
1215
|
+
) {
|
|
1216
|
+
render$ScrollBarDiagnosticsEqual(
|
|
1217
|
+
$ScrollBarDiagnostics,
|
|
1218
|
+
scrollBarDiagnostics
|
|
1219
|
+
);
|
|
1220
|
+
} else {
|
|
1221
|
+
render$ScrollBarDiagnosticsMore($ScrollBarDiagnostics, scrollBarDiagnostics);
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
const setDiagnostics = (editor, scrollBarDiagnostics) => {
|
|
1226
|
+
render$ScrollBarDiagnostics(
|
|
1227
|
+
editor.$ScrollBarDiagnostics,
|
|
1228
|
+
scrollBarDiagnostics
|
|
1229
|
+
);
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
const create$Selection = () => {
|
|
1233
|
+
const $Selection = document.createElement('div');
|
|
1234
|
+
$Selection.className = 'EditorSelection';
|
|
1235
|
+
return $Selection
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
const render$Selection = ($Selection, selection) => {
|
|
1239
|
+
// TODO have many decorations per row
|
|
1240
|
+
// no absolute positioning
|
|
1241
|
+
$Selection.style.top = `${selection.top}px`;
|
|
1242
|
+
$Selection.style.left = `${selection.left}px`;
|
|
1243
|
+
$Selection.style.width = `${selection.width}px`;
|
|
1244
|
+
$Selection.style.height = `${selection.height}px`;
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
const render$SelectionsLess = ($Selections, selections) => {
|
|
1248
|
+
for (let i = 0; i < $Selections.children.length; i++) {
|
|
1249
|
+
render$Selection($Selections.children[i], selections[i]);
|
|
1250
|
+
}
|
|
1251
|
+
const fragment = document.createDocumentFragment();
|
|
1252
|
+
for (let i = $Selections.children.length; i < selections.length; i++) {
|
|
1253
|
+
const $Selection = create$Selection();
|
|
1254
|
+
render$Selection($Selection, selections[i]);
|
|
1255
|
+
fragment.append($Selection);
|
|
1256
|
+
}
|
|
1257
|
+
$Selections.append(fragment);
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
const render$SelectionsEqual = ($Selections, selections) => {
|
|
1261
|
+
for (let i = 0; i < selections.length; i++) {
|
|
1262
|
+
render$Selection($Selections.children[i], selections[i]);
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
const render$SelectionsMore = ($Selections, selections) => {
|
|
1267
|
+
for (let i = 0; i < selections.length; i++) {
|
|
1268
|
+
render$Selection($Selections.children[i], selections[i]);
|
|
1269
|
+
}
|
|
1270
|
+
const diff = $Selections.children.length - selections.length;
|
|
1271
|
+
for (let i = 0; i < diff; i++) {
|
|
1272
|
+
$Selections.lastChild.remove();
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
const render$Selections = ($Selections, selections) => {
|
|
1277
|
+
if ($Selections.children.length < selections.length) {
|
|
1278
|
+
render$SelectionsLess($Selections, selections);
|
|
1279
|
+
} else if ($Selections.children.length === selections.length) {
|
|
1280
|
+
render$SelectionsEqual($Selections, selections);
|
|
1281
|
+
} else {
|
|
1282
|
+
render$SelectionsMore($Selections, selections);
|
|
1283
|
+
}
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
const renderSelectionsNative = (state, selections) => {
|
|
1287
|
+
if (selections.length > 1) {
|
|
1288
|
+
console.warn('[editor] cannot render more than one native selection');
|
|
1289
|
+
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
const setSelections$1 = (state, selections) => {
|
|
1294
|
+
if (isMobileOrTablet()) {
|
|
1295
|
+
renderSelectionsNative(state, selections);
|
|
1296
|
+
return
|
|
1297
|
+
}
|
|
1298
|
+
render$Selections(state.$LayerSelections, selections);
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
// TODO treeshake out this whole module in production
|
|
1302
|
+
|
|
1303
|
+
const getType = (value) => {
|
|
1304
|
+
switch (typeof value) {
|
|
1305
|
+
case 'number':
|
|
1306
|
+
return 'number'
|
|
1307
|
+
case 'function':
|
|
1308
|
+
return 'function'
|
|
1309
|
+
case 'string':
|
|
1310
|
+
return 'string'
|
|
1311
|
+
case 'object':
|
|
1312
|
+
if (value === null) {
|
|
1313
|
+
return 'null'
|
|
1314
|
+
}
|
|
1315
|
+
if (Array.isArray(value)) {
|
|
1316
|
+
return 'array'
|
|
1317
|
+
}
|
|
1318
|
+
return 'object'
|
|
1319
|
+
case 'boolean':
|
|
1320
|
+
return 'boolean'
|
|
1321
|
+
default:
|
|
1322
|
+
return 'unknown'
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
const object = (value) => {
|
|
1327
|
+
const type = getType(value);
|
|
1328
|
+
if (type !== 'object') {
|
|
1329
|
+
throw new Error('expected value to be of type object')
|
|
1330
|
+
}
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
const number = (value) => {
|
|
1334
|
+
const type = getType(value);
|
|
1335
|
+
if (type !== 'number') {
|
|
1336
|
+
throw new Error('expected value to be of type number')
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
const array = (value) => {
|
|
1341
|
+
const type = getType(value);
|
|
1342
|
+
if (type !== 'array') {
|
|
1343
|
+
throw new Error('expected value to be of type array')
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
const string = (value) => {
|
|
1348
|
+
const type = getType(value);
|
|
1349
|
+
if (type !== 'string') {
|
|
1350
|
+
throw new Error('expected value to be of type string')
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
|
|
1354
|
+
const boolean = (value) => {
|
|
1355
|
+
const type = getType(value);
|
|
1356
|
+
if (type !== 'boolean') {
|
|
1357
|
+
throw new Error('expected value to be of type boolean')
|
|
1358
|
+
}
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
const create$Row = () => {
|
|
1362
|
+
const $Row = document.createElement('div');
|
|
1363
|
+
$Row.className = 'EditorRow';
|
|
1364
|
+
return $Row
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
const create$Token = () => {
|
|
1368
|
+
const $Token = document.createElement('span');
|
|
1369
|
+
$Token.className = 'Token';
|
|
1370
|
+
return $Token
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
// TODO maybe use createTextNode (codeMirror uses that)
|
|
1374
|
+
// This function seems to be a hot spot
|
|
1375
|
+
const render$Token = ($Token, text, className) => {
|
|
1376
|
+
$Token.className = className;
|
|
1377
|
+
if ($Token.firstChild) {
|
|
1378
|
+
// recycle text node
|
|
1379
|
+
$Token.firstChild.nodeValue = text;
|
|
1380
|
+
} else {
|
|
1381
|
+
$Token.textContent = text;
|
|
1382
|
+
}
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
const render$LineLess = ($Line, lineInfo) => {
|
|
1386
|
+
let i = 0;
|
|
1387
|
+
while (i < $Line.children.length * 2) {
|
|
1388
|
+
const text = lineInfo[i++];
|
|
1389
|
+
const className = lineInfo[i++];
|
|
1390
|
+
render$Token($Line.children[i / 2 - 1], text, className);
|
|
1391
|
+
}
|
|
1392
|
+
const fragment = document.createDocumentFragment();
|
|
1393
|
+
while (i < lineInfo.length) {
|
|
1394
|
+
const text = lineInfo[i++];
|
|
1395
|
+
const className = lineInfo[i++];
|
|
1396
|
+
const $Token = create$Token();
|
|
1397
|
+
render$Token($Token, text, className);
|
|
1398
|
+
fragment.append($Token);
|
|
1399
|
+
}
|
|
1400
|
+
$Line.append(fragment);
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
const render$LineEqual = ($Line, lineInfo) => {
|
|
1404
|
+
let i = 0;
|
|
1405
|
+
while (i < lineInfo.length) {
|
|
1406
|
+
const text = lineInfo[i++];
|
|
1407
|
+
const className = lineInfo[i++];
|
|
1408
|
+
render$Token($Line.children[i / 2 - 1], text, className);
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
const render$LineMore = ($Line, lineInfo) => {
|
|
1413
|
+
let i = 0;
|
|
1414
|
+
while (i < lineInfo.length) {
|
|
1415
|
+
const text = lineInfo[i++];
|
|
1416
|
+
const className = lineInfo[i++];
|
|
1417
|
+
render$Token($Line.children[i / 2 - 1], text, className);
|
|
1418
|
+
}
|
|
1419
|
+
const diff = $Line.children.length - lineInfo.length / 2;
|
|
1420
|
+
for (let i = lineInfo.length; i < lineInfo.length + diff; i++) {
|
|
1421
|
+
$Line.lastChild.remove();
|
|
1422
|
+
}
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
const render$Line = ($Line, lineInfo) => {
|
|
1426
|
+
if ($Line.children.length < lineInfo.length / 2) {
|
|
1427
|
+
render$LineLess($Line, lineInfo);
|
|
1428
|
+
} else if ($Line.children.length === lineInfo.length / 2) {
|
|
1429
|
+
render$LineEqual($Line, lineInfo);
|
|
1430
|
+
} else {
|
|
1431
|
+
render$LineMore($Line, lineInfo);
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
const render$LinesLess = ($Lines, lineInfos) => {
|
|
1436
|
+
for (let i = 0; i < $Lines.children.length; i++) {
|
|
1437
|
+
render$Line($Lines.children[i], lineInfos[i]);
|
|
1438
|
+
}
|
|
1439
|
+
const fragment = document.createDocumentFragment();
|
|
1440
|
+
for (let i = $Lines.children.length; i < lineInfos.length; i++) {
|
|
1441
|
+
const $Line = create$Row();
|
|
1442
|
+
render$Line($Line, lineInfos[i]);
|
|
1443
|
+
fragment.append($Line);
|
|
1444
|
+
}
|
|
1445
|
+
$Lines.append(fragment);
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
const render$LinesEqual = ($Lines, lineInfos) => {
|
|
1449
|
+
for (let i = 0; i < lineInfos.length; i++) {
|
|
1450
|
+
render$Line($Lines.children[i], lineInfos[i]);
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
const render$LinesMore = ($Lines, lineInfos) => {
|
|
1455
|
+
for (let i = 0; i < lineInfos.length; i++) {
|
|
1456
|
+
render$Line($Lines.children[i], lineInfos[i]);
|
|
1457
|
+
}
|
|
1458
|
+
const diff = $Lines.children.length - lineInfos.length;
|
|
1459
|
+
for (let i = lineInfos.length; i < lineInfos.length + diff; i++) {
|
|
1460
|
+
$Lines.lastChild.remove();
|
|
1461
|
+
}
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
const render$Lines = ($Lines, lineInfos) => {
|
|
1465
|
+
object($Lines);
|
|
1466
|
+
array(lineInfos);
|
|
1467
|
+
if ($Lines.children.length < lineInfos.length) {
|
|
1468
|
+
render$LinesLess($Lines, lineInfos);
|
|
1469
|
+
} else if ($Lines.children.length === lineInfos.length) {
|
|
1470
|
+
render$LinesEqual($Lines, lineInfos);
|
|
1471
|
+
} else {
|
|
1472
|
+
render$LinesMore($Lines, lineInfos);
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1475
|
+
|
|
1476
|
+
const setLineInfos = (state, lineInfos) => {
|
|
1477
|
+
render$Lines(state.$LayerText, lineInfos);
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
// TODO so many things in this file
|
|
1481
|
+
|
|
1482
|
+
// TODO go back to edit mode after pressing escape so screenreaders can navigate https://stackoverflow.com/questions/53909477/how-to-handle-tabbing-for-accessibility-with-a-textarea-that-uses-the-tab-button
|
|
1483
|
+
|
|
1484
|
+
// TODO tree shake out mobile support when targeting electron -> less code -> less event listeners -> less memory -> less cpu
|
|
1485
|
+
|
|
1486
|
+
const handleContextMenu$2 = (event) => {
|
|
1487
|
+
event.preventDefault();
|
|
1488
|
+
const x = event.clientX;
|
|
1489
|
+
const y = event.clientY;
|
|
1490
|
+
send([
|
|
1491
|
+
/* ContextMenu.show */ 951,
|
|
1492
|
+
/* x */ x,
|
|
1493
|
+
/* y */ y,
|
|
1494
|
+
/* id */ 'editor',
|
|
1495
|
+
]);
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
const handleFocus = (event) => {
|
|
1499
|
+
setFocus('ViewletEditorText');
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
const handleBlur$1 = (event) => {
|
|
1503
|
+
// needed for save on blur
|
|
1504
|
+
// also needed to close completions on blur
|
|
1505
|
+
send([/* EditorBlur.editorBlur */ 370]);
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
const handleBeforeInput = (event) => {
|
|
1509
|
+
event.preventDefault();
|
|
1510
|
+
switch (event.inputType) {
|
|
1511
|
+
case 'insertText':
|
|
1512
|
+
send([/* Editor.type */ 345, /* text */ event.data]);
|
|
1513
|
+
break
|
|
1514
|
+
}
|
|
1515
|
+
// if (!event.data) {
|
|
1516
|
+
// return
|
|
1517
|
+
// }
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
// TODO composition should be better supported,
|
|
1521
|
+
// for example
|
|
1522
|
+
// - gedit draws a line below the composed text
|
|
1523
|
+
// - codemirror 6 also draws that line
|
|
1524
|
+
// - codemirror 5 also draws that line
|
|
1525
|
+
// - vscode does not draw a line, but displays characters during composition
|
|
1526
|
+
|
|
1527
|
+
const handleCompositionStart = (event) => {
|
|
1528
|
+
send([
|
|
1529
|
+
/* Editor.compositionStart */ 411,
|
|
1530
|
+
/* text */ event.data,
|
|
1531
|
+
]);
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
const handleCompositionUpdate = (event) => {
|
|
1535
|
+
send([
|
|
1536
|
+
/* Editor.compositionUpdate */ 412,
|
|
1537
|
+
/* text */ event.data,
|
|
1538
|
+
]);
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
const handleCompositionEnd = (event) => {
|
|
1542
|
+
send([/* Editor.compositionEnd */ 413, /* text */ event.data]);
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
const handleCut = (event) => {
|
|
1546
|
+
event.preventDefault();
|
|
1547
|
+
send([/* Editor.cut */ 364]);
|
|
1548
|
+
};
|
|
1549
|
+
|
|
1550
|
+
const handleSelectionMove = (event) => {
|
|
1551
|
+
const x = event.clientX;
|
|
1552
|
+
const y = event.clientY;
|
|
1553
|
+
const totalOffset = getTotalOffset(event);
|
|
1554
|
+
if (event.altKey) {
|
|
1555
|
+
send([
|
|
1556
|
+
/* Editor.moveRectangleSelectionPx */ 387,
|
|
1557
|
+
/* x */ x,
|
|
1558
|
+
/* y */ y,
|
|
1559
|
+
/* offset */ totalOffset,
|
|
1560
|
+
]);
|
|
1561
|
+
} else {
|
|
1562
|
+
send([
|
|
1563
|
+
/* Editor.moveSelectionPx */ 386,
|
|
1564
|
+
/* x */ x,
|
|
1565
|
+
/* y */ y,
|
|
1566
|
+
/* offset */ totalOffset,
|
|
1567
|
+
]);
|
|
1568
|
+
}
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1571
|
+
const handleSelectionDone = (event) => {
|
|
1572
|
+
document.removeEventListener('mousemove', handleSelectionMove);
|
|
1573
|
+
document.removeEventListener('mouseup', handleSelectionDone);
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
const getModifier$1 = (event) => {
|
|
1577
|
+
if (event.ctrlKey) {
|
|
1578
|
+
return 'ctrl'
|
|
1579
|
+
}
|
|
1580
|
+
if (event.altKey) {
|
|
1581
|
+
return 'alt'
|
|
1582
|
+
}
|
|
1583
|
+
return ''
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
const handleSingleClick = (event, x, y, offset) => {
|
|
1587
|
+
const modifier = getModifier$1(event);
|
|
1588
|
+
send([
|
|
1589
|
+
/* Editor.handleSingleClick */ 360,
|
|
1590
|
+
/* modifier */ modifier,
|
|
1591
|
+
/* x */ x,
|
|
1592
|
+
/* y */ y,
|
|
1593
|
+
/* offset */ offset,
|
|
1594
|
+
]);
|
|
1595
|
+
const $Target = event.target;
|
|
1596
|
+
const $InputBox = $Target.closest('.Editor').firstElementChild;
|
|
1597
|
+
$InputBox.focus();
|
|
1598
|
+
// TODO this logic should be in renderer worker
|
|
1599
|
+
document.addEventListener('mousemove', handleSelectionMove, { passive: true });
|
|
1600
|
+
document.addEventListener('mouseup', handleSelectionDone);
|
|
1601
|
+
};
|
|
1602
|
+
|
|
1603
|
+
const handleDoubleClick = (event, x, y, offset) => {
|
|
1604
|
+
send([
|
|
1605
|
+
/* Editor.handleDoubleClick */ 385,
|
|
1606
|
+
/* x */ x,
|
|
1607
|
+
/* y */ y,
|
|
1608
|
+
/* offset */ offset,
|
|
1609
|
+
]);
|
|
1610
|
+
};
|
|
1611
|
+
|
|
1612
|
+
const handleTripleClick = (event, x, y, offset) => {
|
|
1613
|
+
send([
|
|
1614
|
+
/* Editor.handleTripleClick */ 376,
|
|
1615
|
+
/* x */ x,
|
|
1616
|
+
/* y */ y,
|
|
1617
|
+
/* offset */ offset,
|
|
1618
|
+
]);
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
const isRightClick = (event) => {
|
|
1622
|
+
return event.button === 2
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
const getTextNodeOffset = (textNode) => {
|
|
1626
|
+
let $Token = textNode.parentElement;
|
|
1627
|
+
let offset = 0;
|
|
1628
|
+
while ($Token.previousSibling) {
|
|
1629
|
+
$Token = $Token.previousSibling;
|
|
1630
|
+
offset += $Token.textContent.length;
|
|
1631
|
+
}
|
|
1632
|
+
return offset
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
const getTotalOffset = (event) => {
|
|
1636
|
+
if (document.caretRangeFromPoint) {
|
|
1637
|
+
// chrome uses deprecated version
|
|
1638
|
+
const range = document.caretRangeFromPoint(event.clientX, event.clientY);
|
|
1639
|
+
if (!range) {
|
|
1640
|
+
return 0
|
|
1641
|
+
}
|
|
1642
|
+
const textNode = range.startContainer;
|
|
1643
|
+
const textNodeOffset = getTextNodeOffset(textNode);
|
|
1644
|
+
const offset = range.startOffset;
|
|
1645
|
+
const totalOffset = textNodeOffset + offset;
|
|
1646
|
+
return totalOffset
|
|
1647
|
+
// @ts-ignore
|
|
1648
|
+
} else if (document.caretPositionFromPoint) {
|
|
1649
|
+
// firefox uses new version
|
|
1650
|
+
// @ts-ignore
|
|
1651
|
+
const range = document.caretPositionFromPoint(event.clientX, event.clientY);
|
|
1652
|
+
if (!range) {
|
|
1653
|
+
return 0
|
|
1654
|
+
}
|
|
1655
|
+
const textNode = range.offsetNode;
|
|
1656
|
+
const textNodeOffset = getTextNodeOffset(textNode);
|
|
1657
|
+
const offset = range.offset;
|
|
1658
|
+
const totalOffset = textNodeOffset + offset;
|
|
1659
|
+
return totalOffset
|
|
1660
|
+
} else {
|
|
1661
|
+
throw new Error('caret position is not supported')
|
|
1662
|
+
}
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
const handleMouseDown$1 = (event) => {
|
|
1666
|
+
if (isRightClick(event)) {
|
|
1667
|
+
return
|
|
1668
|
+
}
|
|
1669
|
+
event.preventDefault();
|
|
1670
|
+
const totalOffset = getTotalOffset(event);
|
|
1671
|
+
const x = event.clientX;
|
|
1672
|
+
const y = event.clientY;
|
|
1673
|
+
switch (event.detail) {
|
|
1674
|
+
case 1:
|
|
1675
|
+
handleSingleClick(event, x, y, totalOffset);
|
|
1676
|
+
break
|
|
1677
|
+
case 2:
|
|
1678
|
+
handleDoubleClick(event, x, y, totalOffset);
|
|
1679
|
+
break
|
|
1680
|
+
case 3:
|
|
1681
|
+
handleTripleClick(event, x, y, totalOffset);
|
|
1682
|
+
break
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
// TODO figure out whether it is possible to register hover provider without mousemove
|
|
1687
|
+
// mousemove handler is called very often and could slow down editor / drain battery
|
|
1688
|
+
|
|
1689
|
+
// disabled for now because of constant cpu usage on mousemove
|
|
1690
|
+
// bad for performance
|
|
1691
|
+
const handleMouseMove$1 = (event) => {
|
|
1692
|
+
const x = event.clientX;
|
|
1693
|
+
const y = event.clientY;
|
|
1694
|
+
if (event.altKey) {
|
|
1695
|
+
const offset = getTotalOffset(event);
|
|
1696
|
+
send([
|
|
1697
|
+
/* Editor.handleMouseMoveWithAltKey */ 415,
|
|
1698
|
+
/* x */ x,
|
|
1699
|
+
/* y */ y,
|
|
1700
|
+
/* offset */ offset,
|
|
1701
|
+
]);
|
|
1702
|
+
}
|
|
1703
|
+
// console.log(event.altKey)
|
|
1704
|
+
// RendererWorker.send([/* Editor.handleMouseMove */ 389, /* x */ x, /* y */ y])
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
const handleWheel = (event) => {
|
|
1708
|
+
// event.preventDefault()
|
|
1709
|
+
// const state = EditorHelper.getStateFromEvent(event)
|
|
1710
|
+
// TODO send editor id
|
|
1711
|
+
switch (event.deltaMode) {
|
|
1712
|
+
case event.DOM_DELTA_LINE:
|
|
1713
|
+
send([
|
|
1714
|
+
/* Editor.setDeltaY */ 384,
|
|
1715
|
+
/* value */ event.deltaY,
|
|
1716
|
+
]);
|
|
1717
|
+
break
|
|
1718
|
+
case event.DOM_DELTA_PIXEL:
|
|
1719
|
+
send([
|
|
1720
|
+
/* Editor.setDeltaY */ 384,
|
|
1721
|
+
/* value */ event.deltaY,
|
|
1722
|
+
]);
|
|
1723
|
+
break
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
|
|
1727
|
+
const handlePaste = (event) => {
|
|
1728
|
+
event.preventDefault();
|
|
1729
|
+
const text = event.clipboardData.getData('text');
|
|
1730
|
+
send([/* Editor.paste */ 382, /* text */ text]);
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
const handleScrollBarThumbMouseMove = (event) => {
|
|
1734
|
+
const y = event.clientY;
|
|
1735
|
+
send([/* Editor.handleScrollBarMouseMove */ 399, /* y */ y]);
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
const handleScrollBarThumbMouseUp = () => {
|
|
1739
|
+
window.removeEventListener('mousemove', handleScrollBarThumbMouseMove);
|
|
1740
|
+
window.removeEventListener('mouseup', handleScrollBarThumbMouseUp);
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
const handleScrollBarThumbMouseDown = (event) => {
|
|
1744
|
+
window.addEventListener('mousemove', handleScrollBarThumbMouseMove);
|
|
1745
|
+
window.addEventListener('mouseup', handleScrollBarThumbMouseUp);
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1748
|
+
const handleScrollBarMouseDown = (event) => {
|
|
1749
|
+
const y = event.clientY;
|
|
1750
|
+
send([
|
|
1751
|
+
/* EditorHandleScrollBarClick.editorHandleScrollBarClick */ 400,
|
|
1752
|
+
/* y */ y,
|
|
1753
|
+
]);
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
const toSimpleTouch = (touch) => {
|
|
1757
|
+
return {
|
|
1758
|
+
x: touch.clientX,
|
|
1759
|
+
y: touch.clientY,
|
|
1760
|
+
}
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
const toSimpleTouchEvent = (event) => {
|
|
1764
|
+
const touches = Array.from(event.touches).map(toSimpleTouch);
|
|
1765
|
+
const changedTouches = Array.from(event.changedTouches).map(toSimpleTouch);
|
|
1766
|
+
return {
|
|
1767
|
+
touches,
|
|
1768
|
+
changedTouches,
|
|
1769
|
+
}
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1772
|
+
// TODO add touch cancel handler
|
|
1773
|
+
|
|
1774
|
+
// TODO use touch events for scrolling
|
|
1775
|
+
|
|
1776
|
+
const handleTouchStart = (event) => {
|
|
1777
|
+
const touchEvent = toSimpleTouchEvent(event);
|
|
1778
|
+
send([
|
|
1779
|
+
/* EditorHandleTouchStart.editorHandleTouchStart */ 404,
|
|
1780
|
+
/* touchEvent */ touchEvent,
|
|
1781
|
+
]);
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
const handleTouchMove = (event) => {
|
|
1785
|
+
const touchEvent = toSimpleTouchEvent(event);
|
|
1786
|
+
send([
|
|
1787
|
+
/* EditorHandleTouchMove.editorHandleTouchMove */ 405,
|
|
1788
|
+
/* touchEvent */ touchEvent,
|
|
1789
|
+
]);
|
|
1790
|
+
};
|
|
1791
|
+
|
|
1792
|
+
const handleTouchEnd = (event) => {
|
|
1793
|
+
if (event.cancelable) {
|
|
1794
|
+
event.preventDefault();
|
|
1795
|
+
}
|
|
1796
|
+
const touchEvent = toSimpleTouchEvent(event);
|
|
1797
|
+
send([
|
|
1798
|
+
/* EditorHandleTouchEnd.editorHandleTouchEnd */ 406,
|
|
1799
|
+
/* touchEvent */ touchEvent,
|
|
1800
|
+
]);
|
|
1801
|
+
};
|
|
1802
|
+
|
|
1803
|
+
const getRangeFromSelection = (selection) => {
|
|
1804
|
+
if (!selection.anchorNode) {
|
|
1805
|
+
return undefined
|
|
1806
|
+
}
|
|
1807
|
+
const $StartToken = selection.anchorNode.parentNode;
|
|
1808
|
+
const $EndToken = selection.focusNode.parentNode;
|
|
1809
|
+
const $StartRow = $StartToken.parentNode;
|
|
1810
|
+
const $EndRow = $EndToken.parentNode;
|
|
1811
|
+
const $Rows = $StartRow.parentNode;
|
|
1812
|
+
let startRowIndex = 0;
|
|
1813
|
+
for (let i = 0; i < $Rows.children.length; i++) {
|
|
1814
|
+
if ($Rows.children[i] === $StartRow) {
|
|
1815
|
+
startRowIndex = i;
|
|
1816
|
+
break
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
let startColumnIndex = 0;
|
|
1820
|
+
for (let i = 0; i < $StartRow.children.length; i++) {
|
|
1821
|
+
if ($StartRow.children[i] === $StartToken) {
|
|
1822
|
+
break
|
|
1823
|
+
}
|
|
1824
|
+
startColumnIndex += $StartRow.children[i].textContent.length;
|
|
1825
|
+
}
|
|
1826
|
+
startColumnIndex += selection.anchorOffset;
|
|
1827
|
+
let endRowIndex = 0;
|
|
1828
|
+
for (let i = 0; i < $Rows.children.length; i++) {
|
|
1829
|
+
if ($Rows.children[i] === $EndRow) {
|
|
1830
|
+
endRowIndex = i;
|
|
1831
|
+
break
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
let endColumnIndex = 0;
|
|
1835
|
+
for (let i = 0; i < $EndRow.children.length; i++) {
|
|
1836
|
+
if ($EndRow.children[i] === $EndToken) {
|
|
1837
|
+
break
|
|
1838
|
+
}
|
|
1839
|
+
endColumnIndex += $EndRow.children[i].textContent.length;
|
|
1840
|
+
}
|
|
1841
|
+
endColumnIndex += selection.focusOffset;
|
|
1842
|
+
return {
|
|
1843
|
+
startRowIndex,
|
|
1844
|
+
startColumnIndex,
|
|
1845
|
+
endRowIndex,
|
|
1846
|
+
endColumnIndex,
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1850
|
+
const handleContentEditableBeforeInput = (event) => {
|
|
1851
|
+
const selection = document.getSelection();
|
|
1852
|
+
const range = getRangeFromSelection(selection);
|
|
1853
|
+
if (!range) {
|
|
1854
|
+
console.error('[Editor] cannot handle input event without selection');
|
|
1855
|
+
return
|
|
1856
|
+
}
|
|
1857
|
+
send([
|
|
1858
|
+
/* EditorHandleBeforeInputFromContentEditable.editorHandleBeforeInputFromContentEditable */ 407,
|
|
1859
|
+
/* data */ event.data || '',
|
|
1860
|
+
/* range */ range,
|
|
1861
|
+
]);
|
|
1862
|
+
};
|
|
1863
|
+
|
|
1864
|
+
const handleNativeSelectionChange = (event) => {
|
|
1865
|
+
const state = getStateFromEvent(event);
|
|
1866
|
+
if (state.shouldIgnoreSelectionChange) {
|
|
1867
|
+
state.shouldIgnoreSelectionChange = false;
|
|
1868
|
+
return
|
|
1869
|
+
}
|
|
1870
|
+
const selection = document.getSelection();
|
|
1871
|
+
const range = getRangeFromSelection(selection);
|
|
1872
|
+
if (!range) {
|
|
1873
|
+
return
|
|
1874
|
+
}
|
|
1875
|
+
send([
|
|
1876
|
+
/* EditorHandleNativeSelectionChange.editorHandleNativeSelectionChange */ 408,
|
|
1877
|
+
/* range */ range,
|
|
1878
|
+
]);
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
// TODO all create functions should have no arguments
|
|
1882
|
+
// and be split into two parts
|
|
1883
|
+
// 1. create -> only create dom elements
|
|
1884
|
+
// 2. render -> fill elements with attributes and data
|
|
1885
|
+
// that way all dom nodes can be recycled
|
|
1886
|
+
const create$4 = () => {
|
|
1887
|
+
const $EditorInput = document.createElement('textarea');
|
|
1888
|
+
$EditorInput.className = 'EditorInput';
|
|
1889
|
+
$EditorInput.ariaAutoComplete = 'list';
|
|
1890
|
+
$EditorInput.ariaRoleDescription = 'editor';
|
|
1891
|
+
$EditorInput.ariaMultiLine = 'true';
|
|
1892
|
+
$EditorInput.setAttribute('autocomplete', 'off');
|
|
1893
|
+
$EditorInput.setAttribute('autocapitalize', 'off');
|
|
1894
|
+
$EditorInput.setAttribute('autocorrect', 'off');
|
|
1895
|
+
$EditorInput.setAttribute('wrap', 'off');
|
|
1896
|
+
$EditorInput.setAttribute('spellcheck', 'false');
|
|
1897
|
+
$EditorInput.setAttribute('role', 'textbox');
|
|
1898
|
+
$EditorInput.onpaste = handlePaste;
|
|
1899
|
+
// TODO where to best put listeners (side effects)
|
|
1900
|
+
$EditorInput.addEventListener('beforeinput', handleBeforeInput);
|
|
1901
|
+
$EditorInput.addEventListener('compositionstart', handleCompositionStart);
|
|
1902
|
+
$EditorInput.addEventListener('compositionupdate', handleCompositionUpdate);
|
|
1903
|
+
$EditorInput.addEventListener('compositionend', handleCompositionEnd);
|
|
1904
|
+
$EditorInput.onfocus = handleFocus;
|
|
1905
|
+
$EditorInput.onblur = handleBlur$1;
|
|
1906
|
+
$EditorInput.oncut = handleCut;
|
|
1907
|
+
|
|
1908
|
+
const $LayerCursor = document.createElement('div');
|
|
1909
|
+
$LayerCursor.className = 'LayerCursor';
|
|
1910
|
+
|
|
1911
|
+
const $LayerText = document.createElement('div');
|
|
1912
|
+
$LayerText.className = 'EditorRows';
|
|
1913
|
+
if (isMobileOrTablet()) {
|
|
1914
|
+
$LayerText.setAttribute('contenteditable', 'plaintext-only');
|
|
1915
|
+
$LayerText.setAttribute('autocapitalize', 'off');
|
|
1916
|
+
$LayerText.setAttribute('spellcheck', 'false');
|
|
1917
|
+
$LayerText.setAttribute('autocorrect', 'off');
|
|
1918
|
+
$LayerText.addEventListener('beforeinput', handleContentEditableBeforeInput);
|
|
1919
|
+
// TODO remove listener once editor is disposed
|
|
1920
|
+
// TODO why is there no selection change listener for the element?
|
|
1921
|
+
document.addEventListener('selectionchange', handleNativeSelectionChange);
|
|
1922
|
+
} else {
|
|
1923
|
+
$LayerText.addEventListener('mousedown', handleMouseDown$1);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
const $ScrollBarThumb = document.createElement('div');
|
|
1927
|
+
$ScrollBarThumb.className = 'ScrollBarThumb';
|
|
1928
|
+
$ScrollBarThumb.addEventListener('mousedown', handleScrollBarThumbMouseDown);
|
|
1929
|
+
|
|
1930
|
+
// TODO only create $ScrollBarDiagnostics lazily when there are actually diagnostics
|
|
1931
|
+
const $ScrollBarDiagnostics = document.createElement('div');
|
|
1932
|
+
$ScrollBarDiagnostics.className = 'EditorScrollBarDiagnostics';
|
|
1933
|
+
|
|
1934
|
+
const $ScrollBar = document.createElement('div');
|
|
1935
|
+
$ScrollBar.className = 'ScrollBar';
|
|
1936
|
+
if (!isMobileOrTablet()) {
|
|
1937
|
+
$ScrollBar.onmousedown = handleScrollBarMouseDown;
|
|
1938
|
+
}
|
|
1939
|
+
$ScrollBar.append($ScrollBarThumb);
|
|
1940
|
+
|
|
1941
|
+
// $EditorRows.addEventListener('mousemove', handleMouseMove, { passive: true })
|
|
1942
|
+
|
|
1943
|
+
// TODO function should be hoisted (maybe -> one listener for all editors (definitely))
|
|
1944
|
+
// only problem is $EditorInput closure
|
|
1945
|
+
|
|
1946
|
+
// TODO when mousedown on completions -> this shouldn't be called
|
|
1947
|
+
|
|
1948
|
+
const $LayerSelections = document.createElement('div');
|
|
1949
|
+
$LayerSelections.className = 'Selections';
|
|
1950
|
+
|
|
1951
|
+
// TODO maybe use css grid to position layers on top of each other
|
|
1952
|
+
// TODO maybe merge layerDiagnostics with LayerSelections
|
|
1953
|
+
// TODO maybe this should be more generic, e.g. LayerDecorations
|
|
1954
|
+
// where decoration = {top,left, width, height, type/className}
|
|
1955
|
+
const $LayerDiagnostics = document.createElement('div');
|
|
1956
|
+
$LayerDiagnostics.className = 'LayerDiagnostics';
|
|
1957
|
+
|
|
1958
|
+
const $EditorLayers = document.createElement('div');
|
|
1959
|
+
$EditorLayers.className = 'EditorLayers';
|
|
1960
|
+
$EditorLayers.append(
|
|
1961
|
+
$LayerSelections,
|
|
1962
|
+
$LayerText,
|
|
1963
|
+
$LayerCursor,
|
|
1964
|
+
$LayerDiagnostics
|
|
1965
|
+
);
|
|
1966
|
+
|
|
1967
|
+
const $Editor = document.createElement('div');
|
|
1968
|
+
$Editor.className = 'Viewlet Editor';
|
|
1969
|
+
$Editor.dataset.viewletId = 'EditorText';
|
|
1970
|
+
$Editor.setAttribute('role', 'code');
|
|
1971
|
+
$Editor.append($EditorInput, $EditorLayers, $ScrollBarDiagnostics, $ScrollBar);
|
|
1972
|
+
if (isMobileOrTablet()) {
|
|
1973
|
+
$Editor.addEventListener('touchstart', handleTouchStart, { passive: true });
|
|
1974
|
+
$Editor.addEventListener('touchmove', handleTouchMove, { passive: true });
|
|
1975
|
+
$Editor.addEventListener('touchend', handleTouchEnd);
|
|
1976
|
+
} else {
|
|
1977
|
+
$Editor.addEventListener('contextmenu', handleContextMenu$2);
|
|
1978
|
+
$Editor.addEventListener('wheel', handleWheel, { passive: true });
|
|
1979
|
+
}
|
|
1980
|
+
$Editor.addEventListener('mousemove', handleMouseMove$1, { passive: true });
|
|
1981
|
+
return {
|
|
1982
|
+
$LayerCursor,
|
|
1983
|
+
$LayerSelections,
|
|
1984
|
+
$LayerText,
|
|
1985
|
+
$EditorLayers,
|
|
1986
|
+
$Editor,
|
|
1987
|
+
$EditorInput,
|
|
1988
|
+
$ScrollBarThumb,
|
|
1989
|
+
$LayerDiagnostics,
|
|
1990
|
+
$ScrollBarDiagnostics,
|
|
1991
|
+
shouldIgnoreSelectionChange: false,
|
|
1992
|
+
$Viewlet: $Editor,
|
|
1993
|
+
}
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
const setText = (state, textInfos) => {
|
|
1997
|
+
setLineInfos(state, textInfos);
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
const setSettings = (state, fontSize, lineHeight, letterSpacing) => {
|
|
2001
|
+
// TODO many properties on <html> element in chrome devtools looks ugly
|
|
2002
|
+
// maybe put styles into a stylesheet instead of using inline styles?
|
|
2003
|
+
const root = document.documentElement;
|
|
2004
|
+
root.style.setProperty('--EditorFontSize', `${fontSize}px`);
|
|
2005
|
+
root.style.setProperty('--EditorLineHeight', `${lineHeight}px`);
|
|
2006
|
+
root.style.setProperty('--EditorLetterSpacing', letterSpacing);
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
const setScrollBar = (state, scrollBarY, scrollBarHeight) => {
|
|
2010
|
+
setPosition(state, scrollBarY, scrollBarHeight);
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
const renderCursors = (state, cursorInfos) => {
|
|
2014
|
+
setCursors(state, cursorInfos);
|
|
2015
|
+
};
|
|
2016
|
+
|
|
2017
|
+
const renderSelections = (state, selectionInfos) => {
|
|
2018
|
+
setSelections$1(state, selectionInfos);
|
|
2019
|
+
};
|
|
2020
|
+
|
|
2021
|
+
const renderTextAndCursors = (state, textInfos, cursorInfos) => {
|
|
2022
|
+
setLineInfos(state, textInfos);
|
|
2023
|
+
setCursors(state, cursorInfos);
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
const setSelections = (state, cursorInfos, selectionInfos) => {
|
|
2027
|
+
setCursors(state, cursorInfos);
|
|
2028
|
+
setSelections$1(state, selectionInfos);
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
const renderTextAndCursorsAndSelections = (
|
|
2032
|
+
state,
|
|
2033
|
+
scrollBarY,
|
|
2034
|
+
scrollBarHeight,
|
|
2035
|
+
textInfos,
|
|
2036
|
+
cursorInfos,
|
|
2037
|
+
selectionInfos
|
|
2038
|
+
) => {
|
|
2039
|
+
object(state);
|
|
2040
|
+
number(scrollBarY);
|
|
2041
|
+
number(scrollBarHeight);
|
|
2042
|
+
array(textInfos);
|
|
2043
|
+
array(cursorInfos);
|
|
2044
|
+
array(selectionInfos);
|
|
2045
|
+
setPosition(state, scrollBarY, scrollBarHeight);
|
|
2046
|
+
setLineInfos(state, textInfos);
|
|
2047
|
+
setCursors(state, cursorInfos);
|
|
2048
|
+
setSelections$1(state, selectionInfos);
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
const mount = (state, $Parent) => {
|
|
2052
|
+
$Parent.append(state.$Editor);
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2055
|
+
const dispose$3 = (state) => {};
|
|
2056
|
+
|
|
2057
|
+
const focus$3 = (state) => {
|
|
2058
|
+
// state.$EditorInput.focus()
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
const setLanguageId = async (state, languageId) => {
|
|
2062
|
+
// state.languageId = languageId
|
|
2063
|
+
// state.$Editor.dataset.languageId = languageId
|
|
2064
|
+
// loadTokenizer(languageId)
|
|
2065
|
+
};
|
|
2066
|
+
|
|
2067
|
+
const renderDiagnostics = (state, diagnostics, scrollBarDiagnostics) => {
|
|
2068
|
+
setDiagnostics$1(state, diagnostics);
|
|
2069
|
+
setDiagnostics(state, scrollBarDiagnostics);
|
|
2070
|
+
};
|
|
2071
|
+
|
|
2072
|
+
var M4 = {
|
|
2073
|
+
__proto__: null,
|
|
2074
|
+
create: create$4,
|
|
2075
|
+
setText: setText,
|
|
2076
|
+
setSettings: setSettings,
|
|
2077
|
+
setScrollBar: setScrollBar,
|
|
2078
|
+
renderCursors: renderCursors,
|
|
2079
|
+
renderSelections: renderSelections,
|
|
2080
|
+
renderTextAndCursors: renderTextAndCursors,
|
|
2081
|
+
setSelections: setSelections,
|
|
2082
|
+
renderTextAndCursorsAndSelections: renderTextAndCursorsAndSelections,
|
|
2083
|
+
mount: mount,
|
|
2084
|
+
dispose: dispose$3,
|
|
2085
|
+
focus: focus$3,
|
|
2086
|
+
setLanguageId: setLanguageId,
|
|
2087
|
+
renderDiagnostics: renderDiagnostics
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
const state$4 = {
|
|
2091
|
+
instances: Object.create(null),
|
|
2092
|
+
currentSideBarView: undefined,
|
|
2093
|
+
currentPanelView: undefined,
|
|
2094
|
+
modules: Object.create(null),
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
const get = (id) => {
|
|
2098
|
+
switch (id) {
|
|
2099
|
+
case 'Explorer':
|
|
2100
|
+
return import('./ViewletExplorer.js')
|
|
2101
|
+
case 'Run and Debug':
|
|
2102
|
+
return import('./ViewletRunAndDebug.js')
|
|
2103
|
+
case 'Search':
|
|
2104
|
+
return import('./ViewletSearch.js')
|
|
2105
|
+
case 'Source Control':
|
|
2106
|
+
return import('./ViewletSourceControl.js')
|
|
2107
|
+
case 'Terminal':
|
|
2108
|
+
return import('./ViewletTerminal.js')
|
|
2109
|
+
case 'Extensions':
|
|
2110
|
+
return import('./ViewletExtensions.js')
|
|
2111
|
+
case 'Debug Console':
|
|
2112
|
+
return import('./ViewletDebugConsole.js')
|
|
2113
|
+
case 'Output':
|
|
2114
|
+
return import('./ViewletOutput.js')
|
|
2115
|
+
case 'Problems':
|
|
2116
|
+
return import('./ViewletProblems.js')
|
|
2117
|
+
case 'Empty':
|
|
2118
|
+
return import('./ViewletEmpty.js')
|
|
2119
|
+
case 'EditorText':
|
|
2120
|
+
return import('./ViewletEditorText.js')
|
|
2121
|
+
case 'EditorPlainText':
|
|
2122
|
+
return import('./ViewletEditorPlainText.js')
|
|
2123
|
+
case 'EditorImage':
|
|
2124
|
+
return import('./ViewletEditorImage.js')
|
|
2125
|
+
case 'Clock':
|
|
2126
|
+
return import('./ViewletClock.js')
|
|
2127
|
+
case 'SideBar':
|
|
2128
|
+
return import('./ViewletSideBar.js')
|
|
2129
|
+
case 'Panel':
|
|
2130
|
+
return import('./ViewletPanel.js')
|
|
2131
|
+
case 'ActivityBar':
|
|
2132
|
+
return Promise.resolve().then(function () { return M27; })
|
|
2133
|
+
case 'ImagePreview':
|
|
2134
|
+
return import('./ImagePreview.js')
|
|
2135
|
+
case 'QuickPick':
|
|
2136
|
+
return import('./ViewletQuickPick.js')
|
|
2137
|
+
case 'StatusBar':
|
|
2138
|
+
return Promise.resolve().then(function () { return M28; })
|
|
2139
|
+
case 'TitleBar':
|
|
2140
|
+
return Promise.resolve().then(function () { return M29; })
|
|
2141
|
+
case 'Main':
|
|
2142
|
+
return import('./ViewletMain.js')
|
|
2143
|
+
case 'EditorCompletion':
|
|
2144
|
+
return import('./ViewletEditorCompletion.js')
|
|
2145
|
+
case 'References':
|
|
2146
|
+
return import('./ViewletReferences.js')
|
|
2147
|
+
case 'Implementations':
|
|
2148
|
+
return import('./ViewletImplementations.js')
|
|
2149
|
+
default:
|
|
2150
|
+
throw new Error(`unknown viewlet ${id}`)
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
2153
|
+
|
|
2154
|
+
const load = async (id, ...args) => {
|
|
2155
|
+
const module = await get(id);
|
|
2156
|
+
state$4.modules[id] = module;
|
|
2157
|
+
state$4.instances[id] = {
|
|
2158
|
+
state: module.create(...args),
|
|
2159
|
+
factory: module,
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
const invoke = (viewletId, method, ...args) => {
|
|
2164
|
+
const instance = state$4.instances[viewletId];
|
|
2165
|
+
if (!instance) {
|
|
2166
|
+
console.warn(`viewlet instance ${viewletId} not found`);
|
|
2167
|
+
return
|
|
2168
|
+
}
|
|
2169
|
+
if (typeof instance.factory[method] !== 'function') {
|
|
2170
|
+
console.warn(`method ${method} not implemented`);
|
|
2171
|
+
return
|
|
2172
|
+
}
|
|
2173
|
+
return instance.factory[method](instance.state, ...args)
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2176
|
+
const focus$2 = (viewletId) => {
|
|
2177
|
+
const instance = state$4.instances[viewletId];
|
|
2178
|
+
if (instance && instance.factory && instance.factory.focus) {
|
|
2179
|
+
instance.factory.focus(instance.state);
|
|
2180
|
+
}
|
|
2181
|
+
};
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* @deprecated
|
|
2185
|
+
*/
|
|
2186
|
+
const refresh = (viewletId, viewletContext) => {
|
|
2187
|
+
console.log('REFRESH', viewletId);
|
|
2188
|
+
const instance = state$4.instances[viewletId];
|
|
2189
|
+
if (instance) {
|
|
2190
|
+
instance.factory.refresh(instance.state, viewletContext);
|
|
2191
|
+
} else {
|
|
2192
|
+
// console.warn('no instance yet of ' + viewletId)
|
|
2193
|
+
state$4.refreshContext[viewletId] = viewletContext;
|
|
2194
|
+
}
|
|
2195
|
+
};
|
|
2196
|
+
|
|
2197
|
+
const sendMultiple = (commands) => {
|
|
2198
|
+
for (const command of commands) {
|
|
2199
|
+
const [_, viewletId, method, ...args] = command;
|
|
2200
|
+
invoke(viewletId, method, ...args);
|
|
2201
|
+
}
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* @deprecated
|
|
2206
|
+
*/
|
|
2207
|
+
const dispose$2 = (id) => {
|
|
2208
|
+
deleteState(id);
|
|
2209
|
+
const instance = state$4.instances[id];
|
|
2210
|
+
try {
|
|
2211
|
+
instance.factory.dispose(instance.state);
|
|
2212
|
+
if (instance.state.$Viewlet && instance.state.$Viewlet.isConnected) {
|
|
2213
|
+
instance.state.$Viewlet.remove();
|
|
2214
|
+
}
|
|
2215
|
+
} catch (error) {
|
|
2216
|
+
console.error(error);
|
|
2217
|
+
}
|
|
2218
|
+
delete state$4.instances[id];
|
|
2219
|
+
};
|
|
2220
|
+
|
|
2221
|
+
const handleError = (id, parentId, message) => {
|
|
2222
|
+
console.log('HANDLE ERROR');
|
|
2223
|
+
const instance = state$4.instances[id];
|
|
2224
|
+
if (instance && instance.factory && instance.factory.handleError) {
|
|
2225
|
+
instance.factory.handleError(instance.state, message);
|
|
2226
|
+
return
|
|
2227
|
+
}
|
|
2228
|
+
// TODO error should bubble up to until highest possible component
|
|
2229
|
+
const parentInstance = state$4.instances[parentId];
|
|
2230
|
+
if (
|
|
2231
|
+
parentInstance &&
|
|
2232
|
+
parentInstance.factory &&
|
|
2233
|
+
parentInstance.factory.handleError
|
|
2234
|
+
) {
|
|
2235
|
+
parentInstance.factory.handleError(instance.state, message);
|
|
2236
|
+
return
|
|
2237
|
+
}
|
|
2238
|
+
if (
|
|
2239
|
+
instance &&
|
|
2240
|
+
instance.state.$Viewlet &&
|
|
2241
|
+
instance.state.$Viewlet.isConnected
|
|
2242
|
+
) {
|
|
2243
|
+
instance.state.$Viewlet.textContent = message;
|
|
2244
|
+
}
|
|
2245
|
+
};
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* @deprecated
|
|
2249
|
+
*/
|
|
2250
|
+
const appendViewlet = (parentId, childId, focus) => {
|
|
2251
|
+
if (parentId === 'Widget') {
|
|
2252
|
+
// TODO
|
|
2253
|
+
return
|
|
2254
|
+
}
|
|
2255
|
+
const parentInstanceState = state$4.instances[parentId]; // TODO must ensure that parent is already created
|
|
2256
|
+
const parentModule = parentInstanceState.factory;
|
|
2257
|
+
const childInstance = state$4.instances[childId];
|
|
2258
|
+
if (!childInstance) {
|
|
2259
|
+
throw new Error('child instance must be defined to be appended to parent')
|
|
2260
|
+
}
|
|
2261
|
+
parentModule.appendViewlet(
|
|
2262
|
+
parentInstanceState.state,
|
|
2263
|
+
childInstance.factory.name,
|
|
2264
|
+
childInstance.state.$Viewlet
|
|
2265
|
+
);
|
|
2266
|
+
if (focus) {
|
|
2267
|
+
childInstance.factory.focus(childInstance.state);
|
|
2268
|
+
}
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
const __initialize__$6 = () => {
|
|
2272
|
+
register$1(3022, refresh);
|
|
2273
|
+
register$1(3024, invoke);
|
|
2274
|
+
register$1(3027, focus$2);
|
|
2275
|
+
register$1(3026, dispose$2);
|
|
2276
|
+
// Command.register(3028, Viewlet.hydrate)
|
|
2277
|
+
register$1(3029, appendViewlet);
|
|
2278
|
+
register$1(3030, load);
|
|
2279
|
+
register$1(3031, handleError);
|
|
2280
|
+
register$1(3032, sendMultiple);
|
|
2281
|
+
};
|
|
2282
|
+
|
|
2283
|
+
var M6 = {
|
|
2284
|
+
__proto__: null,
|
|
2285
|
+
__initialize__: __initialize__$6
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2288
|
+
const state$3 = {
|
|
2289
|
+
keyBindings: [],
|
|
2290
|
+
modifier: '',
|
|
2291
|
+
modifierTimeout: -1,
|
|
2292
|
+
};
|
|
2293
|
+
|
|
2294
|
+
const getIdentifier = (event) => {
|
|
2295
|
+
let identifier = '';
|
|
2296
|
+
if (event.ctrlKey) {
|
|
2297
|
+
identifier += 'ctrl+';
|
|
2298
|
+
}
|
|
2299
|
+
if (event.shiftKey) {
|
|
2300
|
+
identifier += 'shift+';
|
|
2301
|
+
}
|
|
2302
|
+
if (event.altKey) {
|
|
2303
|
+
identifier += 'alt+';
|
|
2304
|
+
}
|
|
2305
|
+
let key = event.key;
|
|
2306
|
+
if (key === ' ') {
|
|
2307
|
+
key = 'Space';
|
|
2308
|
+
}
|
|
2309
|
+
if (key.length === 1) {
|
|
2310
|
+
key = key.toLowerCase();
|
|
2311
|
+
}
|
|
2312
|
+
identifier += key;
|
|
2313
|
+
return identifier
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
// TODO store keybindings as json somewhere
|
|
2317
|
+
|
|
2318
|
+
// TODO sort keybindings by `when` priority -> focus.editorCompletions: 10, focus.editor:9 etc.
|
|
2319
|
+
|
|
2320
|
+
// TODO does it make sense to have all of these configurable?
|
|
2321
|
+
// could remove some context logic and have less user configuration when these are default
|
|
2322
|
+
// e.g. arrow down focuses next, arrow up always focuses previous item (like in aria spec)
|
|
2323
|
+
|
|
2324
|
+
// TODO ui should only have keys -> commands get resolved inside renderer worker
|
|
2325
|
+
// TODO should toggle terminal, not only open
|
|
2326
|
+
|
|
2327
|
+
const matchesContext = (keybinding) => {
|
|
2328
|
+
if (!keybinding.when) {
|
|
2329
|
+
return true
|
|
2330
|
+
}
|
|
2331
|
+
return get$1(keybinding.when)
|
|
2332
|
+
};
|
|
2333
|
+
|
|
2334
|
+
const getMatchingKeyBinding = (identifier) => {
|
|
2335
|
+
// TODO this could be more efficient in O(N) instead of O(2N)
|
|
2336
|
+
const matchesIdentifier = (keyBinding) => {
|
|
2337
|
+
return keyBinding.key === identifier
|
|
2338
|
+
};
|
|
2339
|
+
const matchingKeyBindings = state$3.keyBindings.filter(matchesIdentifier);
|
|
2340
|
+
const matchingKeyBinding = matchingKeyBindings.find(matchesContext);
|
|
2341
|
+
return matchingKeyBinding
|
|
2342
|
+
};
|
|
2343
|
+
|
|
2344
|
+
const getModifier = (event) => {
|
|
2345
|
+
switch (event.key) {
|
|
2346
|
+
case 'Control':
|
|
2347
|
+
return 'ctrl'
|
|
2348
|
+
case 'Shift':
|
|
2349
|
+
return 'shift'
|
|
2350
|
+
case 'Alt':
|
|
2351
|
+
return 'alt'
|
|
2352
|
+
}
|
|
2353
|
+
return ''
|
|
2354
|
+
};
|
|
2355
|
+
|
|
2356
|
+
const clearModifier = () => {
|
|
2357
|
+
if (!state$3.modifier) {
|
|
2358
|
+
return
|
|
2359
|
+
}
|
|
2360
|
+
if (state$3.modifierTimeout !== -1) {
|
|
2361
|
+
clearTimeout(state$3.modifierTimeout);
|
|
2362
|
+
state$3.modifier = '';
|
|
2363
|
+
state$3.modifierTimeout = -1;
|
|
2364
|
+
}
|
|
2365
|
+
};
|
|
2366
|
+
|
|
2367
|
+
const handleMatchingKeyBinding = (matchingKeyBinding) => {
|
|
2368
|
+
// TODO execute command directly or -> executeCommand -> keybindings -> executeCommand
|
|
2369
|
+
// better directly
|
|
2370
|
+
// TODO always should be number
|
|
2371
|
+
// when launching keybindings -> map string command to number
|
|
2372
|
+
if (typeof matchingKeyBinding.command === 'number') {
|
|
2373
|
+
if (matchingKeyBinding.command === -1) {
|
|
2374
|
+
console.warn('keybinding not fully specified', matchingKeyBinding);
|
|
2375
|
+
return
|
|
2376
|
+
}
|
|
2377
|
+
send([
|
|
2378
|
+
/* command */ matchingKeyBinding.command,
|
|
2379
|
+
// TODO should args always be defined? (probably yes -> monomorphism & simpler code since all objects are the same)
|
|
2380
|
+
...(matchingKeyBinding.args || []),
|
|
2381
|
+
]);
|
|
2382
|
+
} else if (typeof matchingKeyBinding.command === 'string') {
|
|
2383
|
+
// TODO matchingKeyBinding.command should always be number
|
|
2384
|
+
send([
|
|
2385
|
+
/* KeyBindings.handleKeyBinding */ 1422,
|
|
2386
|
+
/* keyBinding */ matchingKeyBinding,
|
|
2387
|
+
]);
|
|
2388
|
+
}
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
const handleKeyDown$2 = (event) => {
|
|
2392
|
+
const identifier = getIdentifier(event);
|
|
2393
|
+
const matchingKeyBinding = getMatchingKeyBinding(identifier);
|
|
2394
|
+
if (!matchingKeyBinding) {
|
|
2395
|
+
return
|
|
2396
|
+
}
|
|
2397
|
+
event.preventDefault();
|
|
2398
|
+
handleMatchingKeyBinding(matchingKeyBinding);
|
|
2399
|
+
};
|
|
2400
|
+
|
|
2401
|
+
const handleKeyUp = (event) => {
|
|
2402
|
+
const modifier = getModifier(event);
|
|
2403
|
+
if (!modifier) {
|
|
2404
|
+
clearModifier();
|
|
2405
|
+
return
|
|
2406
|
+
}
|
|
2407
|
+
if (state$3.modifier === modifier) {
|
|
2408
|
+
clearModifier();
|
|
2409
|
+
const identifier = `${modifier} ${modifier}`;
|
|
2410
|
+
const matchingKeyBinding = getMatchingKeyBinding(identifier);
|
|
2411
|
+
if (matchingKeyBinding) {
|
|
2412
|
+
handleMatchingKeyBinding(matchingKeyBinding);
|
|
2413
|
+
}
|
|
2414
|
+
return
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
state$3.modifier = modifier;
|
|
2418
|
+
// @ts-ignore
|
|
2419
|
+
state$3.modifierTimeout = setTimeout(clearModifier, 300);
|
|
2420
|
+
};
|
|
2421
|
+
|
|
2422
|
+
const hydrate$1 = async (keyBindings) => {
|
|
2423
|
+
// TODO is this the right place for browser context ?
|
|
2424
|
+
// maybe in env file / env service
|
|
2425
|
+
const browser = getBrowser();
|
|
2426
|
+
set(`browser.${browser}`, true);
|
|
2427
|
+
state$3.keyBindings = keyBindings;
|
|
2428
|
+
window.addEventListener('keydown', handleKeyDown$2);
|
|
2429
|
+
// TODO only need keyup listener if keybindings include double modifier key (e.g "shift shift")
|
|
2430
|
+
window.addEventListener('keyup', handleKeyUp);
|
|
2431
|
+
};
|
|
2432
|
+
|
|
2433
|
+
// TODO should be in renderer worker
|
|
2434
|
+
const lookupKeyBinding = (commandId) => {
|
|
2435
|
+
switch (commandId) {
|
|
2436
|
+
case 'scm.acceptInput':
|
|
2437
|
+
return 'Ctrl+Enter'
|
|
2438
|
+
default:
|
|
2439
|
+
return ''
|
|
2440
|
+
}
|
|
2441
|
+
};
|
|
2442
|
+
|
|
2443
|
+
const __initialize__$5 = () => {
|
|
2444
|
+
register$1(755, hydrate$1);
|
|
2445
|
+
// Command.register(756, KeyBindings.setKeyBindings)
|
|
2446
|
+
};
|
|
2447
|
+
|
|
2448
|
+
var M7 = {
|
|
2449
|
+
__proto__: null,
|
|
2450
|
+
__initialize__: __initialize__$5
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2453
|
+
// TODO global event bus is probably a bad idea
|
|
2454
|
+
// cons:
|
|
2455
|
+
// 1. it is not typesafe
|
|
2456
|
+
// 2. dependencies are unclear
|
|
2457
|
+
//
|
|
2458
|
+
// pros
|
|
2459
|
+
// 1. it decouples event emitter (e.g. Editor creation) from other module (Document syncing when editor was created)
|
|
2460
|
+
|
|
2461
|
+
const state$2 = {
|
|
2462
|
+
listenerMap: Object.create(null),
|
|
2463
|
+
};
|
|
2464
|
+
|
|
2465
|
+
const emitEvent = (event, ...args) => {
|
|
2466
|
+
const listeners = state$2.listenerMap[event] || [];
|
|
2467
|
+
for (const listener of listeners) {
|
|
2468
|
+
listener(...args);
|
|
2469
|
+
}
|
|
2470
|
+
};
|
|
2471
|
+
|
|
2472
|
+
const addListener = (event, fn) => {
|
|
2473
|
+
state$2.listenerMap[event] ||= [];
|
|
2474
|
+
if (state$2.listenerMap[event].includes(fn)) {
|
|
2475
|
+
return
|
|
2476
|
+
}
|
|
2477
|
+
state$2.listenerMap[event].push(fn);
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
var M9 = {
|
|
2481
|
+
__proto__: null,
|
|
2482
|
+
state: state$2,
|
|
2483
|
+
emitEvent: emitEvent,
|
|
2484
|
+
addListener: addListener
|
|
2485
|
+
};
|
|
2486
|
+
|
|
2487
|
+
const state$1 = {
|
|
2488
|
+
isInDom: false,
|
|
2489
|
+
$PreviousFocusElement: undefined,
|
|
2490
|
+
widgetSet: new Set(),
|
|
2491
|
+
$Widgets: undefined,
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
const create$Widgets = () => {
|
|
2495
|
+
const $Widgets = document.createElement('div');
|
|
2496
|
+
$Widgets.id = 'Widgets';
|
|
2497
|
+
return $Widgets
|
|
2498
|
+
};
|
|
2499
|
+
|
|
2500
|
+
const append = ($Element) => {
|
|
2501
|
+
// TODO should not call append in the first place if it is already in dom
|
|
2502
|
+
if (state$1.widgetSet.has($Element)) {
|
|
2503
|
+
return
|
|
2504
|
+
}
|
|
2505
|
+
state$1.widgetSet.add($Element);
|
|
2506
|
+
if (state$1.$Widgets) {
|
|
2507
|
+
state$1.$Widgets.append($Element);
|
|
2508
|
+
} else {
|
|
2509
|
+
state$1.$Widgets = create$Widgets();
|
|
2510
|
+
state$1.$Widgets.append($Element);
|
|
2511
|
+
document.body.append(state$1.$Widgets);
|
|
2512
|
+
}
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
const find = (id) => {
|
|
2516
|
+
for (const $Widget of state$1.widgetSet) {
|
|
2517
|
+
if ($Widget.dataset.id === id) {
|
|
2518
|
+
return $Widget
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
return undefined
|
|
2522
|
+
};
|
|
2523
|
+
|
|
2524
|
+
const remove = ($Element) => {
|
|
2525
|
+
if (!$Element) {
|
|
2526
|
+
// TODO $Element should always be defined
|
|
2527
|
+
return
|
|
2528
|
+
}
|
|
2529
|
+
state$1.widgetSet.delete($Element);
|
|
2530
|
+
$Element.remove();
|
|
2531
|
+
// TODO state.$Widgets should always be defined at this point
|
|
2532
|
+
if (state$1.widgetSet.size === 0 && state$1.$Widgets) {
|
|
2533
|
+
state$1.$Widgets.remove();
|
|
2534
|
+
state$1.$Widgets = undefined;
|
|
2535
|
+
}
|
|
2536
|
+
};
|
|
2537
|
+
|
|
2538
|
+
var M14 = {
|
|
2539
|
+
__proto__: null,
|
|
2540
|
+
state: state$1,
|
|
2541
|
+
append: append,
|
|
2542
|
+
find: find,
|
|
2543
|
+
remove: remove
|
|
2544
|
+
};
|
|
2545
|
+
|
|
2546
|
+
const getItem = (key) => {
|
|
2547
|
+
return localStorage.getItem(key) || undefined
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2550
|
+
const setItem = (key, value) => {
|
|
2551
|
+
localStorage.setItem(key, value);
|
|
2552
|
+
};
|
|
2553
|
+
|
|
2554
|
+
const clear = () => {
|
|
2555
|
+
localStorage.clear();
|
|
2556
|
+
};
|
|
2557
|
+
|
|
2558
|
+
const __initialize__$4 = () => {
|
|
2559
|
+
register$1(8986, clear);
|
|
2560
|
+
register$1(8987, getItem);
|
|
2561
|
+
register$1(8988, setItem);
|
|
2562
|
+
};
|
|
2563
|
+
|
|
2564
|
+
var M15 = {
|
|
2565
|
+
__proto__: null,
|
|
2566
|
+
__initialize__: __initialize__$4
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
const __initialize__$3 = () => {
|
|
2570
|
+
register$1(909090, handleInvoke);
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
var M17 = {
|
|
2574
|
+
__proto__: null,
|
|
2575
|
+
__initialize__: __initialize__$3
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2578
|
+
const supportsServiceWorker = () => {
|
|
2579
|
+
return 'serviceWorker' in navigator
|
|
2580
|
+
};
|
|
2581
|
+
|
|
2582
|
+
const handleUpdateFound = () => {
|
|
2583
|
+
// console.info('[service-worker] update found')
|
|
2584
|
+
};
|
|
2585
|
+
|
|
2586
|
+
const handleControllerChange = () => {
|
|
2587
|
+
// console.info('[service-worker] controller changed - reloading page')
|
|
2588
|
+
location.reload();
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
const register = async (url) => {
|
|
2592
|
+
if (!supportsServiceWorker()) {
|
|
2593
|
+
return
|
|
2594
|
+
}
|
|
2595
|
+
const registration = await navigator.serviceWorker.register(url, {
|
|
2596
|
+
scope: '/',
|
|
2597
|
+
type: 'module',
|
|
2598
|
+
});
|
|
2599
|
+
registration.onupdatefound = handleUpdateFound;
|
|
2600
|
+
navigator.serviceWorker.oncontrollerchange = handleControllerChange;
|
|
2601
|
+
};
|
|
2602
|
+
|
|
2603
|
+
const uninstallRegistration = async (registration) => {
|
|
2604
|
+
await registration.unregister();
|
|
2605
|
+
};
|
|
2606
|
+
|
|
2607
|
+
const uninstall = async () => {
|
|
2608
|
+
if (!supportsServiceWorker()) {
|
|
2609
|
+
return
|
|
2610
|
+
}
|
|
2611
|
+
const registrations = await navigator.serviceWorker.getRegistrations();
|
|
2612
|
+
await Promise.all(registrations.map(uninstallRegistration));
|
|
2613
|
+
};
|
|
2614
|
+
|
|
2615
|
+
const __initialize__$2 = () => {
|
|
2616
|
+
register$1(43725, register);
|
|
2617
|
+
register$1(43726, uninstall);
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2620
|
+
var M22 = {
|
|
2621
|
+
__proto__: null,
|
|
2622
|
+
__initialize__: __initialize__$2
|
|
2623
|
+
};
|
|
2624
|
+
|
|
2625
|
+
const getPathName = () => {
|
|
2626
|
+
return location.pathname
|
|
2627
|
+
};
|
|
2628
|
+
|
|
2629
|
+
// TODO should do nothing if it is already at this path
|
|
2630
|
+
const setPathName = (pathName) => {
|
|
2631
|
+
const currentPathName = getPathName();
|
|
2632
|
+
if (currentPathName === pathName) {
|
|
2633
|
+
return
|
|
2634
|
+
}
|
|
2635
|
+
history.pushState(null, null, pathName);
|
|
2636
|
+
};
|
|
2637
|
+
|
|
2638
|
+
const handlePopState = (event) => {
|
|
2639
|
+
send([/* Workspace.hydrate */ 7634]);
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2642
|
+
const hydrate = () => {
|
|
2643
|
+
addEventListener('popstate', handlePopState);
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2646
|
+
const __initialize__$1 = () => {
|
|
2647
|
+
register$1(5611, getPathName);
|
|
2648
|
+
register$1(5612, setPathName);
|
|
2649
|
+
register$1(5613, hydrate);
|
|
2650
|
+
};
|
|
2651
|
+
|
|
2652
|
+
var M26 = {
|
|
2653
|
+
__proto__: null,
|
|
2654
|
+
__initialize__: __initialize__$1
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
// TODO this module should be called dom or dom utils
|
|
2658
|
+
|
|
2659
|
+
// TODO this module makes for weird code splitting chunks,
|
|
2660
|
+
// maybe duplicate the code per file for better chunks
|
|
2661
|
+
|
|
2662
|
+
const findIndex = ($Container, $Target) => {
|
|
2663
|
+
while ($Target && $Target.parentNode !== $Container) {
|
|
2664
|
+
$Target = $Target.parentNode;
|
|
2665
|
+
}
|
|
2666
|
+
if (!$Target) {
|
|
2667
|
+
// console.log('no target to find', $Target, event.target)
|
|
2668
|
+
return -1
|
|
2669
|
+
}
|
|
2670
|
+
for (let i = 0; i < $Container.children.length; i++) {
|
|
2671
|
+
if ($Container.children[i] === $Target) {
|
|
2672
|
+
return i
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
return -1
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
const getLabel = (item) => {
|
|
2679
|
+
if (!item || !item.label) {
|
|
2680
|
+
console.warn('menu item has missing label', item);
|
|
2681
|
+
return 'n/a'
|
|
2682
|
+
}
|
|
2683
|
+
return item.label
|
|
2684
|
+
};
|
|
2685
|
+
|
|
2686
|
+
const create$MenuItem = (item) => {
|
|
2687
|
+
const $MenuItem = document.createElement('li');
|
|
2688
|
+
switch (item.flags) {
|
|
2689
|
+
case /* None */ 0:
|
|
2690
|
+
$MenuItem.className = 'MenuItem';
|
|
2691
|
+
$MenuItem.setAttribute('role', 'menuitem');
|
|
2692
|
+
$MenuItem.textContent = getLabel(item);
|
|
2693
|
+
$MenuItem.tabIndex = -1;
|
|
2694
|
+
break
|
|
2695
|
+
case /* Separator */ 1:
|
|
2696
|
+
$MenuItem.className = 'MenuItemSeparator';
|
|
2697
|
+
$MenuItem.setAttribute('role', 'separator');
|
|
2698
|
+
break
|
|
2699
|
+
case /* Checked */ 2:
|
|
2700
|
+
$MenuItem.className = 'MenuItem';
|
|
2701
|
+
$MenuItem.setAttribute('role', 'menuitemcheckbox');
|
|
2702
|
+
$MenuItem.ariaChecked = 'true';
|
|
2703
|
+
$MenuItem.textContent = getLabel(item);
|
|
2704
|
+
$MenuItem.tabIndex = -1;
|
|
2705
|
+
break
|
|
2706
|
+
case /* UnChecked */ 3:
|
|
2707
|
+
$MenuItem.className = 'MenuItem';
|
|
2708
|
+
$MenuItem.setAttribute('role', 'menuitemcheckbox');
|
|
2709
|
+
$MenuItem.ariaChecked = 'false';
|
|
2710
|
+
$MenuItem.textContent = getLabel(item);
|
|
2711
|
+
$MenuItem.tabIndex = -1;
|
|
2712
|
+
break
|
|
2713
|
+
case /* SubMenu */ 4:
|
|
2714
|
+
$MenuItem.className = 'MenuItem';
|
|
2715
|
+
$MenuItem.setAttribute('role', 'menuitem');
|
|
2716
|
+
$MenuItem.textContent = getLabel(item);
|
|
2717
|
+
$MenuItem.tabIndex = -1;
|
|
2718
|
+
$MenuItem.ariaHasPopup = 'true';
|
|
2719
|
+
$MenuItem.ariaExpanded = 'false';
|
|
2720
|
+
break
|
|
2721
|
+
case /* Disabled */ 5:
|
|
2722
|
+
$MenuItem.className = 'MenuItem';
|
|
2723
|
+
$MenuItem.setAttribute('role', 'menuitem');
|
|
2724
|
+
$MenuItem.textContent = getLabel(item);
|
|
2725
|
+
$MenuItem.tabIndex = -1;
|
|
2726
|
+
$MenuItem.setAttribute('disabled', 'true');
|
|
2727
|
+
break
|
|
2728
|
+
default:
|
|
2729
|
+
$MenuItem.className = 'MenuItem';
|
|
2730
|
+
$MenuItem.setAttribute('role', 'menuitem');
|
|
2731
|
+
$MenuItem.textContent = getLabel(item);
|
|
2732
|
+
$MenuItem.tabIndex = -1;
|
|
2733
|
+
console.warn('invalid menu item flags:', item);
|
|
2734
|
+
break
|
|
2735
|
+
}
|
|
2736
|
+
return $MenuItem
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
const create$BackDrop = () => {
|
|
2740
|
+
const $BackDrop = document.createElement('div');
|
|
2741
|
+
$BackDrop.id = 'BackDrop';
|
|
2742
|
+
return $BackDrop
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
// TODO when pressing tab -> focus next element in tab order and close menu
|
|
2746
|
+
|
|
2747
|
+
// TODO menu and contextmenu should have own keybinding logic
|
|
2748
|
+
// seems not possible to do with just one keybinding listener
|
|
2749
|
+
|
|
2750
|
+
// TODO similar to context menu, show sub menu entries
|
|
2751
|
+
// there can be multiple instances (parent -> child -> child) submenus
|
|
2752
|
+
|
|
2753
|
+
// TODO using .style.top, .style.left causes chrome devtools to show many layout shift -> maybe use transform instead
|
|
2754
|
+
|
|
2755
|
+
// TODO when cycling through items, recalculate style is much slower
|
|
2756
|
+
// than in vscode (1.49ms vs 0.33ms)
|
|
2757
|
+
// paint is also faster in vscode (0.32ms vs 0.14ms)
|
|
2758
|
+
|
|
2759
|
+
// TODO focus on menu is not announced to screenreader
|
|
2760
|
+
|
|
2761
|
+
// TODO recalculate style and paint is slow when cycling through items:
|
|
2762
|
+
// 0.59ms recalculate style
|
|
2763
|
+
// 36us update layer tree
|
|
2764
|
+
// 0.35ms paint
|
|
2765
|
+
// 0.20ms composite layer
|
|
2766
|
+
|
|
2767
|
+
// const contextMenuWidth = 150
|
|
2768
|
+
// const contextMenuHeight = 150 + /* padding */ 8 * 4
|
|
2769
|
+
|
|
2770
|
+
// TODO keyboard handling
|
|
2771
|
+
|
|
2772
|
+
const state = {
|
|
2773
|
+
handleKeyDown(event) {},
|
|
2774
|
+
handleFocusOut(event) {},
|
|
2775
|
+
$$Menus: [],
|
|
2776
|
+
anchorX: 0,
|
|
2777
|
+
anchorY: 0,
|
|
2778
|
+
anchorTime: -1,
|
|
2779
|
+
$BackDrop: undefined,
|
|
2780
|
+
};
|
|
2781
|
+
|
|
2782
|
+
const getLevel = ($Menu) => {
|
|
2783
|
+
return state.$$Menus.indexOf($Menu)
|
|
2784
|
+
};
|
|
2785
|
+
|
|
2786
|
+
const handleMouseDown = (event) => {
|
|
2787
|
+
const $Target = event.target;
|
|
2788
|
+
const $Menu = $Target.closest('.Menu');
|
|
2789
|
+
const index = findIndex($Menu, $Target);
|
|
2790
|
+
if (index === -1) {
|
|
2791
|
+
console.log('index is negative one');
|
|
2792
|
+
return
|
|
2793
|
+
}
|
|
2794
|
+
event.preventDefault();
|
|
2795
|
+
const level = getLevel($Menu);
|
|
2796
|
+
send([
|
|
2797
|
+
/* Menu.handleClick */ 7403,
|
|
2798
|
+
/* level */ level,
|
|
2799
|
+
/* index */ index,
|
|
2800
|
+
]);
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2803
|
+
/**
|
|
2804
|
+
*
|
|
2805
|
+
* @param {MouseEvent} event
|
|
2806
|
+
*/
|
|
2807
|
+
const handleMouseEnter$1 = (event) => {
|
|
2808
|
+
const $Target = event.target;
|
|
2809
|
+
// @ts-ignore
|
|
2810
|
+
const $Menu = $Target.closest('.Menu');
|
|
2811
|
+
const x = event.clientX;
|
|
2812
|
+
const y = event.clientY;
|
|
2813
|
+
const timeStamp = event.timeStamp;
|
|
2814
|
+
|
|
2815
|
+
const index = findIndex($Menu, $Target);
|
|
2816
|
+
if (index === -1) {
|
|
2817
|
+
return
|
|
2818
|
+
}
|
|
2819
|
+
const level = getLevel($Menu);
|
|
2820
|
+
console.log('focus index mouse', index);
|
|
2821
|
+
send([
|
|
2822
|
+
/* Menu.focusIndexMouse */ 7409,
|
|
2823
|
+
/* level */ level,
|
|
2824
|
+
/* index */ index,
|
|
2825
|
+
/* x */ x,
|
|
2826
|
+
/* y */ y,
|
|
2827
|
+
/* timeStamp */ timeStamp,
|
|
2828
|
+
]);
|
|
2829
|
+
};
|
|
2830
|
+
|
|
2831
|
+
const handleMouseMove = (event) => {
|
|
2832
|
+
// const x = event.clientX
|
|
2833
|
+
// const y = event.clientY
|
|
2834
|
+
// console.log('move', { x, y })
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2837
|
+
const handleMouseLeave = (event) => {
|
|
2838
|
+
// const x = event.clientX
|
|
2839
|
+
// const y = event.clientY
|
|
2840
|
+
// console.log('leave', { x, y })
|
|
2841
|
+
};
|
|
2842
|
+
|
|
2843
|
+
// const handleBlur = (event) => {}
|
|
2844
|
+
const handleKeyDown$1 = (event) => {
|
|
2845
|
+
state.handleKeyDown(event);
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
const handleFocusOut$1 = (event) => {
|
|
2849
|
+
state.handleFocusOut(event);
|
|
2850
|
+
};
|
|
2851
|
+
|
|
2852
|
+
const create$Menu = () => {
|
|
2853
|
+
// TODO set aria label on menu (e.g. File, Edit, Selection)
|
|
2854
|
+
const $Menu = document.createElement('ul');
|
|
2855
|
+
$Menu.className = 'Menu';
|
|
2856
|
+
$Menu.setAttribute('role', 'menu');
|
|
2857
|
+
$Menu.tabIndex = -1;
|
|
2858
|
+
// $ContextMenu.onmousedown = contextMenuHandleMouseDown
|
|
2859
|
+
// TODO mousedown vs click? (click is usually better but mousedown is faster, why wait 100ms?)
|
|
2860
|
+
$Menu.addEventListener('mousedown', handleMouseDown);
|
|
2861
|
+
$Menu.addEventListener('mouseenter', handleMouseEnter$1, {
|
|
2862
|
+
capture: true,
|
|
2863
|
+
});
|
|
2864
|
+
$Menu.addEventListener('mouseleave', handleMouseLeave, {
|
|
2865
|
+
capture: true,
|
|
2866
|
+
});
|
|
2867
|
+
$Menu.addEventListener('mousemove', handleMouseMove, {
|
|
2868
|
+
passive: true,
|
|
2869
|
+
});
|
|
2870
|
+
$Menu.onkeydown = handleKeyDown$1;
|
|
2871
|
+
$Menu.addEventListener('focusout', handleFocusOut$1);
|
|
2872
|
+
$Menu.oncontextmenu = handleContextMenu$1;
|
|
2873
|
+
// $ContextMenu.onfocus = handleFocus
|
|
2874
|
+
// $ContextMenu.onblur = handleBlur
|
|
2875
|
+
return $Menu
|
|
2876
|
+
};
|
|
2877
|
+
|
|
2878
|
+
const focusIndex$1 = (level, oldFocusedIndex, newFocusedIndex) => {
|
|
2879
|
+
const $Menu = state.$$Menus[level];
|
|
2880
|
+
if (oldFocusedIndex !== -1) {
|
|
2881
|
+
$Menu.children[oldFocusedIndex].classList.remove('Focused');
|
|
2882
|
+
}
|
|
2883
|
+
if (newFocusedIndex !== -1) {
|
|
2884
|
+
$Menu.children[newFocusedIndex].classList.add('Focused');
|
|
2885
|
+
$Menu.children[newFocusedIndex].focus();
|
|
2886
|
+
}
|
|
2887
|
+
};
|
|
2888
|
+
|
|
2889
|
+
// TODO replace function that recycles menu dom nodes
|
|
2890
|
+
|
|
2891
|
+
const handleBackDropMouseDown = () => {
|
|
2892
|
+
send([/* Menu.hide */ 7401]);
|
|
2893
|
+
};
|
|
2894
|
+
|
|
2895
|
+
const handleContextMenu$1 = (event) => {
|
|
2896
|
+
event.preventDefault();
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2899
|
+
const showMenu = (
|
|
2900
|
+
x,
|
|
2901
|
+
y,
|
|
2902
|
+
width,
|
|
2903
|
+
height,
|
|
2904
|
+
items,
|
|
2905
|
+
level,
|
|
2906
|
+
parentIndex = -1,
|
|
2907
|
+
mouseBlocking = false
|
|
2908
|
+
) => {
|
|
2909
|
+
if (mouseBlocking) {
|
|
2910
|
+
const $BackDrop = create$BackDrop();
|
|
2911
|
+
$BackDrop.onmousedown = handleBackDropMouseDown;
|
|
2912
|
+
$BackDrop.oncontextmenu = handleContextMenu$1;
|
|
2913
|
+
state.$BackDrop = $BackDrop;
|
|
2914
|
+
append($BackDrop);
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
const $Menu = create$Menu();
|
|
2918
|
+
$Menu.append(...items.map(create$MenuItem));
|
|
2919
|
+
$Menu.style.left = `${x}px`;
|
|
2920
|
+
$Menu.style.top = `${y}px`;
|
|
2921
|
+
$Menu.id = `Menu-${level}`;
|
|
2922
|
+
|
|
2923
|
+
if (parentIndex !== -1) {
|
|
2924
|
+
const $ParentMenu = state.$$Menus[level - 1];
|
|
2925
|
+
const $ParentMenuItem = $ParentMenu.children[parentIndex];
|
|
2926
|
+
$ParentMenuItem.ariaExpanded = 'true';
|
|
2927
|
+
$ParentMenuItem.setAttribute('aria-owns', $Menu.id);
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
state.$$Menus.push($Menu);
|
|
2931
|
+
append($Menu);
|
|
2932
|
+
|
|
2933
|
+
if (level === 0) {
|
|
2934
|
+
console.info('focus menu');
|
|
2935
|
+
focus$4($Menu, 'menu');
|
|
2936
|
+
}
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
const showContextMenu = (x, y, width, height, level, items) => {
|
|
2940
|
+
for (const $Menu of state.$$Menus) {
|
|
2941
|
+
remove($Menu);
|
|
2942
|
+
}
|
|
2943
|
+
state.$$Menus = [];
|
|
2944
|
+
while (state.$$Menus.length > 0) {
|
|
2945
|
+
state.$$Menus[0].remove();
|
|
2946
|
+
}
|
|
2947
|
+
const $Menu = create$Menu();
|
|
2948
|
+
$Menu.append(...items.map(create$MenuItem));
|
|
2949
|
+
$Menu.style.left = `${x}px`;
|
|
2950
|
+
$Menu.style.top = `${y}px`;
|
|
2951
|
+
$Menu.id = `Menu-${level}`;
|
|
2952
|
+
append($Menu);
|
|
2953
|
+
state.$$Menus.push($Menu);
|
|
2954
|
+
// TODO create backdrop
|
|
2955
|
+
};
|
|
2956
|
+
|
|
2957
|
+
const closeSubMenu = () => {
|
|
2958
|
+
const $SubMenu = state.$$Menus.pop();
|
|
2959
|
+
state.$$Menus.at(-1);
|
|
2960
|
+
remove($SubMenu);
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2963
|
+
const hideSubMenu = (level) => {
|
|
2964
|
+
const $$ChildMenus = state.$$Menus.slice(level);
|
|
2965
|
+
for (const $ChildMenu of $$ChildMenus) {
|
|
2966
|
+
remove($ChildMenu);
|
|
2967
|
+
}
|
|
2968
|
+
};
|
|
2969
|
+
|
|
2970
|
+
// export const showSubMenu = (level, items, parentIndex) => {
|
|
2971
|
+
// const $$ChildMenus = state.$$Menus.slice(level)
|
|
2972
|
+
// for (const $ChildMenu of $$ChildMenus) {
|
|
2973
|
+
// Widget.remove($ChildMenu)
|
|
2974
|
+
// }
|
|
2975
|
+
// state.$$Menus = state.$$Menus.slice(0, level)
|
|
2976
|
+
// const $ParentMenu = state.$$Menus[level - 1]
|
|
2977
|
+
// const $ParentMenuItem = $ParentMenu.children[parentIndex]
|
|
2978
|
+
// const rect = $ParentMenuItem.getBoundingClientRect()
|
|
2979
|
+
// const x = rect.right
|
|
2980
|
+
// const y = rect.top
|
|
2981
|
+
// showMenu(x, y, items, level)
|
|
2982
|
+
// // TODO remove aria-owns when sub-menu is closed
|
|
2983
|
+
// $ParentMenuItem.setAttribute('aria-owns', 'Menu')
|
|
2984
|
+
// }
|
|
2985
|
+
|
|
2986
|
+
// TODO implement focusIndex like this
|
|
2987
|
+
// const focusIndex2=(id, index)=>{
|
|
2988
|
+
// const $Menu = state.menus[id]
|
|
2989
|
+
// $Menu.children[index].focus()
|
|
2990
|
+
// }
|
|
2991
|
+
|
|
2992
|
+
// TODO support nested menus / submenus
|
|
2993
|
+
const showControlled = ({
|
|
2994
|
+
x,
|
|
2995
|
+
y,
|
|
2996
|
+
items,
|
|
2997
|
+
handleKeyDown,
|
|
2998
|
+
handleFocusOut,
|
|
2999
|
+
$Parent,
|
|
3000
|
+
level,
|
|
3001
|
+
width,
|
|
3002
|
+
height,
|
|
3003
|
+
}) => {
|
|
3004
|
+
showMenu(x, y, width, height, items, level);
|
|
3005
|
+
// TODO menu should not necessarily know about parent (titleBarMenuBar)
|
|
3006
|
+
// it should be the other way around
|
|
3007
|
+
state.$Parent = $Parent;
|
|
3008
|
+
state.handleFocusOut = handleFocusOut;
|
|
3009
|
+
state.handleKeyDown = handleKeyDown;
|
|
3010
|
+
if ($Parent) {
|
|
3011
|
+
// state.$Menu.ariaLabel=''
|
|
3012
|
+
// state.$Menu.ariaLabelledBy =$Parent.id
|
|
3013
|
+
$Parent.setAttribute('aria-owns', 'Menu');
|
|
3014
|
+
}
|
|
3015
|
+
// Context.setFocus('menu') // TODO overlapping focus: titleBarMenuBar has focus (kinda) but also menu at the same time
|
|
3016
|
+
};
|
|
3017
|
+
|
|
3018
|
+
// TODO have function to show submenu
|
|
3019
|
+
|
|
3020
|
+
const hide = (restoreFocus = true) => {
|
|
3021
|
+
for (const $Menu of state.$$Menus) {
|
|
3022
|
+
remove($Menu);
|
|
3023
|
+
}
|
|
3024
|
+
state.$$Menus = [];
|
|
3025
|
+
if (state.$BackDrop) {
|
|
3026
|
+
remove(state.$BackDrop);
|
|
3027
|
+
state.$BackDrop = undefined;
|
|
3028
|
+
}
|
|
3029
|
+
// TODO focus previous item
|
|
3030
|
+
if (restoreFocus) {
|
|
3031
|
+
focusPrevious();
|
|
3032
|
+
}
|
|
3033
|
+
};
|
|
3034
|
+
|
|
3035
|
+
const contains = ($Element) => {
|
|
3036
|
+
for (const $Menu of state.$$Menus) {
|
|
3037
|
+
if ($Menu.contains($Element)) {
|
|
3038
|
+
return true
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
return false
|
|
3042
|
+
};
|
|
3043
|
+
|
|
3044
|
+
var M13 = {
|
|
3045
|
+
__proto__: null,
|
|
3046
|
+
state: state,
|
|
3047
|
+
focusIndex: focusIndex$1,
|
|
3048
|
+
showMenu: showMenu,
|
|
3049
|
+
showContextMenu: showContextMenu,
|
|
3050
|
+
closeSubMenu: closeSubMenu,
|
|
3051
|
+
hideSubMenu: hideSubMenu,
|
|
3052
|
+
showControlled: showControlled,
|
|
3053
|
+
hide: hide,
|
|
3054
|
+
contains: contains
|
|
3055
|
+
};
|
|
3056
|
+
|
|
3057
|
+
// TODO set aria-selected false when sidebar is collapsed
|
|
3058
|
+
|
|
3059
|
+
const create$ActivityBarItemIcon = (icon) => {
|
|
3060
|
+
const $ActivityBarItemIcon = document.createElement('div');
|
|
3061
|
+
$ActivityBarItemIcon.className = 'ActivityBarItemIcon';
|
|
3062
|
+
// @ts-ignore
|
|
3063
|
+
$ActivityBarItemIcon.style.maskImage = `url(${icon})`;
|
|
3064
|
+
$ActivityBarItemIcon.style.webkitMaskImage = `url(${icon})`;
|
|
3065
|
+
return $ActivityBarItemIcon
|
|
3066
|
+
};
|
|
3067
|
+
|
|
3068
|
+
// TODO assetDir might not work with non-builtin extension icons
|
|
3069
|
+
const create$ActivityBarItem = (item) => {
|
|
3070
|
+
const assetDir = getAssetDir();
|
|
3071
|
+
const $ActivityBarItemIcon = create$ActivityBarItemIcon(
|
|
3072
|
+
`${assetDir}/${item.icon}`
|
|
3073
|
+
);
|
|
3074
|
+
const $ActivityBarItem = document.createElement('div');
|
|
3075
|
+
$ActivityBarItem.className = 'ActivityBarItem';
|
|
3076
|
+
$ActivityBarItem.ariaLabel = ''; // aria-label is determined by content TODO is empty aria-label necessary or can it be left off?
|
|
3077
|
+
$ActivityBarItem.title = item.id;
|
|
3078
|
+
$ActivityBarItem.tabIndex = -1;
|
|
3079
|
+
$ActivityBarItem.dataset.viewletId = item.id;
|
|
3080
|
+
if (item.keyShortcuts) {
|
|
3081
|
+
$ActivityBarItem.ariaKeyShortcuts = item.keyShortcuts;
|
|
3082
|
+
}
|
|
3083
|
+
switch (item.flags) {
|
|
3084
|
+
case /* Tab */ 1:
|
|
3085
|
+
$ActivityBarItem.setAttribute('role', 'tab');
|
|
3086
|
+
$ActivityBarItem.ariaSelected = 'false';
|
|
3087
|
+
break
|
|
3088
|
+
case /* Button */ 2:
|
|
3089
|
+
$ActivityBarItem.setAttribute('role', 'button');
|
|
3090
|
+
$ActivityBarItem.ariaHasPopup = 'true';
|
|
3091
|
+
break
|
|
3092
|
+
default:
|
|
3093
|
+
console.warn(`unknown activity bar item flags ${item.flags}`);
|
|
3094
|
+
break
|
|
3095
|
+
}
|
|
3096
|
+
$ActivityBarItem.append($ActivityBarItemIcon);
|
|
3097
|
+
return $ActivityBarItem
|
|
3098
|
+
};
|
|
3099
|
+
|
|
3100
|
+
const get$ItemFromEvent = (event) => {
|
|
3101
|
+
const $Target = event.target;
|
|
3102
|
+
switch ($Target.className) {
|
|
3103
|
+
case 'ActivityBarItemIcon':
|
|
3104
|
+
return $Target.parentNode
|
|
3105
|
+
case 'ActivityBarItem':
|
|
3106
|
+
return $Target
|
|
3107
|
+
default:
|
|
3108
|
+
return undefined
|
|
3109
|
+
}
|
|
3110
|
+
};
|
|
3111
|
+
|
|
3112
|
+
const getNodeIndex$1 = ($Node) => {
|
|
3113
|
+
let index = 0;
|
|
3114
|
+
while (($Node = $Node.previousElementSibling)) {
|
|
3115
|
+
index++;
|
|
3116
|
+
}
|
|
3117
|
+
return index
|
|
3118
|
+
};
|
|
3119
|
+
|
|
3120
|
+
const handleMousedown = (event) => {
|
|
3121
|
+
if (event.button !== 0) {
|
|
3122
|
+
return
|
|
3123
|
+
}
|
|
3124
|
+
const $Item = get$ItemFromEvent(event);
|
|
3125
|
+
if (!$Item) {
|
|
3126
|
+
return
|
|
3127
|
+
}
|
|
3128
|
+
event.preventDefault();
|
|
3129
|
+
event.stopPropagation();
|
|
3130
|
+
const index = getNodeIndex$1($Item);
|
|
3131
|
+
const x = event.clientX;
|
|
3132
|
+
const y = event.clientY;
|
|
3133
|
+
send([
|
|
3134
|
+
/* ActivityBar.handleClick */ 8001,
|
|
3135
|
+
/* index */ index,
|
|
3136
|
+
/* x */ x,
|
|
3137
|
+
/* y */ y,
|
|
3138
|
+
]);
|
|
3139
|
+
};
|
|
3140
|
+
|
|
3141
|
+
const handleContextMenu = (event) => {
|
|
3142
|
+
event.preventDefault();
|
|
3143
|
+
// TODO also move side bar position command
|
|
3144
|
+
const x = event.clientX;
|
|
3145
|
+
const y = event.clientY;
|
|
3146
|
+
send([
|
|
3147
|
+
/* activityBarHandleContextMenu */ 8002,
|
|
3148
|
+
/* x */ x,
|
|
3149
|
+
/* y */ y,
|
|
3150
|
+
]);
|
|
3151
|
+
};
|
|
3152
|
+
|
|
3153
|
+
const handleBlur = () => {};
|
|
3154
|
+
|
|
3155
|
+
const name = 'ActivityBar';
|
|
3156
|
+
|
|
3157
|
+
const create$3 = () => {
|
|
3158
|
+
const $ActivityBar = state$8.$ActivityBar;
|
|
3159
|
+
$ActivityBar.setAttribute('role', 'toolbar'); // TODO use idl once supported by chrome
|
|
3160
|
+
$ActivityBar.ariaLabel = 'Activity Bar';
|
|
3161
|
+
$ActivityBar.ariaOrientation = 'vertical';
|
|
3162
|
+
// $ActivityBar.append(...activityBarItems.map(create$ActivityBarItem))
|
|
3163
|
+
$ActivityBar.onmousedown = handleMousedown;
|
|
3164
|
+
$ActivityBar.oncontextmenu = handleContextMenu;
|
|
3165
|
+
$ActivityBar.onblur = handleBlur;
|
|
3166
|
+
$ActivityBar.addEventListener('focusin', handleFocusIn);
|
|
3167
|
+
// $ActivityBar.children[focusedIndex].tabIndex = 0
|
|
3168
|
+
return {
|
|
3169
|
+
$ActivityBar,
|
|
3170
|
+
}
|
|
3171
|
+
};
|
|
3172
|
+
|
|
3173
|
+
const dispose$1 = (state) => {};
|
|
3174
|
+
|
|
3175
|
+
const setItems$1 = (state, activityBarItems) => {
|
|
3176
|
+
object(state);
|
|
3177
|
+
array(activityBarItems);
|
|
3178
|
+
const $ActivityBar = state.$ActivityBar;
|
|
3179
|
+
while ($ActivityBar.firstChild) {
|
|
3180
|
+
$ActivityBar.firstChild.remove();
|
|
3181
|
+
}
|
|
3182
|
+
$ActivityBar.append(...activityBarItems.map(create$ActivityBarItem));
|
|
3183
|
+
};
|
|
3184
|
+
|
|
3185
|
+
const handleFocusIn = () => {
|
|
3186
|
+
setFocus('activityBar');
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3189
|
+
const selectIndex = (state, oldIndex, newIndex) => {
|
|
3190
|
+
console.log({ select: true, oldIndex, newIndex });
|
|
3191
|
+
if (oldIndex !== -1) {
|
|
3192
|
+
const $OldItem = state.$ActivityBar.children[oldIndex];
|
|
3193
|
+
$OldItem.ariaSelected = 'false';
|
|
3194
|
+
if (newIndex !== -1) {
|
|
3195
|
+
$OldItem.tabIndex = -1;
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
if (newIndex !== -1) {
|
|
3199
|
+
const $NewItem = state.$ActivityBar.children[newIndex];
|
|
3200
|
+
$NewItem.ariaSelected = 'true';
|
|
3201
|
+
$NewItem.tabIndex = 0;
|
|
3202
|
+
}
|
|
3203
|
+
};
|
|
3204
|
+
|
|
3205
|
+
const focus$Item = ($Item) => {
|
|
3206
|
+
focus$4($Item, 'activityBar');
|
|
3207
|
+
};
|
|
3208
|
+
|
|
3209
|
+
const setFocusedIndex = (state, oldIndex, newIndex) => {
|
|
3210
|
+
const { $ActivityBar } = state;
|
|
3211
|
+
if (oldIndex !== -1) {
|
|
3212
|
+
const $OldItem = $ActivityBar.children[oldIndex];
|
|
3213
|
+
$OldItem.tabIndex = -1;
|
|
3214
|
+
}
|
|
3215
|
+
if (newIndex !== -1) {
|
|
3216
|
+
const $NewItem = $ActivityBar.children[newIndex];
|
|
3217
|
+
$NewItem.tabIndex = 0;
|
|
3218
|
+
focus$Item($NewItem);
|
|
3219
|
+
}
|
|
3220
|
+
};
|
|
3221
|
+
|
|
3222
|
+
const setBadgeCount = (state, index, count) => {
|
|
3223
|
+
const { $ActivityBar } = state;
|
|
3224
|
+
const $Item = $ActivityBar.children[index];
|
|
3225
|
+
const $Badge = document.createElement('div');
|
|
3226
|
+
$Badge.className = 'ActivityBarItemBadge';
|
|
3227
|
+
$Badge.textContent = `${count}`;
|
|
3228
|
+
// @ts-ignore
|
|
3229
|
+
$Item.append($Badge);
|
|
3230
|
+
};
|
|
3231
|
+
|
|
3232
|
+
var M27 = {
|
|
3233
|
+
__proto__: null,
|
|
3234
|
+
name: name,
|
|
3235
|
+
create: create$3,
|
|
3236
|
+
dispose: dispose$1,
|
|
3237
|
+
setItems: setItems$1,
|
|
3238
|
+
selectIndex: selectIndex,
|
|
3239
|
+
setFocusedIndex: setFocusedIndex,
|
|
3240
|
+
setBadgeCount: setBadgeCount
|
|
3241
|
+
};
|
|
3242
|
+
|
|
3243
|
+
const getIconClassName = (icon) => {
|
|
3244
|
+
switch (icon) {
|
|
3245
|
+
case '$(sync-spin)':
|
|
3246
|
+
case '$(sync~spin)':
|
|
3247
|
+
return 'StatusBarIcon AnimationSpin'
|
|
3248
|
+
case '$(sync)':
|
|
3249
|
+
return 'StatusBarIcon'
|
|
3250
|
+
case '$(source-control)':
|
|
3251
|
+
return 'StatusBarIcon'
|
|
3252
|
+
default:
|
|
3253
|
+
console.warn(`unknown icon "${icon}"`);
|
|
3254
|
+
return ''
|
|
3255
|
+
}
|
|
3256
|
+
};
|
|
3257
|
+
|
|
3258
|
+
const getMaskImageUrl = (icon) => {
|
|
3259
|
+
switch (icon) {
|
|
3260
|
+
case '$(sync-spin)':
|
|
3261
|
+
case '$(sync~spin)':
|
|
3262
|
+
case '$(sync)':
|
|
3263
|
+
return `url(/icons/icon-sync.svg)`
|
|
3264
|
+
case '$(source-control)':
|
|
3265
|
+
return 'url(/icons/icon-source-control.svg)'
|
|
3266
|
+
default:
|
|
3267
|
+
return ''
|
|
3268
|
+
}
|
|
3269
|
+
};
|
|
3270
|
+
|
|
3271
|
+
const create$StatusBarItem = (item) => {
|
|
3272
|
+
const $StatusBarItem = document.createElement('li');
|
|
3273
|
+
$StatusBarItem.className = 'StatusBarItem';
|
|
3274
|
+
$StatusBarItem.setAttribute('role', 'button');
|
|
3275
|
+
$StatusBarItem.dataset.name = item.name;
|
|
3276
|
+
$StatusBarItem.tabIndex = -1;
|
|
3277
|
+
$StatusBarItem.textContent = item.text;
|
|
3278
|
+
$StatusBarItem.dataset.command = item.command;
|
|
3279
|
+
if (item.tooltip) {
|
|
3280
|
+
$StatusBarItem.title = item.tooltip;
|
|
3281
|
+
}
|
|
3282
|
+
if (item.icon) {
|
|
3283
|
+
const $StatusBarItemIcon = document.createElement('span');
|
|
3284
|
+
$StatusBarItemIcon.className = getIconClassName(item.icon);
|
|
3285
|
+
// @ts-ignore
|
|
3286
|
+
$StatusBarItemIcon.style.maskImage = getMaskImageUrl(item.icon);
|
|
3287
|
+
$StatusBarItemIcon.style.webkitMaskImage = getMaskImageUrl(item.icon);
|
|
3288
|
+
$StatusBarItem.prepend($StatusBarItemIcon);
|
|
3289
|
+
}
|
|
3290
|
+
return $StatusBarItem
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3293
|
+
const handleClick$1 = (event) => {
|
|
3294
|
+
const $Target = event.target;
|
|
3295
|
+
if ($Target.className !== 'StatusBarItem') {
|
|
3296
|
+
return
|
|
3297
|
+
}
|
|
3298
|
+
const command = Number.parseInt($Target.dataset.command, 10);
|
|
3299
|
+
send(command);
|
|
3300
|
+
};
|
|
3301
|
+
|
|
3302
|
+
// TODO get items from renderer worker
|
|
3303
|
+
// const statusBarItemsLeft = [
|
|
3304
|
+
// {
|
|
3305
|
+
// name: 'RunTests',
|
|
3306
|
+
// text: 'Run Tests',
|
|
3307
|
+
// tooltip: '',
|
|
3308
|
+
// command: 909021,
|
|
3309
|
+
// },
|
|
3310
|
+
// ]
|
|
3311
|
+
|
|
3312
|
+
// const statusBarItemsRight = []
|
|
3313
|
+
|
|
3314
|
+
const create$2 = (statusBarItemsLeft, statusBarItemsRight) => {
|
|
3315
|
+
const $StatusBarItemsLeft = document.createElement('ul');
|
|
3316
|
+
$StatusBarItemsLeft.id = 'StatusBarItemsLeft';
|
|
3317
|
+
|
|
3318
|
+
const $StatusBarItemsRight = document.createElement('ul');
|
|
3319
|
+
$StatusBarItemsRight.id = 'StatusBarItemsRight';
|
|
3320
|
+
|
|
3321
|
+
const $StatusBar = state$8.$StatusBar;
|
|
3322
|
+
$StatusBar.onclick = handleClick$1;
|
|
3323
|
+
$StatusBar.tabIndex = 0;
|
|
3324
|
+
$StatusBar.setAttribute('role', 'status');
|
|
3325
|
+
$StatusBar.ariaLive = 'off'; // see https://github.com/microsoft/vscode/issues/94677
|
|
3326
|
+
$StatusBar.append($StatusBarItemsLeft, $StatusBarItemsRight);
|
|
3327
|
+
|
|
3328
|
+
return {
|
|
3329
|
+
$StatusBar,
|
|
3330
|
+
$StatusBarItemsLeft,
|
|
3331
|
+
$StatusBarItemsRight,
|
|
3332
|
+
}
|
|
3333
|
+
};
|
|
3334
|
+
|
|
3335
|
+
const clearNode = (node) => {
|
|
3336
|
+
while (node.firstChild) {
|
|
3337
|
+
node.firstChild.remove();
|
|
3338
|
+
}
|
|
3339
|
+
};
|
|
3340
|
+
|
|
3341
|
+
const setItems = (state, statusBarItemsLeft, statusBarItemsRight) => {
|
|
3342
|
+
const $StatusBarItemsLeft = state.$StatusBarItemsLeft;
|
|
3343
|
+
const $StatusBarItemsRight = state.$StatusBarItemsRight;
|
|
3344
|
+
clearNode($StatusBarItemsLeft);
|
|
3345
|
+
clearNode($StatusBarItemsRight);
|
|
3346
|
+
$StatusBarItemsLeft.append(...statusBarItemsLeft.map(create$StatusBarItem));
|
|
3347
|
+
$StatusBarItemsRight.append(...statusBarItemsRight.map(create$StatusBarItem));
|
|
3348
|
+
};
|
|
3349
|
+
|
|
3350
|
+
const focus$1 = (state) => {
|
|
3351
|
+
object(state);
|
|
3352
|
+
state.$StatusBar.focus();
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
var M28 = {
|
|
3356
|
+
__proto__: null,
|
|
3357
|
+
create: create$2,
|
|
3358
|
+
setItems: setItems,
|
|
3359
|
+
focus: focus$1
|
|
3360
|
+
};
|
|
3361
|
+
|
|
3362
|
+
// TODO set proper tabIndex 0 to focused item https://www.w3.org/TR/wai-aria-practices/examples/menubar/menubar-1/menubar-1.html
|
|
3363
|
+
|
|
3364
|
+
// TODO screenreader doesn't read top level label
|
|
3365
|
+
// when menu is open,
|
|
3366
|
+
// first item is selected,
|
|
3367
|
+
// right is clicked it just reads
|
|
3368
|
+
// "Expanded" instead of "Selection Expanded"
|
|
3369
|
+
|
|
3370
|
+
// TODO sometimes screenreader reads too much (e.g. "File, expanded, opens menu, expanded")
|
|
3371
|
+
|
|
3372
|
+
// TODO don't focus on separators
|
|
3373
|
+
|
|
3374
|
+
// TODO don't focus on hover
|
|
3375
|
+
// only focus on hover when it has already focus or the menu has focus
|
|
3376
|
+
|
|
3377
|
+
// TODO title bar menu bar is very inefficient:
|
|
3378
|
+
|
|
3379
|
+
// before: 5 times recalculate style
|
|
3380
|
+
// 1.37ms Recalculate style
|
|
3381
|
+
// 83us Update Layer tree
|
|
3382
|
+
// 0.34ms paint
|
|
3383
|
+
// 0.79ms composite layer
|
|
3384
|
+
// 0.23ms Hit test
|
|
3385
|
+
// 1.42ms Recalculate style
|
|
3386
|
+
// 1.44ms Recalculate style
|
|
3387
|
+
// 2.08ms Recalculate style
|
|
3388
|
+
// 0.44ms Recalculate style
|
|
3389
|
+
// 0.52ms Layout
|
|
3390
|
+
// 0.16ms Update Layer Tree
|
|
3391
|
+
// 48us hit test
|
|
3392
|
+
// 16us Update Layer Tree
|
|
3393
|
+
// 0.36ms paint
|
|
3394
|
+
// 0.33ms composite layer
|
|
3395
|
+
|
|
3396
|
+
// now: 2 recalculate styles
|
|
3397
|
+
// 0.43ms recalculate style
|
|
3398
|
+
// 0.53ms recalculate style
|
|
3399
|
+
// 0.19ms layout
|
|
3400
|
+
// 0.16ms update layer tree
|
|
3401
|
+
// 30us hit test
|
|
3402
|
+
// 17us update layer tree
|
|
3403
|
+
// 0.17ms paint
|
|
3404
|
+
// 0.19ms composite layers
|
|
3405
|
+
|
|
3406
|
+
const create$TopLevelEntry = (item) => {
|
|
3407
|
+
const $TitleBarTopLevelEntry = document.createElement('li');
|
|
3408
|
+
$TitleBarTopLevelEntry.className = 'TitleBarTopLevelEntry';
|
|
3409
|
+
$TitleBarTopLevelEntry.tabIndex = -1;
|
|
3410
|
+
$TitleBarTopLevelEntry.ariaHasPopup = 'true';
|
|
3411
|
+
$TitleBarTopLevelEntry.ariaExpanded = 'false';
|
|
3412
|
+
$TitleBarTopLevelEntry.setAttribute('role', 'menuitem'); // TODO use idl once supported by chrome
|
|
3413
|
+
if (item.keyboardShortCut) {
|
|
3414
|
+
$TitleBarTopLevelEntry.ariaKeyShortcuts = item.keyboardShortCut;
|
|
3415
|
+
}
|
|
3416
|
+
$TitleBarTopLevelEntry.textContent = item.name;
|
|
3417
|
+
$TitleBarTopLevelEntry.dataset.id = item.id;
|
|
3418
|
+
$TitleBarTopLevelEntry.id = `MenuItem-${item.id}`;
|
|
3419
|
+
return $TitleBarTopLevelEntry
|
|
3420
|
+
};
|
|
3421
|
+
|
|
3422
|
+
const getMenuEntryBounds = (state, index) => {
|
|
3423
|
+
const $MenuEntry = state.$TitleBarMenu.children[index];
|
|
3424
|
+
const rect = $MenuEntry.getBoundingClientRect();
|
|
3425
|
+
return {
|
|
3426
|
+
left: rect.left,
|
|
3427
|
+
bottom: rect.bottom,
|
|
3428
|
+
}
|
|
3429
|
+
};
|
|
3430
|
+
|
|
3431
|
+
const getNodeIndex = ($Node) => {
|
|
3432
|
+
let index = 0;
|
|
3433
|
+
while (($Node = $Node.previousElementSibling)) {
|
|
3434
|
+
index++;
|
|
3435
|
+
}
|
|
3436
|
+
return index
|
|
3437
|
+
};
|
|
3438
|
+
|
|
3439
|
+
const getIndex = ($Target) => {
|
|
3440
|
+
switch ($Target.className) {
|
|
3441
|
+
case 'TitleBarTopLevelEntry':
|
|
3442
|
+
return getNodeIndex($Target)
|
|
3443
|
+
default:
|
|
3444
|
+
return -1
|
|
3445
|
+
}
|
|
3446
|
+
};
|
|
3447
|
+
|
|
3448
|
+
const handleClick = (event) => {
|
|
3449
|
+
const $Target = event.target;
|
|
3450
|
+
const index = getIndex($Target);
|
|
3451
|
+
if (index === -1) {
|
|
3452
|
+
return
|
|
3453
|
+
}
|
|
3454
|
+
// event.preventDefault()
|
|
3455
|
+
send([/* TitleBarMenu.handleClick */ 4610, /* index */ index]);
|
|
3456
|
+
};
|
|
3457
|
+
|
|
3458
|
+
const focusIndex = (state, unFocusIndex, index) => {
|
|
3459
|
+
object(state);
|
|
3460
|
+
number(unFocusIndex);
|
|
3461
|
+
number(focusIndex);
|
|
3462
|
+
console.log('FOCUS ONE');
|
|
3463
|
+
console.log({ unFocusIndex, index });
|
|
3464
|
+
const $TitleBarMenu = state.$TitleBarMenu;
|
|
3465
|
+
if (unFocusIndex !== -1) {
|
|
3466
|
+
$TitleBarMenu.children[unFocusIndex].ariaExpanded = 'false';
|
|
3467
|
+
$TitleBarMenu.children[unFocusIndex].removeAttribute('aria-owns');
|
|
3468
|
+
}
|
|
3469
|
+
$TitleBarMenu.children[index].focus();
|
|
3470
|
+
};
|
|
3471
|
+
|
|
3472
|
+
const handleMouseEnter = (event) => {
|
|
3473
|
+
const $Target = event.target;
|
|
3474
|
+
const index = getIndex($Target);
|
|
3475
|
+
if (index === -1) {
|
|
3476
|
+
return
|
|
3477
|
+
}
|
|
3478
|
+
const enterX = event.clientX;
|
|
3479
|
+
const enterY = event.clientY;
|
|
3480
|
+
send([
|
|
3481
|
+
/* TitleBarMenu.focusIndex */ 4613,
|
|
3482
|
+
/* index */ index,
|
|
3483
|
+
/* enterX */ enterX,
|
|
3484
|
+
/* enterY */ enterY,
|
|
3485
|
+
]);
|
|
3486
|
+
};
|
|
3487
|
+
|
|
3488
|
+
// TODO the focus variable is confusing: false means keep focus in menubar, true means focus the menu
|
|
3489
|
+
const openMenu = (
|
|
3490
|
+
state$1,
|
|
3491
|
+
unFocusIndex,
|
|
3492
|
+
index,
|
|
3493
|
+
level,
|
|
3494
|
+
menuItems,
|
|
3495
|
+
menuFocusedIndex,
|
|
3496
|
+
focus,
|
|
3497
|
+
x,
|
|
3498
|
+
y,
|
|
3499
|
+
width,
|
|
3500
|
+
height
|
|
3501
|
+
) => {
|
|
3502
|
+
object(state$1);
|
|
3503
|
+
number(unFocusIndex);
|
|
3504
|
+
number(index);
|
|
3505
|
+
number(level);
|
|
3506
|
+
array(menuItems);
|
|
3507
|
+
number(menuFocusedIndex);
|
|
3508
|
+
boolean(focus);
|
|
3509
|
+
number(x);
|
|
3510
|
+
number(y);
|
|
3511
|
+
number(width);
|
|
3512
|
+
number(height);
|
|
3513
|
+
// TODO this code is very unclean
|
|
3514
|
+
state$1.$TitleBarMenu.addEventListener('mouseenter', handleMouseEnter, {
|
|
3515
|
+
capture: true,
|
|
3516
|
+
});
|
|
3517
|
+
if (unFocusIndex !== -1) {
|
|
3518
|
+
state$1.$TitleBarMenu.children[unFocusIndex].ariaExpanded = 'false';
|
|
3519
|
+
state$1.$TitleBarMenu.children[unFocusIndex].removeAttribute('aria-owns');
|
|
3520
|
+
}
|
|
3521
|
+
state$1.$TitleBarMenu.children[index].ariaExpanded = 'true';
|
|
3522
|
+
const $$Menus = state.$$Menus;
|
|
3523
|
+
state.$$Menus = [];
|
|
3524
|
+
showControlled({
|
|
3525
|
+
x,
|
|
3526
|
+
y,
|
|
3527
|
+
width,
|
|
3528
|
+
height,
|
|
3529
|
+
items: menuItems,
|
|
3530
|
+
handleKeyDown,
|
|
3531
|
+
handleFocusOut,
|
|
3532
|
+
$Parent: state$1.$TitleBarMenu.children[index],
|
|
3533
|
+
level,
|
|
3534
|
+
});
|
|
3535
|
+
if (menuFocusedIndex !== -1) {
|
|
3536
|
+
focusIndex$1(0, -1, menuFocusedIndex);
|
|
3537
|
+
}
|
|
3538
|
+
for (const $Menu of $$Menus) {
|
|
3539
|
+
remove($Menu);
|
|
3540
|
+
}
|
|
3541
|
+
};
|
|
3542
|
+
|
|
3543
|
+
// TODO there need to be two variants of closeMenu: one just closes menu, another close menu and focuses top level entry
|
|
3544
|
+
const closeMenu = (state, unFocusIndex, index) => {
|
|
3545
|
+
if (unFocusIndex !== -1) {
|
|
3546
|
+
state.$TitleBarMenu.children[unFocusIndex].ariaExpanded = 'false';
|
|
3547
|
+
state.$TitleBarMenu.children[unFocusIndex].removeAttribute('aria-owns');
|
|
3548
|
+
}
|
|
3549
|
+
if (index !== -1) {
|
|
3550
|
+
state.$TitleBarMenu.children[index].focus();
|
|
3551
|
+
}
|
|
3552
|
+
hide(/* restoreFocus */ false);
|
|
3553
|
+
state.$TitleBarMenu.removeEventListener('mouseenter', handleMouseEnter, {
|
|
3554
|
+
capture: true,
|
|
3555
|
+
});
|
|
3556
|
+
};
|
|
3557
|
+
|
|
3558
|
+
// TODO should only have the one listener in KeyBindings.js
|
|
3559
|
+
const handleKeyDown = (event) => {
|
|
3560
|
+
switch (event.key) {
|
|
3561
|
+
case 'ArrowDown':
|
|
3562
|
+
event.preventDefault();
|
|
3563
|
+
event.stopPropagation();
|
|
3564
|
+
send([/* TitleBarMenu.handleKeyArrowDown */ 4618]);
|
|
3565
|
+
break
|
|
3566
|
+
case 'ArrowUp':
|
|
3567
|
+
event.preventDefault();
|
|
3568
|
+
event.stopPropagation();
|
|
3569
|
+
send([/* TitleBarMenu.handleKeyArrowUp */ 4619]);
|
|
3570
|
+
break
|
|
3571
|
+
case 'ArrowRight':
|
|
3572
|
+
console.log('arrow right');
|
|
3573
|
+
event.preventDefault();
|
|
3574
|
+
event.stopPropagation();
|
|
3575
|
+
send([/* TitleBarMenu.handleKeyArrowRight */ 4620]);
|
|
3576
|
+
break
|
|
3577
|
+
case 'ArrowLeft':
|
|
3578
|
+
event.preventDefault();
|
|
3579
|
+
event.stopPropagation();
|
|
3580
|
+
send([/* TitleBarMenu.handleKeyArrowLeft */ 4626]);
|
|
3581
|
+
break
|
|
3582
|
+
case 'Enter':
|
|
3583
|
+
event.preventDefault();
|
|
3584
|
+
event.stopPropagation();
|
|
3585
|
+
send([/* TitleBarMenu.handleKeyEnter */ 4624]);
|
|
3586
|
+
break
|
|
3587
|
+
case ' ':
|
|
3588
|
+
event.preventDefault();
|
|
3589
|
+
event.stopPropagation();
|
|
3590
|
+
send([/* TitleBarMenu.handleKeySpace */ 4623]);
|
|
3591
|
+
break
|
|
3592
|
+
case 'Home':
|
|
3593
|
+
case 'PageUp':
|
|
3594
|
+
event.preventDefault();
|
|
3595
|
+
event.stopPropagation();
|
|
3596
|
+
send([/* TitleBarMenu.handleKeyHome */ 4621]);
|
|
3597
|
+
break
|
|
3598
|
+
case 'End':
|
|
3599
|
+
case 'PageDown':
|
|
3600
|
+
event.preventDefault();
|
|
3601
|
+
event.stopPropagation();
|
|
3602
|
+
send([/* TitleBarMenu.handleKeyEnd */ 4622]);
|
|
3603
|
+
break
|
|
3604
|
+
case 'Escape':
|
|
3605
|
+
event.preventDefault();
|
|
3606
|
+
event.stopPropagation();
|
|
3607
|
+
send([/* TitleBarMenu.handleKeyEscape */ 4625]);
|
|
3608
|
+
break
|
|
3609
|
+
}
|
|
3610
|
+
};
|
|
3611
|
+
|
|
3612
|
+
const isInsideTitleBarMenu = ($Element) => {
|
|
3613
|
+
return (
|
|
3614
|
+
$Element.classList.contains('MenuItem') ||
|
|
3615
|
+
$Element.classList.contains('Menu')
|
|
3616
|
+
)
|
|
3617
|
+
};
|
|
3618
|
+
|
|
3619
|
+
const handleFocusOut = (event) => {
|
|
3620
|
+
const $ActiveElement = event.relatedTarget;
|
|
3621
|
+
if ($ActiveElement && isInsideTitleBarMenu($ActiveElement)) {
|
|
3622
|
+
console.log('RETURN');
|
|
3623
|
+
return
|
|
3624
|
+
}
|
|
3625
|
+
send([
|
|
3626
|
+
/* TitleBarMenu.closeMenu */ 4616,
|
|
3627
|
+
/* keepFocus */ false,
|
|
3628
|
+
]);
|
|
3629
|
+
};
|
|
3630
|
+
|
|
3631
|
+
const create$1 = () => {
|
|
3632
|
+
const $TitleBarMenu = document.createElement('ul');
|
|
3633
|
+
$TitleBarMenu.id = 'TitleBarMenu';
|
|
3634
|
+
$TitleBarMenu.setAttribute('role', 'menubar');
|
|
3635
|
+
$TitleBarMenu.onkeydown = handleKeyDown;
|
|
3636
|
+
// TODO could have one mousedown listener on titlebar that delegates to titlebarMenu if necessary
|
|
3637
|
+
$TitleBarMenu.onmousedown = handleClick;
|
|
3638
|
+
$TitleBarMenu.addEventListener('focusout', handleFocusOut);
|
|
3639
|
+
return $TitleBarMenu
|
|
3640
|
+
};
|
|
3641
|
+
|
|
3642
|
+
const setEntries = (state, titleBarEntries) => {
|
|
3643
|
+
const $TitleBarMenu = state.$TitleBarMenu;
|
|
3644
|
+
$TitleBarMenu.append(...titleBarEntries.map(create$TopLevelEntry));
|
|
3645
|
+
};
|
|
3646
|
+
|
|
3647
|
+
const create = () => {
|
|
3648
|
+
const $TitleBarMenu = create$1();
|
|
3649
|
+
// TODO set aria label for title bar menu
|
|
3650
|
+
// TODO add tests for aria properties
|
|
3651
|
+
const $TitleBar = state$8.$TitleBar;
|
|
3652
|
+
$TitleBar.ariaLabel = 'Title Bar';
|
|
3653
|
+
$TitleBar.setAttribute('role', 'contentinfo');
|
|
3654
|
+
$TitleBar.append($TitleBarMenu);
|
|
3655
|
+
return {
|
|
3656
|
+
$TitleBar,
|
|
3657
|
+
$TitleBarMenu,
|
|
3658
|
+
}
|
|
3659
|
+
};
|
|
3660
|
+
|
|
3661
|
+
const dispose = (state) => {};
|
|
3662
|
+
|
|
3663
|
+
const focus = (state) => {
|
|
3664
|
+
state.$TitleBarMenu.firstChild.focus();
|
|
3665
|
+
};
|
|
3666
|
+
|
|
3667
|
+
const menuSetEntries = setEntries;
|
|
3668
|
+
|
|
3669
|
+
const menuFocusIndex = focusIndex;
|
|
3670
|
+
|
|
3671
|
+
const menuOpen = openMenu;
|
|
3672
|
+
|
|
3673
|
+
const menuClose = closeMenu;
|
|
3674
|
+
|
|
3675
|
+
const menuGetEntryBounds = getMenuEntryBounds;
|
|
3676
|
+
|
|
3677
|
+
var M29 = {
|
|
3678
|
+
__proto__: null,
|
|
3679
|
+
create: create,
|
|
3680
|
+
dispose: dispose,
|
|
3681
|
+
focus: focus,
|
|
3682
|
+
menuSetEntries: menuSetEntries,
|
|
3683
|
+
menuFocusIndex: menuFocusIndex,
|
|
3684
|
+
menuOpen: menuOpen,
|
|
3685
|
+
menuClose: menuClose,
|
|
3686
|
+
menuGetEntryBounds: menuGetEntryBounds
|
|
3687
|
+
};
|
|
3688
|
+
|
|
3689
|
+
const reload = () => {
|
|
3690
|
+
location.reload();
|
|
3691
|
+
};
|
|
3692
|
+
|
|
3693
|
+
const minimize = () => {};
|
|
3694
|
+
|
|
3695
|
+
const maximize = () => {};
|
|
3696
|
+
|
|
3697
|
+
const unmaximize = () => {};
|
|
3698
|
+
|
|
3699
|
+
const close = () => {
|
|
3700
|
+
// window.close()
|
|
3701
|
+
};
|
|
3702
|
+
|
|
3703
|
+
const setTitle = (title) => {
|
|
3704
|
+
document.title = title;
|
|
3705
|
+
};
|
|
3706
|
+
|
|
3707
|
+
const __initialize__ = () => {
|
|
3708
|
+
register$1(8080, reload);
|
|
3709
|
+
register$1(8081, minimize);
|
|
3710
|
+
register$1(8082, maximize);
|
|
3711
|
+
register$1(8083, unmaximize);
|
|
3712
|
+
register$1(8084, close);
|
|
3713
|
+
register$1(8085, setTitle);
|
|
3714
|
+
};
|
|
3715
|
+
|
|
3716
|
+
var M30 = {
|
|
3717
|
+
__proto__: null,
|
|
3718
|
+
__initialize__: __initialize__
|
|
3719
|
+
};
|
|
3720
|
+
|
|
3721
|
+
// files that should be in initial chunk
|
|
3722
|
+
|
|
3723
|
+
// hack so that rollup doesn't tree-shake out these modules
|
|
3724
|
+
globalThis.M = [
|
|
3725
|
+
M1,
|
|
3726
|
+
M2,
|
|
3727
|
+
M4,
|
|
3728
|
+
M5,
|
|
3729
|
+
M6,
|
|
3730
|
+
M7,
|
|
3731
|
+
M9,
|
|
3732
|
+
M13,
|
|
3733
|
+
M14,
|
|
3734
|
+
M15,
|
|
3735
|
+
M17,
|
|
3736
|
+
M18,
|
|
3737
|
+
M22,
|
|
3738
|
+
M26,
|
|
3739
|
+
M27,
|
|
3740
|
+
M28,
|
|
3741
|
+
M29,
|
|
3742
|
+
M30,
|
|
3743
|
+
];
|
|
3744
|
+
|
|
3745
|
+
const main = async () => {
|
|
3746
|
+
onerror = (error) => {
|
|
3747
|
+
alert(error);
|
|
3748
|
+
};
|
|
3749
|
+
onunhandledrejection = (event) => {
|
|
3750
|
+
alert(event.reason);
|
|
3751
|
+
};
|
|
3752
|
+
|
|
3753
|
+
if (platform === 'web') {
|
|
3754
|
+
// disable prompt to download app as pwa
|
|
3755
|
+
// @ts-ignore
|
|
3756
|
+
window.onbeforeinstallprompt = (event) => {
|
|
3757
|
+
event.preventDefault();
|
|
3758
|
+
};
|
|
3759
|
+
}
|
|
3760
|
+
// TODO remove this, all messages should come from renderer worker
|
|
3761
|
+
// const config = JSON.parse(document.getElementById('Config').textContent)
|
|
3762
|
+
// await Workbench.startup(config)
|
|
3763
|
+
|
|
3764
|
+
// ColorTheme.set(`* {color: red}`)
|
|
3765
|
+
// TODO this is discovered very late
|
|
3766
|
+
await hydrate$3();
|
|
3767
|
+
|
|
3768
|
+
// if ('serviceWorker' in navigator) {
|
|
3769
|
+
// await navigator.serviceWorker.register('/serviceWorker.js', {
|
|
3770
|
+
// scope: '/',
|
|
3771
|
+
// })
|
|
3772
|
+
// console.log('sw registered')
|
|
3773
|
+
// } else {
|
|
3774
|
+
// console.log('serviceworker not available')
|
|
3775
|
+
// }
|
|
3776
|
+
// logger.info(`[Service Worker] registered`)
|
|
3777
|
+
};
|
|
3778
|
+
|
|
3779
|
+
main();
|
|
3780
|
+
|
|
3781
|
+
// 1. invoke shared process to read file
|
|
3782
|
+
// 2. display file
|
|
3783
|
+
// 3. optimize
|
|
3784
|
+
|
|
3785
|
+
// DEBUG
|
|
3786
|
+
|
|
3787
|
+
// globalThis.Panel = Panel
|
|
3788
|
+
// globalThis.Context = Context
|
|
3789
|
+
// globalThis.StatusBar = StatusBar
|
|
3790
|
+
// globalThis.ViewService = ViewService
|
|
3791
|
+
// globalThis.SideBar = SideBar
|
|
3792
|
+
// globalThis.FileSystem = FileSystem
|
|
3793
|
+
|
|
3794
|
+
export { state$8 as A, mount as B, setAdditionalFocus as C, removeAdditionalFocus as D, append as a, string as b, array as c, setFocus as d, showControlled as e, findIndex as f, getStateFromEvent as g, hide as h, focusIndex$1 as i, hideSubMenu as j, showMenu as k, showContextMenu as l, remove as m, number as n, object as o, focusPrevious as p, supportsHtml5Dialog as q, register$1 as r, send as s, focus$4 as t, lookupKeyBinding as u, create$4 as v, setText as w, setSelections as x, setScrollBar as y, state$1 as z };
|
|
3795
|
+
//# sourceMappingURL=rendererProcessMain.js.map
|