We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0edf34c commit a425f21Copy full SHA for a425f21
packages/common/src/testUtil/getSnapshotForComparison.ts
@@ -47,12 +47,18 @@ export async function getSnapshotForComparison(
47
}
48
49
50
+ const editor = spyIde.activeTextEditor;
51
+
52
+ if (editor == null) {
53
+ throw new Error("No active text editor found in SpyIDE");
54
+ }
55
56
// FIXME Visible ranges are not asserted, see:
57
// https://github.com/cursorless-dev/cursorless/issues/160
58
const { visibleRanges, ...resultState } = await takeSnapshot(
59
excludeFields,
60
[],
- spyIde.activeTextEditor!,
61
+ editor,
62
spyIde,
63
marks,
64
);
0 commit comments