vscord: Github Repo TypeError: Cannot read property 'repository' of undefined

When switching to another git repo in the same workspace it will cause this error.

stack trace: TypeError: Cannot read property 'name' of undefined
    at details (/HDD/1TBSSD/projects/Personal/vscord/src/activity.ts:142:50)
    at activity (/HDD/1TBSSD/projects/Personal/vscord/src/activity.ts:39:1)
    at sendActivity (/HDD/1TBSSD/projects/Personal/vscord/src/extension.ts:17:27)
    at /HDD/1TBSSD/projects/Personal/vscord/src/listener.ts:16:244
    at u.fire (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:66:1712)
    at Data.updateGit (/HDD/1TBSSD/projects/Personal/vscord/src/data.ts:189:1)
    at /HDD/1TBSSD/projects/Personal/vscord/src/data.ts:169:1
    at /opt/visual-studio-code/resources/app/extensions/git/dist/main.js:2:1045061
    at u.fire (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:66:1712)
    at m.open (/opt/visual-studio-code/resources/app/extensions/git/dist/main.js:2:991145)
    at m.openRepository (/opt/visual-studio-code/resources/app/extensions/git/dist/main.js:2:989724)
    at i (/opt/visual-studio-code/resources/app/extensions/git/dist/main.js:2:943438)
    at /opt/visual-studio-code/resources/app/extensions/git/dist/main.js:2:989054
    at async Promise.all (index 0)
    at m.onDidChangeVisibleTextEditors (/opt/visual-studio-code/resources/app/extensions/git/dist/main.js:2:988953)

Possibly something to do with a variable not being set when it detects a git repo switch

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (19 by maintainers)

Most upvoted comments

lmao always the way xD

Reopening this I have re created it with the deployed version. https://youtu.be/8K8ehSd_ig0

So it appears that non git repo projects just says idle

It not doing it now. Closing as it seems it is not doing it now