Skip to content

Commit 49c0a7a

Browse files
Added comment
1 parent 627dfaa commit 49c0a7a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

packages/cursorless-engine/src/core/commandRunner/CommandRunnerImpl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export class CommandRunnerImpl implements CommandRunner {
213213
const action = this.actions[actionDescriptor.name];
214214

215215
// Ensure we don't miss any new actions. Needed because we don't have input validation.
216+
// FIXME: remove once we have schema validation (#983)
216217
if (action == null) {
217218
throw new Error(`Unknown action: ${actionDescriptor.name}`);
218219
}

packages/cursorless-engine/src/processTargets/MarkStageFactoryImpl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class MarkStageFactoryImpl implements MarkStageFactory {
4949
return new ExplicitMarkStage(mark);
5050
default: {
5151
// Ensure we don't miss any new marks. Needed because we don't have input validation.
52+
// FIXME: remove once we have schema validation (#983)
5253
const _exhaustiveCheck: never = mark;
5354
const { type } = mark;
5455
throw new Error(`Unknown mark: ${type}`);

packages/cursorless-engine/src/processTargets/ModifierStageFactoryImpl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class ModifierStageFactoryImpl implements ModifierStageFactory {
111111
);
112112
default: {
113113
// Ensure we don't miss any new modifiers. Needed because we don't have input validation.
114+
// FIXME: remove once we have schema validation (#983)
114115
const _exhaustiveCheck: never = modifier;
115116
const { type } = modifier;
116117
throw new Error(`Unknown modifier: ${type}`);

0 commit comments

Comments
 (0)