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

less history work

上级 6cbd4855
......@@ -112,7 +112,6 @@ export interface IWorkbenchEditorService extends IEditorService {
*/
closeAllEditors(except?: Position): TPromise<void>;
/**
* Resolves an input to its model representation. The optional parameter refresh allows to specify
* if a cached model should be returned (false) or a new version (true). The default is returning a
......
......@@ -300,16 +300,12 @@ export class HistoryService extends BaseHistoryService implements IHistoryServic
}
protected handleEditorSelectionChangeEvent(editor?: IBaseEditor): void {
this.handleEditorEvent(editor, true);
this.handleEditorEventInStack(editor, true);
}
protected handleActiveEditorChange(editor?: IBaseEditor): void {
this.handleEditorEvent(editor, false);
}
private handleEditorEvent(editor: IBaseEditor, storeSelection: boolean): void {
this.handleEditorEventInHistory(editor);
this.handleEditorEventInStack(editor, storeSelection);
this.handleEditorEventInStack(editor, false);
}
private handleEditorEventInHistory(editor?: IBaseEditor): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册