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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
7 changes: 7 additions & 0 deletions packages/twoslash-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ 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
* The following line should be removed when @vue/[email protected] is released
*/
errors: [...handbookOptions.errors ?? [], 1184],
keepNotations: true,
},
shouldGetHoverInfo(id) {
Expand Down
6 changes: 3 additions & 3 deletions packages/twoslash-vue/test/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

it('has correct query', () => {
expect(result.meta.positionQueries)
.toMatchInlineSnapshot(`

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

View workflow job for this annotation

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,
291,
1619,
1787,
162,
997,
1166,
]
`)

Expand Down
Loading
Loading