diff --git a/src/connectionController.ts b/src/connectionController.ts index 4c37a39b4..a648a2b29 100644 --- a/src/connectionController.ts +++ b/src/connectionController.ts @@ -195,7 +195,7 @@ export default class ConnectionController { ); try { - const connectResult = await this.saveNewConnectionFromFormAndConnect( + const connectResult = await this.saveNewConnectionAndConnect( { id: uuidv4(), connectionOptions: { @@ -235,8 +235,7 @@ export default class ConnectionController { }); } - // TODO: Save from form / connection string... - async saveNewConnectionFromFormAndConnect( + async saveNewConnectionAndConnect( originalConnectionInfo: ConnectionInfoFromLegacyDS, connectionType: ConnectionTypes ): Promise { diff --git a/src/views/webviewController.ts b/src/views/webviewController.ts index ede66d1d2..5fefed310 100644 --- a/src/views/webviewController.ts +++ b/src/views/webviewController.ts @@ -120,7 +120,7 @@ export default class WebviewController { const connectionInfo = this._connectionController.parseNewConnection(rawConnectionModel); const { successfullyConnected, connectionErrorMessage } = - await this._connectionController.saveNewConnectionFromFormAndConnect( + await this._connectionController.saveNewConnectionAndConnect( connectionInfo, ConnectionTypes.CONNECTION_FORM ); @@ -159,7 +159,7 @@ export default class WebviewController { ) => { try { const { successfullyConnected, connectionErrorMessage } = - await this._connectionController.saveNewConnectionFromFormAndConnect( + await this._connectionController.saveNewConnectionAndConnect( connectionInfo, ConnectionTypes.CONNECTION_FORM );