Skip to content

Commit 5859663

Browse files
authored
Fix F5 debugging: add missing task dependencies to root tasks.json (#33)
* Refactor VS Code configuration: update tasks, remove unused files, and enhance .gitignore for Azurite * Update VS Code settings and tasks: add python virtual environment configuration and fix Windows path separator * Fix an error in the config file
1 parent 52d869e commit 5859663

File tree

8 files changed

+38
-71
lines changed

8 files changed

+38
-71
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,11 @@ cython_debug/
172172

173173
# PyPI configuration file
174174
.pypirc
175+
176+
# Azurite local storage emulator
177+
__azurite_db_*
178+
__blobstorage__/
179+
__queuestorage__/
180+
181+
# Node artifacts (root level)
182+
package-lock.json

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"azureFunctions.deploySubpath": "src",
33
"azureFunctions.scmDoBuildDuringDeployment": true,
4+
"azureFunctions.pythonVenv": ".venv",
45
"azureFunctions.projectLanguage": "Python",
56
"azureFunctions.projectRuntime": "~4",
67
"debug.internalConsoleOptions": "neverOpen",

.vscode/tasks.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
{
5+
"label": "pip install (functions)",
6+
"type": "shell",
7+
"osx": {
8+
"command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
9+
},
10+
"windows": {
11+
"command": "${config:azureFunctions.pythonVenv}/Scripts/python -m pip install -r requirements.txt"
12+
},
13+
"linux": {
14+
"command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
15+
},
16+
"options": {
17+
"cwd": "${workspaceFolder}/src"
18+
},
19+
"problemMatcher": []
20+
},
421
{
522
"type": "func",
623
"label": "func: host start",
@@ -9,7 +26,17 @@
926
"isBackground": true,
1027
"options": {
1128
"cwd": "${workspaceFolder}/src"
12-
}
29+
},
30+
"dependsOn": "func: extensions install"
31+
},
32+
{
33+
"type": "func",
34+
"command": "extensions install",
35+
"dependsOn": "pip install (functions)",
36+
"options": {
37+
"cwd": "${workspaceFolder}/src"
38+
},
39+
"problemMatcher": []
1340
}
1441
]
1542
}

src/.vscode/extensions.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/.vscode/launch.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/.vscode/settings.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/.vscode/tasks.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/app/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@
1414
"noUnusedLocals": true,
1515
"noUnusedParameters": true,
1616
"noFallthroughCasesInSwitch": true
17-
},
18-
"include": ["src"]
17+
}
1918
}

0 commit comments

Comments
 (0)