fix: check if repo is cloned via ssh before transforming
This commit is contained in:
parent
7cefeb2af8
commit
25b02aeb39
3 changed files with 5 additions and 3 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "discord-vscode",
|
||||
"version": "5.6.0",
|
||||
"version": "5.6.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "discord-vscode",
|
||||
"displayName": "Discord Presence",
|
||||
"version": "5.6.0",
|
||||
"version": "5.6.1",
|
||||
"description": "Update your discord status with a rich presence.",
|
||||
"private": true,
|
||||
"author": {
|
||||
|
|
|
@ -78,7 +78,9 @@ export async function activity(previous: ActivityPayload = {}) {
|
|||
let repo = git.repositories.find((repo) => repo.ui.selected)?.state.remotes[0].fetchUrl;
|
||||
|
||||
if (repo) {
|
||||
if (repo.startsWith('git@')) {
|
||||
repo = repo.replace(':', '/').replace('git@', 'https://').replace('.git', '');
|
||||
}
|
||||
|
||||
state = {
|
||||
...state,
|
||||
|
|
Loading…
Reference in a new issue