Issue: Unable to select virtual workspace folder when using Github repositories extension to open a Github repository
devgid opened this issue · comments
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:
- Open a repo using Github Repositories vscode extension (or github.dev should also work)
- Click on Open dashboard
- You cannot register content folder as you are unable to select a content folder
- Click on Create Content button: It says No Page folders were configured
- As a workaround copy the frontmatter files including the frontmatter.json file from a non virtual workspace vscode project to this project.
- Edit the json file manually to the correct folders
- 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
"+" button does nothing
Desktop (please complete the following information):
- OS: Windows 11
- App: vscode
- Version:1.86.2
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.
@estruyf If I right click on folder and select register folder it gives me two messages displayed underneath each other
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
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.
The extension doesn't yet support virtual workspaces. We'll have to look into the amount of work to get it supported.