File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/plus/integrations/authentication Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type { Sources } from '../../../constants.telemetry';
88import type { Container } from '../../../container' ;
99import { gate } from '../../../system/decorators/-webview/gate' ;
1010import { debug , log } from '../../../system/decorators/log' ;
11+ import { serialize } from '../../../system/decorators/serialize' ;
1112import type { DeferredEventExecutor } from '../../../system/event' ;
1213import {
1314 isCloudSelfHostedIntegrationId ,
@@ -479,6 +480,7 @@ class BuiltInAuthenticationProvider extends LocalIntegrationAuthenticationProvid
479480 }
480481
481482 @debug ( )
483+ @serialize ( )
482484 override async getSession (
483485 descriptor ?: IntegrationAuthenticationSessionDescriptor ,
484486 options ?: { createIfNeeded ?: boolean ; forceNewSession ?: boolean } ,
Original file line number Diff line number Diff line change 11import type { AuthenticationSession } from 'vscode' ;
2+ import { isWeb } from '@env/platform' ;
23import type { IntegrationId , SupportedCloudIntegrationIds } from '../../../constants.integrations' ;
34import {
45 HostingIntegrationId ,
@@ -55,9 +56,15 @@ export type CloudIntegrationAuthType = 'oauth' | 'pat';
5556export const CloudIntegrationAuthenticationUriPathPrefix = 'did-authenticate-cloud-integration' ;
5657
5758export function getSupportedCloudIntegrationIds ( ) : SupportedCloudIntegrationIds [ ] {
58- return configuration . get ( 'cloudIntegrations.enabled' , undefined , true )
59+ let supportedCloudIntegrationIds = configuration . get ( 'cloudIntegrations.enabled' , undefined , true )
5960 ? supportedOrderedCloudIntegrationIds
6061 : supportedOrderedCloudIssueIntegrationIds ;
62+ if ( isWeb ) {
63+ // We always have a local GitHub session on vscode.dev and github.dev
64+ supportedCloudIntegrationIds = supportedCloudIntegrationIds . filter ( id => id !== HostingIntegrationId . GitHub ) ;
65+ }
66+
67+ return supportedCloudIntegrationIds ;
6168}
6269
6370export function isSupportedCloudIntegrationId ( id : string ) : id is SupportedCloudIntegrationIds {
You can’t perform that action at this time.
0 commit comments