diff --git a/src/sql/services/bootstrap/bootstrapServiceImpl.ts b/src/sql/services/bootstrap/bootstrapServiceImpl.ts index 34d87c0abe..e592d56461 100644 --- a/src/sql/services/bootstrap/bootstrapServiceImpl.ts +++ b/src/sql/services/bootstrap/bootstrapServiceImpl.ts @@ -3,7 +3,7 @@ * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import { NgModuleRef } from '@angular/core'; +import { NgModuleRef, enableProdMode } from '@angular/core'; import { platformBrowserDynamic, } from '@angular/platform-browser-dynamic'; import { BootstrapParams } from 'sql/services/bootstrap/bootstrapParams'; @@ -180,3 +180,7 @@ export class BootstrapService implements IBootstrapService { this._selectorQueueMap.set(selectorString, idArray); } } + +if (!process.env['VSCODE_DEV']) { + enableProdMode(); +}