[extension] Fix path
This commit is contained in:
parent
5405e38ef9
commit
88be84bb62
@ -76,19 +76,11 @@ export async function cloneAndOpenRepo(contestId: number, teamId: number) {
|
|||||||
fs.removeSync(clonedRepoPath);
|
fs.removeSync(clonedRepoPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
// child_process.exec(
|
const dir = path.join(currentSettings.repoClonePath, 'BWContest', contestId.toString(), repoName);
|
||||||
// `git clone ${repoUrl}`,
|
|
||||||
// { cwd: `${currentSettings.repoClonePath}/BWContest/${contestId.toString()}` },
|
|
||||||
// (error, stdout, stderr) => {
|
|
||||||
// if (error) {
|
|
||||||
// vscode.window.showErrorMessage(`BWContest: Failed to clone repo: ${error.message}`);
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// );
|
|
||||||
const dir = path.join(currentSettings.repoClonePath, 'BWContest', contestId.toString());
|
|
||||||
await git.clone({ fs, http, dir, url: repoUrl });
|
await git.clone({ fs, http, dir, url: repoUrl });
|
||||||
|
|
||||||
|
closeAllWorkspaces();
|
||||||
|
|
||||||
const addedFolder = vscode.workspace.updateWorkspaceFolders(
|
const addedFolder = vscode.workspace.updateWorkspaceFolders(
|
||||||
vscode.workspace.workspaceFolders?.length ?? 0,
|
vscode.workspace.workspaceFolders?.length ?? 0,
|
||||||
0,
|
0,
|
||||||
|
Loading…
Reference in New Issue
Block a user