diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..ef291e439 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,59 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Deploy and Configure", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "deploy to _layout", + "program": "${workspaceFolder}/_layout/bin/Runner.Listener", + "args": ["configure"], + "cwd": "${workspaceFolder}/src", + "console": "integratedTerminal", + "requireExactSource": false, + }, + { + "name": "Build and Run", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build to _layout", + "program": "${workspaceFolder}/_layout/bin/Runner.Listener", + "args": ["run"], + "cwd": "${workspaceFolder}/src", + "console": "integratedTerminal", + "requireExactSource": false, + }, + { + "name": "Run", + "type": "coreclr", + "request": "launch", + "program": "${workspaceFolder}/_layout/bin/Runner.Listener", + "args": ["run"], + "cwd": "${workspaceFolder}/src", + "stopAtEntry": true, + "console": "integratedTerminal", + "requireExactSource": false, + }, + { + "name": "Configure", + "type": "coreclr", + "request": "launch", + "program": "${workspaceFolder}/_layout/bin/Runner.Listener", + "args": ["configure"], + "cwd": "${workspaceFolder}/src", + "stopAtEntry": true, + "console": "integratedTerminal", + "requireExactSource": false, + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}", + "requireExactSource": false, + }, + ], +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..34681ecd1 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,47 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build listener", + "command": "dotnet", + "type": "process", + "args": [ + "msbuild", + "-t:Build", + "-p:PackageRuntime=\"osx-x64\"", + "-p:BUILDCONFIG=\"Debug\"", + "-p:RunnerVersion=\"2.278.0\"", + "./dir.proj", + ], + "options": { + "cwd": "${workspaceFolder}/src" + }, + "problemMatcher": "$msCompile", + + }, + { + "label": "deploy to _layout", + "detail": "Build and Deploy all projects, scripts and external dependencies to _layout from src (run this the first time or after deleting _layout)", + "command": "./dev.sh", + "windows": { + "command": "dev.cmd" + }, + "args": ["layout"], + "options": { + "cwd": "${workspaceFolder}/src" + }, + }, + { + "label": "build to _layout", + "detail": "Build and Deploy all projects to _layout from src (run this on code change)", + "command": "./dev.sh", + "windows": { + "command": "dev.cmd" + }, + "args": ["build"], + "options": { + "cwd": "${workspaceFolder}/src" + }, + } + ], +} \ No newline at end of file