Skip to content

Commit

Permalink
Tool4D rename settings
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-kotulski committed Mar 22, 2024
1 parent 22f642e commit f17058c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,31 @@
"type": "boolean",
"scope": "machine",
"default": true,
"markdownDescription": "Download Tool4D"
"markdownDescription": "Automatic Tool4D download and use",
"order": 0
},
"4D-Analyzer.server.tool4d.version": {
"type": "string",
"scope": "machine",
"default": "latest",
"pattern": "^([0-9]{2}(R[0-9]?)?)|latest$",
"markdownDescription": "Tool4D version: 20R3, 20, ..."
"markdownDescription": "Tool4D version (latest, 20R, 20, ...). See extension documentation for more information.",
"order": 1
},
"4D-Analyzer.server.tool4d.channel": {
"type": "string",
"scope": "machine",
"default":"stable",
"enum": ["stable", "beta"],
"markdownDescription": "Tool4D download channel"
"markdownDescription": "Tool4D version channel.",
"order": 2
},
"4D-Analyzer.server.tool4d.location": {
"type": "string",
"scope": "machine",
"default": "",
"markdownDescription": "Tool4D location after download. `#4D-Analyzer.server.tool4d.enable#` should be enabled"
"markdownDescription": "Tool4D download folder (optional).",
"order": 3
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions editor/src/apiManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ export class APIManager {
public async getLastVersionCloud(labeledVersionWanted: LabeledVersion): Promise<LabeledVersion> {

let labeledVersionCloud;
const url = this.getURLTool4D(labeledVersionWanted);
try {
const url = this.getURLTool4D(labeledVersionWanted);
labeledVersionCloud = await requestLabelVersion(url, labeledVersionWanted.channel);
}
catch (error) {
throw error;
throw new Error(`Failed url: ${url}`);
}
let isBeta = await this.isCloudVersionABeta(labeledVersionCloud);

Expand Down

0 comments on commit f17058c

Please sign in to comment.