mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 17:23:45 -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:
@@ -28,7 +28,14 @@ export class NotebookInputModel extends EditorModel {
|
||||
private _providerId: string;
|
||||
private _standardKernels: IStandardKernelWithProvider[];
|
||||
private _defaultKernel: sqlops.nb.IKernelSpec;
|
||||
constructor(public readonly notebookUri: URI, private readonly handle: number, private _isTrusted: boolean = false, private saveHandler?: ModeViewSaveHandler, provider?: string, private _providers?: string[]) {
|
||||
constructor(public readonly notebookUri: URI,
|
||||
private readonly handle: number,
|
||||
private _isTrusted: boolean = false,
|
||||
private saveHandler?: ModeViewSaveHandler,
|
||||
provider?: string,
|
||||
private _providers?: string[],
|
||||
private _connectionProfileId?: string) {
|
||||
|
||||
super();
|
||||
this.dirty = false;
|
||||
this._providerId = provider;
|
||||
@@ -51,6 +58,10 @@ export class NotebookInputModel extends EditorModel {
|
||||
this._providers = value;
|
||||
}
|
||||
|
||||
public get connectionProfileId(): string {
|
||||
return this._connectionProfileId;
|
||||
}
|
||||
|
||||
public get standardKernels(): IStandardKernelWithProvider[] {
|
||||
return this._standardKernels;
|
||||
}
|
||||
@@ -131,6 +142,10 @@ export class NotebookInput extends EditorInput {
|
||||
return this._model.providers;
|
||||
}
|
||||
|
||||
public get connectionProfileId(): string {
|
||||
return this._model.connectionProfileId;
|
||||
}
|
||||
|
||||
public get standardKernels(): IStandardKernelWithProvider[] {
|
||||
return this._model.standardKernels;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user