Skip to content

Commit b8c2b99

Browse files
hassoncsChris Hasson
andauthored
feat(config): allow user to specify launch directory for extension (#2190)
Adds an input prompt to the `.vscode/launch.json` configuration, allowing the user to specify the directory the development extension will open in. This provides more flexibility for testing and development workflows. Co-authored-by: Chris Hasson <[email protected]>
1 parent 9306919 commit b8c2b99

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.vscode/launch.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"args": [
3434
"--extensionDevelopmentPath=${workspaceFolder}/src",
3535
"--disable-extensions",
36-
"${workspaceFolder}/launch"
36+
"${input:extensionLaunchDir}"
3737
],
3838
"sourceMaps": true,
3939
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
@@ -45,5 +45,13 @@
4545
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
4646
"presentation": { "hidden": false, "group": "tasks", "order": 1 }
4747
}
48+
],
49+
"inputs": [
50+
{
51+
"id": "extensionLaunchDir",
52+
"description": "Directory the dev extension will open in",
53+
"default": "${workspaceFolder}/launch",
54+
"type": "promptString"
55+
}
4856
]
4957
}

0 commit comments

Comments
 (0)