ML extension - Improving predict parameter mapping experience (#10264)

This commit is contained in:
Leila Lali
2020-05-10 18:10:17 -07:00
committed by GitHub
parent f6e7b56946
commit 3d2d791f18
44 changed files with 782 additions and 388 deletions

View File

@@ -21,7 +21,12 @@ export class ModelConfigRecent {
}
public storeModelTable(connection: azdata.connection.ConnectionProfile, table: DatabaseTable): void {
this._memento.update(this.getKey(connection), table);
if (connection && table?.databaseName && table?.tableName && table?.schema) {
const current = this.getModelTable(connection);
if (!current || current.databaseName !== table.databaseName || current.tableName !== table.tableName || current.schema !== table.schema) {
this._memento.update(this.getKey(connection), table);
}
}
}
private getKey(connection: azdata.connection.ConnectionProfile): string {