From a789c5bb5533b844b1eade2957fcc7e4e35a5059 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 30 Dec 2022 11:43:41 +0500 Subject: [PATCH] chore: add launch config for vscode --- .vscode/launch.json | 68 +++++++++++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 41 +++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..33eeeb0 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,68 @@ +{ + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Notesnook.API Server", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build-notesnook", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/Notesnook.API/bin/Debug/net7.0/linux-x64/Notesnook.API.dll", + "args": [], + "cwd": "${workspaceFolder}/Notesnook.API", + "stopAtEntry": false, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + { + "name": "Launch Identity Server", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build-identity", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/Streetwriters.Identity/bin/Debug/net7.0/linux-x64/Streetwriters.Identity.dll", + "args": [], + "cwd": "${workspaceFolder}/Streetwriters.Identity", + "stopAtEntry": false, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + { + "name": "Launch Messenger Server", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build-messenger", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/Streetwriters.Messenger/bin/Debug/net7.0/linux-x64/Streetwriters.Messenger.dll", + "args": [], + "cwd": "${workspaceFolder}/Streetwriters.Messenger", + "stopAtEntry": false, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ], + "compounds": [ + { + "stopAll": true, + "name": "Notesnook", + "configurations": [ + "Launch Identity Server", + "Launch Messenger Server", + "Launch Notesnook.API Server", + ], + "preLaunchTask": "" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..15fc5e0 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build-notesnook", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/Notesnook.API/Notesnook.API.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "build-identity", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/Streetwriters.Identity/Streetwriters.Identity.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "build-messenger", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/Streetwriters.Messenger/Streetwriters.Messenger.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + ] +}