Skip to content

vscode: Correct file association icon paths#5

Open
yashwant86 wants to merge 2 commits intomasterfrom
pr-17196
Open

vscode: Correct file association icon paths#5
yashwant86 wants to merge 2 commits intomasterfrom
pr-17196

Conversation

@yashwant86
Copy link
Copy Markdown

@yashwant86 yashwant86 commented Apr 7, 2026

Mirror of ScoopInstaller#17196


Summary by MergeMonkey

  • Improvements:
    • Fixed incorrect icon paths for file associations in VSCode installation.

Timabliss and others added 2 commits February 13, 2026 17:38
Major refactor of the `post_install` logic to improve robustness and registry hygiene:

1. Deterministic Version Detection (Source of Truth):
   Instead of unreliable directory sniffing, we now parse the official `bin/code` shell script to extract the `VERSIONFOLDER` variable. This is the upstream source of truth for the version hash.

2. Dynamic Registry Template Injection:
   - Context Menus & Associations: Injected with the resolved hash path (e.g., `$dir\<hash>`).
   - GitHub Integration: Injected with the root path (`$dir`), as per standard behavior.
   - Handled via variable replacement in `.reg` templates during runtime.

3. Update-Triggered Registry Cleanup:
   Implemented a "Clean Slate" policy. During an update (detected by the presence of older version directories matching `^[0-9.]+$`), the script automatically runs uninstall routines for the previous registration. This prevents registry pollution and ensures that HKCU keys strictly correspond to the current installation.
@mergemonkeyhq
Copy link
Copy Markdown

mergemonkeyhq bot commented Apr 10, 2026

Risk AssessmentSAFE · ~3 min review

Focus areas: Icon path correctness · File association configuration

Assessment: Updates installer configuration paths only; no logic or code changes.

Walkthrough

The PR updates the VSCode installation manifest to fix how file association icons are referenced. When VSCode is installed, the system now correctly locates and applies icon resources for file type associations.

Changes

Files Summary
VSCode File Association Icons
bucket/vscode.json
Corrects file association icon paths in VSCode installer configuration to properly reference icon resources.

Dig Deeper With Commands

  • /review <file-path> <function-optional>
  • /chat <file-path> "<question>"
  • /roast <file-path>

Runs only when explicitly triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants