mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 11:01:37 -05:00
Ensure we always get all providers (#3724)
This commit is contained in:
@@ -321,8 +321,6 @@ export class MainThreadNotebookDocumentsAndEditors extends Disposable implements
|
|||||||
let model = new NotebookInputModel(uri, undefined, trusted, undefined);
|
let model = new NotebookInputModel(uri, undefined, trusted, undefined);
|
||||||
let providerId = options.providerId;
|
let providerId = options.providerId;
|
||||||
let providers: string[] = undefined;
|
let providers: string[] = undefined;
|
||||||
if (!providerId)
|
|
||||||
{
|
|
||||||
// Ensure there is always a sensible provider ID for this file type
|
// Ensure there is always a sensible provider ID for this file type
|
||||||
providers = getProvidersForFileName(uri.fsPath, this._notebookService);
|
providers = getProvidersForFileName(uri.fsPath, this._notebookService);
|
||||||
// Try to use a non-builtin provider first
|
// Try to use a non-builtin provider first
|
||||||
@@ -332,7 +330,6 @@ export class MainThreadNotebookDocumentsAndEditors extends Disposable implements
|
|||||||
providerId = model.providerId;
|
providerId = model.providerId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
model.providers = providers;
|
model.providers = providers;
|
||||||
model.providerId = providerId;
|
model.providerId = providerId;
|
||||||
let input = this._instantiationService.createInstance(NotebookInput, undefined, model);
|
let input = this._instantiationService.createInstance(NotebookInput, undefined, model);
|
||||||
|
|||||||
Reference in New Issue
Block a user