Inconsistent behavior between `@shikijs/twoslash` and `@shikijs/vitepress-twoslash`
KermanX opened this issue · comments
_Kerman commented
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
@shikijs/vitepress-twoslash
and @shikijs/twoslash
behave differently, when working with @types/vscode
Using @shikijs/vitepress-twoslash
- repro: https://stackblitz.com/~/github.com/KermanX/vp-twoslash-vscode-repro
- go to
https://domain/reactive-vscode/examples/
- only enums have type info: (the ones in circles don't)
Using @shikijs/twoslash
, without VitePress
- repro: https://stackblitz.com/edit/vitejs-vite-2sepjo?file=vite.config.js
- All the things have type info (expected)
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