Skip to content

Commit c4a49dd

Browse files
committed
Refactored JDK Downloader
1 parent d238cde commit c4a49dd

13 files changed

+761
-978
lines changed

THIRD_PARTY_LICENSES.txt

Lines changed: 0 additions & 211 deletions
Original file line numberDiff line numberDiff line change
@@ -8656,217 +8656,6 @@ publicity pertaining to the work without specific, written prior permission.
86568656
Title to copyright in this work will at all times remain with copyright
86578657
holders.
86588658

8659-
Dependency: axios
8660-
=================
8661-
8662-
axios
8663-
8664-
# Copyright (c) 2014-present Matt Zabriskie & Collaborators
8665-
8666-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8667-
8668-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8669-
8670-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8671-
8672-
-----------------------------------
8673-
=====================4'th party dependencies===================
8674-
8675-
follow-redirects
8676-
8677-
https://github.com/follow-redirects/follow-redirects
8678-
8679-
Copyright 2014–present Olivier Lalonde <[email protected]>, James Talmage <[email protected]>, Ruben Verborgh
8680-
8681-
Permission is hereby granted, free of charge, to any person obtaining a copy of
8682-
this software and associated documentation files (the "Software"), to deal in
8683-
the Software without restriction, including without limitation the rights to
8684-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8685-
of the Software, and to permit persons to whom the Software is furnished to do
8686-
so, subject to the following conditions:
8687-
8688-
The above copyright notice and this permission notice shall be included in all
8689-
copies or substantial portions of the Software.
8690-
8691-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8692-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8693-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8694-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
8695-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
8696-
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8697-
8698-
-------------
8699-
asynckit
8700-
8701-
The MIT License (MIT)
8702-
8703-
Copyright (c) 2016 Alex Indigo
8704-
8705-
Permission is hereby granted, free of charge, to any person obtaining a copy
8706-
of this software and associated documentation files (the "Software"), to deal
8707-
in the Software without restriction, including without limitation the rights
8708-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8709-
copies of the Software, and to permit persons to whom the Software is
8710-
furnished to do so, subject to the following conditions:
8711-
8712-
The above copyright notice and this permission notice shall be included in all
8713-
copies or substantial portions of the Software.
8714-
8715-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8716-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8717-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8718-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8719-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8720-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8721-
SOFTWARE.
8722-
8723-
------
8724-
combined-stream (node-combined-stream)
8725-
8726-
Copyright (c) 2011 Debuggable Limited <[email protected]>
8727-
8728-
Permission is hereby granted, free of charge, to any person obtaining a copy
8729-
of this software and associated documentation files (the "Software"), to deal
8730-
in the Software without restriction, including without limitation the rights
8731-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8732-
copies of the Software, and to permit persons to whom the Software is
8733-
furnished to do so, subject to the following conditions:
8734-
8735-
The above copyright notice and this permission notice shall be included in
8736-
all copies or substantial portions of the Software.
8737-
8738-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8739-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8740-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8741-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8742-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8743-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
8744-
THE SOFTWARE.
8745-
8746-
--------------
8747-
delayed-stream (node-delayed-stream)
8748-
8749-
Copyright (c) 2011 Debuggable Limited <[email protected]>
8750-
8751-
Permission is hereby granted, free of charge, to any person obtaining a copy
8752-
of this software and associated documentation files (the "Software"), to deal
8753-
in the Software without restriction, including without limitation the rights
8754-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8755-
copies of the Software, and to permit persons to whom the Software is
8756-
furnished to do so, subject to the following conditions:
8757-
8758-
The above copyright notice and this permission notice shall be included in
8759-
all copies or substantial portions of the Software.
8760-
8761-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8762-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8763-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8764-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8765-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8766-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
8767-
THE SOFTWARE.
8768-
8769-
-------------
8770-
mime-types
8771-
8772-
(The MIT License)
8773-
8774-
Copyright (c) 2014 Jonathan Ong <[email protected]>
8775-
Copyright (c) 2015 Douglas Christopher Wilson <[email protected]>
8776-
8777-
Permission is hereby granted, free of charge, to any person obtaining
8778-
a copy of this software and associated documentation files (the
8779-
'Software'), to deal in the Software without restriction, including
8780-
without limitation the rights to use, copy, modify, merge, publish,
8781-
distribute, sublicense, and/or sell copies of the Software, and to
8782-
permit persons to whom the Software is furnished to do so, subject to
8783-
the following conditions:
8784-
8785-
The above copyright notice and this permission notice shall be
8786-
included in all copies or substantial portions of the Software.
8787-
8788-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
8789-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8790-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8791-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
8792-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
8793-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
8794-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8795-
8796-
----------------
8797-
mime-db
8798-
8799-
(The MIT License)
8800-
8801-
Copyright (c) 2014 Jonathan Ong <[email protected]>
8802-
Copyright (c) 2015-2022 Douglas Christopher Wilson <[email protected]>
8803-
8804-
Permission is hereby granted, free of charge, to any person obtaining
8805-
a copy of this software and associated documentation files (the
8806-
'Software'), to deal in the Software without restriction, including
8807-
without limitation the rights to use, copy, modify, merge, publish,
8808-
distribute, sublicense, and/or sell copies of the Software, and to
8809-
permit persons to whom the Software is furnished to do so, subject to
8810-
the following conditions:
8811-
8812-
The above copyright notice and this permission notice shall be
8813-
included in all copies or substantial portions of the Software.
8814-
8815-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
8816-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8817-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
8818-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
8819-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
8820-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
8821-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8822-
8823-
-----------------------------------
8824-
form-data
8825-
8826-
Copyright (c) 2012 Felix Geisendörfer ([email protected]) and contributors
8827-
8828-
Permission is hereby granted, free of charge, to any person obtaining a copy
8829-
of this software and associated documentation files (the "Software"), to deal
8830-
in the Software without restriction, including without limitation the rights
8831-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8832-
copies of the Software, and to permit persons to whom the Software is
8833-
furnished to do so, subject to the following conditions:
8834-
8835-
The above copyright notice and this permission notice shall be included in
8836-
all copies or substantial portions of the Software.
8837-
8838-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8839-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8840-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8841-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8842-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8843-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
8844-
THE SOFTWARE.
8845-
8846-
-----------------------------------
8847-
proxy-from-env
8848-
8849-
The MIT License
8850-
8851-
Copyright (C) 2016-2018 Rob Wu <[email protected]>
8852-
8853-
Permission is hereby granted, free of charge, to any person obtaining a copy of
8854-
this software and associated documentation files (the "Software"), to deal in
8855-
the Software without restriction, including without limitation the rights to
8856-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8857-
of the Software, and to permit persons to whom the Software is furnished to do
8858-
so, subject to the following conditions:
8859-
8860-
The above copyright notice and this permission notice shall be included in all
8861-
copies or substantial portions of the Software.
8862-
8863-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8864-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
8865-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
8866-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
8867-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
8868-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8869-
88708659

