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

rename event

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