-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: inlay hint position sometimes off by one
- Loading branch information
1 parent
48ae8ce
commit aadaf85
Showing
3 changed files
with
49 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
14 changes: 14 additions & 0 deletions
14
...language-server/test/plugins/typescript/features/inlayHints/fixtures/each/expectedv2.json
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,14 @@ | ||
[ | ||
{ | ||
"label": ": number[]", | ||
"position": { "line": 1, "character": 11 }, | ||
"kind": 1, | ||
"paddingLeft": true | ||
}, | ||
{ | ||
"label": ": number", | ||
"position": { "line": 4, "character": 23 }, | ||
"kind": 1, | ||
"paddingLeft": true | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
...es/language-server/test/plugins/typescript/features/inlayHints/fixtures/each/input.svelte
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,7 @@ | ||
<script lang="ts"> | ||
let items = [1] | ||
</script> | ||
|
||
{#each items as item, i} | ||
{item} | ||
{/each} |