Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(twoslash-vue): upgrade to Volar 2.2.0 #63

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
fix: typo
zhiyuanzmj committed Dec 30, 2024
commit 531a4afb06e6cabe9ae32edc6f1a574048475ec9
4 changes: 3 additions & 1 deletion packages/twoslash-vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -171,8 +171,10 @@ export function createTwoslasher(createOptions: CreateTwoslashVueOptions = {}):
handbookOptions: {
...handbookOptions,
/**
* Ignore ts 1184 error that declare keyword can't be used in function.
*
* https://github.com/vuejs/language-tools/pull/5090/files
* This should be removed after @vue/language-core@2.2.1
* The following line should be removed when @vue/language-core@v2.2.1 is released
*/
errors: [...handbookOptions.errors ?? [], 1184],
keepNotations: true,

Unchanged files with check annotations Beta

},
cleanUrls: true,
vite,

Check failure on line 109 in docs/.vitepress/config.ts

GitHub Actions / typecheck

Type 'UserConfig & Promise<UserConfig> & UserConfigFnObject & UserConfigFnPromise & UserConfigFn' is not assignable to type '(UserConfig & { configFile?: string | false | undefined; }) | undefined'.
themeConfig: {
logo: '/logo.svg',
nav: [
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
extensions: ['vue', 'md'],
}),
UnoCSS(

Check failure on line 20 in docs/.vitepress/vite.config.ts

GitHub Actions / typecheck

No overload matches this call.
fileURLToPath(new URL('./uno.config.ts', import.meta.url)),
),
// Converting Twoslash codeblocks into code-groups with the source code
it('has correct query', () => {
expect(result.meta.positionQueries)
.toMatchInlineSnapshot(`

Check failure on line 20 in packages/twoslash-vue/test/query.test.ts

GitHub Actions / test (lts/*, windows-latest)

packages/twoslash-vue/test/query.test.ts > basic > has correct query

Error: Snapshot `basic > has correct query 1` mismatched - Expected + Received [ - 94, + 115, - 162, + 183, - 997, + 1018, - 1166, + 1187, ] ❯ packages/twoslash-vue/test/query.test.ts:20:8
[
94,
162,