File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
extensions/vscode-test-resolver/src Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ export function activate(_context: vscode.ExtensionContext) {
9
9
vscode . workspace . registerRemoteAuthorityResolver ( 'test' , {
10
10
async resolve ( _authority : string ) : Promise < vscode . ResolverResult > {
11
11
console . log ( `Resolving ${ _authority } ` ) ;
12
+ console . log ( `Activating vscode.github-authentication to simulate auth` ) ;
13
+ await vscode . extensions . getExtension ( 'vscode.github-authentication' ) ?. activate ( ) ;
12
14
return new vscode . ManagedResolvedAuthority ( async ( ) => {
13
15
return new InitialManagedMessagePassing ( ) ;
14
16
} ) ;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import { IProductConfiguration } from 'vs/base/common/product';
28
28
import { isString } from 'vs/base/common/types' ;
29
29
import { CharCode } from 'vs/base/common/charCode' ;
30
30
import { getRemoteServerRootPath } from 'vs/platform/remote/common/remoteHosts' ;
31
+ import { IExtensionManifest } from 'vs/platform/extensions/common/extensions' ;
31
32
32
33
const textMimeType = {
33
34
'.html' : 'text/html' ,
@@ -343,9 +344,12 @@ export class WebClientServer {
343
344
} ;
344
345
345
346
if ( useTestResolver ) {
346
- const filePath = FileAccess . asFileUri ( `${ builtinExtensionsPath } /vscode-test-resolver/package.json` ) . fsPath ;
347
- const packageJSON = JSON . parse ( ( await fsp . readFile ( filePath ) ) . toString ( ) ) ;
348
- values [ 'WORKBENCH_BUILTIN_EXTENSIONS' ] = asJSON ( [ { extensionPath : 'vscode-test-resolver' , packageJSON } ] ) ;
347
+ const bundledExtensions : { extensionPath : string ; packageJSON : IExtensionManifest } [ ] = [ ] ;
348
+ for ( const extensionPath of [ 'vscode-test-resolver' , 'github-authentication' ] ) {
349
+ const packageJSON = JSON . parse ( ( await fsp . readFile ( FileAccess . asFileUri ( `${ builtinExtensionsPath } /${ extensionPath } /package.json` ) . fsPath ) ) . toString ( ) ) ;
350
+ bundledExtensions . push ( { extensionPath, packageJSON } ) ;
351
+ }
352
+ values [ 'WORKBENCH_BUILTIN_EXTENSIONS' ] = asJSON ( bundledExtensions ) ;
349
353
}
350
354
351
355
let data ;
You can’t perform that action at this time.
0 commit comments