Added VSCode configuration
- OpenRA PR 18280 - "Add support for Visual Studio Code. " and its follow-ups 18786, 18954, 19026, 19379, 19785, 19787, 19933, 20003. - Added launch profile for the Utility and a VSCode task to run it - OpenRA PR 20009.
This commit is contained in:
parent
22c5ed3f83
commit
7c17829b96
47
.vscode/launch.json
vendored
47
.vscode/launch.json
vendored
@ -1,21 +1,30 @@
|
|||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Mod SDK Example",
|
"name": "Launch (Example)",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"program": "${workspaceRoot}/engine/bin/OpenRA.dll",
|
||||||
"program": "${workspaceRoot}/engine/bin/OpenRA.dll",
|
"args": [
|
||||||
"windows": {
|
"Game.Mod=example",
|
||||||
"program": "${workspaceRoot}/engine/bin/OpenRA.exe",
|
"Engine.EngineDir=${workspaceRoot}/engine",
|
||||||
},
|
"Engine.ModSearchPaths=${workspaceRoot}/mods, ${workspaceRoot}/engine/mods",
|
||||||
"args": [
|
"Debug.DisplayDeveloperSettings=true",
|
||||||
"Engine.EngineDir=${workspaceRoot}/engine",
|
],
|
||||||
"Engine.ModSearchPaths=${workspaceRoot}/mods",
|
"preLaunchTask": "build",
|
||||||
"Game.Mod=example",
|
},
|
||||||
"Debug.DisplayDeveloperSettings=true",
|
{
|
||||||
]
|
"name": "Launch Utility",
|
||||||
},
|
"type": "coreclr",
|
||||||
]
|
"request": "launch",
|
||||||
|
"program": "${workspaceRoot}/engine/bin/OpenRA.Utility.dll",
|
||||||
|
"args": ["example", "--docs", "{DEV_VERSION}"],
|
||||||
|
"env": {
|
||||||
|
"ENGINE_DIR": "${workspaceRoot}/engine",
|
||||||
|
"MOD_SEARCH_PATHS": "${workspaceRoot}/mods, ${workspaceRoot}/engine/mods"
|
||||||
|
},
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
46
.vscode/tasks.json
vendored
46
.vscode/tasks.json
vendored
@ -1,13 +1,37 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "build",
|
"label": "build",
|
||||||
"command": "make",
|
"command": "make",
|
||||||
"args": ["all"],
|
"args": ["all", "CONFIGURATION=Debug"],
|
||||||
"windows": {
|
"windows": {
|
||||||
"command": "make.cmd"
|
"command": "make.cmd"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
|
"label": "Run Utility",
|
||||||
|
"command": "dotnet ${workspaceRoot}/engine/bin/OpenRA.Utility.dll ${input:modId} ${input:command}",
|
||||||
|
"type": "shell",
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"ENGINE_DIR": "${workspaceRoot}/engine",
|
||||||
|
"MOD_SEARCH_PATHS": "${workspaceRoot}/mods,${workspaceRoot}/engine/mods"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"id": "modId",
|
||||||
|
"description": "ID of the mod to run",
|
||||||
|
"default": "all",
|
||||||
|
"type": "promptString"
|
||||||
|
}, {
|
||||||
|
"id": "command",
|
||||||
|
"description": "Name of the command + parameters",
|
||||||
|
"default": "",
|
||||||
|
"type": "promptString"
|
||||||
|
},
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
5
omnisharp.json
Normal file
5
omnisharp.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"RoslynExtensionsOptions": {
|
||||||
|
"enableAnalyzersSupport": true
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user