-
-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
Description
Describe the bug
Happens when e.g. resolving a label inline from a variable inside the template.
The code runs as expected but the VS Code extension does not seem to like it.
Reproduction
<div>
{{
0: 'Nomination phase',
1: 'Voting phase',
2: 'Finished',
}[1]}
</div>
<!-- My exact use case looks like this: -->
<div>
{{
[ContestPhases.Nomination]: 'Nomination phase',
[ContestPhases.Voting]: 'Voting phase',
[ContestPhases.Completed]: 'Completed',
}[contest.phase]}
</div>
Workaround: Extract object to <script>
.
Expected behaviour
No errors.
System Info
- OS: Windows 10, 64 bit
- IDE: VSCode (Extension version: 109.10.0)
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots

Metadata
Metadata
Assignees
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working