Shopify / Shopify/theme-tools

Add support for contextual comment keybind / Missing editor.action.commentLine command

Open
#258 2 comments 0 reactions 1 assignee View on GitHub

@charlespwd is already working on this.

Since Sep 10, 2025.

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

Description

Describe the bug

I am writing to report a bug with the extension. It seems that the extension does not declare a commentLine property in the package.json /language-configuration.ts, ( suspected line ) , which prevents the line comment shortcut (Ctrl+/) from working properly. This is a very useful feature and I would appreciate it if you could add it to the extension. Thank you.

Source

N/A

Expected behaviour

Line comment and block comment should have different keybindings

Actual behaviour

Only commentBlock is defined, so both shortcuts insert block comment, even inside {% liquid %} tag

Debugging information

  • Windows
  • OS Version : 23H2
  • Shopify CLI version: 3.52.0

Additional context
Line comment added to Liquid

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.