2023-01-19 01:47:14 +00:00
|
|
|
{
|
2023-01-24 18:45:28 +00:00
|
|
|
// Luau - disable Roblox features, enable Lune typedefs & requires
|
|
|
|
"luau-lsp.sourcemap.enabled": false,
|
2023-01-19 01:47:14 +00:00
|
|
|
"luau-lsp.types.roblox": false,
|
|
|
|
"luau-lsp.types.definitionFiles": ["luneTypes.d.luau"],
|
2023-01-27 00:36:06 +00:00
|
|
|
"luau-lsp.types.documentationFiles": ["luneDocs.json"],
|
2023-01-24 18:45:28 +00:00
|
|
|
"luau-lsp.require.mode": "relativeToFile",
|
2023-03-17 09:44:21 +00:00
|
|
|
// Luau - ignore type defs file in docs dir and dev scripts we use
|
|
|
|
"luau-lsp.ignoreGlobs": [
|
|
|
|
"docs/*.d.luau",
|
2023-03-22 15:42:07 +00:00
|
|
|
"packages/lib-roblox/scripts/*.luau",
|
|
|
|
"tests/roblox/rbx-test-files/**/*.lua",
|
|
|
|
"tests/roblox/rbx-test-files/**/*.luau"
|
2023-03-17 09:44:21 +00:00
|
|
|
],
|
2023-01-24 18:45:28 +00:00
|
|
|
// Rust
|
2023-01-19 02:11:47 +00:00
|
|
|
"rust-analyzer.check.command": "clippy",
|
2023-01-24 18:45:28 +00:00
|
|
|
// Formatting
|
2023-01-19 01:47:14 +00:00
|
|
|
"editor.formatOnSave": true,
|
|
|
|
"stylua.searchParentDirectories": true,
|
|
|
|
"prettier.tabWidth": 2,
|
|
|
|
"[luau][lua]": {
|
|
|
|
"editor.defaultFormatter": "JohnnyMorganz.stylua"
|
|
|
|
},
|
|
|
|
"[json][jsonc][markdown][yaml]": {
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
|
|
},
|
|
|
|
"[rust]": {
|
|
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
2023-02-26 15:09:17 +00:00
|
|
|
},
|
|
|
|
// Ignore temp / gitignored files while editing for a more focused
|
|
|
|
// workspace, this can be deleted or overridden safely if needed
|
|
|
|
"files.exclude": {
|
|
|
|
// Defaults
|
|
|
|
"**/.git": true,
|
|
|
|
"**/.svn": true,
|
|
|
|
"**/.hg": true,
|
|
|
|
"**/CVS": true,
|
|
|
|
"**/.DS_Store": true,
|
|
|
|
"**/Thumbs.db": true,
|
|
|
|
// Autogenerate dirs
|
|
|
|
"bin": true,
|
|
|
|
"target": true,
|
2023-03-24 10:46:22 +00:00
|
|
|
"gitbook": true
|
2023-01-19 01:47:14 +00:00
|
|
|
}
|
|
|
|
}
|