File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
packages/cursorless-engine/src/processTargets/modifiers Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ import type { ContainingScopeModifier } from "@cursorless/common";
22import { NoContainingScopeError } from "@cursorless/common" ;
33import type { Target } from "../../typings/target.types" ;
44import type { ModifierStageFactory } from "../ModifierStageFactory" ;
5- import type {
6- ModifierStage ,
7- ModifierStateOptions ,
8- } from "../PipelineStages.types" ;
5+ import type { ModifierStage } from "../PipelineStages.types" ;
96import { getContainingScopeTarget } from "./getContainingScopeTarget" ;
107import type { ScopeHandlerFactory } from "./scopeHandlers/ScopeHandlerFactory" ;
118
@@ -34,7 +31,7 @@ export class ContainingScopeStage implements ModifierStage {
3431 private modifier : ContainingScopeModifier ,
3532 ) { }
3633
37- run ( target : Target , _options : ModifierStateOptions ) : Target [ ] {
34+ run ( target : Target ) : Target [ ] {
3835 const { scopeType, ancestorIndex = 0 } = this . modifier ;
3936
4037 const scopeHandler = this . scopeHandlerFactory . maybeCreate (
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ import {
55} from "@cursorless/common" ;
66import type { Target } from "../../typings/target.types" ;
77import type { ModifierStageFactory } from "../ModifierStageFactory" ;
8- import type {
9- ModifierStage ,
10- ModifierStateOptions ,
11- } from "../PipelineStages.types" ;
8+ import type { ModifierStage } from "../PipelineStages.types" ;
129import { ContainingScopeStage } from "./ContainingScopeStage" ;
1310import type { TargetScope } from "./scopeHandlers/scope.types" ;
1411import type { ScopeHandler } from "./scopeHandlers/scopeHandler.types" ;
@@ -26,7 +23,7 @@ export class PreferredScopeStage implements ModifierStage {
2623 private modifier : PreferredScopeModifier ,
2724 ) { }
2825
29- run ( target : Target , options : ModifierStateOptions ) : Target [ ] {
26+ run ( target : Target ) : Target [ ] {
3027 const { scopeType } = this . modifier ;
3128
3229 const containingScopeStage = new ContainingScopeStage (
@@ -36,7 +33,7 @@ export class PreferredScopeStage implements ModifierStage {
3633 ) ;
3734
3835 try {
39- return containingScopeStage . run ( target , options ) ;
36+ return containingScopeStage . run ( target ) ;
4037 } catch ( ex ) {
4138 // NoContainingScopeError is thrown if no containing scope was found, which is fine.
4239 if ( ! ( ex instanceof NoContainingScopeError ) ) {
You can’t perform that action at this time.
0 commit comments