Closed ghost closed 1 year ago
Update isn't available in the Plugin page of PhpStorm and even after trying to install 0.13.0 with the zip PhpStorm rejects it with "Plugin 'Svelte' is incompatible with this installation".
I guess you have version 2019. Sorry about that but I don't have capacity to maintain compatibility with older products. This is an evening side project
I updated now but it still doesn't seem to break long lines. Do I have to do something other than execute the action "Reformat Code"?
It should work, maybe there is a bug :) Please paste the code you want to format.
Of course. Here you go:
<table class="uk-table uk-table-small uk-table-divider">
<tbody>
<tr>
<td>Stars</td>
<td>{stats.player.achievements.bedwars_level}</td>
</tr>
<tr>
<td>Wins</td>
<td>{stats.player.achievements.bedwars_wins}</td>
</tr>
<tr>
<td>Games Played</td>
<td>{stats.player.stats.Bedwars.games_played_bedwars_1}</td>
</tr>
<tr>
<td>Winstreak</td>
<td>{Math.max(stats.player.stats.Bedwars.eight_one_winstreak, stats.player.stats.Bedwars.eight_two_winstreak, stats.player.stats.Bedwars.eight_two_ultimate_winstreak, stats.player.stats.Bedwars.four_three_winstreak, stats.player.stats.Bedwars.four_four_winstreak)}</td>
</tr>
<tr>
<td>Games Played</td>
<td>{stats.player.stats.Bedwars.games_played_bedwars_1}</td>
</tr>
</tbody>
</table>
Well this is certainly weird.
For now you'll need to add newlines yourself or use Prettier. And to be honest this expression should be refactored to dedicated variable/function/component
Migrated to WEB-61846 Svelte: format long markup expressions
Please update to 0.13.0