anchor.diff:      fi
       ${lib.optionalString useLocalExtensions ''
         # Use local extensions
  -      if [ -d ~/.vscode/extensions ]; then
  -        if ! test -L "~/.vscode-server/extensions"; then
  -          mkdir -p ~/.vscode-server
  -          ln -s ~/.vscode/extensions ~/.vscode-server/
  +      if [ -d $HOME/.vscode/extensions ]; then
  +        if ! test -L "$HOME/.vscode-server/extensions"; then
  +          mkdir -p $HOME/.vscode-server
  +          ln -s $HOME/.vscode/extensions $HOME/.vscode-server/
           fi
         fi
       ''}
  
positive.code: , vscode-utils
  , useLocalExtensions ? false}:
  # Note that useLocalExtensions requires that vscode-server is not running
  # on host. If it is, you'll need to remove ~/.vscode-server,
  # and redo the install by running "Connect to host" on client
  
  let
  
negative.code:   # patch runs on remote machine hence use of which
    # links to local node if version is 12
    patch = ''
      f="$HOME/.vscode-server/bin/$COMMIT_ID/node"
      localNodePath=''$(which node)
      if [ -x "''$localNodePath" ]; then
        localNodeVersion=''$(node -v)
  