Bläddra i källkod

Adds check for new remotehub extension

main
Eric Amodio 2 år sedan
förälder
incheckning
20eb71fbc6
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. +3
    -1
      src/plus/remotehub.ts

+ 3
- 1
src/plus/remotehub.ts Visa fil

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

Laddar…
Avbryt
Spara