Skip to content

Commit 001b3f3

Browse files
committed
Correct access to new config
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent 748b327 commit 001b3f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/webviews/settings/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ export class SettingsUI {
5050
// Reload config to initialize any new config parameters.
5151
config = await IBMi.connectionManager.load(connection.currentConnectionName);
5252

53-
const serverConfigOk = connection.getConfigFile(`connection`).getState().server === `ok`;
53+
const remoteConnectionConfig = connection.getConfigFile<RemoteConfigFile>(`settings`);
54+
const serverConfigOk = remoteConnectionConfig.getState().server === `ok`;
5455

5556
if (serverConfigOk) {
56-
serverConfig = await connection.getConfigFile<RemoteConfigFile>(`connection`).get();
57+
serverConfig = await remoteConnectionConfig.get();
5758
}
5859
} else {
5960
vscode.window.showErrorMessage(`No connection is active.`);

0 commit comments

Comments
 (0)