mblode/vscode-twig-language-2

Snippet trans: missing endtrans

ArmandPhilippot opened this issue · 4 comments

The snippet trans is not working properly. On completion, after typing "trans", the end block is not correct.

Currently:

{% trans %}{% trans %}

Instead of:

{% trans %}{% endtrans %}

Demo:

trans

The problem still persists for me
image

I think the extension has not been updated neither on VS Code marketplace nor on Open VSX marketplace.
From "Project details" on VS Code marketplace, I see: Last updated 24/08/2020 à 00:54:46.
From Open VSX, I see: Published 1 year ago (which correspond to 19/06/2020 à 06:27 on mousehover)

While my fix #73 dates from 17/11/2020.
(I have not converted the dates, they are in French format)

Thanks for your quick reply, do you know if an update is planned in the near future then ?

No idea. It seems that the project is no longer active... And I think only @mblode can post a new update on the markeplaces.

While waiting for an update, a possible workaround is to modify snippets.json (line 669) locally. On Linux, the file is in $HOME/.vscode-oss/extensions/mblode.twig-language-2-0.9.1/src/snippets/.