shikijs / shiki

A beautiful yet powerful syntax highlighter

Home Page:http://shiki.style/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent behavior between `@shikijs/twoslash` and `@shikijs/vitepress-twoslash`

KermanX opened this issue · comments

Validations

Describe the bug

@shikijs/vitepress-twoslash and @shikijs/twoslash behave differently, when working with @types/vscode

Using @shikijs/vitepress-twoslash

Using @shikijs/twoslash, without VitePress

Notes

  • Both the two projects have no tsconfig.json or other special configs
  • The @types/vscode package may have something special, but the main concern is why the two packages behave differently.

Reproduction

See the report content

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests