File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,15 @@ source $(grep -m 1 -e '-env.sh$' store-paths.txt)
2929EOF
3030
3131# This enforce those settings in DevContainer whatever "Settings Sync" user preferences ...
32- RUN bash -ic 'source $HOME/.bashrc && mkdir -p $HOME/.vscode-server/data/Machine/ && \
33- echo -e "{\n \
34- \" haskell.manageHLS\" : \" PATH\" ,\n \
35- \" haskell.serverEnvironment\" : { \" PATH\" : \" $PATH\" },\n \
36- \" haskell.serverExecutablePath\" : \" $(which haskell-language-server)\"\n \
37- }" > $HOME/.vscode-server/data/Machine/settings.json'
32+ # ... VSCode DevContainer and GitHub Codespace does not look for the same settings file ><'
33+ RUN mkdir -p $HOME/.vscode-server/data/Machine/ \
34+ && mkdir -p $HOME/.vscode-remote/data/Machine/ \
35+ && bash -ic 'echo -e "{\n \
36+ \" haskell.manageHLS\" : \" PATH\" ,\n \
37+ \" haskell.serverEnvironment\" : { \" PATH\" : \" $PATH\" },\n \
38+ \" haskell.serverExecutablePath\" : \" $(which haskell-language-server)\"\n \
39+ }" > $HOME/.vscode-server/data/Machine/settings.json' \
40+ && cp $HOME/.vscode-server/data/Machine/settings.json $HOME/.vscode-remote/data/Machine/settings.json
3841
3942# FIXME: Consider moving this script into a Nix `writeShellApplication` trivial builder within the closure ...
4043# ... but that means I should figure it out how to pass to it $COMPILER_NIX_NAME as input?
You can’t perform that action at this time.
0 commit comments