提交 eed01cdc 编写于 作者: B Benjamin Pasero

storage - remove unused

上级 a63b9e17
......@@ -45,8 +45,6 @@ function createCheckbox(): HTMLInputElement {
export class BreakpointsView extends ViewletPanel {
private static readonly MAX_VISIBLE_FILES = 9;
private static readonly MEMENTO = 'breakopintsview.memento';
private viewState: object;
private list: WorkbenchList<IEnablement>;
private needsRefresh: boolean;
......@@ -64,7 +62,6 @@ export class BreakpointsView extends ViewletPanel {
super({ ...(options as IViewletPanelOptions), ariaHeaderLabel: nls.localize('breakpointsSection', "Breakpoints Section") }, keybindingService, contextMenuService, configurationService);
this.minimumBodySize = this.maximumBodySize = this.getExpandedBodySize();
this.viewState = options.viewletState;
this.disposables.push(this.debugService.getModel().onDidChangeBreakpoints(() => this.onBreakpointsChange()));
}
......@@ -230,12 +227,6 @@ export class BreakpointsView extends ViewletPanel {
const length = model.getBreakpoints().length + model.getExceptionBreakpoints().length + model.getFunctionBreakpoints().length;
return Math.min(BreakpointsView.MAX_VISIBLE_FILES, length) * 22;
}
public saveState(): void {
this.viewState[BreakpointsView.MEMENTO] = !this.isExpanded();
super.saveState();
}
}
class BreakpointsDelegate implements IListVirtualDelegate<IEnablement> {
......
......@@ -351,11 +351,8 @@ class SessionTreeItem extends BaseTreeItem {
export class LoadedScriptsView extends TreeViewsViewletPanel {
private static readonly MEMENTO = 'loadedscriptsview.memento';
private treeContainer: HTMLElement;
private loadedScriptsItemType: IContextKey<string>;
private viewState: object;
constructor(
options: IViewletViewOptions,
......@@ -370,7 +367,6 @@ export class LoadedScriptsView extends TreeViewsViewletPanel {
@IDebugService private debugService: IDebugService
) {
super({ ...(options as IViewletPanelOptions), ariaHeaderLabel: nls.localize('loadedScriptsSection', "Loaded Scripts Section") }, keybindingService, contextMenuService, configurationService);
this.viewState = options.viewletState;
this.loadedScriptsItemType = CONTEXT_LOADED_SCRIPTS_ITEM_TYPE.bindTo(contextKeyService);
}
......@@ -464,12 +460,6 @@ export class LoadedScriptsView extends TreeViewsViewletPanel {
super.layoutBody(size);
}
public saveState(): void {
this.viewState[LoadedScriptsView.MEMENTO] = !this.isExpanded();
super.saveState();
}
dispose(): void {
this.tree = undefined;
super.dispose();
......
......@@ -32,11 +32,9 @@ const $ = dom.$;
export class CallStackView extends TreeViewsViewletPanel {
private static readonly MEMENTO = 'callstackview.memento';
private pauseMessage: HTMLSpanElement;
private pauseMessageLabel: HTMLSpanElement;
private onCallStackChangeScheduler: RunOnceScheduler;
private viewState: object;
private needsRefresh: boolean;
private ignoreSelectionChangedEvent: boolean;
private treeContainer: HTMLElement;
......@@ -53,7 +51,6 @@ export class CallStackView extends TreeViewsViewletPanel {
@IContextKeyService contextKeyService: IContextKeyService
) {
super({ ...(options as IViewletPanelOptions), ariaHeaderLabel: nls.localize('callstackSection', "Call Stack Section") }, keybindingService, contextMenuService, configurationService);
this.viewState = options.viewletState;
this.callStackItemType = CONTEXT_CALLSTACK_ITEM_TYPE.bindTo(contextKeyService);
// Create scheduler to prevent unnecessary flashing of tree when reacting to changes
......@@ -227,12 +224,6 @@ export class CallStackView extends TreeViewsViewletPanel {
}
});
}
public saveState(): void {
this.viewState[CallStackView.MEMENTO] = !this.isExpanded();
super.saveState();
}
}
class CallStackController extends BaseDebugController {
......
......@@ -34,9 +34,7 @@ const $ = dom.$;
export class VariablesView extends TreeViewsViewletPanel {
private static readonly MEMENTO = 'variablesview.memento';
private onFocusStackFrameScheduler: RunOnceScheduler;
private viewState: object;
private expandedElements: any[];
private needsRefresh: boolean;
private treeContainer: HTMLElement;
......@@ -51,7 +49,6 @@ export class VariablesView extends TreeViewsViewletPanel {
) {
super({ ...(options as IViewletPanelOptions), ariaHeaderLabel: nls.localize('variablesSection', "Variables Section") }, keybindingService, contextMenuService, configurationService);
this.viewState = options.viewletState;
this.expandedElements = [];
// Use scheduler to prevent unnecessary flashing
this.onFocusStackFrameScheduler = new RunOnceScheduler(() => {
......@@ -149,12 +146,6 @@ export class VariablesView extends TreeViewsViewletPanel {
}
});
}
public saveState(): void {
this.viewState[VariablesView.MEMENTO] = !this.isExpanded();
super.saveState();
}
}
class VariablesActionProvider implements IActionProvider {
......
......@@ -35,10 +35,8 @@ const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
export class WatchExpressionsView extends TreeViewsViewletPanel {
private static readonly MEMENTO = 'watchexpressionsview.memento';
private onWatchExpressionsUpdatedScheduler: RunOnceScheduler;
private treeContainer: HTMLElement;
private viewState: object;
private needsRefresh: boolean;
constructor(
......@@ -50,7 +48,6 @@ export class WatchExpressionsView extends TreeViewsViewletPanel {
@IConfigurationService configurationService: IConfigurationService
) {
super({ ...(options as IViewletPanelOptions), ariaHeaderLabel: nls.localize('watchExpressionsSection', "Watch Expressions Section") }, keybindingService, contextMenuService, configurationService);
this.viewState = options.viewletState;
this.onWatchExpressionsUpdatedScheduler = new RunOnceScheduler(() => {
this.needsRefresh = false;
......@@ -132,12 +129,6 @@ export class WatchExpressionsView extends TreeViewsViewletPanel {
}
});
}
public saveState(): void {
this.viewState[WatchExpressionsView.MEMENTO] = !this.isExpanded();
super.saveState();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册