Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions data/fixtures/recorded/headTail/changeTail4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageId: plaintext
command:
version: 7
spokenForm: change tail
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- {type: extendThroughEndOf}
usePrePhraseSnapshot: false
initialState:
documentContents: (a) b
selections:
- anchor: {line: 0, character: 3}
active: {line: 0, character: 3}
marks: {}
finalState:
documentContents: (a)
selections:
- anchor: {line: 0, character: 3}
active: {line: 0, character: 3}
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ export interface InteriorScopeType {

// The user has specified a scope type. eg "inside element".
explicitScopeType?: boolean;

// Gets passed to surrounding pair scope handler
requireStrongContainment?: boolean;
}

export type SurroundingPairDirection = "left" | "right";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class BoundedLineStage implements ModifierStage {
try {
return this.getContaining(target, options, {
type: "interior",
requireStrongContainment: true,
});
} catch (error) {
if (error instanceof NoContainingScopeError) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class InteriorScopeHandler extends BaseScopeHandler {
{
type: "surroundingPair",
delimiter: "any",
requireStrongContainment: this.scopeType.requireStrongContainment,
},
this.languageId,
);
Expand Down
Loading