fix: trace-hook.ps1 - Copilot hooks under PowerShell on Windows no longer open the choose-an-app dialog (#164)
Files changed: - CHANGES.md - EVALS.md - VERSION - tools/README.md - tools/chemenu/tests/test_preflight.py - tools/chemenu/tests/test_preflight_pwsh.py - tools/trace-hook - tools/trace-hook.ps1
This commit is contained in:
1 parent
d6e973c3ce
commit
9d06050338
8 files changed
+119
-6
No files matched your search
@@ -16,6 +16,9 @@
|
||||
#
|
||||
# No venv yet - before the preflight has run - means no trace, silently. A hook
|
||||
# must never fail the call it observes.
|
||||
#
|
||||
# PowerShell on Windows never reaches this file: it resolves the same string to
|
||||
# trace-hook.ps1 next to it, which does the same.
|
||||
DIR=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P) || exit 0
|
||||
if [ -x "$DIR/.venv/bin/python" ]; then
|
||||
exec "$DIR/.venv/bin/python" "$DIR/trace_ingest.py" "$@"
|
||||
|
||||
Reference in new issue
Block a user