提交 a70d2b63 编写于 作者: J Johannes Rieken

enable proposed API only in insiders

上级 10eaaa05
......@@ -96,7 +96,7 @@ export function createApiFactory(initData: IInitData, threadService: IThreadServ
if (extension.enableProposedApi) {
if (initData.environment.isBuilt && !initData.environment.extensionDevelopmentPath) {
if (!initData.environment.enableProposedApi) {
extension.enableProposedApi = false;
console.warn('PROPOSED API is only available when developing an extension');
......
......@@ -39,7 +39,7 @@ import { IApplyEditsOptions, TextEditorRevealType, ITextEditorConfigurationUpdat
import { InternalTreeExplorerNodeContent } from 'vs/workbench/parts/explorers/common/treeExplorerViewModel';
export interface IEnvironment {
isBuilt: boolean;
enableProposedApi: boolean;
appSettingsHome: string;
disableExtensions: boolean;
userExtensionsHome: string;
......
......@@ -21,6 +21,7 @@ import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { IWindowIPCService } from 'vs/workbench/services/window/electron-browser/windowService';
import { ChildProcess, fork } from 'child_process';
import { ipcRenderer as ipc } from 'electron';
import product from 'vs/platform/product';
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
import { ReloadWindowAction } from 'vs/workbench/electron-browser/actions';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
......@@ -249,12 +250,13 @@ export class ExtensionHostProcessWorker {
let initData: IInitData = {
parentPid: process.pid,
environment: {
isBuilt: this.environmentService.isBuilt,
appSettingsHome: this.environmentService.appSettingsHome,
disableExtensions: this.environmentService.disableExtensions,
userExtensionsHome: this.environmentService.extensionsPath,
extensionDevelopmentPath: this.environmentService.extensionDevelopmentPath,
extensionTestsPath: this.environmentService.extensionTestsPath
extensionTestsPath: this.environmentService.extensionTestsPath,
// globally disable proposed api when built and not insiders developing extensions
enableProposedApi: !this.environmentService.isBuilt || (!!this.environmentService.extensionDevelopmentPath && product.nameLong.indexOf('Insiders') >= 0)
},
contextService: {
workspace: this.contextService.getWorkspace()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册