33
44import { injectable , inject , named } from 'inversify' ;
55import { ExtensionMode , Memento } from 'vscode' ;
6- import { IApplicationEnvironment , IApplicationShell } from '../common/application/types' ;
6+ import { IApplicationShell } from '../common/application/types' ;
77import { JVSC_EXTENSION_ID , Telemetry } from '../common/constants' ;
88import { GLOBAL_MEMENTO , IExtensionContext , IMemento } from '../common/types' ;
99import { PromiseChain } from '../common/utils/async' ;
@@ -30,7 +30,6 @@ export class ApiAccessService {
3030 constructor (
3131 @inject ( IMemento ) @named ( GLOBAL_MEMENTO ) private globalState : Memento ,
3232 @inject ( IApplicationShell ) private appShell : IApplicationShell ,
33- @inject ( IApplicationEnvironment ) private appEnv : IApplicationEnvironment ,
3433 @inject ( IExtensionContext ) private context : IExtensionContext
3534 ) { }
3635 public async getAccessInformation ( info : {
@@ -46,11 +45,6 @@ export class ApiAccessService {
4645 }
4746 return { extensionId : info . extensionId , accessAllowed : true } ;
4847 }
49- // For now, this API is only available in insiders.
50- // This way, insider (exploratory API that provides insider/exploratory features are only available in insiders).
51- if ( this . appEnv . channel !== 'insiders' ) {
52- return { extensionId : info . extensionId , accessAllowed : false } ;
53- }
5448 // Some extensions like our own (stuff we publish for exploration) are always allowed to access the API.
5549 if ( TrustedExtensionPublishers . has ( publisherId ) ) {
5650 return { extensionId : info . extensionId , accessAllowed : true } ;
0 commit comments