Issue: Unable to select virtual workspace folder when using Github repositories extension to open a Github repository #603

Open
opened 2026-10-05 02:55:31 +02:00 by adam · 5 comments
Owner

Describe the bug
I am using Github repositories vscode extension that uses github repo as a virtual workspace
Read here: https://code.visualstudio.com/api/extension-guides/virtual-workspaces

However I get error
To Reproduce
Steps to reproduce the behavior:

  1. Open a repo using Github Repositories vscode extension (or github.dev should also work)
  2. Click on Open dashboard
  3. You cannot register content folder as you are unable to select a content folder
  4. Click on Create Content button: It says No Page folders were configured
  5. As a workaround copy the frontmatter files including the frontmatter.json file from a non virtual workspace vscode project to this project.
  6. Edit the json file manually to the correct folders
  7. However this workaround doesn't work. You still get "No Page folders were configured" in all the various buttons and dashboard.

Expected behavior
basic functionality like view the dashboard, add content and refresh for content should work with virtual workspace.
That allows you to at least capture information using remote repositories or github.dev.

Screenshots
image
"+" button does nothing
image

Desktop (please complete the following information):

  • OS: Windows 11
  • App: vscode
  • Version:1.86.2
**Describe the bug** I am using Github repositories vscode extension that uses github repo as a virtual workspace Read here: https://code.visualstudio.com/api/extension-guides/virtual-workspaces However I get error **To Reproduce** Steps to reproduce the behavior: 1. Open a repo using Github Repositories vscode extension (or github.dev should also work) 2. Click on Open dashboard 3. You cannot register content folder as you are unable to select a content folder 4. Click on Create Content button: It says No Page folders were configured 5. As a workaround copy the frontmatter files including the frontmatter.json file from a non virtual workspace vscode project to this project. 6. Edit the json file manually to the correct folders 7. However this workaround doesn't work. You still get "No Page folders were configured" in all the various buttons and dashboard. **Expected behavior** basic functionality like view the dashboard, add content and refresh for content should work with virtual workspace. That allows you to at least capture information using remote repositories or github.dev. **Screenshots** ![image](https://github.com/estruyf/vscode-front-matter/assets/13977449/d602cbfb-3aa5-4b26-95ea-0698e0a13eca) "+" button does nothing ![image](https://github.com/estruyf/vscode-front-matter/assets/13977449/041a4630-296c-47f0-9a8e-f8ff47fd40bc) **Desktop (please complete the following information):** - OS: Windows 11 - App: vscode - Version:1.86.2 <!-- github-sync-id:2151713534 -->
Author
Owner

Hi @devgid, I have yet to try this.

Can you register folders the following way:

  • Right-click on a folder in the explorer view
  • Go to Front Matter, and click on register folder

Let me know if that works.

Hi @devgid, I have yet to try this. Can you register folders the following way: - Right-click on a folder in the explorer view - Go to Front Matter, and click on register folder Let me know if that works. <!-- github-comment-id:1962356301 -->
Author
Owner

@estruyf If I right click on folder and select register folder it gives me two messages displayed underneath each other
image
image

However the dashboard does show now and I can click on Create Content button which creates an open markdown file but this does not appear in my virtual workspace folder nor my source control changes. The file frontmatter.json does also not show in my virtual workspace folder nor my source control changes.

Despite the markdown file being created the dashboard still shows as "No Markdown to show" even when clicking the Refresh Icon.
The created markdown file is oddly located in new created local drive folders C:\VirtualWorkspaceGitHubUsername\VirtuallWorkspacename\ where .frontmatter and frontmatter.json is also created.
The new markdown file created:
C:\VirtualWorkspaceGitHubUsername\VirtuallWorkspacename\FolderRegisteredName\Markdownfilecreated.md

In it the frontmatter.json file display the pageFolders as following
image

@estruyf If I right click on folder and select register folder it gives me two messages displayed underneath each other ![image](https://github.com/estruyf/vscode-front-matter/assets/13977449/8614ed92-c2fd-4cee-9954-abfceaa9e8f0) ![image](https://github.com/estruyf/vscode-front-matter/assets/13977449/4c5d3d02-413a-446f-9f3d-f39d35d69fa0) However the dashboard does show now and I can click on Create Content button which creates an open markdown file but this does not appear in my virtual workspace folder nor my source control changes. The file frontmatter.json does also not show in my virtual workspace folder nor my source control changes. Despite the markdown file being created the dashboard still shows as "No Markdown to show" even when clicking the Refresh Icon. The created markdown file is oddly located in new created local drive folders C:\VirtualWorkspaceGitHubUsername\VirtuallWorkspacename\ where .frontmatter and frontmatter.json is also created. The new markdown file created: C:\VirtualWorkspaceGitHubUsername\VirtuallWorkspacename\FolderRegisteredName\Markdownfilecreated.md In it the frontmatter.json file display the pageFolders as following ![image](https://github.com/estruyf/vscode-front-matter/assets/13977449/7cbf7a1d-6f48-46f8-a495-a5324fb0582f) <!-- github-comment-id:1962409720 -->
Author
Owner

If you want to test yourself you can install this extension
https://marketplace.visualstudio.com/items?itemName=GitHub.remotehub
and add a remote Github repository from the Remote Explorer sidebar icon.

If you want to test yourself you can install this extension https://marketplace.visualstudio.com/items?itemName=GitHub.remotehub and add a remote Github repository from the Remote Explorer sidebar icon. <!-- github-comment-id:1962410895 -->
Author
Owner

The extension doesn't yet support virtual workspaces. We'll have to look into the amount of work to get it supported.

The extension doesn't yet support virtual workspaces. We'll have to look into the amount of work to get it supported. <!-- github-comment-id:1963963160 -->
Author
Owner

This would be great for simple blogs!

This would be great for simple blogs! <!-- github-comment-id:2722698345 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#603