|
|
@ -7,7 +7,9 @@ export async function getRemoteHubApi(silent: false): Promise; |
|
|
|
export async function getRemoteHubApi(silent: boolean): Promise<RemoteHubApi | undefined>; |
|
|
|
export async function getRemoteHubApi(silent?: boolean): Promise<RemoteHubApi | undefined> { |
|
|
|
try { |
|
|
|
const extension = extensions.getExtension<RemoteHubApi>('GitHub.remotehub'); |
|
|
|
const extension = |
|
|
|
extensions.getExtension<RemoteHubApi>('ms-vscode.remote-repositories') ?? |
|
|
|
extensions.getExtension<RemoteHubApi>('GitHub.remotehub'); |
|
|
|
if (extension == null) { |
|
|
|
Logger.log('GitHub Repositories extension is not installed or enabled'); |
|
|
|
throw new ExtensionNotFoundError('GitHub Repositories', 'GitHub.remotehub'); |
|
|
|