Skip to content

Commit aa0beb8

Browse files
committed
Enabled killing of vue-cli process after debugging stopped
1 parent 61fd2d5 commit aa0beb8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.vscode/launch.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"program": "${workspaceFolder}/bin/Debug/net5.0/AspNetCoreVueStarter.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}",
16+
// this will kill any stray vue-cli processes, as the .NET app can't shut them down when it is killed by the debugger
17+
"postDebugTask": "kill",
1618
"stopAtEntry": false,
1719
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
1820
"serverReadyAction": {

.vscode/tasks.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@
3737
"/consoleloggerparameters:NoSummary"
3838
],
3939
"problemMatcher": "$msCompile"
40+
},
41+
{
42+
"label": "kill",
43+
"command": "dotnet",
44+
"type": "process",
45+
"args": [
46+
"run",
47+
"${workspaceFolder}/bin/Debug/net5.0/AspNetCoreVueStarter.dll",
48+
"/mode:kill"
49+
],
50+
"problemMatcher": []
4051
}
4152
]
4253
}

0 commit comments

Comments
 (0)