提交 963b5e42 编写于 作者: S SteVen Batten

icons and fixes for built-in panel moves

上级 600528da
......@@ -165,12 +165,7 @@ export class SidebarPart extends CompositePart<Viewlet> implements IViewletServi
const draggedItemProvider = (): { type: 'view' | 'composite', id: string } => {
const activeViewlet = this.getActiveViewlet()!;
const visibleViews = activeViewlet.getViewPaneContainer().views.filter(v => v.isVisible());
if (visibleViews.length === 1) {
return { type: 'view', id: visibleViews[0].id };
} else {
return { type: 'composite', id: activeViewlet.getId() };
}
return { type: 'composite', id: activeViewlet.getId() };
};
this._register(CompositeDragAndDropObserver.INSTANCE.registerDraggable(this.titleLabelElement!, draggedItemProvider, {}));
......
......@@ -91,6 +91,7 @@ const openPanelKb: IKeybindings = {
const VIEW_CONTAINER: ViewContainer = Registry.as<IViewContainersRegistry>(ViewExtensions.ViewContainersRegistry).registerViewContainer({
id: DEBUG_PANEL_ID,
name: nls.localize({ comment: ['Debug is a noun in this context, not a verb.'], key: 'debugPanel' }, 'Debug Console'),
icon: 'codicon-debug-console',
ctorDescriptor: new SyncDescriptor(ViewPaneContainer, [DEBUG_PANEL_ID, { mergeViewWithContainerWhenSingleView: true, donotShowContainerTitleWhenMergedWithContainer: true }]),
storageId: DEBUG_PANEL_ID,
focusCommand: {
......
......@@ -113,6 +113,7 @@ class ToggleMarkersPanelAction extends ToggleViewAction {
const VIEW_CONTAINER: ViewContainer = Registry.as<IViewContainersRegistry>(ViewContainerExtensions.ViewContainersRegistry).registerViewContainer({
id: Constants.MARKERS_CONTAINER_ID,
name: Messages.MARKERS_PANEL_TITLE_PROBLEMS,
icon: Codicon.warning.classNames,
hideIfEmpty: true,
order: 0,
ctorDescriptor: new SyncDescriptor(ViewPaneContainer, [Constants.MARKERS_CONTAINER_ID, { mergeViewWithContainerWhenSingleView: true, donotShowContainerTitleWhenMergedWithContainer: true }]),
......
......@@ -62,6 +62,7 @@ const toggleOutputActionKeybindings = {
const VIEW_CONTAINER: ViewContainer = Registry.as<IViewContainersRegistry>(ViewContainerExtensions.ViewContainersRegistry).registerViewContainer({
id: OUTPUT_VIEW_ID,
name: nls.localize('output', "Output"),
icon: Codicon.output.classNames,
order: 1,
ctorDescriptor: new SyncDescriptor(ViewPaneContainer, [OUTPUT_VIEW_ID, { mergeViewWithContainerWhenSingleView: true, donotShowContainerTitleWhenMergedWithContainer: true }]),
storageId: OUTPUT_VIEW_ID,
......
......@@ -68,6 +68,7 @@ if (platform.isWeb) {
const VIEW_CONTAINER = Registry.as<IViewContainersRegistry>(ViewContainerExtensions.ViewContainersRegistry).registerViewContainer({
id: TERMINAL_VIEW_ID,
name: nls.localize('terminal', "Terminal"),
icon: 'codicon-terminal',
ctorDescriptor: new SyncDescriptor(ViewPaneContainer, [TERMINAL_VIEW_ID, { mergeViewWithContainerWhenSingleView: true, donotShowContainerTitleWhenMergedWithContainer: true }]),
storageId: TERMINAL_VIEW_ID,
focusCommand: { id: TERMINAL_COMMAND_ID.FOCUS },
......
......@@ -312,6 +312,9 @@ export class ViewDescriptorService extends Disposable implements IViewDescriptor
this._onDidChangeContainerLocation.fire({ viewContainer, from, to });
const views = this.getViewsByContainer(viewContainer);
this._onDidChangeLocation.fire({ views, from, to });
this.saveViewContainerLocationsToCache();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册