enable proposed api only when developing extensions

This commit is contained in:
Johannes Rieken
2016-11-10 15:57:43 +01:00
parent 0a5a7b98d6
commit 4a6b92723d
5 changed files with 19 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ export class ExtensionHostMain {
errors.setUnexpectedErrorHandler(err => mainThreadErrors.onUnexpectedExtHostError(errors.transformErrorForSerialization(err)));
// Create the ext host API
const factory = createApiFactory(initData.configuration, initData.telemetryInfo, threadService, this._extensionService, this._contextService);
const factory = createApiFactory(initData, threadService, this._extensionService, this._contextService);
defineAPI(factory, this._extensionService);
}
@@ -237,4 +237,4 @@ export class ExtensionHostMain {
// messages to the main process, we delay the exit() by some time
setTimeout(() => exit(code), 500);
}
}
}