Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/lib-tutorial/src/TutorialImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ export class TutorialImpl implements Tutorial, CommandRunnerDecorator {
return this.changeStep(() => 0);
}

resume() {
return this.setupStep();
async resume() {
await this.setupStep();
await this.checkPreconditions();
}

async list() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ async function runBasicTutorialTest(spyIde: SpyIDE) {
// Test resuming tutorial
await commands.executeCommand("cursorless.tutorial.resume");
await checkStepSetup(fixtures[0]);
const resumedStateEvent = getTutorialWebviewEventLog().at(-2);
assert.ok(resumedStateEvent?.type === "messageSent");
assert.equal(resumedStateEvent.data.preConditionsMet, true);

// Test automatic advancing
await runCursorlessCommand({
Expand Down
Loading