File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ interface ConnectionCallbacks {
67
67
}
68
68
69
69
interface ConnectionConfigFiles {
70
- connection : ConfigFile < RemoteConfigFile > ;
70
+ settings : ConfigFile < RemoteConfigFile > ;
71
71
}
72
72
73
73
export default class IBMi {
@@ -88,7 +88,7 @@ export default class IBMi {
88
88
private componentManager = new ComponentManager ( this ) ;
89
89
90
90
private configFiles : ConnectionConfigFiles = {
91
- connection : new ConfigFile < RemoteConfigFile > ( this , `codefori ` , { } )
91
+ settings : new ConfigFile < RemoteConfigFile > ( this , `settings ` , { } )
92
92
} ;
93
93
94
94
/**
@@ -506,7 +506,7 @@ export default class IBMi {
506
506
callbacks . progress ( { message : `Loading remote configuration files.` } ) ;
507
507
await this . loadRemoteConfigs ( ) ;
508
508
509
- const remoteConnectionConfig = this . getConfigFile < RemoteConfigFile > ( `connection ` ) ;
509
+ const remoteConnectionConfig = this . getConfigFile < RemoteConfigFile > ( `settings ` ) ;
510
510
if ( remoteConnectionConfig . getState ( ) . server === `ok` ) {
511
511
const remoteConfig = await remoteConnectionConfig . get ( ) ;
512
512
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class ConfigFile<T> {
61
61
}
62
62
63
63
async get ( ) {
64
- return this . serverData ;
64
+ return this . serverData || this . fallback ;
65
65
}
66
66
67
67
reset ( ) {
Original file line number Diff line number Diff line change @@ -50,10 +50,11 @@ export class SettingsUI {
50
50
// Reload config to initialize any new config parameters.
51
51
config = await IBMi . connectionManager . load ( connection . currentConnectionName ) ;
52
52
53
- const serverConfigOk = connection . getConfigFile ( `connection` ) . getState ( ) . server === `ok` ;
53
+ const remoteConnectionConfig = connection . getConfigFile < RemoteConfigFile > ( `settings` ) ;
54
+ const serverConfigOk = remoteConnectionConfig . getState ( ) . server === `ok` ;
54
55
55
56
if ( serverConfigOk ) {
56
- serverConfig = await connection . getConfigFile < RemoteConfigFile > ( `connection` ) . get ( ) ;
57
+ serverConfig = await remoteConnectionConfig . get ( ) ;
57
58
}
58
59
} else {
59
60
vscode . window . showErrorMessage ( `No connection is active.` ) ;
You can’t perform that action at this time.
0 commit comments