diff --git a/packages/cursorless-engine/src/processTargets/modifiers/EveryScopeStage.ts b/packages/cursorless-engine/src/processTargets/modifiers/EveryScopeStage.ts index 1c294e3867..32f78df186 100644 --- a/packages/cursorless-engine/src/processTargets/modifiers/EveryScopeStage.ts +++ b/packages/cursorless-engine/src/processTargets/modifiers/EveryScopeStage.ts @@ -73,20 +73,13 @@ export class EveryScopeStage implements ModifierStage { if (scopes == null) { // If target had no explicit range, or was contained by a single target // instance, expand to iteration scope before overlapping - try { - scopes = this.getDefaultIterationRange( - scopeHandler, - this.scopeHandlerFactory, - target, - ).flatMap((iterationRange) => - getScopesOverlappingRange(scopeHandler, editor, iterationRange), - ); - } catch (error) { - if (!(error instanceof NoContainingScopeError)) { - throw error; - } - scopes = []; - } + scopes = this.getDefaultIterationRange( + scopeHandler, + this.scopeHandlerFactory, + target, + ).flatMap((iterationRange) => + getScopesOverlappingRange(scopeHandler, editor, iterationRange), + ); } if (scopes.length === 0) {