shikijs / shiki

A beautiful yet powerful syntax highlighter
http://shiki.style/
MIT License
9.19k stars 330 forks source link

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

Open KermanX opened 1 month ago

KermanX commented 1 month ago

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

Reproduction

See the report content

Contributes