vscord icon indicating copy to clipboard operation
vscord copied to clipboard

PSA : How to make sure the extension works (VS Code's SCM issue)

Open EDM115 opened this issue 1 year ago • 1 comments

vscord may rely on vscode.git to be started before being able to start in the first place (probably if you configured it to react to being in a git repo to show the url on buttons).
If you're someone who have a ton of extensions installed (and a potato pc), loading all of them will take a while and they might not load up in the order you want.
a while back I suggested to load the extension only after VS Code's git, and this was added then reverted.

So far the only fix around this (so I don't get the messages seen in #318 #297 and others) was to open the Source Control view as soon as VS Code starts. This way it prioritize loading vscode.git and this kinda makes sure that it is loaded before vscord.

If you want to automate it :
Do F1 -> Tasks: Open User Tasks
Paste the following :

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Open SCM View on startup",
      "hide": true,
      "command": "${command:workbench.view.scm}",
      "runOptions": {
        "runOn": "folderOpen"
      }
    }
  ]
}

Now, everytime you open VS Code/open a new folder in it it will (in some time, not instantly) switch to the Source Control view, ensuring vscord will always be loaded :)

EDM115 avatar Oct 08 '24 13:10 EDM115