From b40dd468714341aa16e9e9a91f9f3301eac0ee10 Mon Sep 17 00:00:00 2001 From: "M.K. Safi" Date: Fri, 24 Jul 2020 10:13:34 -0700 Subject: [PATCH 1/6] Check-in VS Code debug config files --- .gitignore | 2 +- .vscode/launch.json | 36 ++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index fbf55eb42..92d083db1 100644 --- a/.gitignore +++ b/.gitignore @@ -292,5 +292,5 @@ __pycache__/ BTCPayServer/wwwroot/bundles/* !BTCPayServer/wwwroot/bundles/.gitignore -.vscode +.vscode/settings.json BTCPayServer/testpwd diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..b9cbedc8a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +{ + // 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": ".NET Core Launch (web)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/BTCPayServer/bin/Debug/netcoreapp3.1/BTCPayServer.dll", + "args": [], + "cwd": "${workspaceFolder}/BTCPayServer", + "stopAtEntry": false, + // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + } + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": "${command:pickProcess}" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..1f89fbf45 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/BTCPayServer/BTCPayServer.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/BTCPayServer/BTCPayServer.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "${workspaceFolder}/BTCPayServer/BTCPayServer.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file From 272de60f9f41b2c4888662cc4819e75e2e73027e Mon Sep 17 00:00:00 2001 From: "M.K. Safi" Date: Fri, 24 Jul 2020 10:15:31 -0700 Subject: [PATCH 2/6] Edit `.gitignore` --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 92d083db1..c5b4fa063 100644 --- a/.gitignore +++ b/.gitignore @@ -292,5 +292,7 @@ __pycache__/ BTCPayServer/wwwroot/bundles/* !BTCPayServer/wwwroot/bundles/.gitignore -.vscode/settings.json +.vscode +!.vscode/launch.json +!.vscode/tasks.json BTCPayServer/testpwd From 22f22c0fa0176abf3872d500c1946513397b9807 Mon Sep 17 00:00:00 2001 From: "M.K. Safi" Date: Fri, 24 Jul 2020 12:53:36 -0700 Subject: [PATCH 3/6] Set `logging.moduleLoad` to `false` --- .vscode/launch.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index b9cbedc8a..626ec3a90 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -24,6 +24,9 @@ }, "sourceFileMap": { "/Views": "${workspaceFolder}/Views" + }, + "logging": { + "moduleLoad": false } }, { From 97b7d920cb230ab615cb0f50fe63b68496826a23 Mon Sep 17 00:00:00 2001 From: "M.K. Safi" Date: Sat, 25 Jul 2020 10:04:33 -0700 Subject: [PATCH 4/6] Check-in `.vscode/extensions.json` --- .gitignore | 3 ++- .vscode/extensions.json | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .vscode/extensions.json diff --git a/.gitignore b/.gitignore index c5b4fa063..5957b2905 100644 --- a/.gitignore +++ b/.gitignore @@ -292,7 +292,8 @@ __pycache__/ BTCPayServer/wwwroot/bundles/* !BTCPayServer/wwwroot/bundles/.gitignore -.vscode +.vscode/* !.vscode/launch.json !.vscode/tasks.json +!.vscode/extensions.json BTCPayServer/testpwd diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..b6962761f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["ms-dotnettools.csharp"] +} From 1f3f456123af020fb68cae6d62fd1973585dc46b Mon Sep 17 00:00:00 2001 From: "M.K. Safi" Date: Sat, 25 Jul 2020 10:07:47 -0700 Subject: [PATCH 5/6] Fix JSON indentations --- .vscode/launch.json | 12 ++++++------ .vscode/tasks.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 626ec3a90..1e6f2371c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,9 +1,9 @@ { - // 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": [ + // 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": ".NET Core Launch (web)", "type": "coreclr", @@ -36,4 +36,4 @@ "processId": "${command:pickProcess}" } ] -} \ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1f89fbf45..0c09b3f3a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -39,4 +39,4 @@ "problemMatcher": "$msCompile" } ] -} \ No newline at end of file +} From 60157eb70cff47232f2c28c22a0bbf1b86ba7b20 Mon Sep 17 00:00:00 2001 From: "M.K. Safi" Date: Sat, 25 Jul 2020 10:11:30 -0700 Subject: [PATCH 6/6] Remove .NET Core Attach debug configurations --- .vscode/launch.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1e6f2371c..83182cff2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -28,12 +28,6 @@ "logging": { "moduleLoad": false } - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach", - "processId": "${command:pickProcess}" } ] }