Skip to content

Commit ea5a542

Browse files
Update test
1 parent d898f26 commit ea5a542

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/contiguousScope/changeComment2.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ command:
1313
initialState:
1414
documentContents: |-
1515
// hello
16-
1716
// world
1817
selections:
19-
- anchor: {line: 0, character: 0}
20-
active: {line: 0, character: 0}
18+
- anchor: {line: 1, character: 8}
19+
active: {line: 1, character: 8}
2120
marks: {}
2221
finalState:
23-
documentContents: |-
24-
25-
26-
// world
22+
documentContents: ""
2723
selections:
2824
- anchor: {line: 0, character: 0}
2925
active: {line: 0, character: 0}

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/contiguousScope/changeComment3.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ command:
1313
initialState:
1414
documentContents: |-
1515
// hello
16-
// world
16+
// world
1717
selections:
18-
- anchor: {line: 1, character: 8}
19-
active: {line: 1, character: 8}
18+
- anchor: {line: 1, character: 0}
19+
active: {line: 1, character: 0}
2020
marks: {}
2121
finalState:
2222
documentContents: ""
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
languageId: javascript
2+
command:
3+
version: 6
4+
spokenForm: change comment
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: comment}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |-
15+
// hello
16+
17+
// world
18+
selections:
19+
- anchor: {line: 0, character: 0}
20+
active: {line: 0, character: 0}
21+
marks: {}
22+
finalState:
23+
documentContents: |-
24+
25+
26+
// world
27+
selections:
28+
- anchor: {line: 0, character: 0}
29+
active: {line: 0, character: 0}

0 commit comments

Comments
 (0)