88718660
Dependency: jsonc-parser
88728661
=======================

vscode/l10n/bundle.l10n.en.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@
1616
"jdk.downloader.label.detectedMachineArchitecture": "Detected Machine Architecture",
1717
"jdk.downloader.button.label.downloadAndInstall": "Install and start setup",
1818
"jdk.downloader.label.selectOpenJdkVersion": "Select Oracle OpenJDK Version",
19+
"jdk.downloader.message.downloadProgressBar":"{jdkType} {jdkVersion} download in progress",
1920
"jdk.downloader.message.downloadingAndCompletingSetup": "Downloading and completing setup of {jdkType} {jdkVersion}...",
2021
"jdk.downloader.message.downloadCompleted":"{jdkType} {jdkVersion} for {osType} download completed!",
2122
"jdk.downloader.error_message.whileSavingFile": "Error while saving the file: {error}",
2223
"jdk.downloader.error_message.whileDownloading": "Error while downloading the : {jdkType} {error}",
2324
"jdk.downloader.message.downloadFailed": "{jdkType} {jdkVersion} for {osType} download failed, wrong checksum.",
2425
"jdk.downloader.error_message.downloadFailedHttpError": "HTTP Error {statusCode} - {statusMessage}",
25-
"jdk.downloader.error_message.jdkExtractionError": "Error: {error}",
26+
"jdk.downloader.error_message.anyError": "Error: {error}",
27+
"jdk.downloader.error_message.installationCleanup": "Error while installation cleanup",
28+
"jdk.downloader.error_message.extractionError": "Extracting {jdkType} {jdkVersion} failed",
29+
"jdk.downloader.error_message.findDownloadedJDK": "No instance of {jdkVersion} found in the download directory",
30+
"jdk.downloader.error_message.installingJDK": "Error while installing JDK {error}",
31+
"jdk.downloader.error_message.generateDownloadUrl": "Failed to generate download URL or path.",
32+
"jdk.downloader.error_message.errorLoadingPage": "Error loading JDK downloader page.",
2633
"jdk.downloader.error_message.jdkNewDirectoryIssueCannotInstall":"Cannot install {jdkType} {jdkVersion}. Cannot delete {newDirName}",
2734
"jdk.downloader.message.confirmation.directoryExistsStillWantToDelete":"{name} is already present. Do you want to delete it and create with new contents?",
2835
"jdk.downloader.message.confirmation.yes":"Yes",
@@ -87,6 +94,6 @@
8794
"jdk.extenstion.message.cacheDeleted":"Cache deleted successfully",
8895
"jdk.extenstion.cache.error_msg.cannotFindWrkSpacePath":"Cannot find workspace path",
8996
"jdk.extenstion.debugger.error_msg.debugAdapterNotInitialized":"Oracle Java SE Debug Server Adapter not yet initialized. Please wait for a while and try again.",
90-
"jdk.workspace.new.prompt": "Input the directory path where the new file will be generated"
91-
97+
"jdk.workspace.new.prompt": "Input the directory path where the new file will be generated",
98+
"jdk.extension.utils.error_message.failedHttpsRequest": "Failed to get {url} ({statusCode})"
9299
}

