We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 748b327 commit 001b3f3Copy full SHA for 001b3f3
src/webviews/settings/index.ts
@@ -50,10 +50,11 @@ export class SettingsUI {
50
// Reload config to initialize any new config parameters.
51
config = await IBMi.connectionManager.load(connection.currentConnectionName);
52
53
- const serverConfigOk = connection.getConfigFile(`connection`).getState().server === `ok`;
+ const remoteConnectionConfig = connection.getConfigFile<RemoteConfigFile>(`settings`);
54
+ const serverConfigOk = remoteConnectionConfig.getState().server === `ok`;
55
56
if (serverConfigOk) {
- serverConfig = await connection.getConfigFile<RemoteConfigFile>(`connection`).get();
57
+ serverConfig = await remoteConnectionConfig.get();
58
}
59
} else {
60
vscode.window.showErrorMessage(`No connection is active.`);
0 commit comments