Skip to content

Commit c42b324

Browse files
add VS_CODE build type
1 parent 96fd750 commit c42b324

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

redisinsight/api/src/modules/server/models/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export enum BuildType {
55
RedisStack = 'REDIS_STACK',
66
Electron = 'ELECTRON',
77
DockerOnPremise = 'DOCKER_ON_PREMISE',
8+
VSCode = 'VS_CODE',
89
}
910

1011
export enum PackageType {
@@ -24,6 +25,7 @@ export enum AppType {
2425
RedisStackApp = 'REDIS_STACK_ELECTRON',
2526
Electron = 'ELECTRON',
2627
Docker = 'DOCKER',
28+
VSCode = 'VS_CODE',
2729
Unknown = 'UNKNOWN',
2830
}
2931

redisinsight/api/src/modules/server/server.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class ServerService implements OnApplicationBootstrap {
8383
if (!info) {
8484
return Promise.reject(new ServerInfoNotFoundException());
8585
}
86+
8687
const result = {
8788
...info,
8889
sessionId: this.sessionId,
@@ -111,6 +112,8 @@ export class ServerService implements OnApplicationBootstrap {
111112
return AppType.Electron;
112113
case BuildType.RedisStack:
113114
return AppType.RedisStackWeb;
115+
case BuildType.VSCode:
116+
return AppType.VSCode;
114117
default:
115118
return AppType.Unknown;
116119
}

0 commit comments

Comments
 (0)