提交 7f503e89 编写于 作者: J Joao Moreno

rename event

上级 552957ee
......@@ -87,7 +87,7 @@ export interface IWindowService {
_serviceBrand: any;
onDidFocusChange: Event<boolean>;
onDidChangeFocus: Event<boolean>;
getCurrentWindowId(): number;
pickFileFolderAndOpen(options: INativeOpenDialogOptions): TPromise<void>;
......
......@@ -13,7 +13,7 @@ import { IRecentlyOpened } from "vs/platform/history/common/history";
export class WindowService implements IWindowService {
readonly onDidFocusChange: Event<boolean>;
readonly onDidChangeFocus: Event<boolean>;
_serviceBrand: any;
......@@ -23,7 +23,7 @@ export class WindowService implements IWindowService {
) {
const onThisWindowFocus = mapEvent(filterEvent(windowsService.onWindowFocus, id => id === windowId), _ => true);
const onThisWindowBlur = mapEvent(filterEvent(windowsService.onWindowBlur, id => id === windowId), _ => false);
this.onDidFocusChange = any(onThisWindowFocus, onThisWindowBlur);
this.onDidChangeFocus = any(onThisWindowFocus, onThisWindowBlur);
}
getCurrentWindowId(): number {
......
......@@ -840,7 +840,7 @@ export class TestWindowService implements IWindowService {
public _serviceBrand: any;
onDidFocusChange: Event<boolean>;
onDidChangeFocus: Event<boolean>;
isFocused(): TPromise<boolean> {
return TPromise.as(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册