pw_ide: Continue with bazel command if compile commands generator fails

Change-Id: Icf272bdb07a91d9e512b47bdbd79e790b5a50129
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/290889
Docs-Not-Needed: Asad Memon <asadmemon@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Asad Memon <asadmemon@google.com>
Reviewed-by: Chad Norvell <chadnorvell@google.com>
diff --git a/pw_ide/ts/pigweed_vscode/src/clangd/compileCommandsUtils.ts b/pw_ide/ts/pigweed_vscode/src/clangd/compileCommandsUtils.ts
index 3b80999..d645814 100644
--- a/pw_ide/ts/pigweed_vscode/src/clangd/compileCommandsUtils.ts
+++ b/pw_ide/ts/pigweed_vscode/src/clangd/compileCommandsUtils.ts
@@ -170,11 +170,14 @@
 }
 
 const bazelInterceptorScriptTemplate = `#!/bin/sh
-set -euo pipefail
+set -uo pipefail
 
  if [[ $# -gt 0 && ( "$1" == "build" || "$1" == "run" ) ]]; then
   echo "⏳ Generating compile commands..."
   $BAZEL_REAL run @pigweed//pw_ide/ts/pigweed_vscode:compile_commands_generator_binary -- --target "$*" --cwd "$(pwd)" --bazelCmd "$BAZEL_REAL"
+  if [ $? -ne 0 ]; then
+    echo "⚠️ Compile commands generation failed (exit code $?), continuing..."
+  fi
   $BAZEL_REAL "$@"
 else
   $BAZEL_REAL "$@"