Skip to content

Commit 89d04da

Browse files
author
fidgetingbits
committed
fix funk tests
1 parent 2e329f4 commit 89d04da

File tree

2 files changed

+33
-24
lines changed

2 files changed

+33
-24
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
languageId: nix
2+
command:
3+
version: 6
4+
spokenForm: change funk name
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: functionName}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
{
16+
x = a: b: a + b;
17+
}
18+
selections:
19+
- anchor: {line: 1, character: 16}
20+
active: {line: 1, character: 16}
21+
marks: {}
22+
finalState:
23+
documentContents: |
24+
{
25+
= a: b: a + b;
26+
}
27+
selections:
28+
- anchor: {line: 1, character: 2}
29+
active: {line: 1, character: 2}

packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix/changeInsideFunk.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,17 @@ command:
1414
initialState:
1515
documentContents: |
1616
{
17-
# Anonymous function
18-
a = foo: (foo + 1);
1917
x = a: b: a + b;
20-
21-
# Non-built-in function
22-
ba = test( foo: bar: {
23-
b = foo;
24-
});
25-
26-
# Built-in function
27-
x = map (x: y: x + x) [ 1 2 3 ];
2818
}
2919
selections:
30-
- anchor: {line: 3, character: 16}
31-
active: {line: 3, character: 16}
20+
- anchor: {line: 1, character: 16}
21+
active: {line: 1, character: 16}
3222
marks: {}
3323
finalState:
3424
documentContents: |
3525
{
36-
# Anonymous function
37-
a = foo: (foo + 1);
3826
x = ;
39-
40-
# Non-built-in function
41-
ba = test( foo: bar: {
42-
b = foo;
43-
});
44-
45-
# Built-in function
46-
x = map (x: y: x + x) [ 1 2 3 ];
4727
}
4828
selections:
49-
- anchor: {line: 3, character: 6}
50-
active: {line: 3, character: 6}
29+
- anchor: {line: 1, character: 6}
30+
active: {line: 1, character: 6}

0 commit comments

Comments
 (0)