Skip to content

Commit 65b844a

Browse files
committed
Recommend avoiding HeadlessWrapper for language server
1 parent 866e03d commit 65b844a

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

CONTRIBUTING.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,22 @@ If you prefer to not use EmmyLua, the following configuration works well for Sum
231231

232232
```json
233233
{
234-
"Lua.workspace.ignoreDir": [
234+
"Lua.workspace.ignoreDir": [
235235
".vscode",
236+
// these files add things to global that aren't there in normal
237+
// operation
236238
"spec/*",
239+
"src/Export/*",
240+
"src/HeadlessWrapper.lua",
241+
242+
// this has lua 5.3 code which produces errors, but doesn't actually run
237243
"src/runtime/lua/sha1/*",
238-
"src/Export/*"
239244
],
240245
"Lua.diagnostics.disable": ["inject-field"],
241-
"Lua.runtime.version": "LuaJIT"
246+
// disables diagnostics even when you open one of the above
247+
"Lua.diagnostics.ignoredFiles": "Disable",
248+
"Lua.runtime.version": "LuaJIT",
249+
"Lua.workspace.preloadFileSize": 1000
242250
}
243251
```
244252

0 commit comments

Comments
 (0)