Skip to content

Commit 79fe6e2

Browse files
committed
Add convenience Makefile target for instantiating the VS Code workspace
1 parent e6f9998 commit 79fe6e2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.vscode/settings.json.tmpl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@
2727
// Alternatively, dependencies can be obtained from different locations
2828
// and GPR_PROJECT_PATH can be set prior to invoking VS Code, making them
2929
// also visible if not overwritten in the subprojects/ directory.
30-
"GPR_PROJECT_PATH": "${workspaceFolder}/subprojects/VSS/gnat:${workspaceFolder}/subprojects/gnatdoc/gnat:${workspaceFolder}/subprojects/libadalang-tools/src:${workspaceFolder}/subprojects/spawn/gnat:${workspaceFolder}/subprojects/stubs:${workspaceFolder}/subprojects/prefix/share/gpr:${env:GPR_PROJECT_PATH}"
30+
"GPR_PROJECT_PATH": "${workspaceFolder}/subprojects/VSS/gnat:${workspaceFolder}/subprojects/gnatdoc/gnat:${workspaceFolder}/subprojects/libadalang-tools/src:${workspaceFolder}/subprojects/lal-refactor/gnat:${workspaceFolder}/subprojects/spawn/gnat:${workspaceFolder}/subprojects/stubs:${workspaceFolder}/subprojects/prefix/share/gpr:${env:GPR_PROJECT_PATH}",
31+
"LIBRARY_TYPE": "static"
32+
},
33+
"terminal.integrated.env.linux": {
34+
"GPR_PROJECT_PATH": "${workspaceFolder}/subprojects/VSS/gnat:${workspaceFolder}/subprojects/gnatdoc/gnat:${workspaceFolder}/subprojects/libadalang-tools/src:${workspaceFolder}/subprojects/lal-refactor/gnat:${workspaceFolder}/subprojects/spawn/gnat:${workspaceFolder}/subprojects/stubs:${workspaceFolder}/subprojects/prefix/share/gpr:${env:GPR_PROJECT_PATH}",
35+
"LIBRARY_TYPE": "static"
36+
},
37+
"terminal.integrated.env.windows": {
38+
"GPR_PROJECT_PATH": "${workspaceFolder}/subprojects/VSS/gnat:${workspaceFolder}/subprojects/gnatdoc/gnat:${workspaceFolder}/subprojects/libadalang-tools/src:${workspaceFolder}/subprojects/lal-refactor/gnat:${workspaceFolder}/subprojects/spawn/gnat:${workspaceFolder}/subprojects/stubs:${workspaceFolder}/subprojects/prefix/share/gpr:${env:GPR_PROJECT_PATH}",
39+
"LIBRARY_TYPE": "static"
3140
},
3241
// To develop the VS Code extension, it is recommended to open the workspace
3342
// defined at integration/vscode/ada. Nonetheless, this configuration allows

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,7 @@ check: all
162162

163163
deploy: check
164164
integration/$(USER)/deploy.sh $(NODE_PLATFORM)
165+
166+
# Instantiates the VS Code workspace with default settings
167+
configure:
168+
cp .vscode/settings.json.tmpl .vscode/settings.json

0 commit comments

Comments
 (0)