-
-
Notifications
You must be signed in to change notification settings - Fork 92
Add first zig scope facet #3111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3cb55ab
0abea27
c2fe2de
d56874b
bef3efe
1f32c82
94a9433
8eb1fe7
957ca92
05929f9
15b273c
1c060d3
69cd67b
e03a4f6
f35dd75
35d1442
07aed70
f7dfc6f
3137256
55e6843
fa4bbcd
86f322e
4d093f3
80b9512
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| foo( | ||
| aaa, | ||
| bbb | ||
| ); | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Domain] = 1:4-1:7 | ||
| >---< | ||
| 1| aaa, | ||
|
|
||
| [Removal] = 1:0-1:7 | ||
| >-------< | ||
| 1| aaa, | ||
|
|
||
| [Leading delimiter] = 1:0-1:4 | ||
| >----< | ||
| 1| aaa, | ||
|
|
||
| [Insertion delimiter] = " " |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| foo(aaa, bbb); | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:4-0:7 | ||
| >---< | ||
| 0| foo(aaa, bbb); | ||
|
|
||
| [Insertion delimiter] = " " |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| fn foo(aaa: u8, bbb: u8) void {} | ||
| --- | ||
|
|
||
| [Content] = 0:7-0:23 | ||
| >----------------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [Domain] = 0:0-0:32 | ||
| >--------------------------------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| fn foo( | ||
| aa: u8, | ||
| bb: u8, | ||
| ) void {} | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Domain] = 1:4-1:10 | ||
| >------< | ||
| 1| aa: u8, | ||
|
|
||
| [#1 Removal] = 1:4-2:4 | ||
| >------- | ||
| 1| aa: u8, | ||
| 2| bb: u8, | ||
| ----< | ||
|
|
||
| [#1 Trailing delimiter] = 1:10-2:4 | ||
| >- | ||
| 1| aa: u8, | ||
| 2| bb: u8, | ||
| ----< | ||
|
|
||
| [#1 Insertion delimiter] = ",\n" | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Domain] = 2:4-2:10 | ||
| >------< | ||
| 2| bb: u8, | ||
|
|
||
| [#2 Removal] = 1:10-2:10 | ||
| >- | ||
| 1| aa: u8, | ||
| 2| bb: u8, | ||
| ----------< | ||
|
|
||
| [#2 Leading delimiter] = 1:10-2:4 | ||
| >- | ||
| 1| aa: u8, | ||
| 2| bb: u8, | ||
| ----< | ||
|
|
||
| [#2 Insertion delimiter] = ",\n" |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please include a second argument so we get a separate removal range in this scope test |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| fn foo(arg: u8) void {} | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:7-0:14 | ||
| >-------< | ||
| 0| fn foo(arg: u8) void {} | ||
|
|
||
| [Insertion delimiter] = ", " |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| foo(); | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = 0:4-0:4 | ||
| >< | ||
| 0| foo(); | ||
|
|
||
| [Domain] = 0:0-0:5 | ||
| >-----< | ||
| 0| foo(); | ||
|
|
||
| [Insertion delimiter] = " " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The insertion delimiter should be an empty string |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| foo(aaa, bbb); | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = 0:4-0:12 | ||
| >--------< | ||
| 0| foo(aaa, bbb); | ||
|
|
||
| [Domain] = 0:0-0:13 | ||
| >-------------< | ||
| 0| foo(aaa, bbb); | ||
|
|
||
| [Insertion delimiter] = " " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The insertion delimiter should be |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| fn foo() void {} | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = 0:7-0:7 | ||
| >< | ||
| 0| fn foo() void {} | ||
|
|
||
| [Domain] = 0:0-0:16 | ||
| >----------------< | ||
| 0| fn foo() void {} | ||
|
|
||
| [Insertion delimiter] = " " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The insertion limiter should be |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| foo( | ||
| aaa, | ||
| bbb | ||
| ); | ||
| --- | ||
|
|
||
| [Content] = 1:4-2:7 | ||
| >----- | ||
| 1| aaa, | ||
| 2| bbb | ||
| -------< | ||
|
|
||
| [Removal] = 1:0-3:0 | ||
| >--------- | ||
| 1| aaa, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The removal range should start directly after the opening parentheses |
||
| 2| bbb | ||
| 3| ); | ||
| < | ||
|
|
||
| [Leading delimiter] = 1:0-1:4 | ||
| >----< | ||
| 1| aaa, | ||
|
|
||
| [Domain] = 0:0-3:1 | ||
| >---- | ||
| 0| foo( | ||
| 1| aaa, | ||
| 2| bbb | ||
| 3| ); | ||
| -< | ||
|
|
||
| [Insertion delimiter] = " " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The insertion delimiter should be |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| fn foo(aaa: u8, bbb: u8) void {} | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = 0:7-0:23 | ||
| >----------------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [Domain] = 0:0-0:32 | ||
| >--------------------------------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [Insertion delimiter] = " " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The insertion delimiter should be |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| foo(); | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:0-0:5 | ||
| >-----< | ||
| 0| foo(); | ||
|
|
||
| [Insertion delimiter] = " " |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| foo(aa, bb); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need any arguments for this particular test |
||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = 0:0-0:3 | ||
| >---< | ||
| 0| foo(aa, bb); | ||
|
|
||
| [Domain] = 0:0-0:11 | ||
| >-----------< | ||
| 0| foo(aa, bb); | ||
|
|
||
| [Insertion delimiter] = " " | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| fn foo(aaa: u8, bbb: u8) void {} | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:3-0:6 | ||
| >---< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#1 Leading delimiter] = 0:2-0:3 | ||
| >-< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#1 Domain] = 0:0-0:32 | ||
| >--------------------------------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = 0:7-0:10 | ||
| >---< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#2 Removal] = 0:7-0:16 | ||
| >---------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In other languages we don't include the type in the rim wall range. Please just make the removable range the same as the content range. |
||
|
|
||
| [#2 Trailing delimiter] = 0:10-0:16 | ||
| >------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#2 Domain] = 0:7-0:14 | ||
| >-------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#3 Content] = 0:16-0:19 | ||
| >---< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#3 Removal] = 0:14-0:19 | ||
| >-----< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#3 Leading delimiter] = 0:14-0:16 | ||
| >--< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#3 Domain] = 0:16-0:23 | ||
| >-------< | ||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||
|
|
||
| [#3 Insertion delimiter] = " " | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||
| const foo = "bar"; | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The assignment scope should be assigning to an already existing variable. Please rename this file to |
||||
| --- | ||||
|
|
||||
| [Content] = 0:6-0:9 | ||||
| >---< | ||||
| 0| const foo = "bar"; | ||||
|
|
||||
| [Removal] = 0:6-0:10 | ||||
| >----< | ||||
| 0| const foo = "bar"; | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removal range should be
|
||||
|
|
||||
| [Leading delimiter] = 0:5-0:6 | ||||
| >-< | ||||
| 0| const foo = "bar"; | ||||
|
|
||||
| [Trailing delimiter] = 0:9-0:10 | ||||
| >-< | ||||
| 0| const foo = "bar"; | ||||
|
|
||||
| [Domain] = 0:0-0:18 | ||||
| >------------------< | ||||
| 0| const foo = "bar"; | ||||
|
|
||||
| [Insertion delimiter] = " " | ||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| fn foo() void {} | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = 0:3-0:6 | ||
| >---< | ||
| 0| fn foo() void {} | ||
|
|
||
| [Leading delimiter] = 0:2-0:3 | ||
| >-< | ||
| 0| fn foo() void {} | ||
|
|
||
| [Domain] = 0:0-0:16 | ||
| >----------------< | ||
| 0| fn foo() void {} | ||
|
|
||
| [Insertion delimiter] = " " |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| fn someFunk() void {} | ||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:0-0:21 | ||
| >---------------------< | ||
| 0| fn someFunk() void {} | ||
|
|
||
| [Insertion delimiter] = "\n\n" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| const foo = "hello"; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assignment should be assigning a value to an already existing variable. Please rename this file to |
||
| --- | ||
|
|
||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:0-0:20 | ||
| >--------------------< | ||
| 0| const foo = "hello"; | ||
|
|
||
| [Insertion delimiter] = "\n" | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,62 @@ | ||||
| fn foo(aaa: u8, bbb: u8) void {} | ||||
| --- | ||||
|
|
||||
| [#1 Content] = 0:25-0:29 | ||||
| >----< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#1 Removal] = 0:25-0:30 | ||||
| >-----< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#1 Leading delimiter] = 0:24-0:25 | ||||
| >-< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#1 Trailing delimiter] = 0:29-0:30 | ||||
| >-< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#1 Domain] = 0:0-0:32 | ||||
| >--------------------------------< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#1 Insertion delimiter] = " " | ||||
|
|
||||
|
|
||||
| [#2 Content] = 0:12-0:14 | ||||
| >--< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#2 Removal] = 0:12-0:16 | ||||
| >----< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The removal range should be
|
||||
|
|
||||
| [#2 Trailing delimiter] = 0:14-0:16 | ||||
| >--< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#2 Domain] = 0:7-0:14 | ||||
| >-------< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#2 Insertion delimiter] = " " | ||||
|
|
||||
|
|
||||
| [#3 Content] = 0:21-0:23 | ||||
| >--< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#3 Removal] = 0:14-0:23 | ||||
| >---------< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same problem here |
||||
|
|
||||
| [#3 Leading delimiter] = 0:14-0:21 | ||||
| >-------< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#3 Domain] = 0:16-0:23 | ||||
| >-------< | ||||
| 0| fn foo(aaa: u8, bbb: u8) void {} | ||||
|
|
||||
| [#3 Insertion delimiter] = " " | ||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bbbis missing as a scopeaaais incorrectThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use another language, eg javascript, as a reference:
https://github.com/cursorless-dev/cursorless/blob/d21522be750a55b70b50ac251300bfd6dd4baace/data/fixtures/scopes/javascript.core/argument/argument.actual.multiLine.scope