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';
8
8
import type { Container } from '../../../container' ;
9
9
import { gate } from '../../../system/decorators/-webview/gate' ;
10
10
import { debug , log } from '../../../system/decorators/log' ;
11
+ import { serialize } from '../../../system/decorators/serialize' ;
11
12
import type { DeferredEventExecutor } from '../../../system/event' ;
12
13
import {
13
14
isCloudSelfHostedIntegrationId ,
@@ -479,6 +480,7 @@ class BuiltInAuthenticationProvider extends LocalIntegrationAuthenticationProvid
479
480
}
480
481
481
482
@debug ( )
483
+ @serialize ( )
482
484
override async getSession (
483
485
descriptor ?: IntegrationAuthenticationSessionDescriptor ,
484
486
options ?: { createIfNeeded ?: boolean ; forceNewSession ?: boolean } ,
Original file line number Diff line number Diff line change 1
1
import type { AuthenticationSession } from 'vscode' ;
2
+ import { isWeb } from '@env/platform' ;
2
3
import type { IntegrationId , SupportedCloudIntegrationIds } from '../../../constants.integrations' ;
3
4
import {
4
5
HostingIntegrationId ,
@@ -55,9 +56,15 @@ export type CloudIntegrationAuthType = 'oauth' | 'pat';
55
56
export const CloudIntegrationAuthenticationUriPathPrefix = 'did-authenticate-cloud-integration' ;
56
57
57
58
export function getSupportedCloudIntegrationIds ( ) : SupportedCloudIntegrationIds [ ] {
58
- return configuration . get ( 'cloudIntegrations.enabled' , undefined , true )
59
+ let supportedCloudIntegrationIds = configuration . get ( 'cloudIntegrations.enabled' , undefined , true )
59
60
? supportedOrderedCloudIntegrationIds
60
61
: 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 ;
61
68
}
62
69
63
70
export function isSupportedCloudIntegrationId ( id : string ) : id is SupportedCloudIntegrationIds {
You can’t perform that action at this time.
0 commit comments