File tree Expand file tree Collapse file tree 3 files changed +19
-16
lines changed
packages/cursorless-engine/src/processTargets/targets Expand file tree Collapse file tree 3 files changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ jobs:
4949 - run : pnpm --color test
5050 if : runner.os != 'Linux'
5151 - run : xvfb-run -a pnpm -F @cursorless/test-harness test:talonJs
52- if : runner.os == 'Linux' && matrix.vscode_version == 'stable'
52+ if : runner.os == 'Linux' && matrix.app_version == 'stable'
5353 - run : pnpm -F @cursorless/test-harness test:talonJs
54- if : runner.os != 'Linux' && matrix.vscode_version == 'stable'
54+ if : runner.os != 'Linux' && matrix.app_version == 'stable'
5555 - run : xvfb-run -a pnpm -F @cursorless/cursorless-everywhere-talon-e2e test:quickjs
56- if : runner.os == 'Linux' && matrix.vscode_version == 'stable'
56+ if : runner.os == 'Linux' && matrix.app_version == 'stable'
5757 - run : pnpm -F @cursorless/cursorless-everywhere-talon-e2e test:quickjs
58- if : runner.os != 'Linux' && matrix.vscode_version == 'stable'
58+ if : runner.os != 'Linux' && matrix.app_version == 'stable'
5959 - run : bash -x scripts/install-neovim-dependencies.sh
6060 - uses : rhysd/action-setup-vim@v1
6161 id : vim
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export abstract class BaseTarget<
6969 get editor ( ) {
7070 return this . state . editor ;
7171 }
72+
7273 get isReversed ( ) {
7374 return this . state . isReversed ;
7475 }
@@ -114,6 +115,7 @@ export abstract class BaseTarget<
114115 getInterior ( ) : Target [ ] | undefined {
115116 return undefined ;
116117 }
118+
117119 getBoundary ( ) : Target [ ] | undefined {
118120 return undefined ;
119121 }
Original file line number Diff line number Diff line change 11import type { Range } from "@cursorless/common" ;
22import { shrinkRangeToFitContent } from "../../util/selectionUtils" ;
3- import type { CommonTargetParameters } from "./BaseTarget" ;
4- import { BaseTarget } from "./BaseTarget" ;
3+ import { BaseTarget , type CommonTargetParameters } from "./BaseTarget" ;
54import { PlainTarget } from "./PlainTarget" ;
65
76export class DocumentTarget extends BaseTarget < CommonTargetParameters > {
@@ -13,16 +12,6 @@ export class DocumentTarget extends BaseTarget<CommonTargetParameters> {
1312 super ( parameters ) ;
1413 }
1514
16- getLeadingDelimiterTarget ( ) {
17- return undefined ;
18- }
19- getTrailingDelimiterTarget ( ) {
20- return undefined ;
21- }
22- getRemovalRange ( ) : Range {
23- return this . contentRange ;
24- }
25-
2615 getInterior ( ) {
2716 return [
2817 // Use plain target instead of interior target since we want the same content and removal range for a document interior.
@@ -34,6 +23,18 @@ export class DocumentTarget extends BaseTarget<CommonTargetParameters> {
3423 ] ;
3524 }
3625
26+ getRemovalRange ( ) : Range {
27+ return this . contentRange ;
28+ }
29+
30+ getLeadingDelimiterTarget ( ) {
31+ return undefined ;
32+ }
33+
34+ getTrailingDelimiterTarget ( ) {
35+ return undefined ;
36+ }
37+
3738 protected getCloneParameters ( ) {
3839 return this . state ;
3940 }
You can’t perform that action at this time.
0 commit comments