Support downloading repo contents for all github authorities (#185707)

For #175972

Previously this was broken for `github%2b...` style authorities
This commit is contained in:
Matt Bierner
2023-06-20 15:19:11 -07:00
committed by GitHub
parent 3b8fd6e199
commit 1eabca5501

View File

@@ -108,7 +108,7 @@ async function preload(logger: Logger): Promise<void> {
}
const workspaceUri = vscode.workspace.workspaceFolders?.[0].uri;
if (!workspaceUri || workspaceUri.scheme !== 'vscode-vfs' || workspaceUri.authority !== 'github') {
if (!workspaceUri || workspaceUri.scheme !== 'vscode-vfs' || !workspaceUri.authority.startsWith('github')) {
logger.info(`Skipped loading workspace contents for repository ${workspaceUri?.toString()}`);
return;
}