Skip to content

Commit 7ff3604

Browse files
committed
Update to yaml-language-server 1.18.0
1 parent 44d79fb commit 7ff3604

File tree

4 files changed

+1357
-840
lines changed

4 files changed

+1357
-840
lines changed

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ await build({
3131
sideEffects: false
3232
}))
3333
// Ajv would significantly increase bundle size.
34-
onResolve({ filter: /^(ajv$|ajv-draft-04$|ajv\/dist\/)/ }, () => ({
34+
onResolve({ filter: /^ajv$/ }, () => ({
3535
path: fileURLToPath(new URL('fillers/ajv.ts', import.meta.url))
3636
}))
3737
// We only need cloneDeep from lodash. This can be replaced with structuredClone.

fillers/ajv.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
export default class AJVStub {
22
// eslint-disable-next-line @typescript-eslint/class-methods-use-this
3-
defaultMeta(): undefined {
4-
// This is a stub
5-
}
6-
7-
// eslint-disable-next-line @typescript-eslint/class-methods-use-this
8-
validateSchema(): boolean {
9-
return true
3+
compile(): () => boolean {
4+
return () => true
105
}
116
}

0 commit comments

Comments
 (0)