mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 17:22:51 -05:00
SQL Kernel Improvements/Removing Spark Code from Core/Attach to Changes (#3790)
* Scenarios work besides loading saved kernel * Fix compilation issue * Save and load functional * Fix loading kernesl issue when sql kernel is not enabled * Fix language mapping to not be hardcoded any longer * Remove unnecessary comment * PR Comments vol. 1 * Code cleanup, use ConnectionProfile instead of IConnectionProfile when accessing serverName * PR changes vol. 2 * One final comment for PR * Fix linting issue
This commit is contained in:
16
src/sql/sqlops.proposed.d.ts
vendored
16
src/sql/sqlops.proposed.d.ts
vendored
@@ -1594,6 +1594,11 @@ declare module 'sqlops' {
|
||||
* Optional ID indicating the initial connection to use for this editor
|
||||
*/
|
||||
connectionId?: string;
|
||||
|
||||
/**
|
||||
* Default kernel for notebook
|
||||
*/
|
||||
defaultKernel?: nb.IKernelSpec;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1666,9 +1671,14 @@ declare module 'sqlops' {
|
||||
*/
|
||||
export function registerNotebookProvider(provider: NotebookProvider): vscode.Disposable;
|
||||
|
||||
export interface IStandardKernel {
|
||||
readonly name: string;
|
||||
readonly connectionProviderIds: string[];
|
||||
}
|
||||
|
||||
export interface NotebookProvider {
|
||||
readonly providerId: string;
|
||||
readonly standardKernels: string[];
|
||||
readonly standardKernels: IStandardKernel[];
|
||||
getNotebookManager(notebookUri: vscode.Uri): Thenable<NotebookManager>;
|
||||
handleNotebookClosed(notebookUri: vscode.Uri): void;
|
||||
}
|
||||
@@ -1945,6 +1955,10 @@ declare module 'sqlops' {
|
||||
defaultKernelLoaded?: boolean;
|
||||
|
||||
changeKernel(kernelInfo: IKernelSpec): Thenable<IKernel>;
|
||||
|
||||
configureKernel(kernelInfo: IKernelSpec): Thenable<void>;
|
||||
|
||||
configureConnection(connection: IConnectionProfile): Thenable<void>;
|
||||
}
|
||||
|
||||
export interface ISessionOptions {
|
||||
|
||||
Reference in New Issue
Block a user