File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ export class ExperimentalSettings {
27
27
private readonly hostService : IHostService ,
28
28
private readonly logger : ILogService
29
29
) {
30
- const host = hostService . gitpodHost ;
31
-
32
- this . configcatClient = configcat . createClientWithLazyLoad ( key , {
33
- baseUrl : new URL ( '/configcat' , host ) . href ,
30
+ const configCatOptions = {
34
31
logger : {
35
32
debug ( ) : void { } ,
36
33
log ( ) : void { } ,
@@ -40,7 +37,20 @@ export class ExperimentalSettings {
40
37
} ,
41
38
requestTimeoutMs : 1500 ,
42
39
cacheTimeToLiveSeconds : 60
40
+ } ;
41
+
42
+ this . configcatClient = configcat . createClientWithLazyLoad ( key , {
43
+ baseUrl : new URL ( '/configcat' , hostService . gitpodHost ) . href ,
44
+ ...configCatOptions
43
45
} ) ;
46
+
47
+ hostService . onDidChangeHost ( ( ) => {
48
+ this . configcatClient = configcat . createClientWithLazyLoad ( key , {
49
+ baseUrl : new URL ( '/configcat' , hostService . gitpodHost ) . href ,
50
+ ...configCatOptions
51
+ } ) ;
52
+ } ) ;
53
+
44
54
this . extensionVersion = new semver . SemVer ( extensionVersion ) ;
45
55
}
46
56
You can’t perform that action at this time.
0 commit comments