mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Activate vscode.github-authentication from the test resolver
This commit is contained in:
@@ -9,6 +9,8 @@ export function activate(_context: vscode.ExtensionContext) {
|
||||
vscode.workspace.registerRemoteAuthorityResolver('test', {
|
||||
async resolve(_authority: string): Promise<vscode.ResolverResult> {
|
||||
console.log(`Resolving ${_authority}`);
|
||||
console.log(`Activating vscode.github-authentication to simulate auth`);
|
||||
await vscode.extensions.getExtension('vscode.github-authentication')?.activate();
|
||||
return new vscode.ManagedResolvedAuthority(async () => {
|
||||
return new InitialManagedMessagePassing();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user