Skip to content

Commit cce34a8

Browse files
authored
Merge pull request #168 from ls1intum/fix/update-button-on-clone
fix: call detectRepoCourseAndExercise after cloning
2 parents 4030212 + c35a613 commit cce34a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ function registerCommands(
188188
vscode.commands.registerCommand("scorpio.displayedExercise.clone", async () => {
189189
try {
190190
await cloneCurrentExercise();
191+
// In Theia mode the repo is cloned into the workspace as a subfolder,
192+
// so we can detect it immediately and update repoKey without a round-trip.
193+
await detectRepoCourseAndExercise();
191194
await realtimeSync.refreshNow();
192195
} catch (e) {
193196
_errorMessage(e, LogLevel.ERROR, "Failed to clone repository");

0 commit comments

Comments
 (0)