diff --git a/package.json b/package.json index a13dbf5..8e6513c 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "explorer": [ { "id": "githubIssuesPrs", - "name": "GitHub Issues and PRs" + "name": "GitHub Issues and PRs", + "when": "is-running-a-github-repo" } ] }, diff --git a/src/github-issues-prs.ts b/src/github-issues-prs.ts index a77718a..dc73323 100644 --- a/src/github-issues-prs.ts +++ b/src/github-issues-prs.ts @@ -183,6 +183,8 @@ export class GitHubIssuesPrsProvider implements TreeDataProvider { const remotes = await this.getGitHubRemotes(); if (!remotes.length) { return [new TreeItem('No GitHub repositories found')]; + } else { + commands.executeCommand('setContext', 'is-running-a-github-repo', true); } let assignee: string | undefined;