mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 01:25:36 -05:00
Kusto - ADS Core changes (#11750)
* ADS Core changes * Generic fix to get language mode based on providerId * Addressed comments * Fix failing tests * Fix for "New Notebook" from file menu option * Remove line * Fix for merge conflict * Add removed comment back * Addressed comments Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
@@ -1431,6 +1431,13 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
return connectionProvider && connectionProvider.properties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets languageMode property of provider if it exists. Defaults to 'sql'
|
||||
*/
|
||||
public getProviderLanguageMode(providerName?: string): string {
|
||||
return this._providers.get(providerName)?.properties?.['languageMode'] || 'sql';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get known connection profiles including active connections, recent connections and saved connections.
|
||||
* @param activeConnectionsOnly Indicates whether only get the active connections, default value is false.
|
||||
|
||||
Reference in New Issue
Block a user