Unable to connect GitLab with VS Code

CloudRock 366 Reputation points


I'm using a self-hosted GitLab instance deployed for the company, along with VS Code.

I downloaded the extension "GitLab Workflow" in VS Code so I can see my GitLab projects hosted in the company instance.

During setup, I entered :

  • The company GitLab instance URL "https://XXXXXXXXXXXXXXXXXXXXXXXXXX" and
  • The PAT (personal access token) related to my personal space that contains all my projects.

I also entered the below URL in the config file of VS Code : Settings>Extensions>Gitlab Workflow>Instance URL as described in this article, section : Setup / Step 2 :

    "window.zoomLevel": -1,
    "workbench.colorTheme": "Visual Studio Dark",
    "terminal.integrated.shell.windows": "C:\\windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
    "gitlab.instanceUrl": "https://XXXXXXXXXXXXXXXXXXXXXXXXXX"

But when trying to see my GitLab projects from VS Code, I get this error message :

Failed to parse GitLab API response

Command failed with exit code 128: git ls-remote --get-url
fatal: No remote configured to list refs from.
Error: Command failed with exit code 128: git ls-remote --get-url
fatal: No remote configured to list refs from.
 at makeError (c:\Users\LLNT9586\.vscode\extensions\gitlab.gitlab-workflow-3.9.0\node_modules\execa\lib\error.js:59:11)
 at handlePromise (c:\Users\LLNT9586\.vscode\extensions\gitlab.gitlab-workflow-3.9.0\node_modules\execa\index.js:114:26)
 at processTicksAndRejections (internal/process/task_queues.js:94:5)
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,441 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Karen Payne MVP 35,196 Reputation points


    The best place to get assistance is in the extensions question page.


    1 person found this answer helpful.

  2. Tianyu Sun-MSFT 27,796 Reputation points Microsoft Vendor

    Hello @CloudRock ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    As you know, Visual Studio Code is different from Visual Studio and Visual Studio Code is currently not supported in the Microsoft Q&A forum, the supported products are listed over here: https://learn.microsoft.com/en-us/answers/products/ (more to be added later on).

    You can start a new thread and post your questions on Stack Overflow tagged with visual studio code for dedicated support.

    Thank you for your understanding.

    Best Regards,

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.