Skip to content

fix(vscode): pin linkify-it below v6 to fix vsce package failure - #545

Merged
lizhengfeng101 merged 1 commit into
mainfrom
fix/vsce-linkify-it-v6-compat
Jul 28, 2026
Merged

fix(vscode): pin linkify-it below v6 to fix vsce package failure#545
lizhengfeng101 merged 1 commit into
mainfrom
fix/vsce-linkify-it-v6-compat

Conversation

@lizhengfeng101

Copy link
Copy Markdown
Collaborator

Summary

  • Pin linkify-it resolution to >=5.0.2 <6 to avoid the breaking ESM named-export change in v6
  • Fixes ERROR LinkifyIt is not a constructor when running vsce package
  • Bumps extension version to 0.1.2

Context

linkify-it v6 switched from a default export to named exports ({ LinkifyIt }). The markdown-it library bundled in @vscode/vsce still calls new LinkifyIt() via the default import, causing the packaging step to fail after README markdown processing.

Test plan

  • corepack yarn package succeeds and produces a valid .vsix

linkify-it v6 switched to named exports, breaking markdown-it's
default-import usage inside vsce (`LinkifyIt is not a constructor`).
Pin the resolution to `>=5.0.2 <6` so `yarn package` succeeds.

Also bumps extension version to 0.1.2.
@github-actions

Copy link
Copy Markdown
Contributor

OpenCodeReview: No comments generated. Looks good to me.

@MuoDoo MuoDoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lizhengfeng101
lizhengfeng101 merged commit d03e47d into main Jul 28, 2026
18 of 19 checks passed
@lizhengfeng101
lizhengfeng101 deleted the fix/vsce-linkify-it-v6-compat branch July 28, 2026 05:17
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