mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 17:22:59 -05:00
Kusto Kernel New Notebook Changes (#12085)
* Kusto New Notebook Action Changes * Kusto Cluster properly switches context when kernel changes * SQL Connections kernel change to Kusto works properly * Multiple New Kusto Notebooks open properly and change kernels properly * Fix SQL Notebook - Change to Kusto Kernel * Fix unit tests * Address comments * Add test, and finalize changes
This commit is contained in:
@@ -16,6 +16,7 @@ import { IDisposable } from 'vs/base/common/lifecycle';
|
||||
export class TestCapabilitiesService implements ICapabilitiesService {
|
||||
|
||||
private pgsqlProviderName = 'PGSQL';
|
||||
private kustoProviderName = 'KUSTO';
|
||||
public _serviceBrand: undefined;
|
||||
|
||||
public capabilities: { [id: string]: ProviderFeatures } = {};
|
||||
@@ -103,11 +104,18 @@ export class TestCapabilitiesService implements ICapabilitiesService {
|
||||
};
|
||||
let pgSQLCapabilities = {
|
||||
providerId: this.pgsqlProviderName,
|
||||
displayName: this.pgsqlProviderName,
|
||||
displayName: 'PostgreSQL',
|
||||
connectionOptions: connectionProvider,
|
||||
};
|
||||
let kustoCapabilities = {
|
||||
providerId: this.kustoProviderName,
|
||||
displayName: 'Kusto',
|
||||
connectionOptions: connectionProvider,
|
||||
notebookKernelAlias: 'Kusto'
|
||||
};
|
||||
this.capabilities[mssqlProviderName] = { connection: msSQLCapabilities };
|
||||
this.capabilities[this.pgsqlProviderName] = { connection: pgSQLCapabilities };
|
||||
this.capabilities[this.kustoProviderName] = { connection: kustoCapabilities };
|
||||
}
|
||||
|
||||
registerConnectionProvider(id: string, properties: ConnectionProviderProperties): IDisposable {
|
||||
|
||||
Reference in New Issue
Block a user