mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Support initially collapsing remote explorer panes not related to the current remote type
Fix microsoft/vscode-remote-release#1426
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user