File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2727 "r.lsp.diagnostics" : false ,
2828 "r.plot.useHttpgd" : true ,
2929 "r.rpath.linux" : " /usr/bin/R" ,
30- "r.rterm.linux" : " /workspaces/r-dev-env/scripts/launch_r.sh " ,
30+ "r.rterm.linux" : " /usr/bin/R " ,
3131 "terminal.integrated.sendKeybindingsToShell" : true ,
3232 "svn.multipleFolders.enabled" : true ,
3333 "workbench.editorAssociations" : {
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ if [ -f "$DEVCONTAINER_JSON" ]; then
3737 jq ' .customizations.vscode.settings' " $DEVCONTAINER_JSON " > " $VSCODE_DIR /settings.json"
3838fi
3939
40+ # Update r.rterm.linux setting to use the launch_r.sh script with full dynamic path
41+ if [ -f " $VSCODE_DIR /settings.json" ]; then
42+ tmpfile=" ${VSCODE_DIR/ settings.json} .tmp.$$ "
43+ jq --arg rterm " $WORK_DIR /scripts/launch_r.sh" ' ."r.rterm.linux"=$rterm' " $VSCODE_DIR /settings.json" > " $tmpfile " && mv " $tmpfile " " $VSCODE_DIR /settings.json"
44+ fi
45+
4046# Build the ptrace helper library
4147gcc -shared -fPIC -o " $WORK_DIR /scripts/allow_ptrace.so" " $WORK_DIR /scripts/allow_ptrace.c"
4248
You can’t perform that action at this time.
0 commit comments