Shopify / Shopify/theme-tools

VSCode prompt to remove dead code with an alert

Open
#970 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:theme-check-vscode enhancement good first issue
Dominant language
TypeScript
Stars
234
Forks
92
Avg merge
1d 3h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
Shopify/theme-graph allowed each file to be able to tell if it has a reference or dependency to another file.

There is currently a command you can run in VSCode to tell you if you have orphaned files.

It would be nice if on start-up an prompt appears at the bottom of VSCode to tell you to remove orphaned files.

Describe the solution you'd like

  • Need a nice way of telling the developer when they have orphaned files that isn't hidden in VSCode

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 locating the existing VSCode command that reports orphaned files and review how theme-graph exposes file references or dependencies. Define the startup notification behavior from the issue, including when it appears and what it tells the developer; done means orphaned files are surfaced without requiring the command to be run manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.