mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
* Fixed #3954 The problem is: connectionProfileId is not passed into New Notebook flow. The fix is: plumbing connectionProfileId via NotebookInput. * Resolved PR comments
This commit is contained in:
@@ -272,6 +272,11 @@ export interface IConnectionManagementService {
|
||||
* Serialize connection string with optional provider
|
||||
*/
|
||||
buildConnectionInfo(connectionString: string, provider?: string): Thenable<sqlops.ConnectionInfo>;
|
||||
|
||||
/**
|
||||
* Get connection profile by id
|
||||
*/
|
||||
getConnectionProfileById(profileId: string): IConnectionProfile;
|
||||
}
|
||||
|
||||
export const IConnectionDialogService = createDecorator<IConnectionDialogService>('connectionDialogService');
|
||||
|
||||
@@ -1378,6 +1378,14 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
return serverInfo;
|
||||
}
|
||||
|
||||
public getConnectionProfileById(profileId: string): IConnectionProfile {
|
||||
let profile = this._connectionStatusManager.findConnectionByProfileId(profileId);
|
||||
if (!profile) {
|
||||
return undefined;
|
||||
}
|
||||
return profile.connectionProfile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the connection string for the provided connection ID
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user