Support initially collapsing remote explorer panes not related to the current remote type

Fix microsoft/vscode-remote-release#1426
This commit is contained in:
Rob Lourens
2019-09-23 14:43:04 -07:00
parent ea6a8ccf4c
commit 0719e0ae42
4 changed files with 44 additions and 9 deletions

View File

@@ -80,7 +80,10 @@ interface IUserFriendlyViewDescriptor {
id: string;
name: string;
when?: string;
// From 'remoteViewDescriptor' type
group?: string;
remoteAuthority?: string;
}
const viewDescriptor: IJSONSchema = {
@@ -101,7 +104,7 @@ const viewDescriptor: IJSONSchema = {
}
};
const nestableViewDescriptor: IJSONSchema = {
const remoteViewDescriptor: IJSONSchema = {
type: 'object',
properties: {
id: {
@@ -119,6 +122,10 @@ const nestableViewDescriptor: IJSONSchema = {
group: {
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'
}
}
};
@@ -153,7 +160,7 @@ const viewsContribution: IJSONSchema = {
'remote': {
description: localize('views.remote', "Contributes views to Remote container in the Activity bar. To contribute to this container, enableProposedApi needs to be turned on"),
type: 'array',
items: nestableViewDescriptor,
items: remoteViewDescriptor,
default: []
}
},
@@ -427,7 +434,8 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
order: order,
extensionId: extension.description.identifier,
originalContainerId: entry.key,
group: item.group
group: item.group,
remoteAuthority: item.remoteAuthority
};
viewIds.push(viewDescriptor.id);