Added vscode settings and launch configurations

This commit is contained in:
Filipe Rodrigues 2022-09-07 16:44:12 +01:00
parent ab5f7326ab
commit 0b5a4f3a95
No known key found for this signature in database
GPG Key ID: A0E31C6EE7CB70F0
3 changed files with 45 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
# IDEs
.vscode
# Documentation
.vscode/factorio
# Logs
factorio-current.log

26
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "factoriomod",
"request": "launch",
"name": "Factorio Mod Debug"
},
{
"type": "factoriomod",
"request": "launch",
"name": "Factorio Mod Debug (Settings & Data)",
"hookSettings": true,
"hookData": true
},
{
"type": "factoriomod",
"request": "launch",
"name": "Factorio Mod Debug (Profile)",
"hookMode": "profile"
}
]
}

17
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
"Lua.diagnostics.globals": [
"mods",
"table_size",
"log",
"localised_print",
"serpent",
"global",
"__DebugAdapter",
"__Profiler",
"data"
],
"Lua.runtime.version": "Lua 5.2",
"Lua.workspace.library": [
".vscode/factorio"
]
}