mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 09:35:37 -05:00
remove some vscode differences (#12146)
This commit is contained in:
@@ -191,7 +191,7 @@ export class NotebookService extends Disposable implements INotebookService {
|
||||
this._providers.set(p.id, new ProviderDescriptor());
|
||||
}
|
||||
if (registration.fileExtensions) {
|
||||
if (Array.isArray<string>(registration.fileExtensions)) {
|
||||
if (Array.isArray(registration.fileExtensions)) {
|
||||
for (let fileType of registration.fileExtensions) {
|
||||
this.addFileProvider(fileType, registration);
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ ExtensionsRegistry.registerExtensionPoint<NotebookProviderRegistration | Noteboo
|
||||
|
||||
for (let extension of extensions) {
|
||||
const { value } = extension;
|
||||
if (Array.isArray<NotebookProviderRegistration>(value)) {
|
||||
if (Array.isArray(value)) {
|
||||
for (let command of value) {
|
||||
handleExtension(command, extension);
|
||||
}
|
||||
@@ -215,7 +215,7 @@ ExtensionsRegistry.registerExtensionPoint<NotebookLanguageMagicRegistration | No
|
||||
|
||||
for (let extension of extensions) {
|
||||
const { value } = extension;
|
||||
if (Array.isArray<NotebookLanguageMagicRegistration>(value)) {
|
||||
if (Array.isArray(value)) {
|
||||
for (let command of value) {
|
||||
handleExtension(command, extension);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user