Add a VSCode workspace file.

It's currently only configured for editing the XML dialogs. Maybe someday it can be set up to actually build the game using scons.
This commit is contained in:
2025-03-09 12:42:10 -04:00
committed by Celtic Minstrel
parent f747b6a8c9
commit ebb527deff
2 changed files with 56 additions and 0 deletions

3
proj/vscode/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
# Folder local settings are ignored.
# Settings that should be checked in should go in the workspace file.
.vscode/settings.json

View File

@@ -0,0 +1,53 @@
{
"folders": [
{
"path": "../.."
}
],
"extensions": {
"recommendations": [
"redhat.vscode-xml",
"ms-vscode.cpptools",
]
},
"settings": {
"xml.fileAssociations": [
{
"pattern": "scenario.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/scenario.xsd"
},
{
"pattern": "items.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/items.xsd"
},
{
"pattern": "monsters.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/monsters.xsd"
},
{
"pattern": "terrain.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/terrain.xsd"
},
{
"pattern": "town\\d+.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/town.xsd"
},
{
"pattern": "talk\\d+.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/dialogue.xsd"
},
{
"pattern": "out\\d+~\\d+.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/outdoor.xsd"
},
{
"pattern": "rsrc/dialogs/*.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/dialog.xsd"
},
{
"pattern": "rsrc/scenarios/*/dialogs/*.xml",
"systemId": "${workspaceFolder}/rsrc/schemas/dialog.xsd"
}
]
}
}