@codingame/monaco-editor-wrapper 4.0.0-next.3 → 4.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/README.md +0 -26
- package/dist/_virtual/_commonjsHelpers.js +1 -4
- package/dist/_virtual/_monaco-editor.js +1 -1
- package/dist/assets/Angular.ng-template-17.1.0.vsix/expression.json +834 -0
- package/dist/assets/Angular.ng-template-17.1.0.vsix/inline-styles.json +98 -0
- package/dist/assets/Angular.ng-template-17.1.0.vsix/inline-template.json +76 -0
- package/dist/assets/Angular.ng-template-17.1.0.vsix/package.json +260 -0
- package/dist/assets/Angular.ng-template-17.1.0.vsix/template-blocks.json +83 -0
- package/dist/assets/Angular.ng-template-17.1.0.vsix/template.json +195 -0
- package/dist/assets/Dart-Code.dart-code-3.81.20240117.vsix/dart-language-configuration.json +29 -0
- package/dist/assets/Dart-Code.dart-code-3.81.20240117.vsix/dart.json +526 -0
- package/dist/assets/Dart-Code.dart-code-3.81.20240117.vsix/flutter_activity_bar.svg +14 -0
- package/dist/assets/Dart-Code.dart-code-3.81.20240117.vsix/package.json +3094 -0
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/codeblock.json +81 -0
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/language-configuration.json +57 -0
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/package.json +279 -0
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog.json +349 -0
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/systemverilog.tmLanguage.json +1246 -0
- package/dist/assets/IMCTradingBV.svlangserver-0.4.1.vsix/tasks.schema.json +30 -0
- package/dist/assets/JakeBecker.elixir-ls-0.19.0.vsix/eex-language-configuration.json +58 -0
- package/dist/assets/JakeBecker.elixir-ls-0.19.0.vsix/eex.json +41 -0
- package/dist/assets/JakeBecker.elixir-ls-0.19.0.vsix/elixir-language-configuration.json +182 -0
- package/dist/assets/JakeBecker.elixir-ls-0.19.0.vsix/elixir.json +2698 -0
- package/dist/assets/JakeBecker.elixir-ls-0.19.0.vsix/html-eex.json +25 -0
- package/dist/assets/JakeBecker.elixir-ls-0.19.0.vsix/package.json +623 -0
- package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/package.json +569 -0
- package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity.configuration.json +32 -0
- package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity.json +1215 -0
- package/dist/assets/JuanBlanco.solidity-0.0.165.vsix/solidity2.json +213 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Markdown Redcarpet.json +146 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/RMarkdown.json +13 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Rcpp.json +34 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Rd (R Documentation).json +117 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/Rlogo.svg +14 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf-configuration.json +24 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/dcf.json +82 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/package.json +2156 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/r-configuration.json +33 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/r-snippets.json +475 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/r.json +647 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore-configuration.json +2 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rbuildignore.json +27 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rd-configuration.json +27 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rmarkdown2.json +459 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rmd-configuration.json +27 -0
- package/dist/assets/REditorSupport.r-2.8.2.vsix/rnamespace.json +222 -0
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.json +263 -0
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls.json +24 -0
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/package.nls.pt-br.json +24 -0
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal.configuration.json +32 -0
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal.json +414 -0
- package/dist/assets/alefragnani.pascal-9.6.0.vsix/pascal.tmLanguage +243 -0
- package/dist/assets/batisteo.vscode-django-1.15.0.vsix/django-html.tmLanguage.json +701 -0
- package/dist/assets/batisteo.vscode-django-1.15.0.vsix/django-txt.tmLanguage.json +255 -0
- package/dist/assets/batisteo.vscode-django-1.15.0.vsix/filters.json +339 -0
- package/dist/assets/batisteo.vscode-django-1.15.0.vsix/language-configuration.json +63 -0
- package/dist/assets/batisteo.vscode-django-1.15.0.vsix/package.json +156 -0
- package/dist/assets/batisteo.vscode-django-1.15.0.vsix/tags.json +524 -0
- package/dist/assets/bitwisecook.tcl-0.4.3.vsix/language-configuration.json +75 -0
- package/dist/assets/bitwisecook.tcl-0.4.3.vsix/package.json +102 -0
- package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl.json +5474 -0
- package/dist/assets/bitwisecook.tcl-0.4.3.vsix/tcl2.json +142 -0
- package/dist/assets/broadcomMFD.cobol-language-support-2.1.0.vsix/CICS.tmLanguage.json +66 -0
- package/dist/assets/broadcomMFD.cobol-language-support-2.1.0.vsix/COBOL.tmLanguage.json +165 -0
- package/dist/assets/broadcomMFD.cobol-language-support-2.1.0.vsix/SQL.tmLanguage.json +25 -0
- package/dist/assets/broadcomMFD.cobol-language-support-2.1.0.vsix/lang-config.json +27 -0
- package/dist/assets/broadcomMFD.cobol-language-support-2.1.0.vsix/package.json +513 -0
- package/dist/assets/broadcomMFD.cobol-language-support-2.1.0.vsix/pgm_conf.schema.json +24 -0
- package/dist/assets/broadcomMFD.cobol-language-support-2.1.0.vsix/proc_grps.schema.json +55 -0
- package/dist/assets/castwide.solargraph-0.24.1.vsix/package.json +295 -0
- package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/language-configuration.json +25 -0
- package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/package.json +468 -0
- package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/pgsql.tmLanguage +413 -0
- package/dist/assets/ckolkman.vscode-postgres-1.4.3.vsix/postgres-explorer.svg +100 -0
- package/dist/assets/golang.Go-0.40.3.vsix/go.json +274 -0
- package/dist/assets/golang.Go-0.40.3.vsix/go.mod.language-configuration.json +5 -0
- package/dist/assets/golang.Go-0.40.3.vsix/go.mod.tmGrammar.json +171 -0
- package/dist/assets/golang.Go-0.40.3.vsix/go.sum.tmGrammar.json +44 -0
- package/dist/assets/golang.Go-0.40.3.vsix/package.json +2828 -0
- package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-directives.json +123 -0
- package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-interpolations.json +44 -0
- package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/angular-template-language-configuration.json +8 -0
- package/dist/assets/johnsoncodehk.vscode-angular-1.0.22.vsix/package.json +102 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs-configuration.json +29 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/C2Hs.json +23 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs-configuration.json +30 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/Hsc2Hs.json +23 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/alex.json +236 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal-configuration.json +6 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/cabal.json +53 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-cabal.json +28 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-haskell.json +28 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/codeblock-literate-haskell.json +28 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/happy.json +196 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell-configuration.json +29 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/haskell.json +2525 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literate-haskell-configuration.json +29 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/literateHaskell.json +56 -0
- package/dist/assets/justusadam.language-haskell-3.6.0.vsix/package.json +234 -0
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/Kotlin.tmLanguage +1067 -0
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/codeblock.json +22 -0
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin.configuration.json +35 -0
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/kotlin.json +107 -0
- package/dist/assets/mathiasfrohlich.Kotlin-1.7.1.vsix/package.json +100 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/aspnetcorerazor.tmLanguage.json +1812 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/csharp.json +493 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/language-configuration.json +24 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.json +5694 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.cs.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.de.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.es.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.fr.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.it.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.ja.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.json +421 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.ko.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.pl.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.pt-br.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.ru.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.tr.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.zh-cn.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/package.nls.zh-tw.json +203 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/vs2019_dark.json +783 -0
- package/dist/assets/ms-dotnettools.csharp-2.16.24.vsix/vs2019_light.json +807 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/conda-environment.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/conda-meta.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/condarc.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.cs.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.de.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.es.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.fr.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.it.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.ja.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.ko.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.pl.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.pt-br.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.qps-ploc.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.ru.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.tr.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.zh-cn.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/package.nls.zh-tw.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/pip-requirements.json +1 -0
- package/dist/assets/ms-python.python-2023.25.10221012.vsix/pip-requirements.tmLanguage.json +1 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.json +6383 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.cs.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.de.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.es.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.fr.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.it.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.ja.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.json +1006 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.ko.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.pl.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.pt-br.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.ru.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.tr.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.zh-cn.json +441 -0
- package/dist/assets/ms-vscode.cpptools-1.19.2.vsix/package.nls.zh-tw.json +441 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/META.json +56 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/META2.json +10 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/atd.json +57 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/cram.json +167 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/dune-project.json +326 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/dune-project2.json +26 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/dune-workspace.json +191 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/dune.json +2949 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/dune2.json +20 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/dune3.json +34 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/logo.svg +3 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/menhir-action.json +29 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/menhir.json +349 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/menhir2.json +17 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/merlin.json +73 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/oasis.json +69 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/oasis2.json +6 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocaml-markdown-codeblock.json +24 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocaml.interface.json +161 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocaml.json +654 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocaml2.json +44 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocaml3.json +54 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamlbuild.json +110 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamlbuild2.json +12 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamldoc.json +31 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamlformat.json +239 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamlformat2.json +5 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamllex.json +108 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamllex2.json +14 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/ocamllex3.json +6 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/opam-install.json +23 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/opam-install2.json +8 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/opam.json +111 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/opam2.json +21 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/package.json +1231 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/reason-markdown-codeblock.json +24 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/reason.json +2357 -0
- package/dist/assets/ocamllabs.ocaml-platform-1.16.1.vsix/reason2.json +21 -0
- package/dist/assets/pgourlain.erlang-0.9.8.vsix/Erlang.plist +2719 -0
- package/dist/assets/pgourlain.erlang-0.9.8.vsix/erlang.configuration.json +25 -0
- package/dist/assets/pgourlain.erlang-0.9.8.vsix/erlang.json +197 -0
- package/dist/assets/pgourlain.erlang-0.9.8.vsix/package.json +305 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/JavaProperties.tmLanguage.json +103 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/inline-html.json +44 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/inline-json.json +44 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/inline-sql.json +46 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/inline-xml.json +44 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/inline-yaml.json +44 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/java-properties-configuration.json +67 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/java.tmLanguage.json +1888 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/kotlin.tmLanguage.json +702 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/language-configuration.json +92 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/language-configuration2.json +27 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/package.json +1819 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/package.nls.json +30 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/package.nls.ko.json +27 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/package.nls.zh-cn.json +28 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/package.nls.zh-tw.json +27 -0
- package/dist/assets/redhat.java-1.27.2024012608.vsix/package.schema.json +48 -0
- package/dist/assets/scala-lang.scala-0.5.7.vsix/Scala.tmLanguage.json +1 -0
- package/dist/assets/scala-lang.scala-0.5.7.vsix/language-configuration.json +33 -0
- package/dist/assets/scala-lang.scala-0.5.7.vsix/package.json +67 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/book-dark.svg +5 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/book-light.svg +1 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/buildtarget.json +37 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/file_type_java.svg +1 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/file_type_scala.svg +1 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/jvm-bytecode-verbose.json +745 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/jvm-bytecode.json +395 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/package.json +1096 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/scalameta-logo.png +0 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/scalameta.svg +11 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/semanticdb.json +37 -0
- package/dist/assets/scalameta.metals-1.27.3.vsix/tasty.json +56 -0
- package/dist/assets/sumneko.lua-3.7.4.vsix/package.json +3347 -0
- package/dist/assets/sumneko.lua-3.7.4.vsix/package.nls.json +231 -0
- package/dist/assets/sumneko.lua-3.7.4.vsix/package.nls.pt-br.json +231 -0
- package/dist/assets/sumneko.lua-3.7.4.vsix/package.nls.zh-cn.json +231 -0
- package/dist/assets/sumneko.lua-3.7.4.vsix/package.nls.zh-tw.json +231 -0
- package/dist/assets/sumneko.lua-3.7.4.vsix/schema.json +3423 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/javascript.json +43 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/language-configuration.json +38 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/markdown-svelte-css.json +23 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/markdown-svelte-js.json +23 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/markdown-svelte.json +45 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/package-json-schema.json +9 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/package.json +732 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/postcss.json +377 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/prettier-options-schema.json +112 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/pug-svelte-dotblock.json +55 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/pug-svelte-tags.json +201 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/pug-svelte.json +293 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/svelte.json +26 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/svelte.tmLanguage.json +1171 -0
- package/dist/assets/svelte.svelte-vscode-108.2.1.vsix/typescript.json +37 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/d.json +3163 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/d2.json +90 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/diet.json +742 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/diet2.json +92 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/diet3.json +87 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/dml.json +157 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/dub.schema.json +377 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/general.json +84 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/package.json +1306 -0
- package/dist/assets/webfreak.code-d-0.23.2.vsix/sdl.json +149 -0
- package/dist/configuration/index.d.ts +1 -1
- package/dist/configuration/index.js +2 -2
- package/dist/editor/cobol.js +1 -1
- package/dist/extensions/Angular.ng-template-17.1.0.vsix.js +20 -0
- package/dist/extensions/Dart-Code.dart-code-3.81.20240117.vsix.js +16 -0
- package/dist/extensions/IMCTradingBV.svlangserver-0.4.1.vsix.js +14 -12
- package/dist/extensions/JakeBecker.elixir-ls-0.19.0.vsix.js +20 -0
- package/dist/extensions/JuanBlanco.solidity-0.0.165.vsix.js +16 -0
- package/dist/extensions/REditorSupport.r-2.8.2.vsix.js +44 -0
- package/dist/extensions/alefragnani.pascal-9.6.0.vsix.js +16 -9
- package/dist/extensions/batisteo.vscode-django-1.15.0.vsix.js +20 -0
- package/dist/extensions/bitwisecook.tcl-0.4.3.vsix.js +12 -9
- package/dist/extensions/broadcomMFD.cobol-language-support-2.1.0.vsix.js +22 -0
- package/dist/extensions/castwide.solargraph-0.24.1.vsix.js +10 -0
- package/dist/extensions/ckolkman.vscode-postgres-1.4.3.vsix.js +16 -0
- package/dist/extensions/golang.Go-0.40.3.vsix.js +18 -0
- package/dist/extensions/johnsoncodehk.vscode-angular-1.0.22.vsix.js +12 -9
- package/dist/extensions/justusadam.language-haskell-3.6.0.vsix.js +24 -25
- package/dist/extensions/mathiasfrohlich.Kotlin-1.7.1.vsix.js +13 -10
- package/dist/extensions/ms-dotnettools.csharp-2.16.24.vsix.js +48 -0
- package/dist/extensions/ms-python.python-2023.25.10221012.vsix.js +50 -0
- package/dist/extensions/ms-vscode.cpptools-1.19.2.vsix.js +38 -0
- package/dist/extensions/ocamllabs.ocaml-platform-1.16.1.vsix.js +84 -0
- package/dist/extensions/pgourlain.erlang-0.9.8.vsix.js +16 -0
- package/dist/extensions/redhat.java-1.27.2024012608.vsix.js +42 -0
- package/dist/extensions/scala-lang.scala-0.5.7.vsix.js +14 -0
- package/dist/extensions/scalameta.metals-1.27.3.vsix.js +32 -0
- package/dist/extensions/sumneko.lua-3.7.4.vsix.js +20 -0
- package/dist/extensions/svelte.svelte-vscode-108.2.1.vsix.js +38 -0
- package/dist/extensions/webfreak.code-d-0.23.2.vsix.js +18 -18
- package/dist/extensions.d.ts +35 -35
- package/dist/features/debug.js +1 -2
- package/dist/features/extensionHostWorker.d.ts +1 -0
- package/dist/features/extensionHostWorker.js +11 -0
- package/dist/features/search.d.ts +1 -1
- package/dist/features/search.js +3 -3
- package/dist/features/viewPanels.d.ts +1 -1
- package/dist/features/viewPanels.js +7 -4
- package/dist/features/views.d.ts +4 -4
- package/dist/features/views.js +19 -9
- package/dist/index.d.ts +2 -1
- package/dist/keybindings/index.js +1 -1
- package/dist/keybindings/vim.js +1 -1
- package/dist/languages/index.js +1 -1
- package/dist/main.js +3 -2
- package/dist/monaco.d.ts +1 -3
- package/dist/monaco.js +61 -60
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/external/tslib/tslib.es6.js +11 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/files.js +396 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/override/vs/platform/dialogs/common/dialogs.js +8 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +406 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/vscode/src/vs/platform/files/common/fileService.js +989 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/vscode/src/vs/platform/files/common/io.js +77 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/vscode/src/vs/workbench/services/textfile/browser/browserTextFileService.js +58 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +641 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +404 -0
- package/dist/node_modules/@codingame/monaco-vscode-files-service-override/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +64 -0
- package/dist/node_modules/monaco-vim/lib/cm_adapter.js +7 -3
- package/dist/services.d.ts +3 -1
- package/dist/services.js +61 -26
- package/dist/tools/EditorOpenHandlerRegistry.d.ts +1 -1
- package/dist/tools/EditorOpenHandlerRegistry.js +3 -3
- package/dist/tools/FakeWorker.d.ts +5 -0
- package/dist/tools/FakeWorker.js +8 -0
- package/dist/tools/crossOriginWorker.d.ts +9 -0
- package/dist/tools/crossOriginWorker.js +35 -0
- package/dist/tools.js +1 -1
- package/dist/worker.d.ts +1 -0
- package/dist/worker.js +9 -2
- package/package.json +112 -39
- package/stats.html +32 -28
- package/dist/_virtual/Angular.ng-template-15.2.1.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/C2Hs-configuration.json.raw.js +0 -3
- package/dist/_virtual/C2Hs.json.raw.js +0 -3
- package/dist/_virtual/COBOL.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/Dart-Code.dart-code-3.63.20230419.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/Erlang.plist.raw.js +0 -3
- package/dist/_virtual/Hsc2Hs-configuration.json.raw.js +0 -3
- package/dist/_virtual/Hsc2Hs.json.raw.js +0 -3
- package/dist/_virtual/IMCTradingBV.svlangserver-0.4.1.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/JakeBecker.elixir-ls-0.14.5.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/JavaProperties.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/JuanBlanco.solidity-0.0.152.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/Kotlin.tmLanguage.raw.js +0 -3
- package/dist/_virtual/META.json.raw.js +0 -3
- package/dist/_virtual/META.json.raw2.js +0 -3
- package/dist/_virtual/Markdown Redcarpet.json.raw.js +0 -3
- package/dist/_virtual/REditorSupport.r-2.7.2.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/RMarkdown.json.raw.js +0 -3
- package/dist/_virtual/Rcpp.json.raw.js +0 -3
- package/dist/_virtual/Rd (R Documentation).json.raw.js +0 -3
- package/dist/_virtual/Rlogo.svg.raw.js +0 -3
- package/dist/_virtual/Scala.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +0 -31
- package/dist/_virtual/alefragnani.pascal-9.6.0.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/alex.json.raw.js +0 -3
- package/dist/_virtual/angular-directives.json.raw.js +0 -3
- package/dist/_virtual/angular-interpolations.json.raw.js +0 -3
- package/dist/_virtual/angular-template-language-configuration.json.raw.js +0 -3
- package/dist/_virtual/aspnetcorerazor.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/atd.json.raw.js +0 -3
- package/dist/_virtual/batisteo.vscode-django-1.10.0.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/bitwisecook.tcl-0.4.3.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/book-dark.svg.raw.js +0 -3
- package/dist/_virtual/book-light.svg.raw.js +0 -3
- package/dist/_virtual/broadcomMFD.cobol-language-support-1.2.1.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/buildtarget.json.raw.js +0 -3
- package/dist/_virtual/cabal-configuration.json.raw.js +0 -3
- package/dist/_virtual/cabal.json.raw.js +0 -3
- package/dist/_virtual/castwide.solargraph-0.24.0.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/ckolkman.vscode-postgres-1.4.2.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/codeblock-cabal.json.raw.js +0 -3
- package/dist/_virtual/codeblock-haskell.json.raw.js +0 -3
- package/dist/_virtual/codeblock-literate-haskell.json.raw.js +0 -3
- package/dist/_virtual/codeblock.json.raw.js +0 -3
- package/dist/_virtual/codeblock.json.raw2.js +0 -3
- package/dist/_virtual/conda-environment.json.raw.js +0 -3
- package/dist/_virtual/conda-meta.json.raw.js +0 -3
- package/dist/_virtual/condarc.json.raw.js +0 -3
- package/dist/_virtual/cram.json.raw.js +0 -3
- package/dist/_virtual/csharp.json.raw.js +0 -3
- package/dist/_virtual/css.worker.js +0 -6
- package/dist/_virtual/d.json.raw.js +0 -3
- package/dist/_virtual/d.json.raw2.js +0 -3
- package/dist/_virtual/dart-language-configuration.json.raw.js +0 -3
- package/dist/_virtual/dart.json.raw.js +0 -3
- package/dist/_virtual/dcf-configuration.json.raw.js +0 -3
- package/dist/_virtual/dcf.json.raw.js +0 -3
- package/dist/_virtual/diet.json.raw.js +0 -3
- package/dist/_virtual/diet.json.raw2.js +0 -3
- package/dist/_virtual/diet.json.raw3.js +0 -3
- package/dist/_virtual/django-html.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/django-txt.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/dml.json.raw.js +0 -3
- package/dist/_virtual/dub.schema.json.raw.js +0 -3
- package/dist/_virtual/dune-project.json.raw.js +0 -3
- package/dist/_virtual/dune-project.json.raw2.js +0 -3
- package/dist/_virtual/dune-workspace.json.raw.js +0 -3
- package/dist/_virtual/dune.json.raw.js +0 -3
- package/dist/_virtual/dune.json.raw2.js +0 -3
- package/dist/_virtual/dune.json.raw3.js +0 -3
- package/dist/_virtual/editor.worker.js +0 -6
- package/dist/_virtual/eex-language-configuration.json.raw.js +0 -3
- package/dist/_virtual/eex.json.raw.js +0 -3
- package/dist/_virtual/elixir-language-configuration.json.raw.js +0 -3
- package/dist/_virtual/elixir.json.raw.js +0 -3
- package/dist/_virtual/erlang.configuration.json.raw.js +0 -3
- package/dist/_virtual/erlang.json.raw.js +0 -3
- package/dist/_virtual/expression.json.raw.js +0 -3
- package/dist/_virtual/file_type_java.svg.raw.js +0 -3
- package/dist/_virtual/file_type_scala.svg.raw.js +0 -3
- package/dist/_virtual/filters.json.raw.js +0 -3
- package/dist/_virtual/flutter_activity_bar.svg.raw.js +0 -3
- package/dist/_virtual/general.json.raw.js +0 -3
- package/dist/_virtual/go.json.raw.js +0 -3
- package/dist/_virtual/go.mod.language-configuration.json.raw.js +0 -3
- package/dist/_virtual/go.mod.tmGrammar.json.raw.js +0 -3
- package/dist/_virtual/go.sum.tmGrammar.json.raw.js +0 -3
- package/dist/_virtual/golang.Go-0.38.0.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/govulncheck.tmGrammar.json.raw.js +0 -3
- package/dist/_virtual/happy.json.raw.js +0 -3
- package/dist/_virtual/haskell-configuration.json.raw.js +0 -3
- package/dist/_virtual/haskell.json.raw.js +0 -3
- package/dist/_virtual/html-eex.json.raw.js +0 -3
- package/dist/_virtual/html.worker.js +0 -6
- package/dist/_virtual/inline-styles.json.raw.js +0 -3
- package/dist/_virtual/inline-template.json.raw.js +0 -3
- package/dist/_virtual/java-properties-configuration.json.raw.js +0 -3
- package/dist/_virtual/java.json.raw.js +0 -3
- package/dist/_virtual/javascript.json.raw.js +0 -3
- package/dist/_virtual/johnsoncodehk.vscode-angular-1.0.22.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/json.worker.js +0 -6
- package/dist/_virtual/justusadam.language-haskell-3.6.0.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/jvm-bytecode-verbose.json.raw.js +0 -3
- package/dist/_virtual/jvm-bytecode.json.raw.js +0 -3
- package/dist/_virtual/kotlin.configuration.json.raw.js +0 -3
- package/dist/_virtual/kotlin.json.raw.js +0 -3
- package/dist/_virtual/lang-config.json.raw.js +0 -3
- package/dist/_virtual/language-configuration.json.raw.js +0 -3
- package/dist/_virtual/language-configuration.json.raw2.js +0 -3
- package/dist/_virtual/language-configuration.json.raw3.js +0 -3
- package/dist/_virtual/language-configuration.json.raw4.js +0 -3
- package/dist/_virtual/language-configuration.json.raw5.js +0 -3
- package/dist/_virtual/language-configuration.json.raw6.js +0 -3
- package/dist/_virtual/language-configuration.json.raw7.js +0 -3
- package/dist/_virtual/language-configuration.json.raw8.js +0 -3
- package/dist/_virtual/literate-haskell-configuration.json.raw.js +0 -3
- package/dist/_virtual/literateHaskell.json.raw.js +0 -3
- package/dist/_virtual/logo.svg.raw.js +0 -3
- package/dist/_virtual/markdown-svelte-css.json.raw.js +0 -3
- package/dist/_virtual/markdown-svelte-js.json.raw.js +0 -3
- package/dist/_virtual/markdown-svelte.json.raw.js +0 -3
- package/dist/_virtual/mathiasfrohlich.Kotlin-1.7.1.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/menhir-action.json.raw.js +0 -3
- package/dist/_virtual/menhir.json.raw.js +0 -3
- package/dist/_virtual/menhir.json.raw2.js +0 -3
- package/dist/_virtual/merlin.json.raw.js +0 -3
- package/dist/_virtual/ms-dotnettools.csharp-1.25.4.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/ms-python.python-2023.7.11111009.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/ms-vscode.cpptools-1.15.2.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/oasis.json.raw.js +0 -3
- package/dist/_virtual/oasis.json.raw2.js +0 -3
- package/dist/_virtual/ocaml-markdown-codeblock.json.raw.js +0 -3
- package/dist/_virtual/ocaml.interface.json.raw.js +0 -3
- package/dist/_virtual/ocaml.json.raw.js +0 -3
- package/dist/_virtual/ocaml.json.raw2.js +0 -3
- package/dist/_virtual/ocaml.json.raw3.js +0 -3
- package/dist/_virtual/ocamlbuild.json.raw.js +0 -3
- package/dist/_virtual/ocamlbuild.json.raw2.js +0 -3
- package/dist/_virtual/ocamldoc.json.raw.js +0 -3
- package/dist/_virtual/ocamlformat.json.raw.js +0 -3
- package/dist/_virtual/ocamlformat.json.raw2.js +0 -3
- package/dist/_virtual/ocamllabs.ocaml-platform-1.12.2.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/ocamllex.json.raw.js +0 -3
- package/dist/_virtual/ocamllex.json.raw2.js +0 -3
- package/dist/_virtual/ocamllex.json.raw3.js +0 -3
- package/dist/_virtual/opam-install.json.raw.js +0 -3
- package/dist/_virtual/opam-install.json.raw2.js +0 -3
- package/dist/_virtual/opam.json.raw.js +0 -3
- package/dist/_virtual/opam.json.raw2.js +0 -3
- package/dist/_virtual/package-json-schema.json.raw.js +0 -3
- package/dist/_virtual/package.schema.json.raw.js +0 -3
- package/dist/_virtual/pascal.configuration.json.raw.js +0 -3
- package/dist/_virtual/pascal.json.raw.js +0 -3
- package/dist/_virtual/pascal.tmLanguage.raw.js +0 -3
- package/dist/_virtual/pgourlain.erlang-0.8.8.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/pgsql.tmLanguage.raw.js +0 -3
- package/dist/_virtual/pip-requirements.json.raw.js +0 -3
- package/dist/_virtual/pip-requirements.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/postcss.json.raw.js +0 -3
- package/dist/_virtual/postgres-explorer.svg.raw.js +0 -3
- package/dist/_virtual/prettier-options-schema.json.raw.js +0 -3
- package/dist/_virtual/pug-svelte-dotblock.json.raw.js +0 -3
- package/dist/_virtual/pug-svelte-tags.json.raw.js +0 -3
- package/dist/_virtual/pug-svelte.json.raw.js +0 -3
- package/dist/_virtual/r-configuration.json.raw.js +0 -3
- package/dist/_virtual/r-snippets.json.raw.js +0 -3
- package/dist/_virtual/r.json.raw.js +0 -3
- package/dist/_virtual/rbuildignore-configuration.json.raw.js +0 -3
- package/dist/_virtual/rbuildignore.json.raw.js +0 -3
- package/dist/_virtual/rd-configuration.json.raw.js +0 -3
- package/dist/_virtual/reason-markdown-codeblock.json.raw.js +0 -3
- package/dist/_virtual/reason.json.raw.js +0 -3
- package/dist/_virtual/reason.json.raw2.js +0 -3
- package/dist/_virtual/redhat.java-1.18.2023042204.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/rmarkdown.json.raw2.js +0 -3
- package/dist/_virtual/rmd-configuration.json.raw.js +0 -3
- package/dist/_virtual/rnamespace-configuration.json.raw.js +0 -3
- package/dist/_virtual/rnamespace.json.raw.js +0 -3
- package/dist/_virtual/scala-lang.scala-0.5.6.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/scalameta-logo.png.raw.js +0 -3
- package/dist/_virtual/scalameta.metals-1.23.0.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/scalameta.svg.raw.js +0 -3
- package/dist/_virtual/schema.json.raw.js +0 -3
- package/dist/_virtual/sdl.json.raw.js +0 -3
- package/dist/_virtual/semanticdb.json.raw.js +0 -3
- package/dist/_virtual/solidity.configuration.json.raw.js +0 -3
- package/dist/_virtual/solidity.json.raw.js +0 -3
- package/dist/_virtual/solidity.json.raw2.js +0 -3
- package/dist/_virtual/sumneko.lua-3.6.18.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/svelte.json.raw.js +0 -3
- package/dist/_virtual/svelte.svelte-vscode-107.3.0.vsix_package.json.vsjson.js +0 -3
- package/dist/_virtual/svelte.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/systemverilog.json.raw.js +0 -3
- package/dist/_virtual/systemverilog.tmLanguage.json.raw.js +0 -3
- package/dist/_virtual/tags.json.raw.js +0 -3
- package/dist/_virtual/tasks.schema.json.raw.js +0 -3
- package/dist/_virtual/tasty.json.raw.js +0 -3
- package/dist/_virtual/tcl.json.raw.js +0 -3
- package/dist/_virtual/tcl.json.raw2.js +0 -3
- package/dist/_virtual/template.json.raw.js +0 -3
- package/dist/_virtual/ts.worker.js +0 -6
- package/dist/_virtual/typescript.json.raw.js +0 -3
- package/dist/_virtual/vs2019_dark.json.raw.js +0 -3
- package/dist/_virtual/vs2019_light.json.raw.js +0 -3
- package/dist/_virtual/webfreak.code-d-0.23.2.vsix_package.json.vsjson.js +0 -3
- package/dist/extensions/Angular.ng-template-15.2.1.vsix.js +0 -15
- package/dist/extensions/Dart-Code.dart-code-3.63.20230419.vsix.js +0 -14
- package/dist/extensions/JakeBecker.elixir-ls-0.14.5.vsix.js +0 -18
- package/dist/extensions/JuanBlanco.solidity-0.0.152.vsix.js +0 -13
- package/dist/extensions/REditorSupport.r-2.7.2.vsix.js +0 -47
- package/dist/extensions/batisteo.vscode-django-1.10.0.vsix.js +0 -17
- package/dist/extensions/broadcomMFD.cobol-language-support-1.2.1.vsix.js +0 -11
- package/dist/extensions/castwide.solargraph-0.24.0.vsix.js +0 -8
- package/dist/extensions/ckolkman.vscode-postgres-1.4.2.vsix.js +0 -14
- package/dist/extensions/golang.Go-0.38.0.vsix.js +0 -17
- package/dist/extensions/ms-dotnettools.csharp-1.25.4.vsix.js +0 -17
- package/dist/extensions/ms-python.python-2023.7.11111009.vsix.js +0 -20
- package/dist/extensions/ms-vscode.cpptools-1.15.2.vsix.js +0 -8
- package/dist/extensions/ocamllabs.ocaml-platform-1.12.2.vsix.js +0 -92
- package/dist/extensions/pgourlain.erlang-0.8.8.vsix.js +0 -13
- package/dist/extensions/redhat.java-1.18.2023042204.vsix.js +0 -19
- package/dist/extensions/scala-lang.scala-0.5.6.vsix.js +0 -11
- package/dist/extensions/scalameta.metals-1.23.0.vsix.js +0 -34
- package/dist/extensions/sumneko.lua-3.6.18.vsix.js +0 -10
- package/dist/extensions/svelte.svelte-vscode-107.3.0.vsix.js +0 -37
- package/dist/features/cssContribution.d.ts +0 -1
- package/dist/features/cssContribution.js +0 -6
- package/dist/features/htmlContribution.d.ts +0 -4
- package/dist/features/htmlContribution.js +0 -102
- package/dist/features/jsonContribution.d.ts +0 -4
- package/dist/features/jsonContribution.js +0 -22
- package/dist/features/typescriptContribution.d.ts +0 -1
- package/dist/features/typescriptContribution.js +0 -44
- package/dist/node_modules/@types/node/console.d.js +0 -3
- package/dist/node_modules/@types/node/globals.d.js +0 -3
- package/dist/node_modules/@types/node/process.d.js +0 -3
- package/dist/node_modules/tslib/tslib.es6.js +0 -77
|
@@ -0,0 +1,989 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
3
|
+
import { ResourceQueue, Promises } from 'vscode/vscode/vs/base/common/async';
|
|
4
|
+
import { VSBuffer, bufferToReadable, streamToBuffer, newWriteableBufferStream, bufferedStreamToBuffer, readableToBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
5
|
+
import { CancellationTokenSource, CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
6
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
7
|
+
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
8
|
+
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
9
|
+
import { Disposable, DisposableStore, toDisposable, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
10
|
+
import { TernarySearchTree } from 'vscode/vscode/vs/base/common/ternarySearchTree';
|
|
11
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
12
|
+
import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
13
|
+
import { isAbsolutePath, extUri, extUriIgnorePathCase } from 'vscode/vscode/vs/base/common/resources';
|
|
14
|
+
import { isReadableStream, peekStream, peekReadable, consumeStream, transform, newWriteableStream, isReadableBufferedStream, listenStream } from 'vscode/vscode/vs/base/common/stream';
|
|
15
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
16
|
+
import { FileChangesEvent, FileOperationError, hasOpenReadWriteCloseCapability, hasReadWriteCapability, hasFileReadStreamCapability, toFileSystemProviderErrorCode, FileSystemProviderErrorCode, ensureFileSystemProviderError, FileType, FilePermission, etag, FileOperationEvent, hasFileAtomicWriteCapability, toFileOperationResult, ETAG_DISABLED, hasFileAtomicReadCapability, NotModifiedSinceFileOperationError, TooLargeFileOperationError, hasFileFolderCopyCapability, hasFileAtomicDeleteCapability, hasFileCloneCapability } from 'vscode/vscode/vs/platform/files/common/files';
|
|
17
|
+
import { readFileIntoStream } from './io.js';
|
|
18
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
19
|
+
import { ErrorNoTelemetry } from 'vscode/vscode/vs/base/common/errors';
|
|
20
|
+
|
|
21
|
+
var FileService_1;
|
|
22
|
+
let FileService = class FileService extends Disposable {
|
|
23
|
+
static { FileService_1 = this; }
|
|
24
|
+
constructor(logService) {
|
|
25
|
+
super();
|
|
26
|
+
this.logService = logService;
|
|
27
|
+
this.BUFFER_SIZE = 256 * 1024;
|
|
28
|
+
this._onDidChangeFileSystemProviderRegistrations = this._register(( new Emitter()));
|
|
29
|
+
this.onDidChangeFileSystemProviderRegistrations = this._onDidChangeFileSystemProviderRegistrations.event;
|
|
30
|
+
this._onWillActivateFileSystemProvider = this._register(( new Emitter()));
|
|
31
|
+
this.onWillActivateFileSystemProvider = this._onWillActivateFileSystemProvider.event;
|
|
32
|
+
this._onDidChangeFileSystemProviderCapabilities = this._register(( new Emitter()));
|
|
33
|
+
this.onDidChangeFileSystemProviderCapabilities = this._onDidChangeFileSystemProviderCapabilities.event;
|
|
34
|
+
this.provider = ( new Map());
|
|
35
|
+
this._onDidRunOperation = this._register(( new Emitter()));
|
|
36
|
+
this.onDidRunOperation = this._onDidRunOperation.event;
|
|
37
|
+
this.internalOnDidFilesChange = this._register(( new Emitter()));
|
|
38
|
+
this._onDidUncorrelatedFilesChange = this._register(( new Emitter()));
|
|
39
|
+
this.onDidFilesChange = this._onDidUncorrelatedFilesChange.event;
|
|
40
|
+
this._onDidWatchError = this._register(( new Emitter()));
|
|
41
|
+
this.onDidWatchError = this._onDidWatchError.event;
|
|
42
|
+
this.activeWatchers = ( new Map());
|
|
43
|
+
this.writeQueue = this._register(( new ResourceQueue()));
|
|
44
|
+
}
|
|
45
|
+
registerProvider(scheme, provider) {
|
|
46
|
+
if (( this.provider.has(scheme))) {
|
|
47
|
+
throw new Error(`A filesystem provider for the scheme '${scheme}' is already registered.`);
|
|
48
|
+
}
|
|
49
|
+
mark(`code/registerFilesystem/${scheme}`);
|
|
50
|
+
const providerDisposables = ( new DisposableStore());
|
|
51
|
+
this.provider.set(scheme, provider);
|
|
52
|
+
this._onDidChangeFileSystemProviderRegistrations.fire({ added: true, scheme, provider });
|
|
53
|
+
providerDisposables.add(provider.onDidChangeFile(changes => {
|
|
54
|
+
const event = ( new FileChangesEvent(changes, !this.isPathCaseSensitive(provider)));
|
|
55
|
+
this.internalOnDidFilesChange.fire(event);
|
|
56
|
+
if (!event.hasCorrelation()) {
|
|
57
|
+
this._onDidUncorrelatedFilesChange.fire(event);
|
|
58
|
+
}
|
|
59
|
+
}));
|
|
60
|
+
if (typeof provider.onDidWatchError === 'function') {
|
|
61
|
+
providerDisposables.add(provider.onDidWatchError(error => this._onDidWatchError.fire(( new Error(error)))));
|
|
62
|
+
}
|
|
63
|
+
providerDisposables.add(provider.onDidChangeCapabilities(() => this._onDidChangeFileSystemProviderCapabilities.fire({ provider, scheme })));
|
|
64
|
+
return toDisposable(() => {
|
|
65
|
+
this._onDidChangeFileSystemProviderRegistrations.fire({ added: false, scheme, provider });
|
|
66
|
+
this.provider.delete(scheme);
|
|
67
|
+
dispose(providerDisposables);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
getProvider(scheme) {
|
|
71
|
+
return this.provider.get(scheme);
|
|
72
|
+
}
|
|
73
|
+
async activateProvider(scheme) {
|
|
74
|
+
const joiners = [];
|
|
75
|
+
this._onWillActivateFileSystemProvider.fire({
|
|
76
|
+
scheme,
|
|
77
|
+
join(promise) {
|
|
78
|
+
joiners.push(promise);
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
if (( this.provider.has(scheme))) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
await Promises.settled(joiners);
|
|
85
|
+
}
|
|
86
|
+
async canHandleResource(resource) {
|
|
87
|
+
await this.activateProvider(resource.scheme);
|
|
88
|
+
return this.hasProvider(resource);
|
|
89
|
+
}
|
|
90
|
+
hasProvider(resource) {
|
|
91
|
+
return ( this.provider.has(resource.scheme));
|
|
92
|
+
}
|
|
93
|
+
hasCapability(resource, capability) {
|
|
94
|
+
const provider = this.provider.get(resource.scheme);
|
|
95
|
+
return !!(provider && (provider.capabilities & capability));
|
|
96
|
+
}
|
|
97
|
+
listCapabilities() {
|
|
98
|
+
return ( Iterable.map(
|
|
99
|
+
this.provider,
|
|
100
|
+
([scheme, provider]) => ({ scheme, capabilities: provider.capabilities })
|
|
101
|
+
));
|
|
102
|
+
}
|
|
103
|
+
async withProvider(resource) {
|
|
104
|
+
if (!isAbsolutePath(resource)) {
|
|
105
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'invalidPath', "Unable to resolve filesystem provider with relative file path '{0}'", this.resourceForError(resource)), 8 );
|
|
106
|
+
}
|
|
107
|
+
await this.activateProvider(resource.scheme);
|
|
108
|
+
const provider = this.provider.get(resource.scheme);
|
|
109
|
+
if (!provider) {
|
|
110
|
+
const error = ( new ErrorNoTelemetry());
|
|
111
|
+
error.message = ( localizeWithPath(
|
|
112
|
+
'vs/platform/files/common/fileService',
|
|
113
|
+
'noProviderFound',
|
|
114
|
+
"ENOPRO: No file system provider found for resource '{0}'",
|
|
115
|
+
( resource.toString())
|
|
116
|
+
));
|
|
117
|
+
throw error;
|
|
118
|
+
}
|
|
119
|
+
return provider;
|
|
120
|
+
}
|
|
121
|
+
async withReadProvider(resource) {
|
|
122
|
+
const provider = await this.withProvider(resource);
|
|
123
|
+
if (hasOpenReadWriteCloseCapability(provider) || hasReadWriteCapability(provider) || hasFileReadStreamCapability(provider)) {
|
|
124
|
+
return provider;
|
|
125
|
+
}
|
|
126
|
+
throw new Error(`Filesystem provider for scheme '${resource.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`);
|
|
127
|
+
}
|
|
128
|
+
async withWriteProvider(resource) {
|
|
129
|
+
const provider = await this.withProvider(resource);
|
|
130
|
+
if (hasOpenReadWriteCloseCapability(provider) || hasReadWriteCapability(provider)) {
|
|
131
|
+
return provider;
|
|
132
|
+
}
|
|
133
|
+
throw new Error(`Filesystem provider for scheme '${resource.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`);
|
|
134
|
+
}
|
|
135
|
+
async resolve(resource, options) {
|
|
136
|
+
try {
|
|
137
|
+
return await this.doResolveFile(resource, options);
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
if (toFileSystemProviderErrorCode(error) === FileSystemProviderErrorCode.FileNotFound) {
|
|
141
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileNotFoundError', "Unable to resolve nonexistent file '{0}'", this.resourceForError(resource)), 1 );
|
|
142
|
+
}
|
|
143
|
+
throw ensureFileSystemProviderError(error);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
async doResolveFile(resource, options) {
|
|
147
|
+
const provider = await this.withProvider(resource);
|
|
148
|
+
const isPathCaseSensitive = this.isPathCaseSensitive(provider);
|
|
149
|
+
const resolveTo = options?.resolveTo;
|
|
150
|
+
const resolveSingleChildDescendants = options?.resolveSingleChildDescendants;
|
|
151
|
+
const resolveMetadata = options?.resolveMetadata;
|
|
152
|
+
const stat = await provider.stat(resource);
|
|
153
|
+
let trie;
|
|
154
|
+
return this.toFileStat(provider, resource, stat, undefined, !!resolveMetadata, (stat, siblings) => {
|
|
155
|
+
if (!trie) {
|
|
156
|
+
trie = TernarySearchTree.forUris(() => !isPathCaseSensitive);
|
|
157
|
+
trie.set(resource, true);
|
|
158
|
+
if (resolveTo) {
|
|
159
|
+
trie.fill(true, resolveTo);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (trie.get(stat.resource) || trie.findSuperstr(stat.resource.with({ query: null, fragment: null } ))) {
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
if (stat.isDirectory && resolveSingleChildDescendants) {
|
|
166
|
+
return siblings === 1;
|
|
167
|
+
}
|
|
168
|
+
return false;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
async toFileStat(provider, resource, stat, siblings, resolveMetadata, recurse) {
|
|
172
|
+
const { providerExtUri } = this.getExtUri(provider);
|
|
173
|
+
const fileStat = {
|
|
174
|
+
resource,
|
|
175
|
+
name: providerExtUri.basename(resource),
|
|
176
|
+
isFile: (stat.type & FileType.File) !== 0,
|
|
177
|
+
isDirectory: (stat.type & FileType.Directory) !== 0,
|
|
178
|
+
isSymbolicLink: (stat.type & FileType.SymbolicLink) !== 0,
|
|
179
|
+
mtime: stat.mtime,
|
|
180
|
+
ctime: stat.ctime,
|
|
181
|
+
size: stat.size,
|
|
182
|
+
readonly: Boolean((stat.permissions ?? 0) & FilePermission.Readonly) || Boolean(provider.capabilities & 2048 ),
|
|
183
|
+
locked: Boolean((stat.permissions ?? 0) & FilePermission.Locked),
|
|
184
|
+
etag: etag({ mtime: stat.mtime, size: stat.size }),
|
|
185
|
+
children: undefined
|
|
186
|
+
};
|
|
187
|
+
if (fileStat.isDirectory && recurse(fileStat, siblings)) {
|
|
188
|
+
try {
|
|
189
|
+
const entries = await provider.readdir(resource);
|
|
190
|
+
const resolvedEntries = await Promises.settled(( entries.map(async ([name, type]) => {
|
|
191
|
+
try {
|
|
192
|
+
const childResource = providerExtUri.joinPath(resource, name);
|
|
193
|
+
const childStat = resolveMetadata ? await provider.stat(childResource) : { type };
|
|
194
|
+
return await this.toFileStat(provider, childResource, childStat, entries.length, resolveMetadata, recurse);
|
|
195
|
+
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
this.logService.trace(error);
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
})));
|
|
201
|
+
fileStat.children = coalesce(resolvedEntries);
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
this.logService.trace(error);
|
|
205
|
+
fileStat.children = [];
|
|
206
|
+
}
|
|
207
|
+
return fileStat;
|
|
208
|
+
}
|
|
209
|
+
return fileStat;
|
|
210
|
+
}
|
|
211
|
+
async resolveAll(toResolve) {
|
|
212
|
+
return Promises.settled(( toResolve.map(async (entry) => {
|
|
213
|
+
try {
|
|
214
|
+
return { stat: await this.doResolveFile(entry.resource, entry.options), success: true };
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
this.logService.trace(error);
|
|
218
|
+
return { stat: undefined, success: false };
|
|
219
|
+
}
|
|
220
|
+
})));
|
|
221
|
+
}
|
|
222
|
+
async stat(resource) {
|
|
223
|
+
const provider = await this.withProvider(resource);
|
|
224
|
+
const stat = await provider.stat(resource);
|
|
225
|
+
return this.toFileStat(provider, resource, stat, undefined, true, () => false );
|
|
226
|
+
}
|
|
227
|
+
async exists(resource) {
|
|
228
|
+
const provider = await this.withProvider(resource);
|
|
229
|
+
try {
|
|
230
|
+
const stat = await provider.stat(resource);
|
|
231
|
+
return !!stat;
|
|
232
|
+
}
|
|
233
|
+
catch (error) {
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
async canCreateFile(resource, options) {
|
|
238
|
+
try {
|
|
239
|
+
await this.doValidateCreateFile(resource, options);
|
|
240
|
+
}
|
|
241
|
+
catch (error) {
|
|
242
|
+
return error;
|
|
243
|
+
}
|
|
244
|
+
return true;
|
|
245
|
+
}
|
|
246
|
+
async doValidateCreateFile(resource, options) {
|
|
247
|
+
if (!options?.overwrite && (await this.exists(resource))) {
|
|
248
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileExists', "Unable to create file '{0}' that already exists when overwrite flag is not set", this.resourceForError(resource)), 3 , options);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
async createFile(resource, bufferOrReadableOrStream = VSBuffer.fromString(''), options) {
|
|
252
|
+
await this.doValidateCreateFile(resource, options);
|
|
253
|
+
const fileStat = await this.writeFile(resource, bufferOrReadableOrStream);
|
|
254
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 0 , fileStat)));
|
|
255
|
+
return fileStat;
|
|
256
|
+
}
|
|
257
|
+
async writeFile(resource, bufferOrReadableOrStream, options) {
|
|
258
|
+
const provider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(resource), resource);
|
|
259
|
+
const { providerExtUri } = this.getExtUri(provider);
|
|
260
|
+
let writeFileOptions = options;
|
|
261
|
+
if (hasFileAtomicWriteCapability(provider) && !writeFileOptions?.atomic) {
|
|
262
|
+
const enforcedAtomicWrite = provider.enforceAtomicWriteFile?.(resource);
|
|
263
|
+
if (enforcedAtomicWrite) {
|
|
264
|
+
writeFileOptions = { ...options, atomic: enforcedAtomicWrite };
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
try {
|
|
268
|
+
const stat = await this.validateWriteFile(provider, resource, writeFileOptions);
|
|
269
|
+
if (!stat) {
|
|
270
|
+
await this.mkdirp(provider, providerExtUri.dirname(resource));
|
|
271
|
+
}
|
|
272
|
+
let bufferOrReadableOrStreamOrBufferedStream;
|
|
273
|
+
if (hasReadWriteCapability(provider) && !(bufferOrReadableOrStream instanceof VSBuffer)) {
|
|
274
|
+
if (isReadableStream(bufferOrReadableOrStream)) {
|
|
275
|
+
const bufferedStream = await peekStream(bufferOrReadableOrStream, 3);
|
|
276
|
+
if (bufferedStream.ended) {
|
|
277
|
+
bufferOrReadableOrStreamOrBufferedStream = VSBuffer.concat(bufferedStream.buffer);
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
bufferOrReadableOrStreamOrBufferedStream = bufferedStream;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
bufferOrReadableOrStreamOrBufferedStream = peekReadable(bufferOrReadableOrStream, data => VSBuffer.concat(data), 3);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
bufferOrReadableOrStreamOrBufferedStream = bufferOrReadableOrStream;
|
|
289
|
+
}
|
|
290
|
+
if (!hasOpenReadWriteCloseCapability(provider) ||
|
|
291
|
+
(hasReadWriteCapability(provider) && bufferOrReadableOrStreamOrBufferedStream instanceof VSBuffer) ||
|
|
292
|
+
(hasReadWriteCapability(provider) && hasFileAtomicWriteCapability(provider) && writeFileOptions?.atomic)
|
|
293
|
+
) {
|
|
294
|
+
await this.doWriteUnbuffered(provider, resource, writeFileOptions, bufferOrReadableOrStreamOrBufferedStream);
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
await this.doWriteBuffered(provider, resource, writeFileOptions, bufferOrReadableOrStreamOrBufferedStream instanceof VSBuffer ? bufferToReadable(bufferOrReadableOrStreamOrBufferedStream) : bufferOrReadableOrStreamOrBufferedStream);
|
|
298
|
+
}
|
|
299
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 4 )));
|
|
300
|
+
}
|
|
301
|
+
catch (error) {
|
|
302
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'err.write', "Unable to write file '{0}' ({1})", this.resourceForError(resource), ensureFileSystemProviderError(error).toString()), toFileOperationResult(error), writeFileOptions);
|
|
303
|
+
}
|
|
304
|
+
return this.resolve(resource, { resolveMetadata: true });
|
|
305
|
+
}
|
|
306
|
+
async validateWriteFile(provider, resource, options) {
|
|
307
|
+
const unlock = !!options?.unlock;
|
|
308
|
+
if (unlock && !((provider.capabilities & 8192) )) {
|
|
309
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedUnlockUnsupported', "Unable to unlock file '{0}' because provider does not support it.", this.resourceForError(resource)));
|
|
310
|
+
}
|
|
311
|
+
const atomic = !!options?.atomic;
|
|
312
|
+
if (atomic) {
|
|
313
|
+
if (!((provider.capabilities & 32768) )) {
|
|
314
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedAtomicUnsupported1', "Unable to atomically write file '{0}' because provider does not support it.", this.resourceForError(resource)));
|
|
315
|
+
}
|
|
316
|
+
if (!((provider.capabilities & 2) )) {
|
|
317
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedAtomicUnsupported2', "Unable to atomically write file '{0}' because provider does not support unbuffered writes.", this.resourceForError(resource)));
|
|
318
|
+
}
|
|
319
|
+
if (unlock) {
|
|
320
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'writeFailedAtomicUnlock', "Unable to unlock file '{0}' because atomic write is enabled.", this.resourceForError(resource)));
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
let stat = undefined;
|
|
324
|
+
try {
|
|
325
|
+
stat = await provider.stat(resource);
|
|
326
|
+
}
|
|
327
|
+
catch (error) {
|
|
328
|
+
return undefined;
|
|
329
|
+
}
|
|
330
|
+
if ((stat.type & FileType.Directory) !== 0) {
|
|
331
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileIsDirectoryWriteError', "Unable to write file '{0}' that is actually a directory", this.resourceForError(resource)), 0 , options);
|
|
332
|
+
}
|
|
333
|
+
this.throwIfFileIsReadonly(resource, stat);
|
|
334
|
+
if (typeof options?.mtime === 'number' && typeof options.etag === 'string' && options.etag !== ETAG_DISABLED &&
|
|
335
|
+
typeof stat.mtime === 'number' && typeof stat.size === 'number' &&
|
|
336
|
+
options.mtime < stat.mtime && options.etag !== etag({ mtime: options.mtime , size: stat.size })) {
|
|
337
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileModifiedError', "File Modified Since"), 3 , options);
|
|
338
|
+
}
|
|
339
|
+
return stat;
|
|
340
|
+
}
|
|
341
|
+
async readFile(resource, options, token) {
|
|
342
|
+
const provider = await this.withReadProvider(resource);
|
|
343
|
+
if (options?.atomic) {
|
|
344
|
+
return this.doReadFileAtomic(provider, resource, options, token);
|
|
345
|
+
}
|
|
346
|
+
return this.doReadFile(provider, resource, options, token);
|
|
347
|
+
}
|
|
348
|
+
async doReadFileAtomic(provider, resource, options, token) {
|
|
349
|
+
return ( new Promise((resolve, reject) => {
|
|
350
|
+
this.writeQueue.queueFor(resource, this.getExtUri(provider).providerExtUri).queue(async () => {
|
|
351
|
+
try {
|
|
352
|
+
const content = await this.doReadFile(provider, resource, options, token);
|
|
353
|
+
resolve(content);
|
|
354
|
+
}
|
|
355
|
+
catch (error) {
|
|
356
|
+
reject(error);
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}));
|
|
360
|
+
}
|
|
361
|
+
async doReadFile(provider, resource, options, token) {
|
|
362
|
+
const stream = await this.doReadFileStream(provider, resource, {
|
|
363
|
+
...options,
|
|
364
|
+
preferUnbuffered: true
|
|
365
|
+
}, token);
|
|
366
|
+
return {
|
|
367
|
+
...stream,
|
|
368
|
+
value: await streamToBuffer(stream.value)
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
async readFileStream(resource, options, token) {
|
|
372
|
+
const provider = await this.withReadProvider(resource);
|
|
373
|
+
return this.doReadFileStream(provider, resource, options, token);
|
|
374
|
+
}
|
|
375
|
+
async doReadFileStream(provider, resource, options, token) {
|
|
376
|
+
const cancellableSource = ( new CancellationTokenSource(token));
|
|
377
|
+
let readFileOptions = options;
|
|
378
|
+
if (hasFileAtomicReadCapability(provider) && provider.enforceAtomicReadFile?.(resource)) {
|
|
379
|
+
readFileOptions = { ...options, atomic: true };
|
|
380
|
+
}
|
|
381
|
+
const statPromise = this.validateReadFile(resource, readFileOptions).then(stat => stat, error => {
|
|
382
|
+
cancellableSource.dispose(true);
|
|
383
|
+
throw error;
|
|
384
|
+
});
|
|
385
|
+
let fileStream = undefined;
|
|
386
|
+
try {
|
|
387
|
+
if (typeof readFileOptions?.etag === 'string' && readFileOptions.etag !== ETAG_DISABLED) {
|
|
388
|
+
await statPromise;
|
|
389
|
+
}
|
|
390
|
+
if ((readFileOptions?.atomic && hasFileAtomicReadCapability(provider)) ||
|
|
391
|
+
!(hasOpenReadWriteCloseCapability(provider) || hasFileReadStreamCapability(provider)) ||
|
|
392
|
+
(hasReadWriteCapability(provider) && readFileOptions?.preferUnbuffered)
|
|
393
|
+
) {
|
|
394
|
+
fileStream = this.readFileUnbuffered(provider, resource, readFileOptions);
|
|
395
|
+
}
|
|
396
|
+
else if (hasFileReadStreamCapability(provider)) {
|
|
397
|
+
fileStream = this.readFileStreamed(provider, resource, cancellableSource.token, readFileOptions);
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
fileStream = this.readFileBuffered(provider, resource, cancellableSource.token, readFileOptions);
|
|
401
|
+
}
|
|
402
|
+
fileStream.on('end', () => cancellableSource.dispose());
|
|
403
|
+
fileStream.on('error', () => cancellableSource.dispose());
|
|
404
|
+
const fileStat = await statPromise;
|
|
405
|
+
return {
|
|
406
|
+
...fileStat,
|
|
407
|
+
value: fileStream
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
catch (error) {
|
|
411
|
+
if (fileStream) {
|
|
412
|
+
await consumeStream(fileStream);
|
|
413
|
+
}
|
|
414
|
+
throw this.restoreReadError(error, resource, readFileOptions);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
restoreReadError(error, resource, options) {
|
|
418
|
+
const message = ( localizeWithPath(
|
|
419
|
+
'vs/platform/files/common/fileService',
|
|
420
|
+
'err.read',
|
|
421
|
+
"Unable to read file '{0}' ({1})",
|
|
422
|
+
this.resourceForError(resource),
|
|
423
|
+
( ensureFileSystemProviderError(error).toString())
|
|
424
|
+
));
|
|
425
|
+
if (error instanceof NotModifiedSinceFileOperationError) {
|
|
426
|
+
return ( new NotModifiedSinceFileOperationError(message, error.stat, options));
|
|
427
|
+
}
|
|
428
|
+
if (error instanceof TooLargeFileOperationError) {
|
|
429
|
+
return ( new TooLargeFileOperationError(message, error.fileOperationResult, error.size, error.options));
|
|
430
|
+
}
|
|
431
|
+
return ( new FileOperationError(message, toFileOperationResult(error), options));
|
|
432
|
+
}
|
|
433
|
+
readFileStreamed(provider, resource, token, options = Object.create(null)) {
|
|
434
|
+
const fileStream = provider.readFileStream(resource, options, token);
|
|
435
|
+
return transform(fileStream, {
|
|
436
|
+
data: data => data instanceof VSBuffer ? data : VSBuffer.wrap(data),
|
|
437
|
+
error: error => this.restoreReadError(error, resource, options)
|
|
438
|
+
}, data => VSBuffer.concat(data));
|
|
439
|
+
}
|
|
440
|
+
readFileBuffered(provider, resource, token, options = Object.create(null)) {
|
|
441
|
+
const stream = newWriteableBufferStream();
|
|
442
|
+
readFileIntoStream(provider, resource, stream, data => data, {
|
|
443
|
+
...options,
|
|
444
|
+
bufferSize: this.BUFFER_SIZE,
|
|
445
|
+
errorTransformer: error => this.restoreReadError(error, resource, options)
|
|
446
|
+
}, token);
|
|
447
|
+
return stream;
|
|
448
|
+
}
|
|
449
|
+
readFileUnbuffered(provider, resource, options) {
|
|
450
|
+
const stream = newWriteableStream(data => VSBuffer.concat(data));
|
|
451
|
+
(async () => {
|
|
452
|
+
try {
|
|
453
|
+
let buffer;
|
|
454
|
+
if (options?.atomic && hasFileAtomicReadCapability(provider)) {
|
|
455
|
+
buffer = await provider.readFile(resource, { atomic: true });
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
buffer = await provider.readFile(resource);
|
|
459
|
+
}
|
|
460
|
+
if (typeof options?.position === 'number') {
|
|
461
|
+
buffer = buffer.slice(options.position);
|
|
462
|
+
}
|
|
463
|
+
if (typeof options?.length === 'number') {
|
|
464
|
+
buffer = buffer.slice(0, options.length);
|
|
465
|
+
}
|
|
466
|
+
this.validateReadFileLimits(resource, buffer.byteLength, options);
|
|
467
|
+
stream.end(VSBuffer.wrap(buffer));
|
|
468
|
+
}
|
|
469
|
+
catch (err) {
|
|
470
|
+
stream.error(err);
|
|
471
|
+
stream.end();
|
|
472
|
+
}
|
|
473
|
+
})();
|
|
474
|
+
return stream;
|
|
475
|
+
}
|
|
476
|
+
async validateReadFile(resource, options) {
|
|
477
|
+
const stat = await this.resolve(resource, { resolveMetadata: true });
|
|
478
|
+
if (stat.isDirectory) {
|
|
479
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileIsDirectoryReadError', "Unable to read file '{0}' that is actually a directory", this.resourceForError(resource)), 0 , options);
|
|
480
|
+
}
|
|
481
|
+
if (typeof options?.etag === 'string' && options.etag !== ETAG_DISABLED && options.etag === stat.etag) {
|
|
482
|
+
throw new NotModifiedSinceFileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileNotModifiedError', "File not modified since"), stat, options);
|
|
483
|
+
}
|
|
484
|
+
this.validateReadFileLimits(resource, stat.size, options);
|
|
485
|
+
return stat;
|
|
486
|
+
}
|
|
487
|
+
validateReadFileLimits(resource, size, options) {
|
|
488
|
+
if (typeof options?.limits?.size === 'number' && size > options.limits.size) {
|
|
489
|
+
throw new TooLargeFileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'fileTooLargeError', "Unable to read file '{0}' that is too large to open", this.resourceForError(resource)), 7 , size, options);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
async canMove(source, target, overwrite) {
|
|
493
|
+
return this.doCanMoveCopy(source, target, 'move', overwrite);
|
|
494
|
+
}
|
|
495
|
+
async canCopy(source, target, overwrite) {
|
|
496
|
+
return this.doCanMoveCopy(source, target, 'copy', overwrite);
|
|
497
|
+
}
|
|
498
|
+
async doCanMoveCopy(source, target, mode, overwrite) {
|
|
499
|
+
if (( source.toString()) !== ( target.toString())) {
|
|
500
|
+
try {
|
|
501
|
+
const sourceProvider = mode === 'move' ? this.throwIfFileSystemIsReadonly(await this.withWriteProvider(source), source) : await this.withReadProvider(source);
|
|
502
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
503
|
+
await this.doValidateMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite);
|
|
504
|
+
}
|
|
505
|
+
catch (error) {
|
|
506
|
+
return error;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
return true;
|
|
510
|
+
}
|
|
511
|
+
async move(source, target, overwrite) {
|
|
512
|
+
const sourceProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(source), source);
|
|
513
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
514
|
+
const mode = await this.doMoveCopy(sourceProvider, source, targetProvider, target, 'move', !!overwrite);
|
|
515
|
+
const fileStat = await this.resolve(target, { resolveMetadata: true });
|
|
516
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(
|
|
517
|
+
source,
|
|
518
|
+
mode === 'move' ? 2 : 3 ,
|
|
519
|
+
fileStat
|
|
520
|
+
)));
|
|
521
|
+
return fileStat;
|
|
522
|
+
}
|
|
523
|
+
async copy(source, target, overwrite) {
|
|
524
|
+
const sourceProvider = await this.withReadProvider(source);
|
|
525
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
526
|
+
const mode = await this.doMoveCopy(sourceProvider, source, targetProvider, target, 'copy', !!overwrite);
|
|
527
|
+
const fileStat = await this.resolve(target, { resolveMetadata: true });
|
|
528
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(
|
|
529
|
+
source,
|
|
530
|
+
mode === 'copy' ? 3 : 2 ,
|
|
531
|
+
fileStat
|
|
532
|
+
)));
|
|
533
|
+
return fileStat;
|
|
534
|
+
}
|
|
535
|
+
async doMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite) {
|
|
536
|
+
if (( source.toString()) === ( target.toString())) {
|
|
537
|
+
return mode;
|
|
538
|
+
}
|
|
539
|
+
const { exists, isSameResourceWithDifferentPathCase } = await this.doValidateMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite);
|
|
540
|
+
if (exists && !isSameResourceWithDifferentPathCase && overwrite) {
|
|
541
|
+
await this.del(target, { recursive: true });
|
|
542
|
+
}
|
|
543
|
+
await this.mkdirp(targetProvider, this.getExtUri(targetProvider).providerExtUri.dirname(target));
|
|
544
|
+
if (mode === 'copy') {
|
|
545
|
+
if (sourceProvider === targetProvider && hasFileFolderCopyCapability(sourceProvider)) {
|
|
546
|
+
await sourceProvider.copy(source, target, { overwrite });
|
|
547
|
+
}
|
|
548
|
+
else {
|
|
549
|
+
const sourceFile = await this.resolve(source);
|
|
550
|
+
if (sourceFile.isDirectory) {
|
|
551
|
+
await this.doCopyFolder(sourceProvider, sourceFile, targetProvider, target);
|
|
552
|
+
}
|
|
553
|
+
else {
|
|
554
|
+
await this.doCopyFile(sourceProvider, source, targetProvider, target);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return mode;
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
if (sourceProvider === targetProvider) {
|
|
561
|
+
await sourceProvider.rename(source, target, { overwrite });
|
|
562
|
+
return mode;
|
|
563
|
+
}
|
|
564
|
+
else {
|
|
565
|
+
await this.doMoveCopy(sourceProvider, source, targetProvider, target, 'copy', overwrite);
|
|
566
|
+
await this.del(source, { recursive: true });
|
|
567
|
+
return 'copy';
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
async doCopyFile(sourceProvider, source, targetProvider, target) {
|
|
572
|
+
if (hasOpenReadWriteCloseCapability(sourceProvider) && hasOpenReadWriteCloseCapability(targetProvider)) {
|
|
573
|
+
return this.doPipeBuffered(sourceProvider, source, targetProvider, target);
|
|
574
|
+
}
|
|
575
|
+
if (hasOpenReadWriteCloseCapability(sourceProvider) && hasReadWriteCapability(targetProvider)) {
|
|
576
|
+
return this.doPipeBufferedToUnbuffered(sourceProvider, source, targetProvider, target);
|
|
577
|
+
}
|
|
578
|
+
if (hasReadWriteCapability(sourceProvider) && hasOpenReadWriteCloseCapability(targetProvider)) {
|
|
579
|
+
return this.doPipeUnbufferedToBuffered(sourceProvider, source, targetProvider, target);
|
|
580
|
+
}
|
|
581
|
+
if (hasReadWriteCapability(sourceProvider) && hasReadWriteCapability(targetProvider)) {
|
|
582
|
+
return this.doPipeUnbuffered(sourceProvider, source, targetProvider, target);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
async doCopyFolder(sourceProvider, sourceFolder, targetProvider, targetFolder) {
|
|
586
|
+
await targetProvider.mkdir(targetFolder);
|
|
587
|
+
if (Array.isArray(sourceFolder.children)) {
|
|
588
|
+
await Promises.settled(( sourceFolder.children.map(async (sourceChild) => {
|
|
589
|
+
const targetChild = this.getExtUri(targetProvider).providerExtUri.joinPath(targetFolder, sourceChild.name);
|
|
590
|
+
if (sourceChild.isDirectory) {
|
|
591
|
+
return this.doCopyFolder(sourceProvider, await this.resolve(sourceChild.resource), targetProvider, targetChild);
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
return this.doCopyFile(sourceProvider, sourceChild.resource, targetProvider, targetChild);
|
|
595
|
+
}
|
|
596
|
+
})));
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
async doValidateMoveCopy(sourceProvider, source, targetProvider, target, mode, overwrite) {
|
|
600
|
+
let isSameResourceWithDifferentPathCase = false;
|
|
601
|
+
if (sourceProvider === targetProvider) {
|
|
602
|
+
const { providerExtUri, isPathCaseSensitive } = this.getExtUri(sourceProvider);
|
|
603
|
+
if (!isPathCaseSensitive) {
|
|
604
|
+
isSameResourceWithDifferentPathCase = providerExtUri.isEqual(source, target);
|
|
605
|
+
}
|
|
606
|
+
if (isSameResourceWithDifferentPathCase && mode === 'copy') {
|
|
607
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError1', "Unable to copy when source '{0}' is same as target '{1}' with different path case on a case insensitive file system", this.resourceForError(source), this.resourceForError(target)));
|
|
608
|
+
}
|
|
609
|
+
if (!isSameResourceWithDifferentPathCase && providerExtUri.isEqualOrParent(target, source)) {
|
|
610
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError2', "Unable to move/copy when source '{0}' is parent of target '{1}'.", this.resourceForError(source), this.resourceForError(target)));
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
const exists = await this.exists(target);
|
|
614
|
+
if (exists && !isSameResourceWithDifferentPathCase) {
|
|
615
|
+
if (!overwrite) {
|
|
616
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError3', "Unable to move/copy '{0}' because target '{1}' already exists at destination.", this.resourceForError(source), this.resourceForError(target)), 4 );
|
|
617
|
+
}
|
|
618
|
+
if (sourceProvider === targetProvider) {
|
|
619
|
+
const { providerExtUri } = this.getExtUri(sourceProvider);
|
|
620
|
+
if (providerExtUri.isEqualOrParent(source, target)) {
|
|
621
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'unableToMoveCopyError4', "Unable to move/copy '{0}' into '{1}' since a file would replace the folder it is contained in.", this.resourceForError(source), this.resourceForError(target)));
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return { exists, isSameResourceWithDifferentPathCase };
|
|
626
|
+
}
|
|
627
|
+
getExtUri(provider) {
|
|
628
|
+
const isPathCaseSensitive = this.isPathCaseSensitive(provider);
|
|
629
|
+
return {
|
|
630
|
+
providerExtUri: isPathCaseSensitive ? extUri : extUriIgnorePathCase,
|
|
631
|
+
isPathCaseSensitive
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
isPathCaseSensitive(provider) {
|
|
635
|
+
return !!((provider.capabilities & 1024) );
|
|
636
|
+
}
|
|
637
|
+
async createFolder(resource) {
|
|
638
|
+
const provider = this.throwIfFileSystemIsReadonly(await this.withProvider(resource), resource);
|
|
639
|
+
await this.mkdirp(provider, resource);
|
|
640
|
+
const fileStat = await this.resolve(resource, { resolveMetadata: true });
|
|
641
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 0 , fileStat)));
|
|
642
|
+
return fileStat;
|
|
643
|
+
}
|
|
644
|
+
async mkdirp(provider, directory) {
|
|
645
|
+
const directoriesToCreate = [];
|
|
646
|
+
const { providerExtUri } = this.getExtUri(provider);
|
|
647
|
+
while (!providerExtUri.isEqual(directory, providerExtUri.dirname(directory))) {
|
|
648
|
+
try {
|
|
649
|
+
const stat = await provider.stat(directory);
|
|
650
|
+
if ((stat.type & FileType.Directory) === 0) {
|
|
651
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'mkdirExistsError', "Unable to create folder '{0}' that already exists but is not a directory", this.resourceForError(directory)));
|
|
652
|
+
}
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
catch (error) {
|
|
656
|
+
if (toFileSystemProviderErrorCode(error) !== FileSystemProviderErrorCode.FileNotFound) {
|
|
657
|
+
throw error;
|
|
658
|
+
}
|
|
659
|
+
directoriesToCreate.push(providerExtUri.basename(directory));
|
|
660
|
+
directory = providerExtUri.dirname(directory);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
for (let i = directoriesToCreate.length - 1; i >= 0; i--) {
|
|
664
|
+
directory = providerExtUri.joinPath(directory, directoriesToCreate[i]);
|
|
665
|
+
try {
|
|
666
|
+
await provider.mkdir(directory);
|
|
667
|
+
}
|
|
668
|
+
catch (error) {
|
|
669
|
+
if (toFileSystemProviderErrorCode(error) !== FileSystemProviderErrorCode.FileExists) {
|
|
670
|
+
throw error;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
async canDelete(resource, options) {
|
|
676
|
+
try {
|
|
677
|
+
await this.doValidateDelete(resource, options);
|
|
678
|
+
}
|
|
679
|
+
catch (error) {
|
|
680
|
+
return error;
|
|
681
|
+
}
|
|
682
|
+
return true;
|
|
683
|
+
}
|
|
684
|
+
async doValidateDelete(resource, options) {
|
|
685
|
+
const provider = this.throwIfFileSystemIsReadonly(await this.withProvider(resource), resource);
|
|
686
|
+
const useTrash = !!options?.useTrash;
|
|
687
|
+
if (useTrash && !((provider.capabilities & 4096) )) {
|
|
688
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedTrashUnsupported', "Unable to delete file '{0}' via trash because provider does not support it.", this.resourceForError(resource)));
|
|
689
|
+
}
|
|
690
|
+
const atomic = options?.atomic;
|
|
691
|
+
if (atomic && !((provider.capabilities & 65536) )) {
|
|
692
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedAtomicUnsupported', "Unable to delete file '{0}' atomically because provider does not support it.", this.resourceForError(resource)));
|
|
693
|
+
}
|
|
694
|
+
if (useTrash && atomic) {
|
|
695
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedTrashAndAtomicUnsupported', "Unable to atomically delete file '{0}' because using trash is enabled.", this.resourceForError(resource)));
|
|
696
|
+
}
|
|
697
|
+
let stat = undefined;
|
|
698
|
+
try {
|
|
699
|
+
stat = await provider.stat(resource);
|
|
700
|
+
}
|
|
701
|
+
catch (error) {
|
|
702
|
+
}
|
|
703
|
+
if (stat) {
|
|
704
|
+
this.throwIfFileIsReadonly(resource, stat);
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedNotFound', "Unable to delete nonexistent file '{0}'", this.resourceForError(resource)), 1 );
|
|
708
|
+
}
|
|
709
|
+
const recursive = !!options?.recursive;
|
|
710
|
+
if (!recursive) {
|
|
711
|
+
const stat = await this.resolve(resource);
|
|
712
|
+
if (stat.isDirectory && Array.isArray(stat.children) && stat.children.length > 0) {
|
|
713
|
+
throw new Error(localizeWithPath('vs/platform/files/common/fileService', 'deleteFailedNonEmptyFolder', "Unable to delete non-empty folder '{0}'.", this.resourceForError(resource)));
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return provider;
|
|
717
|
+
}
|
|
718
|
+
async del(resource, options) {
|
|
719
|
+
const provider = await this.doValidateDelete(resource, options);
|
|
720
|
+
let deleteFileOptions = options;
|
|
721
|
+
if (hasFileAtomicDeleteCapability(provider) && !deleteFileOptions?.atomic) {
|
|
722
|
+
const enforcedAtomicDelete = provider.enforceAtomicDelete?.(resource);
|
|
723
|
+
if (enforcedAtomicDelete) {
|
|
724
|
+
deleteFileOptions = { ...options, atomic: enforcedAtomicDelete };
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
const useTrash = !!deleteFileOptions?.useTrash;
|
|
728
|
+
const recursive = !!deleteFileOptions?.recursive;
|
|
729
|
+
const atomic = deleteFileOptions?.atomic ?? false;
|
|
730
|
+
await provider.delete(resource, { recursive, useTrash, atomic });
|
|
731
|
+
this._onDidRunOperation.fire(( new FileOperationEvent(resource, 1 )));
|
|
732
|
+
}
|
|
733
|
+
async cloneFile(source, target) {
|
|
734
|
+
const sourceProvider = await this.withProvider(source);
|
|
735
|
+
const targetProvider = this.throwIfFileSystemIsReadonly(await this.withWriteProvider(target), target);
|
|
736
|
+
if (sourceProvider === targetProvider && this.getExtUri(sourceProvider).providerExtUri.isEqual(source, target)) {
|
|
737
|
+
return;
|
|
738
|
+
}
|
|
739
|
+
if (sourceProvider === targetProvider && hasFileCloneCapability(sourceProvider)) {
|
|
740
|
+
return sourceProvider.cloneFile(source, target);
|
|
741
|
+
}
|
|
742
|
+
await this.mkdirp(targetProvider, this.getExtUri(targetProvider).providerExtUri.dirname(target));
|
|
743
|
+
const sourceWriteQueue = this.writeQueue.queueFor(source, this.getExtUri(sourceProvider).providerExtUri);
|
|
744
|
+
if (sourceProvider === targetProvider && hasFileFolderCopyCapability(sourceProvider)) {
|
|
745
|
+
return sourceWriteQueue.queue(() => sourceProvider.copy(source, target, { overwrite: true }));
|
|
746
|
+
}
|
|
747
|
+
return sourceWriteQueue.queue(() => this.doCopyFile(sourceProvider, source, targetProvider, target));
|
|
748
|
+
}
|
|
749
|
+
static { this.WATCHER_CORRELATION_IDS = 0; }
|
|
750
|
+
createWatcher(resource, options) {
|
|
751
|
+
return this.watch(resource, {
|
|
752
|
+
...options,
|
|
753
|
+
correlationId: FileService_1.WATCHER_CORRELATION_IDS++
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
watch(resource, options = { recursive: false, excludes: [] }) {
|
|
757
|
+
const disposables = ( new DisposableStore());
|
|
758
|
+
let watchDisposed = false;
|
|
759
|
+
let disposeWatch = () => { watchDisposed = true; };
|
|
760
|
+
disposables.add(toDisposable(() => disposeWatch()));
|
|
761
|
+
(async () => {
|
|
762
|
+
try {
|
|
763
|
+
const disposable = await this.doWatch(resource, options);
|
|
764
|
+
if (watchDisposed) {
|
|
765
|
+
dispose(disposable);
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
disposeWatch = () => dispose(disposable);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
catch (error) {
|
|
772
|
+
this.logService.error(error);
|
|
773
|
+
}
|
|
774
|
+
})();
|
|
775
|
+
const correlationId = options.correlationId;
|
|
776
|
+
if (typeof correlationId === 'number') {
|
|
777
|
+
const fileChangeEmitter = disposables.add(( new Emitter()));
|
|
778
|
+
disposables.add(this.internalOnDidFilesChange.event(e => {
|
|
779
|
+
if (e.correlates(correlationId)) {
|
|
780
|
+
fileChangeEmitter.fire(e);
|
|
781
|
+
}
|
|
782
|
+
}));
|
|
783
|
+
const watcher = {
|
|
784
|
+
onDidChange: fileChangeEmitter.event,
|
|
785
|
+
dispose: () => disposables.dispose()
|
|
786
|
+
};
|
|
787
|
+
return watcher;
|
|
788
|
+
}
|
|
789
|
+
return disposables;
|
|
790
|
+
}
|
|
791
|
+
async doWatch(resource, options) {
|
|
792
|
+
const provider = await this.withProvider(resource);
|
|
793
|
+
const watchHash = hash([this.getExtUri(provider).providerExtUri.getComparisonKey(resource), options]);
|
|
794
|
+
let watcher = this.activeWatchers.get(watchHash);
|
|
795
|
+
if (!watcher) {
|
|
796
|
+
watcher = {
|
|
797
|
+
count: 0,
|
|
798
|
+
disposable: provider.watch(resource, options)
|
|
799
|
+
};
|
|
800
|
+
this.activeWatchers.set(watchHash, watcher);
|
|
801
|
+
}
|
|
802
|
+
watcher.count += 1;
|
|
803
|
+
return toDisposable(() => {
|
|
804
|
+
if (watcher) {
|
|
805
|
+
watcher.count--;
|
|
806
|
+
if (watcher.count === 0) {
|
|
807
|
+
dispose(watcher.disposable);
|
|
808
|
+
this.activeWatchers.delete(watchHash);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
dispose() {
|
|
814
|
+
super.dispose();
|
|
815
|
+
for (const [, watcher] of this.activeWatchers) {
|
|
816
|
+
dispose(watcher.disposable);
|
|
817
|
+
}
|
|
818
|
+
this.activeWatchers.clear();
|
|
819
|
+
}
|
|
820
|
+
async doWriteBuffered(provider, resource, options, readableOrStreamOrBufferedStream) {
|
|
821
|
+
return this.writeQueue.queueFor(resource, this.getExtUri(provider).providerExtUri).queue(async () => {
|
|
822
|
+
const handle = await provider.open(resource, { create: true, unlock: options?.unlock ?? false });
|
|
823
|
+
try {
|
|
824
|
+
if (isReadableStream(readableOrStreamOrBufferedStream) || isReadableBufferedStream(readableOrStreamOrBufferedStream)) {
|
|
825
|
+
await this.doWriteStreamBufferedQueued(provider, handle, readableOrStreamOrBufferedStream);
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
await this.doWriteReadableBufferedQueued(provider, handle, readableOrStreamOrBufferedStream);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
catch (error) {
|
|
832
|
+
throw ensureFileSystemProviderError(error);
|
|
833
|
+
}
|
|
834
|
+
finally {
|
|
835
|
+
await provider.close(handle);
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
async doWriteStreamBufferedQueued(provider, handle, streamOrBufferedStream) {
|
|
840
|
+
let posInFile = 0;
|
|
841
|
+
let stream;
|
|
842
|
+
if (isReadableBufferedStream(streamOrBufferedStream)) {
|
|
843
|
+
if (streamOrBufferedStream.buffer.length > 0) {
|
|
844
|
+
const chunk = VSBuffer.concat(streamOrBufferedStream.buffer);
|
|
845
|
+
await this.doWriteBuffer(provider, handle, chunk, chunk.byteLength, posInFile, 0);
|
|
846
|
+
posInFile += chunk.byteLength;
|
|
847
|
+
}
|
|
848
|
+
if (streamOrBufferedStream.ended) {
|
|
849
|
+
return;
|
|
850
|
+
}
|
|
851
|
+
stream = streamOrBufferedStream.stream;
|
|
852
|
+
}
|
|
853
|
+
else {
|
|
854
|
+
stream = streamOrBufferedStream;
|
|
855
|
+
}
|
|
856
|
+
return ( new Promise((resolve, reject) => {
|
|
857
|
+
listenStream(stream, {
|
|
858
|
+
onData: async (chunk) => {
|
|
859
|
+
stream.pause();
|
|
860
|
+
try {
|
|
861
|
+
await this.doWriteBuffer(provider, handle, chunk, chunk.byteLength, posInFile, 0);
|
|
862
|
+
}
|
|
863
|
+
catch (error) {
|
|
864
|
+
return reject(error);
|
|
865
|
+
}
|
|
866
|
+
posInFile += chunk.byteLength;
|
|
867
|
+
setTimeout(() => stream.resume());
|
|
868
|
+
},
|
|
869
|
+
onError: error => reject(error),
|
|
870
|
+
onEnd: () => resolve()
|
|
871
|
+
});
|
|
872
|
+
}));
|
|
873
|
+
}
|
|
874
|
+
async doWriteReadableBufferedQueued(provider, handle, readable) {
|
|
875
|
+
let posInFile = 0;
|
|
876
|
+
let chunk;
|
|
877
|
+
while ((chunk = readable.read()) !== null) {
|
|
878
|
+
await this.doWriteBuffer(provider, handle, chunk, chunk.byteLength, posInFile, 0);
|
|
879
|
+
posInFile += chunk.byteLength;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
async doWriteBuffer(provider, handle, buffer, length, posInFile, posInBuffer) {
|
|
883
|
+
let totalBytesWritten = 0;
|
|
884
|
+
while (totalBytesWritten < length) {
|
|
885
|
+
const bytesWritten = await provider.write(handle, posInFile + totalBytesWritten, buffer.buffer, posInBuffer + totalBytesWritten, length - totalBytesWritten);
|
|
886
|
+
totalBytesWritten += bytesWritten;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
async doWriteUnbuffered(provider, resource, options, bufferOrReadableOrStreamOrBufferedStream) {
|
|
890
|
+
return this.writeQueue.queueFor(resource, this.getExtUri(provider).providerExtUri).queue(() => this.doWriteUnbufferedQueued(provider, resource, options, bufferOrReadableOrStreamOrBufferedStream));
|
|
891
|
+
}
|
|
892
|
+
async doWriteUnbufferedQueued(provider, resource, options, bufferOrReadableOrStreamOrBufferedStream) {
|
|
893
|
+
let buffer;
|
|
894
|
+
if (bufferOrReadableOrStreamOrBufferedStream instanceof VSBuffer) {
|
|
895
|
+
buffer = bufferOrReadableOrStreamOrBufferedStream;
|
|
896
|
+
}
|
|
897
|
+
else if (isReadableStream(bufferOrReadableOrStreamOrBufferedStream)) {
|
|
898
|
+
buffer = await streamToBuffer(bufferOrReadableOrStreamOrBufferedStream);
|
|
899
|
+
}
|
|
900
|
+
else if (isReadableBufferedStream(bufferOrReadableOrStreamOrBufferedStream)) {
|
|
901
|
+
buffer = await bufferedStreamToBuffer(bufferOrReadableOrStreamOrBufferedStream);
|
|
902
|
+
}
|
|
903
|
+
else {
|
|
904
|
+
buffer = readableToBuffer(bufferOrReadableOrStreamOrBufferedStream);
|
|
905
|
+
}
|
|
906
|
+
await provider.writeFile(resource, buffer.buffer, { create: true, overwrite: true, unlock: options?.unlock ?? false, atomic: options?.atomic ?? false });
|
|
907
|
+
}
|
|
908
|
+
async doPipeBuffered(sourceProvider, source, targetProvider, target) {
|
|
909
|
+
return this.writeQueue.queueFor(target, this.getExtUri(targetProvider).providerExtUri).queue(() => this.doPipeBufferedQueued(sourceProvider, source, targetProvider, target));
|
|
910
|
+
}
|
|
911
|
+
async doPipeBufferedQueued(sourceProvider, source, targetProvider, target) {
|
|
912
|
+
let sourceHandle = undefined;
|
|
913
|
+
let targetHandle = undefined;
|
|
914
|
+
try {
|
|
915
|
+
sourceHandle = await sourceProvider.open(source, { create: false });
|
|
916
|
+
targetHandle = await targetProvider.open(target, { create: true, unlock: false });
|
|
917
|
+
const buffer = VSBuffer.alloc(this.BUFFER_SIZE);
|
|
918
|
+
let posInFile = 0;
|
|
919
|
+
let posInBuffer = 0;
|
|
920
|
+
let bytesRead = 0;
|
|
921
|
+
do {
|
|
922
|
+
bytesRead = await sourceProvider.read(sourceHandle, posInFile, buffer.buffer, posInBuffer, buffer.byteLength - posInBuffer);
|
|
923
|
+
await this.doWriteBuffer(targetProvider, targetHandle, buffer, bytesRead, posInFile, posInBuffer);
|
|
924
|
+
posInFile += bytesRead;
|
|
925
|
+
posInBuffer += bytesRead;
|
|
926
|
+
if (posInBuffer === buffer.byteLength) {
|
|
927
|
+
posInBuffer = 0;
|
|
928
|
+
}
|
|
929
|
+
} while (bytesRead > 0);
|
|
930
|
+
}
|
|
931
|
+
catch (error) {
|
|
932
|
+
throw ensureFileSystemProviderError(error);
|
|
933
|
+
}
|
|
934
|
+
finally {
|
|
935
|
+
await Promises.settled([
|
|
936
|
+
typeof sourceHandle === 'number' ? sourceProvider.close(sourceHandle) : Promise.resolve(),
|
|
937
|
+
typeof targetHandle === 'number' ? targetProvider.close(targetHandle) : Promise.resolve(),
|
|
938
|
+
]);
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
async doPipeUnbuffered(sourceProvider, source, targetProvider, target) {
|
|
942
|
+
return this.writeQueue.queueFor(target, this.getExtUri(targetProvider).providerExtUri).queue(() => this.doPipeUnbufferedQueued(sourceProvider, source, targetProvider, target));
|
|
943
|
+
}
|
|
944
|
+
async doPipeUnbufferedQueued(sourceProvider, source, targetProvider, target) {
|
|
945
|
+
return targetProvider.writeFile(target, await sourceProvider.readFile(source), { create: true, overwrite: true, unlock: false, atomic: false });
|
|
946
|
+
}
|
|
947
|
+
async doPipeUnbufferedToBuffered(sourceProvider, source, targetProvider, target) {
|
|
948
|
+
return this.writeQueue.queueFor(target, this.getExtUri(targetProvider).providerExtUri).queue(() => this.doPipeUnbufferedToBufferedQueued(sourceProvider, source, targetProvider, target));
|
|
949
|
+
}
|
|
950
|
+
async doPipeUnbufferedToBufferedQueued(sourceProvider, source, targetProvider, target) {
|
|
951
|
+
const targetHandle = await targetProvider.open(target, { create: true, unlock: false });
|
|
952
|
+
try {
|
|
953
|
+
const buffer = await sourceProvider.readFile(source);
|
|
954
|
+
await this.doWriteBuffer(targetProvider, targetHandle, VSBuffer.wrap(buffer), buffer.byteLength, 0, 0);
|
|
955
|
+
}
|
|
956
|
+
catch (error) {
|
|
957
|
+
throw ensureFileSystemProviderError(error);
|
|
958
|
+
}
|
|
959
|
+
finally {
|
|
960
|
+
await targetProvider.close(targetHandle);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
async doPipeBufferedToUnbuffered(sourceProvider, source, targetProvider, target) {
|
|
964
|
+
const buffer = await streamToBuffer(this.readFileBuffered(sourceProvider, source, CancellationToken.None));
|
|
965
|
+
await this.doWriteUnbuffered(targetProvider, target, undefined, buffer);
|
|
966
|
+
}
|
|
967
|
+
throwIfFileSystemIsReadonly(provider, resource) {
|
|
968
|
+
if (provider.capabilities & 2048 ) {
|
|
969
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'err.readonly', "Unable to modify read-only file '{0}'", this.resourceForError(resource)), 6 );
|
|
970
|
+
}
|
|
971
|
+
return provider;
|
|
972
|
+
}
|
|
973
|
+
throwIfFileIsReadonly(resource, stat) {
|
|
974
|
+
if ((stat.permissions ?? 0) & FilePermission.Readonly) {
|
|
975
|
+
throw new FileOperationError(localizeWithPath('vs/platform/files/common/fileService', 'err.readonly', "Unable to modify read-only file '{0}'", this.resourceForError(resource)), 6 );
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
resourceForError(resource) {
|
|
979
|
+
if (resource.scheme === Schemas.file) {
|
|
980
|
+
return resource.fsPath;
|
|
981
|
+
}
|
|
982
|
+
return ( resource.toString(true));
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
FileService = FileService_1 = ( __decorate([
|
|
986
|
+
( __param(0, ILogService))
|
|
987
|
+
], FileService));
|
|
988
|
+
|
|
989
|
+
export { FileService };
|