提交 2683f65e 编写于 作者: M Matt Bierner

Strict null check driver

上级 e3965e5a
......@@ -418,6 +418,7 @@
"./vs/platform/dialogs/node/dialogService.ts",
"./vs/platform/download/common/download.ts",
"./vs/platform/download/node/downloadService.ts",
"./vs/platform/driver/electron-main/driver.ts",
"./vs/platform/driver/node/driver.ts",
"./vs/platform/editor/common/editor.ts",
"./vs/platform/environment/common/environment.ts",
......
......@@ -59,7 +59,7 @@ export class Driver implements IDriver, IWindowDriverRegistry {
reloadWindowDriver(windowId: number): TPromise<void> {
this.reloadingWindowIds.add(windowId);
return TPromise.as(null);
return TPromise.as(void 0);
}
getWindowIds(): TPromise<number[]> {
......@@ -87,12 +87,14 @@ export class Driver implements IDriver, IWindowDriverRegistry {
dispatchKeybinding(windowId: number, keybinding: string): TPromise<void> {
return this.whenUnfrozen(windowId).then(() => {
const [first, second] = KeybindingParser.parseUserBinding(keybinding);
if (!first) {
return undefined;
}
return this._dispatchKeybinding(windowId, first).then(() => {
if (second) {
return this._dispatchKeybinding(windowId, second);
} else {
return TPromise.as(null);
return TPromise.as(void 0);
}
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册