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