Skip to content

Commit 856c9ea

Browse files
Add launch and tasks for VSCode users.
1 parent b8074ea commit 856c9ea

File tree

2 files changed

+123
-3
lines changed

2 files changed

+123
-3
lines changed

.vscode/launch.json

+82-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
// CLIENT CONFIGS
78
{
89
"name": "Client",
910
"type": "coreclr",
@@ -14,14 +15,56 @@
1415
"stopAtEntry": false
1516
},
1617
{
17-
"name": "Client (Compatibility renderer)",
18+
"name": "Client (Tools)",
19+
"type": "coreclr",
20+
"request": "launch",
21+
"preLaunchTask": "build (Tools)",
22+
"program": "${workspaceFolder}/bin/Content.Client/Content.Client.dll",
23+
"args": [],
24+
"console": "internalConsole",
25+
"stopAtEntry": false
26+
},
27+
{
28+
"name": "Client (Release)",
29+
"type": "coreclr",
30+
"request": "launch",
31+
"preLaunchTask": "build (Release)",
32+
"program": "${workspaceFolder}/bin/Content.Client/Content.Client.dll",
33+
"args": [],
34+
"console": "internalConsole",
35+
"stopAtEntry": false
36+
},
37+
// COMPATABILITY RENDERERS
38+
{
39+
"name": "Client (Compatibility Renderer)",
1840
"type": "coreclr",
1941
"request": "launch",
2042
"program": "${workspaceFolder}/bin/Content.Client/Content.Client.dll",
2143
"args": "--cvar display.compat=true",
2244
"console": "internalConsole",
2345
"stopAtEntry": false
2446
},
47+
{
48+
"name": "Client (Tools) - (Compatability Renderer)",
49+
"type": "coreclr",
50+
"request": "launch",
51+
"preLaunchTask": "build (Tools)",
52+
"program": "${workspaceFolder}/bin/Content.Client/Content.Client.dll",
53+
"args": ["--cvar display.compat=true"],
54+
"console": "internalConsole",
55+
"stopAtEntry": false
56+
},
57+
{
58+
"name": "Client (Release) - (Compatability Renderer)",
59+
"type": "coreclr",
60+
"request": "launch",
61+
"preLaunchTask": "build (Release)",
62+
"program": "${workspaceFolder}/bin/Debug/Content.Client/Content.Client.dll",
63+
"args": ["--cvar display.compat=true"],
64+
"console": "internalConsole",
65+
"stopAtEntry": false
66+
},
67+
// SERVER CONFIGS
2568
{
2669
"name": "Server",
2770
"type": "coreclr",
@@ -31,6 +74,27 @@
3174
"console": "integratedTerminal",
3275
"stopAtEntry": false
3376
},
77+
{
78+
"name": "Server (Tools)",
79+
"type": "coreclr",
80+
"request": "launch",
81+
"preLaunchTask": "build (Tools)",
82+
"program": "${workspaceFolder}/bin/Content.Server/Content.Server.dll",
83+
"args": [],
84+
"console": "internalConsole",
85+
"stopAtEntry": false
86+
},
87+
{
88+
"name": "Server (Release)",
89+
"type": "coreclr",
90+
"request": "launch",
91+
"preLaunchTask": "build (Release)",
92+
"program": "${workspaceFolder}/bin/Content.Server/Content.Server.dll",
93+
"args": [],
94+
"console": "internalConsole",
95+
"stopAtEntry": false
96+
},
97+
// LINTER
3498
{
3599
"name": "YAML Linter",
36100
"type": "coreclr",
@@ -50,6 +114,22 @@
50114
"Client"
51115
],
52116
"preLaunchTask": "build"
117+
},
118+
{
119+
"name": "Server/Client (Tools)",
120+
"configurations": [
121+
"Server (Tools)",
122+
"Client (Tools)"
123+
],
124+
"preLaunchTask": "build (Tools)"
125+
},
126+
{
127+
"name": "Server/Client (Release)",
128+
"configurations": [
129+
"Server (Release)",
130+
"Client (Release)"
131+
],
132+
"preLaunchTask": "build (Release)"
53133
}
54134
]
55-
}
135+
}

.vscode/tasks.json

+41-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,46 @@
2121
},
2222
"problemMatcher": "$msCompile"
2323
},
24+
{
25+
"label": "build (Tools)",
26+
"command": "dotnet",
27+
"type": "shell",
28+
"args": [
29+
"build",
30+
"--configuration",
31+
"Tools",
32+
"/property:GenerateFullPaths=true", // Ask dotnet build to generate full paths for file names.
33+
"/consoleloggerparameters:NoSummary" // Do not generate summary otherwise it leads to duplicate errors in Problems panel
34+
],
35+
"group": {
36+
"kind": "build",
37+
"isDefault": false
38+
},
39+
"presentation": {
40+
"reveal": "silent"
41+
},
42+
"problemMatcher": "$msCompile"
43+
},
44+
{
45+
"label": "build (Release)",
46+
"command": "dotnet",
47+
"type": "shell",
48+
"args": [
49+
"build",
50+
"--configuration",
51+
"Release",
52+
"/property:GenerateFullPaths=true", // Ask dotnet build to generate full paths for file names.
53+
"/consoleloggerparameters:NoSummary" // Do not generate summary otherwise it leads to duplicate errors in Problems panel
54+
],
55+
"group": {
56+
"kind": "build",
57+
"isDefault": false
58+
},
59+
"presentation": {
60+
"reveal": "silent"
61+
},
62+
"problemMatcher": "$msCompile"
63+
},
2464
{
2565
"label": "build-yaml-linter",
2666
"command": "dotnet",
@@ -34,4 +74,4 @@
3474
"problemMatcher": "$msCompile"
3575
}
3676
]
37-
}
77+
}

0 commit comments

Comments
 (0)