提交 f695de3a 编写于 作者: J Joao Moreno

strict null checks: issueIpc.ts

fixes #61093
上级 a76cfdb6
...@@ -401,6 +401,7 @@ ...@@ -401,6 +401,7 @@
"./vs/platform/integrity/common/integrity.ts", "./vs/platform/integrity/common/integrity.ts",
"./vs/platform/integrity/node/integrityServiceImpl.ts", "./vs/platform/integrity/node/integrityServiceImpl.ts",
"./vs/platform/issue/common/issue.ts", "./vs/platform/issue/common/issue.ts",
"./vs/platform/issue/node/issueIpc.ts",
"./vs/platform/jsonschemas/common/jsonContributionRegistry.ts", "./vs/platform/jsonschemas/common/jsonContributionRegistry.ts",
"./vs/platform/keybinding/common/abstractKeybindingService.ts", "./vs/platform/keybinding/common/abstractKeybindingService.ts",
"./vs/platform/keybinding/common/keybinding.ts", "./vs/platform/keybinding/common/keybinding.ts",
......
...@@ -19,7 +19,7 @@ export class IssueChannel implements IIssueChannel { ...@@ -19,7 +19,7 @@ export class IssueChannel implements IIssueChannel {
constructor(private service: IIssueService) { } constructor(private service: IIssueService) { }
listen<T>(event: string): Event<T> { listen<T>(event: string): Event<T> {
throw new Error('No event found'); throw new Error(`Event not found: ${event}`);
} }
call(command: string, arg?: any): TPromise<any> { call(command: string, arg?: any): TPromise<any> {
...@@ -29,7 +29,8 @@ export class IssueChannel implements IIssueChannel { ...@@ -29,7 +29,8 @@ export class IssueChannel implements IIssueChannel {
case 'openProcessExplorer': case 'openProcessExplorer':
return this.service.openProcessExplorer(arg); return this.service.openProcessExplorer(arg);
} }
return undefined;
throw new Error(`Call not found: ${command}`);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册