Browse Source

Adds check for new remotehub extension

main
Eric Amodio 2 years ago
parent
commit
20eb71fbc6
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/plus/remotehub.ts

+ 3
- 1
src/plus/remotehub.ts View File

@ -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');

Loading…
Cancel
Save