Fixing strict null errors in extHostApiImpl

This commit is contained in:
Matt Bierner
2019-03-11 17:01:16 -07:00
parent 02468f9129
commit cb4b80be87
5 changed files with 15 additions and 12 deletions

View File

@@ -647,7 +647,7 @@ export function createApiFactory(
// namespace: scm
const scm: typeof vscode.scm = {
get inputBox() {
return extHostSCM.getLastInputBox(extension);
return extHostSCM.getLastInputBox(extension)!; // Strict null override - Deprecated api
},
createSourceControl(id: string, label: string, rootUri?: vscode.Uri) {
return extHostSCM.createSourceControl(extension, id, label, rootUri);
@@ -859,7 +859,7 @@ class Extension<T> implements vscode.Extension<T> {
get exports(): T {
if (this.packageJSON.api === 'none') {
return undefined;
return undefined!; // Strict nulloverride - Public api
}
return <T>this._extensionService.getExtensionExports(this._identifier);
}