Skip to content
This repository was archived by the owner on Nov 12, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/install/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function findSdkInformation(channel: string, arch: string, version: string
json.releases.forEach((element: { archive: string; }) => {
console.log("Found: " + element.archive);
});
var flutterVersion = version != null ? version : current.version.substring(1)
var flutterVersion = version != null && version.length > 0 ? version : current.version.substring(1)

return {
downloadUrl: json.base_url + '/' + current.archive,
Expand Down
3 changes: 2 additions & 1 deletion src/install/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"version": {
"Major": 0,
"Minor": 2,
"Patch": 1
"Patch": 41
},
"instanceNameFormat": "Flutter Install",
"inputs": [
Expand All @@ -31,6 +31,7 @@
"name": "version",
"type": "string",
"label": "Flutter version",
"defaultValue": "",
"required": false,
"helpMarkDown": "The flutter version to download."
}
Expand Down
2 changes: 1 addition & 1 deletion src/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "install-flutter-sdk",
"name": "Install Flutter SDK",
"version": "0.2.7",
"version": "0.2.8",
"public": true,
"publisher": "contrix09",
"targets": [
Expand Down