Skip to content

Commit a78353a

Browse files
committed
jsonValidation should under contributes
1 parent 8b0434d commit a78353a

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,12 @@
15651565
"title": "Lua",
15661566
"type": "object"
15671567
},
1568+
"jsonValidation": [
1569+
{
1570+
"fileMatch": ".luarc.json",
1571+
"url": "./setting/schema.json"
1572+
}
1573+
],
15681574
"semanticTokenScopes": [
15691575
{
15701576
"language": "lua",
@@ -1602,6 +1608,9 @@
16021608
"keyword.declaration": [
16031609
"keyword.local.lua"
16041610
],
1611+
"keyword.documentation": [
1612+
"storage.type.annotation.lua"
1613+
],
16051614
"keyword.readonly": [
16061615
"constant.language.lua"
16071616
],
@@ -1687,12 +1696,6 @@
16871696
"vscode": "^1.61.0"
16881697
},
16891698
"icon": "images/logo.png",
1690-
"jsonValidation": [
1691-
{
1692-
"fileMatch": ".luarc.json",
1693-
"url": "./setting/schema.json"
1694-
}
1695-
],
16961699
"keywords": [
16971700
"Lua",
16981701
"IntelliSense",

package/package.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ return {
2828
"onWebviewPanel:lua-doc",
2929
"onCommand:extension.lua.doc",
3030
},
31-
jsonValidation = {
32-
{
33-
fileMatch = ".luarc.json",
34-
url = "./setting/schema.json",
35-
},
36-
},
3731
main = "./client/out/extension",
3832
contributes = {
3933
configuration = {
@@ -46,7 +40,13 @@ return {
4640
language = "lua",
4741
scopes = require 'package.semanticTokenScope',
4842
}
49-
}
43+
},
44+
jsonValidation = {
45+
{
46+
fileMatch = ".luarc.json",
47+
url = "./setting/schema.json",
48+
},
49+
},
5050
},
5151
capabilities = {
5252
untrustedWorkspaces = {

0 commit comments

Comments
 (0)