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:
Shafiq Ur Rahman
2020-08-19 12:27:16 -07:00
committed by GitHub
parent 43f08e7efb
commit 97b6d71a06
10 changed files with 75 additions and 43 deletions

View File

@@ -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.