You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[REFACTOR] Move alias definitions to source justfiles and add permanent Justfile file associations #195
area:workspaceWorkspace tooling, justfile, templateseffort:smallLess than 1 hourrefactorModifications that do not bring any significant change (e.g. style, reorganization)
Refactor alias ownership so aliases are defined in their respective source justfiles (instead of being centralized in the top-level justfile), improving modularity and reducing drift between imported files and alias declarations.
Also add permanent editor file associations so just-lsp recognizes imported files such as justfile.base and other just.* files consistently.
Files / Modules in Scope
justfile
justfile.base
justfile.worktree
Workspace/editor configuration file for file associations (e.g. .vscode/settings.json or equivalent canonical settings location)
Out of Scope
Any behavior change to existing recipes
Adding/removing recipes unrelated to alias ownership
CI/workflow changes unrelated to Justfile parsing or file associations
Invariants / Constraints
No observable behavior changes in recipes
Existing aliases remain available after refactor
Imported justfiles remain valid and parseable by just and just-lsp
Keep changes minimal and limited to ownership/association concerns
Acceptance Criteria
Aliases currently in top-level justfile are moved to their corresponding justfile modules
Top-level justfile only keeps aliases that truly belong to top-level concerns
Permanent file association is configured so just-lsp recognizes:
All aliases (podman, worktree, github) are centralized in the top-level justfile even though they alias recipes defined in imported justfiles. This creates ownership drift and makes each module less self-contained.
Additionally, the editor has no permanent file associations for just.* files (e.g. justfile.base, justfile.worktree), so just-lsp does not recognize them.
Approach
1. Move aliases to their source justfiles
just 1.45.0 supports aliases in imported files. Each alias will move to the file that defines the recipe it references:
Alias group
Current location
Target location
pdm-* (10 aliases)
justfile
justfile.podman
wt-* (5 aliases)
justfile
justfile.worktree
gh-i (1 alias)
justfile
justfile.gh
The top-level justfile will have its entire alias section removed. No aliases belong to top-level concerns.
2. Add permanent file associations
Add a files.associations block to .vscode/settings.json:
This ensures just-lsp recognizes all justfile variants (justfile, Justfile, justfile.base, justfile.worktree, etc.).
Decisions
No changes to assets/workspace/ templates: The asset templates (assets/workspace/.devcontainer/justfile.base, etc.) don't currently have aliases, so no changes needed there. The .vscode/settings.json at root is the canonical settings file for this repo.
No behavior changes: All aliases remain available after the refactor since just imports bring aliases into the global namespace.
TDD note: These are pure config/declaration changes (alias moves + JSON config). No testable behavior is introduced, so TDD is skipped for this issue. Verification is done by running just --list and confirming all aliases still appear.
Testing Strategy
Run just --list before and after, diff the output to confirm no recipes or aliases are lost.
Run just --evaluate to confirm all justfiles parse correctly.
Run just precommit to confirm pre-commit hooks pass.
area:workspaceWorkspace tooling, justfile, templateseffort:smallLess than 1 hourrefactorModifications that do not bring any significant change (e.g. style, reorganization)
Activity
c-vigo commentedon Feb 25, 2026
To consider: keep
justfilesin.devcontainerpurely container-reated:but move project-specific recipes to root folder, because they will be modified by users:
test: add alias resolution regression tests for justfile refactor
refactor(workspace): move alias definitions to source justfiles and a…
c-vigo commentedon Feb 25, 2026
Design
Issue: #195
Branch:
195-refactor-move-alias-definitions-to-source-justfiles-and-add-permanent-justfile-file-associationsProblem
All aliases (podman, worktree, github) are centralized in the top-level
justfileeven though they alias recipes defined in imported justfiles. This creates ownership drift and makes each module less self-contained.Additionally, the editor has no permanent file associations for
just.*files (e.g.justfile.base,justfile.worktree), sojust-lspdoes not recognize them.Approach
1. Move aliases to their source justfiles
just1.45.0 supports aliases in imported files. Each alias will move to the file that defines the recipe it references:pdm-*(10 aliases)justfilejustfile.podmanwt-*(5 aliases)justfilejustfile.worktreegh-i(1 alias)justfilejustfile.ghThe top-level
justfilewill have its entire alias section removed. No aliases belong to top-level concerns.2. Add permanent file associations
Add a
files.associationsblock to.vscode/settings.json:This ensures
just-lsprecognizes all justfile variants (justfile,Justfile,justfile.base,justfile.worktree, etc.).Decisions
assets/workspace/templates: The asset templates (assets/workspace/.devcontainer/justfile.base, etc.) don't currently have aliases, so no changes needed there. The.vscode/settings.jsonat root is the canonical settings file for this repo.justimports bring aliases into the global namespace.just --listand confirming all aliases still appear.Testing Strategy
just --listbefore and after, diff the output to confirm no recipes or aliases are lost.just --evaluateto confirm all justfiles parse correctly.just precommitto confirm pre-commit hooks pass.c-vigo commentedon Feb 25, 2026
Implementation Plan
Issue: #195
Branch:
195-refactor-move-alias-definitions-to-source-justfiles-and-add-permanent-justfile-file-associationsTasks
justfiletojustfile.podman—justfile,justfile.podman— verify:just --list | grep pdm-justfiletojustfile.worktree—justfile,justfile.worktree— verify:just --list | grep wt-justfiletojustfile.gh—justfile,justfile.gh— verify:just --list | grep gh-ijustfile—justfile— verify:just --evaluatefiles.associationsto.vscode/settings.json—.vscode/settings.json— verify:cat .vscode/settings.json | python3 -m json.tooljust --listoutput before/after — verify:diff /tmp/just-list-before.txt <(just --list 2>&1)refactor: move alias definitions to source justfiles and add file ass…
c-vigo commentedon Feb 25, 2026
Autonomous Run Complete
refactor: move alias definitions to source justfiles and add file ass…