You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Ignore directories within this library",
486
-
"type": "array",
487
-
"default": [],
488
-
"items": {
489
-
"type": "string"
490
-
}
491
-
},
492
-
"ignoreGlobs": {
493
-
"description": "Ignore globs within this library. eg: [\"**/*.lua\"]",
494
-
"type": "array",
495
-
"default": [],
496
-
"items": {
497
-
"type": "string"
498
-
}
499
-
},
500
-
"path": {
501
-
"description": "Library path",
502
-
"type": "string"
503
-
}
504
-
},
505
-
"required": [
506
-
"path"
507
-
]
508
-
},
509
-
"EmmyLibraryItem": {
510
-
"anyOf": [
511
-
{
512
-
"description": "Simple library path string",
513
-
"type": "string"
514
-
},
515
-
{
516
-
"description": "Library configuration with path and ignore rules",
517
-
"$ref": "#/$defs/EmmyLibraryConfig"
518
-
}
519
-
]
520
-
},
521
485
"EmmyrcCodeAction": {
522
486
"type": "object",
523
487
"properties": {
@@ -1100,11 +1064,6 @@
1100
1064
"type": "boolean",
1101
1065
"default": true
1102
1066
},
1103
-
"requireExportGlobal": {
1104
-
"description": "This option limits the visibility of third-party libraries.\n\nWhen enabled, third-party libraries must use `---@export global` annotation to be importable (i.e., no diagnostic errors and visible in auto-import).",
1105
-
"type": "boolean",
1106
-
"default": false
1107
-
},
1108
1067
"requirePath": {
1109
1068
"description": "Whether to enable strict mode require path.",
1110
1069
"type": "boolean",
@@ -1151,7 +1110,7 @@
1151
1110
"type": "array",
1152
1111
"default": [],
1153
1112
"items": {
1154
-
"$ref": "#/$defs/EmmyLibraryItem"
1113
+
"$ref": "#/$defs/EmmyrcWorkspacePathItem"
1155
1114
}
1156
1115
},
1157
1116
"moduleMap": {
@@ -1162,12 +1121,12 @@
1162
1121
"$ref": "#/$defs/EmmyrcWorkspaceModuleMap"
1163
1122
}
1164
1123
},
1165
-
"packageDirs": {
1166
-
"description": "Package directories. Treat the parent directory as a `library`, but only add files from the specified directory.\neg: `/usr/local/share/lua/5.1/module`",
1124
+
"packages": {
1125
+
"description": "Package directories. Can be a string path or an object with path and ignore rules.\nTreat the parent directory as a `library`, but only add files from the specified directory.\neg: [\"/usr/local/share/lua/5.1/module\"] or [{\"path\": \"/usr/local/share/lua/5.1/module\", \"ignoreDir\": [\"test\"], \"ignoreGlobs\": [\"**/*.spec.lua\"]}]",
1167
1126
"type": "array",
1168
1127
"default": [],
1169
1128
"items": {
1170
-
"type": "string"
1129
+
"$ref": "#/$defs/EmmyrcWorkspacePathItem"
1171
1130
}
1172
1131
},
1173
1132
"preloadFileSize": {
@@ -1207,6 +1166,46 @@
1207
1166
"pattern",
1208
1167
"replace"
1209
1168
]
1169
+
},
1170
+
"EmmyrcWorkspacePathConfig": {
1171
+
"type": "object",
1172
+
"properties": {
1173
+
"ignoreDir": {
1174
+
"description": "Ignore directories within this entry",
1175
+
"type": "array",
1176
+
"default": [],
1177
+
"items": {
1178
+
"type": "string"
1179
+
}
1180
+
},
1181
+
"ignoreGlobs": {
1182
+
"description": "Ignore globs within this entry. eg: [\"**/*.lua\"]",
0 commit comments