Ver a proveniência

Adds check for new remotehub extension

main
Eric Amodio há 2 anos
ascendente
cometimento
20eb71fbc6
1 ficheiros alterados com 3 adições e 1 eliminações
  1. +3
    -1
      src/plus/remotehub.ts

+ 3
- 1
src/plus/remotehub.ts Ver ficheiro

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

Carregando…
Cancelar
Guardar