提交 19dea473 编写于 作者: B Benjamin Pasero

🎉 debt - remove builder 🎉

上级 55d89a74
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
.monaco-builder-hidden {
display: none !important;
}
\ No newline at end of file
此差异已折叠。
...@@ -970,7 +970,6 @@ export function prepend<T extends Node>(parent: HTMLElement, child: T): T { ...@@ -970,7 +970,6 @@ export function prepend<T extends Node>(parent: HTMLElement, child: T): T {
const SELECTOR_REGEX = /([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/; const SELECTOR_REGEX = /([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;
// Similar to builder, but much more lightweight
export function $<T extends HTMLElement>(description: string, attrs?: { [key: string]: any; }, ...children: (Node | string)[]): T { export function $<T extends HTMLElement>(description: string, attrs?: { [key: string]: any; }, ...children: (Node | string)[]): T {
let match = SELECTOR_REGEX.exec(description); let match = SELECTOR_REGEX.exec(description);
......
此差异已折叠。
...@@ -71,7 +71,7 @@ export abstract class Composite extends Component implements IComposite { ...@@ -71,7 +71,7 @@ export abstract class Composite extends Component implements IComposite {
* Note: Clients should not call this method, the workbench calls this * Note: Clients should not call this method, the workbench calls this
* method. Calling it otherwise may result in unexpected behavior. * method. Calling it otherwise may result in unexpected behavior.
* *
* Called to create this composite on the provided builder. This method is only * Called to create this composite on the provided parent. This method is only
* called once during the lifetime of the workbench. * called once during the lifetime of the workbench.
* Note that DOM-dependent calculations should be performed from the setVisible() * Note that DOM-dependent calculations should be performed from the setVisible()
* call. Only then the composite will be part of the DOM. * call. Only then the composite will be part of the DOM.
......
...@@ -244,12 +244,14 @@ export class DebugActionsWidget extends Themable implements IWorkbenchContributi ...@@ -244,12 +244,14 @@ export class DebugActionsWidget extends Themable implements IWorkbenchContributi
this.isVisible = true; this.isVisible = true;
dom.show(this.$el); dom.show(this.$el);
dom.removeClass(this.$el, 'debug-toolbar-hidden');
this.setCoordinates(); this.setCoordinates();
} }
private hide(): void { private hide(): void {
this.isVisible = false; this.isVisible = false;
dom.hide(this.$el); dom.hide(this.$el);
dom.addClass(this.$el, 'debug-toolbar-hidden');
} }
public static getActions(allActions: AbstractDebugAction[], toDispose: IDisposable[], debugService: IDebugService, keybindingService: IKeybindingService, instantiationService: IInstantiationService): AbstractDebugAction[] { public static getActions(allActions: AbstractDebugAction[], toDispose: IDisposable[], debugService: IDebugService, keybindingService: IKeybindingService, instantiationService: IInstantiationService): AbstractDebugAction[] {
......
...@@ -23,7 +23,7 @@ const BREAKPOINT_GLYPH = '.debug-breakpoint'; ...@@ -23,7 +23,7 @@ const BREAKPOINT_GLYPH = '.debug-breakpoint';
const PAUSE = `.debug-actions-widget .debug-action.pause`; const PAUSE = `.debug-actions-widget .debug-action.pause`;
const DEBUG_STATUS_BAR = `.statusbar.debugging`; const DEBUG_STATUS_BAR = `.statusbar.debugging`;
const NOT_DEBUG_STATUS_BAR = `.statusbar:not(debugging)`; const NOT_DEBUG_STATUS_BAR = `.statusbar:not(debugging)`;
const TOOLBAR_HIDDEN = `.debug-actions-widget.monaco-builder-hidden`; const TOOLBAR_HIDDEN = `.debug-actions-widget.debug-toolbar-hidden`;
const STACK_FRAME = `${VIEWLET} .monaco-tree-row .stack-frame`; const STACK_FRAME = `${VIEWLET} .monaco-tree-row .stack-frame`;
const SPECIFIC_STACK_FRAME = filename => `${STACK_FRAME} .file[title*="${filename}"]`; const SPECIFIC_STACK_FRAME = filename => `${STACK_FRAME} .file[title*="${filename}"]`;
const VARIABLE = `${VIEWLET} .debug-variables .monaco-tree-row .expression`; const VARIABLE = `${VIEWLET} .debug-variables .monaco-tree-row .expression`;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册