File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed
tutorials/messages_api-sms/ws Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11{
22 "enabled" : true ,
3- "startupfiles" : [
4- " send-sms.js"
5- ]
3+ "startupfiles" : [" send-sms.js" ]
64}
Original file line number Diff line number Diff line change 11{
22 "files.exclude" : {
33 "**/.DS_Store" : true ,
4+ ".vscode/" : true ,
45 "setup.json" : true ,
56 "vcr.yml" : true ,
67 },
7- "vs-browser.url" : " https://neru-febe6726-messages-api- sms-0-1.euw1.runtime.vonage.cloud " ,
8+ "vs-browser.url" : " https://Vonage-Community.github.io/tutorial-interactive_tutorials/tutorials/messages_api- sms/0.2 " ,
89 "vs-browser.reload.onSave" : false ,
910 "workbench.startupEditor" : " none"
1011}
Original file line number Diff line number Diff line change 3939 "label" : " Run" ,
4040 "dependsOn" : [
4141 " ExportEnv" ,
42- " OpenBroswer " ,
42+ " OpenBrowser " ,
4343 " OpenTerminal" ,
4444 " CleanUp"
4545 ],
Original file line number Diff line number Diff line change 1919SLUG=$( jq -r ' .slug' " $CONFIG_FILE " )
2020VERSION=$( jq -r ' .version' " $CONFIG_FILE " )
2121FILES=$( jq -r ' .files[]' " $CONFIG_FILE " )
22- OPEN_FILE=$( jq -r ' .openFile' " $CONFIG_FILE " )
2322
2423# Create files from the "files" array
2524for FILE in $FILES ; do
4544OFOS_FILE=" .vscode/ofos.json"
4645if [ -f " $OFOS_FILE " ]; then
4746 TEMP_FILE=$( mktemp)
48- sed " s|<FILE>|$OPEN_FILE |" " $OFOS_FILE " > " $TEMP_FILE " && mv " $TEMP_FILE " " $OFOS_FILE "
49- echo " Updated $OFOS_FILE with openFile: $OPEN_FILE "
47+ FILES_ARRAY=$( printf ' "%s",' $FILES )
48+ FILES_ARRAY=" [${FILES_ARRAY% ,} ]"
49+ sed " s|<FILES>|$FILES_ARRAY |" " $OFOS_FILE " > " $TEMP_FILE " && mv " $TEMP_FILE " " $OFOS_FILE "
50+ echo " Updated $OFOS_FILE with files: $FILES_ARRAY "
5051else
5152 echo " $OFOS_FILE not found."
5253fi
Original file line number Diff line number Diff line change 44 "files" : [
55 " send-sms.js"
66 ],
7- "openFile" : " send-sms.js" ,
87 "panels" : [
98 " terminal" ,
109 " browser"
1110 ],
12- "version" : " 0.1 "
11+ "version" : " 0.2 "
1312}
You can’t perform that action at this time.
0 commit comments