Make various enhancements to Notebook Provider registration. (#17609)

* Use built-in SQL ExecuteProvider by default if no other provider exists.

* Gracefully handle case where standardKernels are not defined for a provider.

* Standardize on just using arrays for various provider registration details.
This commit is contained in:
Cory Rivera
2021-11-09 16:00:34 -08:00
committed by GitHub
parent 8057bf855b
commit 329ea4103c
8 changed files with 83 additions and 126 deletions

View File

@@ -72,9 +72,9 @@ export interface INotebookService {
getSupportedFileExtensions(): string[];
getProvidersForFileType(fileType: string): string[];
getProvidersForFileType(fileType: string): string[] | undefined;
getStandardKernelsForProvider(provider: string): azdata.nb.IStandardKernel[];
getStandardKernelsForProvider(provider: string): azdata.nb.IStandardKernel[] | undefined;
getOrCreateSerializationManager(providerId: string, uri: URI): Promise<ISerializationManager>;