Unable to Validate CI config for mirrored repository

Checklist

Summary

I'm trying to validate our gitlab-ci.yml file for a repository that is hosted on Github and mirrored to Gitlab. It runs its pipelines on Gitlab.

After setting up Gitlab Workflow and using the command GitLab: Validate GitLab CI Config I get the error "Current folder doesn't contain a GitLab project". This happens even though I've setup a remote to point to gitlab:

➜  financeit (master) ✔ git remote -v
gitlab	git@gitlab.com:financeitcanada/dev/financeit.git (fetch)
gitlab	git@gitlab.com:financeitcanada/dev/financeit.git (push)
origin	git@github.com:financeit/financeit (fetch)
origin	git@github.com:financeit/financeit (push)

and set the VSCode setting "gitlab.pipelineGitRemoteName": "gitlab".

I've restarted VSCode throughout the process several times.

Steps to reproduce

  1. Have a project hosted on Github
  2. Mirror the project to Gitlab (https://docs.gitlab.com/ee/user/project/repository/mirror/)
  3. Install GitLab Workflow in VSCode
  4. Set a git remote that points to the Gitlab mirror eg. git remote add gitlab git@gitlab.com:myorg/myrepo.git.
  5. Add the setting "gitlab.pipelineGitRemoteName": "gitlab" to your VSCode settings.json
  6. Create a gitlab-ci.yml file in your repository
  7. Run VSCode command GitLab: Validate GitLab CI Config on that file.

What is the current bug behavior?

The extension periodically posts No preferred remote for /Users/aszczepanski/codes/financeit to its logs.

When running GitLab: Validate GitLab CI Config, we get the following error:

Current folder doesn't contain a GitLab project
AssertionError [ERR_ASSERTION]: Current folder doesn't contain a GitLab project
	at iK (/Users/aszczepanski/.vscode/extensions/gitlab.gitlab-workflow-3.38.1/out/extension.js:525:3960)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async /Users/aszczepanski/.vscode/extensions/gitlab.gitlab-workflow-3.38.1/out/extension.js:551:2500
	at async o._executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:94:111743)
No preferred remote for /Users/aszczepanski/codes/financeit.

What is the expected correct behavior?

The extension should validate my gitlab-ci.yml file.

Relevant logs and/or screenshots

No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
Current folder doesn't contain a GitLab project
AssertionError [ERR_ASSERTION]: Current folder doesn't contain a GitLab project
	at iK (/Users/aszczepanski/.vscode/extensions/gitlab.gitlab-workflow-3.38.1/out/extension.js:525:3960)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async /Users/aszczepanski/.vscode/extensions/gitlab.gitlab-workflow-3.38.1/out/extension.js:551:2500
	at async o._executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:94:111743)
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
Current folder doesn't contain a GitLab project
AssertionError [ERR_ASSERTION]: Current folder doesn't contain a GitLab project
	at iK (/Users/aszczepanski/.vscode/extensions/gitlab.gitlab-workflow-3.38.1/out/extension.js:525:3960)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async /Users/aszczepanski/.vscode/extensions/gitlab.gitlab-workflow-3.38.1/out/extension.js:551:2500
	at async o._executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:94:111743)
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.
No preferred remote for /Users/aszczepanski/codes/financeit.

Possible fixes

My only gut-feeling is it may be associated to the fact that the repository on Gitlab and Github do not share the same organization prefix in its URIs. financeitcanada/dev on Gitlab vs. financeit on Github.