Skip to content
Merged
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
8 changes: 7 additions & 1 deletion packages/common/src/testUtil/getSnapshotForComparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,18 @@ export async function getSnapshotForComparison(
}
}

const editor = spyIde.activeTextEditor;

if (editor == null) {
throw new Error("No active text editor found in SpyIDE");
}

// FIXME Visible ranges are not asserted, see:
// https://github.com/cursorless-dev/cursorless/issues/160
const { visibleRanges, ...resultState } = await takeSnapshot(
excludeFields,
[],
spyIde.activeTextEditor!,
editor,
spyIde,
marks,
);
Expand Down
Loading