mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fixes/cleanup for datavirtualization (#21608)
* Fixes/cleanup for datavirtualization * Update owners
This commit is contained in:
@@ -47,7 +47,7 @@ export class ServiceClient {
|
||||
const processStart = Date.now();
|
||||
client.onReady().then(() => {
|
||||
const processEnd = Date.now();
|
||||
this.statusView.text = localize('serviceStarted', 'Service Started');
|
||||
this.statusView.text = localize('serviceStarted', '{0} started', Constants.serviceName);
|
||||
setTimeout(() => {
|
||||
this.statusView.hide();
|
||||
}, 1500);
|
||||
@@ -59,13 +59,13 @@ export class ServiceClient {
|
||||
});
|
||||
});
|
||||
this.statusView.show();
|
||||
this.statusView.text = localize('serviceStarting', 'Starting service');
|
||||
this.statusView.text = localize('serviceStarting', 'Starting {0}...', Constants.serviceName);
|
||||
let disposable = client.start();
|
||||
context.subscriptions.push(disposable);
|
||||
resolve();
|
||||
}, e => {
|
||||
Telemetry.sendTelemetryEvent('ServiceInitializingFailed');
|
||||
this.apiWrapper.showErrorMessage(localize('serviceStartFailed', 'Failed to start Scale Out Data service:{0}', e));
|
||||
this.apiWrapper.showErrorMessage(localize('serviceStartFailed', 'Failed to start {0}: {1}', Constants.serviceName, e));
|
||||
// Just resolve to avoid unhandled promise. We show the error to the user.
|
||||
resolve();
|
||||
});
|
||||
|
||||
@@ -96,24 +96,7 @@ export class OpenMssqlHdfsTableFromFileWizardCommand extends Command {
|
||||
}
|
||||
|
||||
function convertIConnectionProfile(profile: azdata.IConnectionProfile): azdata.connection.ConnectionProfile {
|
||||
let connection: azdata.connection.ConnectionProfile;
|
||||
if (profile) {
|
||||
connection = {
|
||||
providerId: profile.providerName,
|
||||
connectionId: profile.id,
|
||||
connectionName: profile.connectionName,
|
||||
serverName: profile.serverName,
|
||||
databaseName: profile.databaseName,
|
||||
userName: profile.userName,
|
||||
password: profile.password,
|
||||
authenticationType: profile.authenticationType,
|
||||
savePassword: profile.savePassword,
|
||||
groupFullName: profile.groupFullName,
|
||||
groupId: profile.groupId,
|
||||
saveProfile: profile.saveProfile,
|
||||
azureTenantId: profile.azureTenantId,
|
||||
options: {}
|
||||
};
|
||||
}
|
||||
const connection = azdata.connection.ConnectionProfile.createFrom(profile.options);
|
||||
connection.providerId = profile.providerName;
|
||||
return connection;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user