Skip to content

Commit

Permalink
Change type
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Jan 29, 2025
1 parent df33a03 commit bda0a04
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import type { Range, SimpleScopeTypeType } from "@cursorless/common";
import type {
GeneralizedRange,
Range,
SimpleScopeTypeType,
} from "@cursorless/common";
import type { Target } from "../../typings/target.types";
import { toGeneralizedRange } from "../../util/targetUtils";
import type { CommonTargetParameters } from "./BaseTarget";
import { BaseTarget } from "./BaseTarget";
import { InteriorTarget } from "./InteriorTarget";
Expand Down Expand Up @@ -102,12 +107,12 @@ export class ScopeTypeTarget extends BaseTarget<ScopeTypeTargetParameters> {
return getSmartRemovalTarget(this).getRemovalRange();
}

getRemovalHighlightRange(): Range {
getRemovalHighlightRange(): GeneralizedRange {
if (this.removalRange_ != null) {
return this.removalRange_;
return toGeneralizedRange(this, this.removalRange_);
}
if (this.hasDelimiterRange_) {
return getDelimitedSequenceRemovalRange(this);
return toGeneralizedRange(this, getDelimitedSequenceRemovalRange(this));
}
return getSmartRemovalTarget(this).getRemovalHighlightRange();
}
Expand Down

0 comments on commit bda0a04

Please sign in to comment.