-
Notifications
You must be signed in to change notification settings - Fork 876
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow users to edit files with Gitpod. (#214) * Allow users to edit files with Gitpod. * Provide a command to edit files in Gitpod. * Provide a Gitpod link in the status bar so it is visible if the notification is closed. * Document how to invoke Gitpod if the notification is no longer visible. * Add Gitpod screenshots. * Fix the image paths. * chore(deps): bump elliptic from 6.5.3 to 6.5.4 in /extensions/github1s (#219) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](indutny/elliptic@v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Use SVG logo (#220) * Add CI support for macOS (#217) * ci: add macos for github workflows * ci: add timeout when installing * ci: reduce timeout value when installing * ci: config the github token during the install Co-authored-by: Mike Nikles <mikenikles@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: zvizvi <5633910@gmail.com> Co-authored-by: Lawrence <lonor@live.com>
- Loading branch information
1 parent
b62e8cd
commit f98aa96
Showing
12 changed files
with
112 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* @file Show Gitpod In Status Bar | ||
* @author mikenikles | ||
*/ | ||
|
||
import * as vscode from 'vscode'; | ||
import { getCurrentAuthority } from '@/helpers/git-ref'; | ||
|
||
const getGitpodRepoUri = () => | ||
getCurrentAuthority().then((currentAuthority) => { | ||
const [currentOwner, currentRepo] = currentAuthority.split('+'); | ||
return vscode.Uri.parse( | ||
`https://gitpod.io/#https://github.com/${currentOwner}/${currentRepo}` | ||
); | ||
}); | ||
|
||
export const showGitpod = async () => { | ||
const gitpodRepoUri = await getGitpodRepoUri(); | ||
|
||
const item = vscode.window.createStatusBarItem( | ||
vscode.StatusBarAlignment.Left, | ||
0 | ||
); | ||
item.text = ' $(pencil) Develop your project on Gitpod'; | ||
item.tooltip = 'Edit files, open/review PRs, use Docker - all online.'; | ||
item.command = { | ||
title: `Open Gitpod`, | ||
command: 'vscode.open', | ||
arguments: [gitpodRepoUri], | ||
}; | ||
item.show(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f98aa96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: