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
24 changes: 12 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Place your settings in this file to overwrite default and user settings.
{
"[lua]": {
"editor.defaultFormatter": "JohnnyMorganz.stylua"
},
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"[scm]": {
"editor.defaultFormatter": "AndreasArvidsson.andreas-talon"
"editor.defaultFormatter": "AndreasArvidsson.andreas-talon",
"editor.tabSize": 2
},
"[talon]": {
"editor.defaultFormatter": "wenkokke.talonfmt-vscode"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
"cSpell.words": [
"Autoformatting",
"camelize",
Expand All @@ -22,14 +22,14 @@
"pojo",
"subword"
],
"files.eol": "\n",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.workingDirectories": [{ "pattern": "packages/*/" }],
"[lua]": {
"editor.defaultFormatter": "JohnnyMorganz.stylua"
},
"files.associations": {
".busted": "lua"
}
},
"files.eol": "\n",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "node_modules/typescript/lib",
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
25 changes: 25 additions & 0 deletions data/fixtures/scopes/javascript.core/interior.class.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class Foo { }
---

[#1 Content] =
[#1 Removal] = 0:11-0:12
>-<
0| class Foo { }

[#1 Domain] = 0:0-0:13
>-------------<
0| class Foo { }

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:11-0:12
>-<
0| class Foo { }

[#2 Domain] = 0:10-0:13
>---<
0| class Foo { }

[#2 Insertion delimiter] = " "
37 changes: 37 additions & 0 deletions data/fixtures/scopes/javascript.core/interior.function.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
function foo() { }
---

[#1 Content] =
[#1 Removal] = 0:16-0:17
>-<
0| function foo() { }

[#1 Domain] = 0:0-0:18
>------------------<
0| function foo() { }

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:13-0:13
><
0| function foo() { }

[#2 Domain] = 0:12-0:14
>--<
0| function foo() { }

[#2 Insertion delimiter] = " "


[#3 Content] =
[#3 Removal] = 0:16-0:17
>-<
0| function foo() { }

[#3 Domain] = 0:15-0:18
>---<
0| function foo() { }

[#3 Insertion delimiter] = " "
81 changes: 81 additions & 0 deletions data/fixtures/scopes/javascript.core/interior.function2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
class Foo {
bar() { }
}
---

[#1 Content] = 1:4-1:13
>---------<
1| bar() { }

[#1 Removal] = 0:11-2:0
>
0| class Foo {
1| bar() { }
2| }
<

[#1 Domain] = 0:0-2:1
>-----------
0| class Foo {
1| bar() { }
2| }
-<

[#1 Insertion delimiter] = " "


[#2 Content] = 1:4-1:13
>---------<
1| bar() { }

[#2 Removal] = 0:11-2:0
>
0| class Foo {
1| bar() { }
2| }
<

[#2 Domain] = 0:10-2:1
>-
0| class Foo {
1| bar() { }
2| }
-<

[#2 Insertion delimiter] = " "


[#3 Content] =
[#3 Removal] = 1:11-1:12
>-<
1| bar() { }

[#3 Domain] = 1:4-1:13
>---------<
1| bar() { }

[#3 Insertion delimiter] = " "


[#4 Content] =
[#4 Removal] = 1:8-1:8
><
1| bar() { }

[#4 Domain] = 1:7-1:9
>--<
1| bar() { }

[#4 Insertion delimiter] = " "


[#5 Content] =
[#5 Removal] = 1:11-1:12
>-<
1| bar() { }

[#5 Domain] = 1:10-1:13
>---<
1| bar() { }

[#5 Insertion delimiter] = " "
99 changes: 99 additions & 0 deletions data/fixtures/scopes/javascript.core/interior.if.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
if (true) { }
else if (false) { }
else { }
---

[#1 Content] =
[#1 Removal] = 0:11-0:12
>-<
0| if (true) { }

[#1 Domain] = 0:0-0:13
>-------------<
0| if (true) { }

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:4-0:8
>----<
0| if (true) { }

[#2 Domain] = 0:3-0:9
>------<
0| if (true) { }

[#2 Insertion delimiter] = " "


[#3 Content] =
[#3 Removal] = 0:11-0:12
>-<
0| if (true) { }

[#3 Domain] = 0:10-0:13
>---<
0| if (true) { }

[#3 Insertion delimiter] = " "


[#4 Content] =
[#4 Removal] = 1:17-1:18
>-<
1| else if (false) { }

[#4 Domain] = 1:0-1:19
>-------------------<
1| else if (false) { }

[#4 Insertion delimiter] = " "


[#5 Content] =
[#5 Removal] = 1:9-1:14
>-----<
1| else if (false) { }

[#5 Domain] = 1:8-1:15
>-------<
1| else if (false) { }

[#5 Insertion delimiter] = " "


[#6 Content] =
[#6 Removal] = 1:17-1:18
>-<
1| else if (false) { }

[#6 Domain] = 1:16-1:19
>---<
1| else if (false) { }

[#6 Insertion delimiter] = " "


[#7 Content] =
[#7 Removal] = 2:6-2:7
>-<
2| else { }

[#7 Domain] = 2:0-2:8
>--------<
2| else { }

[#7 Insertion delimiter] = " "


[#8 Content] =
[#8 Removal] = 2:6-2:7
>-<
2| else { }

[#8 Domain] = 2:5-2:8
>---<
2| else { }

[#8 Insertion delimiter] = " "
37 changes: 37 additions & 0 deletions data/fixtures/scopes/javascript.core/interior.lambda.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
() => { }
---

[#1 Content] =
[#1 Removal] = 0:1-0:1
><
0| () => { }

[#1 Domain] = 0:0-0:2
>--<
0| () => { }

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:7-0:8
>-<
0| () => { }

[#2 Domain] = 0:0-0:9
>---------<
0| () => { }

[#2 Insertion delimiter] = " "


[#3 Content] =
[#3 Removal] = 0:7-0:8
>-<
0| () => { }

[#3 Domain] = 0:6-0:9
>---<
0| () => { }

[#3 Insertion delimiter] = " "
25 changes: 25 additions & 0 deletions data/fixtures/scopes/javascript.core/interior.lambda2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
() => 0;
---

[#1 Content] =
[#1 Removal] = 0:1-0:1
><
0| () => 0;

[#1 Domain] = 0:0-0:2
>--<
0| () => 0;

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:6-0:7
>-<
0| () => 0;

[#2 Domain] = 0:0-0:7
>-------<
0| () => 0;

[#2 Insertion delimiter] = " "
37 changes: 37 additions & 0 deletions data/fixtures/scopes/javascript.core/interior.loop.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
for (let i = 0; i < size; ++i) { }
---

[#1 Content] =
[#1 Removal] = 0:32-0:33
>-<
0| for (let i = 0; i < size; ++i) { }

[#1 Domain] = 0:0-0:34
>----------------------------------<
0| for (let i = 0; i < size; ++i) { }

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Removal] = 0:5-0:29
>------------------------<
0| for (let i = 0; i < size; ++i) { }

[#2 Domain] = 0:4-0:30
>--------------------------<
0| for (let i = 0; i < size; ++i) { }

[#2 Insertion delimiter] = " "


[#3 Content] =
[#3 Removal] = 0:32-0:33
>-<
0| for (let i = 0; i < size; ++i) { }

[#3 Domain] = 0:31-0:34
>---<
0| for (let i = 0; i < size; ++i) { }

[#3 Insertion delimiter] = " "
Loading
Loading