Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vscode launch settings #1483

Merged
merged 2 commits into from Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 45 additions & 2 deletions .vscode/launch.json
Expand Up @@ -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": {
Expand All @@ -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",
Expand All @@ -70,14 +71,56 @@
// 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",
},
"sourceFileMap": {
"/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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 nice to have R5 support now too 👍

},
"sourceFileMap": {
Expand Down
18 changes: 18 additions & 0 deletions .vscode/tasks.json
Expand Up @@ -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"
}
]
}
Expand Down