File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
packages/cursorless-engine/src/processTargets/targets Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1- import type { Range , SimpleScopeTypeType } from "@cursorless/common" ;
1+ import type {
2+ GeneralizedRange ,
3+ Range ,
4+ SimpleScopeTypeType ,
5+ } from "@cursorless/common" ;
26import type { Target } from "../../typings/target.types" ;
7+ import { toGeneralizedRange } from "../../util/targetUtils" ;
38import type { CommonTargetParameters } from "./BaseTarget" ;
49import { BaseTarget } from "./BaseTarget" ;
510import { InteriorTarget } from "./InteriorTarget" ;
@@ -102,12 +107,12 @@ export class ScopeTypeTarget extends BaseTarget<ScopeTypeTargetParameters> {
102107 return getSmartRemovalTarget ( this ) . getRemovalRange ( ) ;
103108 }
104109
105- getRemovalHighlightRange ( ) : Range {
110+ getRemovalHighlightRange ( ) : GeneralizedRange {
106111 if ( this . removalRange_ != null ) {
107- return this . removalRange_ ;
112+ return toGeneralizedRange ( this , this . removalRange_ ) ;
108113 }
109114 if ( this . hasDelimiterRange_ ) {
110- return getDelimitedSequenceRemovalRange ( this ) ;
115+ return toGeneralizedRange ( this , getDelimitedSequenceRemovalRange ( this ) ) ;
111116 }
112117 return getSmartRemovalTarget ( this ) . getRemovalHighlightRange ( ) ;
113118 }
You can’t perform that action at this time.
0 commit comments