Shopify / Shopify/theme-tools

Closing angle bracket autofilled after adding opening angle bracket inside liquid tag

Open
#564 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
TypeScript
Stars
234
Forks
92
Avg merge
1d 3h
Merged PRs (30d)
6

Description

Describe the bug
This bug occurs in the VSCode extension.

Inside a Liquid tag, e.g. {% if %} - typing an opening angle bracket < results in a closing angle bracket > being added as well

Source

{% if 2 < %}

Expected behaviour
After typing the <, nothing else should be injected

Actual behaviour
I get the following.

{% if 2 <> %}

Debugging information

  • OS: Mac
  • OS Version: Sequoia 15.0.1

Additional Context

The same behaviour happens inside a `liquid tag too.

{% liquid
  if 2 <

  endif
%}

becomes

{% liquid
  if 2 <>

  endif
%}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the examples in the VSCode extension's Liquid tag completion behavior, including both {% if %} and {% liquid %} contexts. Trace the angle-bracket autofill entry point and verify that typing < in these contexts no longer injects >.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.