From c158bd4cc112938785762db3265e44781046e30a Mon Sep 17 00:00:00 2001 From: namadabu <41395116+namadabu@users.noreply.github.com> Date: Tue, 24 Nov 2020 10:09:54 -0800 Subject: [PATCH] Update vscode launch settings (#1483) --- .vscode/launch.json | 47 +++++++++++++++++++++++++++++++++++++++++++-- .vscode/tasks.json | 18 +++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 2be5e238c..917365acf 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -38,6 +38,7 @@ "SqlServer:AllowDatabaseCreation": "true", "SqlServer:ConnectionString": "server=(local);Initial Catalog=FHIR_R4;Integrated Security=true", "SqlServer:Initialize": "true", + "SqlServer:SchemaOptions:AutomaticUpdatesEnabled": "true", "TestAuthEnvironment:FilePath": "..//..//testauthenvironment.json", }, "sourceFileMap": { @@ -52,7 +53,7 @@ // If you have changed target frameworks, make sure to update the program path. "program": "${workspaceFolder}/src/Microsoft.Health.Fhir.Stu3.Web/bin/Debug/netcoreapp3.1/Microsoft.Health.Fhir.Stu3.Web.dll", "args": [], - "cwd": "${workspaceFolder}/src/Microsoft.Health.Fhir.R4.Web", + "cwd": "${workspaceFolder}/src/Microsoft.Health.Fhir.Stu3.Web", "stopAtEntry": false, "env": { "ASPNETCORE_ENVIRONMENT": "Development", @@ -70,13 +71,14 @@ // If you have changed target frameworks, make sure to update the program path. "program": "${workspaceFolder}/src/Microsoft.Health.Fhir.Stu3.Web/bin/Debug/netcoreapp3.1/Microsoft.Health.Fhir.Stu3.Web.dll", "args": [], - "cwd": "${workspaceFolder}/src/Microsoft.Health.Fhir.R4.Web", + "cwd": "${workspaceFolder}/src/Microsoft.Health.Fhir.Stu3.Web", "stopAtEntry": false, "env": { "ASPNETCORE_ENVIRONMENT": "Development", "DataStore": "SqlServer", "SqlServer:AllowDatabaseCreation": "true", "SqlServer:ConnectionString": "server=(local);Initial Catalog=FHIR_STU3;Integrated Security=true", + "SqlServer:SchemaOptions:AutomaticUpdatesEnabled": "true", "SqlServer:Initialize": "true", "TestAuthEnvironment:FilePath": "..//..//testauthenvironment.json", }, @@ -84,6 +86,47 @@ "/Views": "${workspaceFolder}/Views" } }, + { + "name": "R5 Cosmos DB", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "buildR5", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/src/Microsoft.Health.Fhir.R5.Web/bin/Debug/netcoreapp3.1/Microsoft.Health.Fhir.R5.Web.dll", + "args": [], + "cwd": "${workspaceFolder}/src/Microsoft.Health.Fhir.R5.Web", + "stopAtEntry": false, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development", + "DataStore": "CosmosDb" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + } + }, + { + "name": "R5 SQL Server", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "buildR5", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/src/Microsoft.Health.Fhir.R5.Web/bin/Debug/netcoreapp3.1/Microsoft.Health.Fhir.R5.Web.dll", + "args": [], + "cwd": "${workspaceFolder}/src/Microsoft.Health.Fhir.R5.Web", + "stopAtEntry": false, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development", + "DataStore": "SqlServer", + "SqlServer:AllowDatabaseCreation": "true", + "SqlServer:ConnectionString": "server=(local);Initial Catalog=FHIR_R5;Integrated Security=true", + "SqlServer:Initialize": "true", + "SqlServer:SchemaOptions:AutomaticUpdatesEnabled": "true", + "TestAuthEnvironment:FilePath": "..//..//testauthenvironment.json", + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + } + }, { "name": ".NET Core Attach", "type": "coreclr", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 0f67e30db..e69ce1e6d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -55,6 +55,24 @@ "reveal": "silent" }, "problemMatcher": "$msCompile" + }, + { + "label": "buildR5", + "command": "dotnet", + "type": "shell", + "args": [ + "build", + "${workspaceFolder}/src/Microsoft.Health.Fhir.R5.Web/Microsoft.Health.Fhir.R5.Web.csproj", + // Ask dotnet build to generate full paths for file names. + "/property:GenerateFullPaths=true", + // Do not generate summary otherwise it leads to duplicate errors in Problems panel + "/consoleloggerparameters:NoSummary", + ], + "group": "build", + "presentation": { + "reveal": "silent" + }, + "problemMatcher": "$msCompile" } ] }