Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions samples/hosted-agent/dotnet/agent/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Local Workflow HTTP Server",
"type": "coreclr",
"request": "attach",
"processName": "{{SafeProjectName}}",
"preLaunchTask": "Open Agent Inspector",
"internalConsoleOptions": "neverOpen",
"postDebugTask": "Terminate All Tasks"
}
]
}
87 changes: 87 additions & 0 deletions samples/hosted-agent/dotnet/agent/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Validate prerequisites",
"type": "aitk",
"command": "debug-check-prerequisites",
"args": {
"portOccupancy": [8088]
}
},
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/{{SafeProjectName}}.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile",
"dependsOn": ["Validate prerequisites"]
},
{
"label": "Run Agent/Workflow HTTP Server",
"type": "shell",
"command": "dotnet run --project ${workspaceFolder}/{{SafeProjectName}}.csproj --no-build",
"isBackground": true,
"options": {
"cwd": "${workspaceFolder}",
"env": {
"ASPNETCORE_URLS": "http://localhost:8088",
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"dependsOn": ["build"],
"problemMatcher": {
"pattern": [
{
"regexp": "^.*$",
"file": 0,
"location": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "Application startup complete|running on|Now listening on"
}
}
},
{
"label": "Open Agent Inspector",
"type": "shell",
"command": "echo '${input:openAgentInspector}'",
"presentation": {
"reveal": "never"
},
"dependsOn": ["Run Agent/Workflow HTTP Server"]
},
{
"label": "Terminate All Tasks",
"command": "echo ${input:terminate}",
"type": "shell",
"problemMatcher": []
}
],
"inputs": [
{
"id": "openAgentInspector",
"type": "command",
"command": "ai-mlstudio.openTestTool",
"args": {
"triggeredFrom": "tasks",
"port": 8088
}
},
{
"id": "terminate",
"type": "command",
"command": "workbench.action.tasks.terminate",
"args": "terminateAll"
}
]
}
14 changes: 14 additions & 0 deletions samples/hosted-agent/dotnet/workflow/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Local Workflow HTTP Server",
"type": "coreclr",
"request": "attach",
"processName": "{{SafeProjectName}}",
"preLaunchTask": "Open Agent Inspector",
"internalConsoleOptions": "neverOpen",
"postDebugTask": "Terminate All Tasks"
}
]
}
87 changes: 87 additions & 0 deletions samples/hosted-agent/dotnet/workflow/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Validate prerequisites",
"type": "aitk",
"command": "debug-check-prerequisites",
"args": {
"portOccupancy": [8088]
}
},
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/{{SafeProjectName}}.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile",
"dependsOn": ["Validate prerequisites"]
},
{
"label": "Run Agent/Workflow HTTP Server",
"type": "shell",
"command": "dotnet run --project ${workspaceFolder}/{{SafeProjectName}}.csproj --no-build",
"isBackground": true,
"options": {
"cwd": "${workspaceFolder}",
"env": {
"ASPNETCORE_URLS": "http://localhost:8088",
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"dependsOn": ["build"],
"problemMatcher": {
"pattern": [
{
"regexp": "^.*$",
"file": 0,
"location": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "Application startup complete|running on|Now listening on"
}
}
},
{
"label": "Open Agent Inspector",
"type": "shell",
"command": "echo '${input:openAgentInspector}'",
"presentation": {
"reveal": "never"
},
"dependsOn": ["Run Agent/Workflow HTTP Server"]
},
{
"label": "Terminate All Tasks",
"command": "echo ${input:terminate}",
"type": "shell",
"problemMatcher": []
}
],
"inputs": [
{
"id": "openAgentInspector",
"type": "command",
"command": "ai-mlstudio.openTestTool",
"args": {
"triggeredFrom": "tasks",
"port": 8088
}
},
{
"id": "terminate",
"type": "command",
"command": "workbench.action.tasks.terminate",
"args": "terminateAll"
}
]
}