Skip to content

Commit ac0eb31

Browse files
committed
Patch vscode-trace-extension localhost URL handling
* Remove asExternalUri rewriting from the bundled trace extension in the Docker build * Preserve direct localhost trace server URLs for cloud deployments
1 parent 2bb1879 commit ac0eb31

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ RUN yarn --pure-lockfile && \
1212
yarn build:extensions && \
1313
yarn download:plugins && \
1414
yarn docker build
15+
# Patch vscode-trace-extension: remove asExternalUri() which rewrites localhost URLs
16+
# in cloud deployments, breaking the backend's direct connection to the trace server.
17+
# The extension reads URLs from settings correctly; asExternalUri mangles them.
18+
RUN sed -i 's/return e\.env\.asExternalUri(i)/return i/' \
19+
/home/theia/cdt-cloud-blueprint/plugins/vscode-trace-extension/extension/lib/extension.js
1520
RUN yarn tracecompass-server:download
1621

1722
FROM mcr.microsoft.com/devcontainers/typescript-node:1-22-bullseye AS production-stage

0 commit comments

Comments
 (0)