diff options
author | Veetaha <[email protected]> | 2020-02-08 02:22:44 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-08 02:34:11 +0000 |
commit | 5d88c1db38200896d2e4af7836fec95097adf509 (patch) | |
tree | e865f9b5446b1630acf554f353856334a8ef6007 /editors/code/src/installation/interfaces.ts | |
parent | 3e0e4e90aeeff25db674f8db562c611bd8016482 (diff) |
vscode: amended config to use binary from globalStoragePath, added ui for downloading
Diffstat (limited to 'editors/code/src/installation/interfaces.ts')
-rw-r--r-- | editors/code/src/installation/interfaces.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/editors/code/src/installation/interfaces.ts b/editors/code/src/installation/interfaces.ts new file mode 100644 index 000000000..f54e24e26 --- /dev/null +++ b/editors/code/src/installation/interfaces.ts | |||
@@ -0,0 +1,26 @@ | |||
1 | export interface GithubRepo { | ||
2 | name: string; | ||
3 | owner: string; | ||
4 | } | ||
5 | |||
6 | export interface ArtifactMetadata { | ||
7 | releaseName: string; | ||
8 | downloadUrl: string; | ||
9 | } | ||
10 | |||
11 | |||
12 | export enum BinarySourceType { ExplicitPath, GithubBinary } | ||
13 | |||
14 | export type BinarySource = EplicitPathSource | GithubBinarySource; | ||
15 | |||
16 | export interface EplicitPathSource { | ||
17 | type: BinarySourceType.ExplicitPath; | ||
18 | path: string; | ||
19 | } | ||
20 | |||
21 | export interface GithubBinarySource { | ||
22 | type: BinarySourceType.GithubBinary; | ||
23 | repo: GithubRepo; | ||
24 | dir: string; | ||
25 | file: string; | ||
26 | } | ||