Skip to content

Commit e5fbcdf

Browse files
fix: use official json schema
1 parent cbab203 commit e5fbcdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/components/editors/monaco.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function doSetup() {
5353
format: true,
5454
schemas: [
5555
{
56-
uri: '/schema.json',
56+
uri: 'https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json',
5757
fileMatch: ['*'],
5858
},
5959
],
@@ -67,4 +67,4 @@ function disableTypeScriptCheck(monaco: Monaco) {
6767
noSemanticValidation: true,
6868
noSyntaxValidation: false,
6969
})
70-
}
70+
}

0 commit comments

Comments
 (0)