blob: 45b5756a173d4b976d50f988ddf02b604538d837 [file] [log] [blame] [edit]
WORKSPACE=../../engine.code-workspace
# json5 "$WORKSPACE" -s 2 -o engine.code-workspace
# yq eval -P engine.code-workspace > engine-workspace.yaml
yq eval -o=json engine-workspace.yaml > "$WORKSPACE"
temp_file=$(mktemp)
{ echo "// Don't edit directly, see //tools/vscode_workspace for a script"; echo "// that can refresh this from yaml."; cat "$WORKSPACE"; } > "$temp_file" && mv "$temp_file" "$WORKSPACE"