Skip to content

Commit

Permalink
[github] show PR controller in PR context
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKoehnlein committed Aug 3, 2021
1 parent 0671120 commit 8824403
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/gitpod/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1362,11 +1362,15 @@ export async function activate(context: vscode.ExtensionContext) {
if (!layoutInitialized) {
context.globalState.update(layoutInitializedKey, true);

vscode.window.showErrorMessage(`Bar`);
(async () => {
vscode.window.showErrorMessage(`Foo`);
const listener = await pendingInstanceListener;
const workspaceContext = listener.info.workspace.context;

if (PullRequestContext.is(workspaceContext) && /github\.com/i.test(workspaceContextUrl.authority)) {
vscode.extensions.getExtension('GitHub.vscode-pull-request-github')?.activate();
vscode.commands.executeCommand('workbench.view.extension.github-pull-request');
vscode.commands.executeCommand('github.api.preloadPullRequest');
}
// TODO gitlab/bitbucket/any other git hoisting?
Expand Down

0 comments on commit 8824403

Please sign in to comment.