Rename remoteAuthority to remoteName for views contribution point

This commit is contained in:
Rob Lourens
2019-09-26 11:17:19 -07:00
parent effbd9b1a8
commit af76be4405
3 changed files with 17 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ interface IUserFriendlyViewDescriptor {
// From 'remoteViewDescriptor' type
group?: string;
remoteAuthority?: string;
remoteName?: string | string[];
}
const viewDescriptor: IJSONSchema = {
@@ -123,9 +123,12 @@ const remoteViewDescriptor: IJSONSchema = {
description: localize('vscode.extension.contributes.view.group', 'Nested group in the viewlet'),
type: 'string'
},
remoteAuthority: {
description: localize('vscode.extension.contributes.view.remoteAuthority', 'The remote authority associated with this view'),
type: 'string'
remoteName: {
description: localize('vscode.extension.contributes.view.remoteName', 'The name of the remote type associated with this view'),
type: ['string', 'array'],
items: {
type: 'string'
}
}
}
};
@@ -435,7 +438,7 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
extensionId: extension.description.identifier,
originalContainerId: entry.key,
group: item.group,
remoteAuthority: item.remoteAuthority
remoteAuthority: item.remoteName || (<any>item).remoteAuthority // TODO@roblou - delete after remote extensions are updated
};
viewIds.push(viewDescriptor.id);