Skip to content

Commit bf2516d

Browse files
authored
Port API change from main (#9871)
* Fix API not being allowed in stable (#9869) * Fix API not being allowed in stable * Fix build problems * Remove unnecessary news item
1 parent 3d2e20a commit bf2516d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/platform/api/apiAccessService.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { injectable, inject, named } from 'inversify';
55
import { ExtensionMode, Memento } from 'vscode';
6-
import { IApplicationEnvironment, IApplicationShell } from '../common/application/types';
6+
import { IApplicationShell } from '../common/application/types';
77
import { JVSC_EXTENSION_ID, Telemetry } from '../common/constants';
88
import { GLOBAL_MEMENTO, IExtensionContext, IMemento } from '../common/types';
99
import { 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

Comments
 (0)