Skip to content

Commit 8e1cce2

Browse files
committed
fix: diagnostics feature workspace dir
1 parent d4aa05d commit 8e1cce2

File tree

32 files changed

+342
-401
lines changed

32 files changed

+342
-401
lines changed

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$Props-invalid-alias/$$Props-invalid-alias1/expectedv2.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
[
2-
{
3-
"range": { "start": { "line": 9, "character": 12 }, "end": { "line": 9, "character": 13 } },
4-
"severity": 4,
5-
"source": "ts",
6-
"message": "Variable 'x' implicitly has an 'any' type, but a better type may be inferred from usage.",
7-
"code": 7043,
8-
"tags": []
9-
},
102
{
113
"range": { "start": { "line": 6, "character": 6 }, "end": { "line": 6, "character": 13 } },
124
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$Props-invalid-alias/$$Props-invalid-alias2/expectedv2.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
[
2-
{
3-
"range": { "start": { "line": 9, "character": 12 }, "end": { "line": 9, "character": 13 } },
4-
"severity": 4,
5-
"source": "ts",
6-
"message": "Variable 'x' implicitly has an 'any' type, but a better type may be inferred from usage.",
7-
"code": 7043,
8-
"tags": []
9-
},
102
{
113
"range": { "start": { "line": 6, "character": 6 }, "end": { "line": 6, "character": 13 } },
124
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$Props-invalid-alias/$$Props-invalid-alias3/expectedv2.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
[
2-
{
3-
"range": {
4-
"start": { "line": 10, "character": 12 },
5-
"end": { "line": 10, "character": 13 }
6-
},
7-
"severity": 4,
8-
"source": "ts",
9-
"message": "Variable 'x' implicitly has an 'any' type, but a better type may be inferred from usage.",
10-
"code": 7043,
11-
"tags": []
12-
},
132
{
143
"range": { "start": { "line": 8, "character": 6 }, "end": { "line": 8, "character": 13 } },
154
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$Props-invalid-alias/$$Props-invalid-alias4/expectedv2.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
[
2-
{
3-
"range": {
4-
"start": { "line": 10, "character": 12 },
5-
"end": { "line": 10, "character": 13 }
6-
},
7-
"severity": 4,
8-
"source": "ts",
9-
"message": "Variable 'x' implicitly has an 'any' type, but a better type may be inferred from usage.",
10-
"code": 7043,
11-
"tags": []
12-
},
132
{
143
"range": { "start": { "line": 8, "character": 6 }, "end": { "line": 8, "character": 13 } },
154
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$Props-invalid-alias/$$Props-invalid-alias5/expectedv2.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
[
2-
{
3-
"range": { "start": { "line": 5, "character": 12 }, "end": { "line": 5, "character": 13 } },
4-
"severity": 4,
5-
"source": "ts",
6-
"message": "Variable 'x' implicitly has an 'any' type, but a better type may be inferred from usage.",
7-
"code": 7043,
8-
"tags": []
9-
},
102
{
113
"range": { "start": { "line": 3, "character": 6 }, "end": { "line": 3, "character": 13 } },
124
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$Props-invalid-alias/$$Props-invalid-alias6/expectedv2.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
[
2-
{
3-
"range": { "start": { "line": 5, "character": 12 }, "end": { "line": 5, "character": 13 } },
4-
"severity": 4,
5-
"source": "ts",
6-
"message": "Variable 'x' implicitly has an 'any' type, but a better type may be inferred from usage.",
7-
"code": 7043,
8-
"tags": []
9-
},
102
{
113
"range": { "start": { "line": 3, "character": 6 }, "end": { "line": 3, "character": 13 } },
124
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$Props-invalid-alias/$$Props-invalid-alias7/expectedv2.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
[
2-
{
3-
"range": {
4-
"start": { "line": 11, "character": 12 },
5-
"end": { "line": 11, "character": 13 }
6-
},
7-
"severity": 4,
8-
"source": "ts",
9-
"message": "Variable 'x' implicitly has an 'any' type, but a better type may be inferred from usage.",
10-
"code": 7043,
11-
"tags": []
12-
},
132
{
143
"range": { "start": { "line": 8, "character": 6 }, "end": { "line": 8, "character": 13 } },
154
"severity": 1,

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$props-invalid1/expectedv2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"range": { "start": { "line": 1, "character": 11 }, "end": { "line": 1, "character": 18 } },
44
"severity": 1,
55
"source": "ts",
6-
"message": "Argument of type '$$Props' is not assignable to parameter of type '{ exported1: string; }'.\n Property 'exported1' is optional in type '$$Props' but required in type '{ exported1: string; }'.",
6+
"message": "Argument of type '$$Props' is not assignable to parameter of type '{ exported1: string; }'.\n Types of property 'exported1' are incompatible.\n Type 'string | undefined' is not assignable to type 'string'.\n Type 'undefined' is not assignable to type 'string'.",
77
"code": 2345,
88
"tags": []
99
}

packages/language-server/test/plugins/typescript/features/diagnostics/fixtures/$$props-invalid2/expectedv2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"range": { "start": { "line": 1, "character": 11 }, "end": { "line": 1, "character": 18 } },
44
"severity": 1,
55
"source": "ts",
6-
"message": "Argument of type '$$Props' is not assignable to parameter of type '{ exported1?: string; }'.\n Types of property 'exported1' are incompatible.\n Type 'boolean' is not assignable to type 'string'.",
6+
"message": "Argument of type '$$Props' is not assignable to parameter of type '{ exported1?: string | undefined; }'.\n Types of property 'exported1' are incompatible.\n Type 'boolean' is not assignable to type 'string'.",
77
"code": 2345,
88
"tags": []
99
}
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
[
22
{
3-
"code": 2367,
4-
"message": "This comparison appears to be unintentional because the types 'number' and 'string' have no overlap.",
5-
"range": {
6-
"end": {
7-
"character": 64,
8-
"line": 9
9-
},
10-
"start": {
11-
"character": 36,
12-
"line": 9
13-
}
14-
},
3+
"range": { "start": { "line": 8, "character": 2 }, "end": { "line": 8, "character": 17 } },
4+
"severity": 1,
5+
"source": "ts",
6+
"message": "'$interfaceStore' is possibly 'undefined'.",
7+
"code": 18048,
8+
"tags": []
9+
},
10+
{
11+
"range": { "start": { "line": 9, "character": 36 }, "end": { "line": 9, "character": 64 } },
1512
"severity": 1,
1613
"source": "ts",
14+
"message": "This comparison appears to be unintentional because the types 'number' and 'string' have no overlap.",
15+
"code": 2367,
1716
"tags": []
1817
}
1918
]

0 commit comments

Comments
 (0)