-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7580d1d
commit 4a90968
Showing
5 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@marko/language-tools": patch | ||
--- | ||
|
||
Add typeings for $signal variable in tags api. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...sts__/fixtures/script/abort-signal/__snapshots__/abort-signal.expected/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Hovers | ||
### Ln 2, Col 4 | ||
```marko | ||
1 | <effect() { | ||
> 2 | $signal.onabort = () => { | ||
| ^ const $signal: AbortSignal | ||
3 | // ^? | ||
4 | console.log('aborted'); | ||
5 | }; | ||
``` | ||
|
||
## Diagnostics | ||
### Ln 1, Col 2 | ||
```marko | ||
> 1 | <effect() { | ||
| ^^^^^^ Cannot find name 'effect'. | ||
2 | $signal.onabort = () => { | ||
3 | // ^? | ||
4 | console.log('aborted'); | ||
``` | ||
|
6 changes: 6 additions & 0 deletions
6
packages/language-server/src/__tests__/fixtures/script/abort-signal/index.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<effect() { | ||
$signal.onabort = () => { | ||
// ^? | ||
console.log('aborted'); | ||
}; | ||
}/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters