diff --git a/samples/hosted-agent/dotnet/agent/.vscode/launch.json b/samples/hosted-agent/dotnet/agent/.vscode/launch.json new file mode 100644 index 0000000..d68fbd1 --- /dev/null +++ b/samples/hosted-agent/dotnet/agent/.vscode/launch.json @@ -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" + } + ] +} diff --git a/samples/hosted-agent/dotnet/agent/.vscode/tasks.json b/samples/hosted-agent/dotnet/agent/.vscode/tasks.json new file mode 100644 index 0000000..03d8378 --- /dev/null +++ b/samples/hosted-agent/dotnet/agent/.vscode/tasks.json @@ -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" + } + ] +} diff --git a/samples/hosted-agent/dotnet/workflow/.vscode/launch.json b/samples/hosted-agent/dotnet/workflow/.vscode/launch.json new file mode 100644 index 0000000..d68fbd1 --- /dev/null +++ b/samples/hosted-agent/dotnet/workflow/.vscode/launch.json @@ -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" + } + ] +} diff --git a/samples/hosted-agent/dotnet/workflow/.vscode/tasks.json b/samples/hosted-agent/dotnet/workflow/.vscode/tasks.json new file mode 100644 index 0000000..03d8378 --- /dev/null +++ b/samples/hosted-agent/dotnet/workflow/.vscode/tasks.json @@ -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" + } + ] +}