浏览代码

Adds check for new remotehub extension

main
Eric Amodio 2 年前
父节点
当前提交
20eb71fbc6
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/plus/remotehub.ts

+ 3
- 1
src/plus/remotehub.ts 查看文件

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

正在加载...
取消
保存