support: vscode + VINTAGESTORY_DATA env + optional ConfigLib with warning (#1)

Co-authored-by: HoutarouOreki <thezjarek@gmail.com>
Co-committed-by: HoutarouOreki <thezjarek@gmail.com>
This commit is contained in:
2026-03-15 00:18:05 +01:00
committed by Jarosław Zgierski
parent a5f2f8d1ae
commit ec89baded7
5 changed files with 143 additions and 53 deletions

35
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,35 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "check env",
"type": "shell",
"command": "[ -n \"$VINTAGE_STORY\" ] || { echo 'ERROR: VINTAGE_STORY is not set'; exit 1; }; [ -n \"$VINTAGE_STORY_DATA\" ] || { echo 'ERROR: VINTAGE_STORY_DATA is not set'; exit 1; }",
"windows": {
"command": "if (-not $env:VINTAGE_STORY) { Write-Host 'ERROR: VINTAGE_STORY is not set'; exit 1 }; if (-not $env:VINTAGE_STORY_DATA) { Write-Host 'ERROR: VINTAGE_STORY_DATA is not set'; exit 1 }"
},
"problemMatcher": []
},
{
"label": "build mod",
"command": "dotnet",
"type": "process",
"dependsOn": ["check env"],
"dependsOrder": "sequence",
"options": {
"env": {
"VINTAGE_STORY": "${env:VINTAGE_STORY}"
}
},
"args": [
"build",
"${workspaceFolder}/ChestPreview/ChestPreview/ChestPreview.csproj",
"-c",
"Debug",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
}
]
}