File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
local * .sh
2
2
settings.json
3
+ settings-extra.json
Original file line number Diff line number Diff line change @@ -179,7 +179,8 @@ the `Ctrl+P` dialog box):
179
179
* Customize per-workspace VS-Code settings the normal way (edit local
180
180
`.vscode/settings.json`, or use `Ctrl+Shift+P` -> "Preferences: Open
181
181
Settings (UI)"). Note that fields that exist in `settings.jsonnet` will get
182
- overwritten when you run the `update` task. Also, comments in your
182
+ overwritten when you run the `update` task. If needed, extra settings can be
183
+ added in `.vscode/settings-extra.json` file. Also, comments in your
183
184
`.vscode/settings.json` will get deleted.
184
185
* **Autostart** commands or codes at VM start time by modifying the content of
185
186
`.vscode/autostart/` (eg: always run tests that exercise the kernel
Original file line number Diff line number Diff line change 1
1
// This is a jsonnet file, to evaluate it on the command-line use
2
2
//
3
- // jsonnet --ext-code-file old_settings=<path to old settings> <path to this file>
3
+ // jsonnet \
4
+ // --ext-code-file old_settings=<path to old settings> \
5
+ // --ext-code-file extra_settings=<path to extra settings> \
6
+ // <path to this file>
4
7
//
5
8
// JSonnet is a superset of JSON. Here we are using a minimal subset of
6
- // JSonnet's extra freatures , see the "External Variables" and "Object
9
+ // JSonnet's extra features , see the "External Variables" and "Object
7
10
// Orientation" section of jsonnet tutorials (plus we use comments).
8
11
std.extVar('old_settings' ) + {
9
12
"files.exclude" : {
@@ -87,4 +90,4 @@ std.extVar('old_settings') + {
87
90
"systemtap-assistant.output" : ".vscode/autostart/tracer.stp" ,
88
91
"systemtap-assistant.deploy-task" : "Build systemtap tracer" ,
89
92
"debug.onTaskErrors" : "debugAnyway"
90
- }
93
+ } + std.extVar( 'extra_settings' )
Original file line number Diff line number Diff line change 457
457
# Seed JSonnet with empty object
458
458
echo " {}" > " settings.json"
459
459
fi
460
+ if [ ! -e " settings-extra.json" ]; then
461
+ # Seed JSonnet with empty object
462
+ echo " {}" > " settings-extra.json"
463
+ fi
460
464
tmp=" $( mktemp --suffix=.json) "
461
- jsonnet settings.jsonnet --ext-code-file old_settings=" settings.json" > " ${tmp} "
465
+ jsonnet settings.jsonnet \
466
+ --ext-code-file old_settings=" settings.json" \
467
+ --ext-code-file extra_settings=" settings-extra.json" > " ${tmp} "
462
468
mv " $tmp " settings.json
463
469
;;
464
470
* )
You can’t perform that action at this time.
0 commit comments