提交 5b263e87 编写于 作者: I isidor

repl: hide repl on esc

上级 e3d5633d
......@@ -20,6 +20,7 @@ import replhistory = require('vs/workbench/parts/debug/common/replHistory');
import { Panel } from 'vs/workbench/browser/panel';
import { ClosePanelAction } from 'vs/workbench/browser/parts/panel/panelPart';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { IPartService } from 'vs/workbench/services/part/common/partService';
import { IContextViewService, IContextMenuService } from 'vs/platform/contextview/browser/contextView';
import { IInstantiationService, INullService } from 'vs/platform/instantiation/common/instantiation';
import { IWorkspaceContextService } from 'vs/workbench/services/workspace/common/contextService';
......@@ -59,7 +60,8 @@ export class Repl extends Panel {
@ITelemetryService telemetryService: ITelemetryService,
@IInstantiationService private instantiationService: IInstantiationService,
@IContextViewService private contextViewService: IContextViewService,
@IStorageService private storageService: IStorageService
@IStorageService private storageService: IStorageService,
@IPartService private partService: IPartService
) {
super(debug.REPL_ID, telemetryService);
......@@ -116,6 +118,8 @@ export class Repl extends Panel {
// always leave cursor at the end.
e.preventDefault();
}
} else if (e.equals(CommonKeybindings.ESCAPE)) {
this.partService.setPanelHidden(true);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册