Add support for contextual comment keybind / Missing editor.action.commentLine command
@charlespwd is already working on this.
Since Sep 10, 2025.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.