Skip to content

Commit 2659aa3

Browse files
Merge branch 'main' into treeSitter
2 parents 78fdead + e2b066f commit 2659aa3

File tree

176 files changed

+2547
-575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+2547
-575
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,23 +63,23 @@ jobs:
6363
run: xvfb-run -a pnpm --color test
6464
if: runner.os == 'Linux'
6565

66-
- name: Run tests (Other)
66+
- name: Run tests (Win,Mac)
6767
run: pnpm --color test
6868
if: runner.os != 'Linux'
6969

7070
- name: Run Talon-JS tests (Linux)
7171
run: xvfb-run -a pnpm -F @cursorless/test-harness test:talonJs
7272
if: runner.os == 'Linux' && matrix.app_version == 'stable'
7373

74-
- name: Run Talon-JS tests (Other)
74+
- name: Run Talon-JS tests (Win,Mac)
7575
run: pnpm -F @cursorless/test-harness test:talonJs
7676
if: runner.os != 'Linux' && matrix.app_version == 'stable'
7777

7878
- name: Run Cursorless-everywhere-talon tests (Linux)
7979
run: xvfb-run -a pnpm -F @cursorless/cursorless-everywhere-talon-e2e test:quickjs
8080
if: runner.os == 'Linux' && matrix.app_version == 'stable'
8181

82-
- name: Run Cursorless-everywhere-talon tests (Other)
82+
- name: Run Cursorless-everywhere-talon tests (Win,Mac)
8383
run: pnpm -F @cursorless/cursorless-everywhere-talon-e2e test:quickjs
8484
if: runner.os != 'Linux' && matrix.app_version == 'stable'
8585

@@ -120,11 +120,11 @@ jobs:
120120
packagePath: packages/cursorless-vscode/dist
121121
dryRun: true
122122

123-
- name: Rename vsix
123+
- name: Rename vsix (Linux)
124124
run: mv ${{ steps.createVsix.outputs.vsixPath }} cursorless-development.vsix
125125
if: runner.os == 'Linux' && matrix.app_version == 'stable'
126126

127-
- name: Upload vsix
127+
- name: Upload vsix (Linux)
128128
uses: actions/upload-artifact@v4
129129
if: runner.os == 'Linux' && matrix.app_version == 'stable'
130130
with:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tags: [enhancement]
3+
pullRequest: 2907
4+
---
5+
6+
- Added `"arg list"` scope. The argument list is the entire list of arguments in a declared function.

cursorless-talon/src/spoken_forms.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"modifier_scope_types.csv": {
126126
"scope_type": {
127127
"arg": "argumentOrParameter",
128+
"arg list": "argumentList",
128129
"attribute": "attribute",
129130
"call": "functionCall",
130131
"callee": "functionCallee",
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
languageId: plaintext
2+
command:
3+
version: 7
4+
spokenForm: take every token
5+
action:
6+
name: setSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: everyScope
11+
scopeType: {type: token}
12+
usePrePhraseSnapshot: false
13+
initialState:
14+
documentContents: |-
15+
aaa bbb ccc
16+
ddd eee
17+
selections:
18+
- anchor: {line: 0, character: 4}
19+
active: {line: 0, character: 11}
20+
- anchor: {line: 1, character: 4}
21+
active: {line: 1, character: 7}
22+
marks: {}
23+
finalState:
24+
documentContents: |-
25+
aaa bbb ccc
26+
ddd eee
27+
selections:
28+
- anchor: {line: 0, character: 4}
29+
active: {line: 0, character: 7}
30+
- anchor: {line: 0, character: 8}
31+
active: {line: 0, character: 11}
32+
- anchor: {line: 1, character: 4}
33+
active: {line: 1, character: 7}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
// starting content
2-
public class BankAccount {}
3-
// ending content
1+
2+
public class BankAccount { }
3+
44
---
55

66
[#1 Range] =
7-
[#1 Domain] = 0:0-2:17
8-
>-------------------
9-
0| // starting content
10-
1| public class BankAccount {}
11-
2| // ending content
12-
-----------------<
7+
[#1 Domain] = 0:0-2:0
8+
>
9+
0|
10+
1| public class BankAccount { }
11+
2|
12+
<
1313

1414

1515
[#2 Range] =
16-
[#2 Domain] = 1:26-1:26
17-
><
18-
1| public class BankAccount {}
16+
[#2 Domain] = 1:26-1:27
17+
>-<
18+
1| public class BankAccount { }
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
// starting content
2-
public class BankAccount {}
3-
// ending content
1+
2+
public class BankAccount { }
3+
44
---
55

66
[#1 Range] =
7-
[#1 Domain] = 0:0-2:17
8-
>-------------------
9-
0| // starting content
10-
1| public class BankAccount {}
11-
2| // ending content
12-
-----------------<
7+
[#1 Domain] = 0:0-2:0
8+
>
9+
0|
10+
1| public class BankAccount { }
11+
2|
12+
<
1313

1414

1515
[#2 Range] =
16-
[#2 Domain] = 1:26-1:26
17-
><
18-
1| public class BankAccount {}
16+
[#2 Domain] = 1:26-1:27
17+
>-<
18+
1| public class BankAccount { }
Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
* {
2-
color: red;
3-
padding: 1rem;
4-
}
1+
2+
* { color: red; }
3+
54
---
65

76
[#1 Range] =
8-
[#1 Domain] = 0:0-3:1
9-
>---
10-
0| * {
11-
1| color: red;
12-
2| padding: 1rem;
13-
3| }
14-
-<
7+
[#1 Domain] = 0:0-2:0
8+
>
9+
0|
10+
1| * { color: red; }
11+
2|
12+
<
1513

1614

1715
[#2 Range] =
18-
[#2 Domain] = 0:3-3:0
19-
>
20-
0| * {
21-
1| color: red;
22-
2| padding: 1rem;
23-
3| }
24-
<
16+
[#2 Domain] = 1:3-1:16
17+
>-------------<
18+
1| * { color: red; }
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
* {
2-
color: red;
3-
}
1+
2+
* { color: red; }
43

54
---
65

76
[Range] =
8-
[Domain] = 0:0-3:0
9-
>---
10-
0| * {
11-
1| color: red;
12-
2| }
13-
3|
7+
[Domain] = 0:0-2:0
8+
>
9+
0|
10+
1| * { color: red; }
11+
2|
1412
<
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
public class MyClass {
2+
public MyClass(
3+
String name,
4+
int age
5+
) {}
6+
}
7+
---
8+
9+
[#1 Content] =
10+
[#1 Domain] = 2:8-2:19
11+
>-----------<
12+
2| String name,
13+
14+
[#1 Removal] = 2:8-3:8
15+
>------------
16+
2| String name,
17+
3| int age
18+
--------<
19+
20+
[#1 Trailing delimiter] = 2:19-3:8
21+
>-
22+
2| String name,
23+
3| int age
24+
--------<
25+
26+
[#1 Insertion delimiter] = ",\n"
27+
28+
29+
[#2 Content] =
30+
[#2 Domain] = 3:8-3:15
31+
>-------<
32+
3| int age
33+
34+
[#2 Removal] = 2:19-3:15
35+
>-
36+
2| String name,
37+
3| int age
38+
---------------<
39+
40+
[#2 Leading delimiter] = 2:19-3:8
41+
>-
42+
2| String name,
43+
3| int age
44+
--------<
45+
46+
[#2 Insertion delimiter] = ",\n"

data/fixtures/scopes/java/argument.formal.iteration.scope

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)