vscode/l10n/bundle.l10n.ja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"jdk.downloader.error_message.whileDownloading": "ダウンロード中にエラーが発生しました: {jdkType} {error}",
2222
"jdk.downloader.message.downloadFailed": "{osType}用の{jdkType} {jdkVersion}のダウンロードに失敗しました。間違ったチェックサム。",
2323
"jdk.downloader.error_message.downloadFailedHttpError": "HTTPエラー{statusCode} - {statusMessage}",
24-
"jdk.downloader.error_message.jdkExtractionError": "エラー: {error}",
24+
"jdk.downloader.error_message.anyError": "エラー: {error}",
2525
"jdk.downloader.error_message.jdkNewDirectoryIssueCannotInstall":"{jdkType} {jdkVersion}をインストールできません。{newDirName}を削除できません",
2626
"jdk.downloader.message.confirmation.directoryExistsStillWantToDelete":"{name}はすでに存在しています。削除して新しいコンテンツを作成しますか。",
2727
"jdk.downloader.message.confirmation.yes":"はい",

vscode/l10n/bundle.l10n.zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"jdk.downloader.error_message.whileDownloading": "下载 {jdkType} 时出错 {error}",
1919
"jdk.downloader.message.downloadFailed": "适用于 {osType} 的 {jdkType} {jdkVersion} 下载失败,校验和错误。",
2020
"jdk.downloader.error_message.downloadFailedHttpError": "HTTP 错误 {statusCode} - {statusMessage}",
21-
"jdk.downloader.error_message.jdkExtractionError": "错误:{error}",
21+
"jdk.downloader.error_message.anyError": "错误:{error}",
2222
"jdk.downloader.error_message.jdkNewDirectoryIssueCannotInstall":"无法安装 {jdkType} {jdkVersion}。无法删除 {newDirName}",
2323
"jdk.downloader.message.confirmation.directoryExistsStillWantToDelete":"{name} 已存在。是否要将其删除并使用新内容创建?",
2424
"jdk.downloader.message.confirmation.yes":"",

0 commit comments

Comments
 (0)