Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.29k stars 439 forks source link

[Windows 11] Unable to see Response in Response windows till I save the response in a file #972

Open ppgovekar opened 2 years ago

ppgovekar commented 2 years ago

Steps to Reproduce:

  1. Try out Rest Client on Windows 11 and send some request.
  2. Response page is shown as blank with Response(xxx ms) in title.
  3. If I reinstall VS code, everything works normal for the first time but on next restart again same issue is seen.

Is this a known issue? Is there any workaround to get response other than saving it to a file?

Cliff-R-K commented 2 years ago

sorry no solution but I have the same problem

Cliff-R-K commented 2 years ago

I am runing vscode in a docker and get the same result. But if I click on save in the empty response-tab all info shows up in the saved file.

AppSecAmael commented 1 month ago

Same here, two years later ^^ With VSCode running in https://github.com/gitpod-io/openvscode-server/

AppSecAmael commented 1 month ago

My Dockerfile :

FROM gitpod/openvscode-server:latest

# to get permissions to install packages and such
USER root

# Install java 17
RUN apt-get update \
        && apt-get install -y wget apt-transport-https \
        && mkdir -p /etc/apt/keyrings \
        && wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc \
        && echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list \
        && apt-get update \
        && apt-get install -y temurin-17-jdk maven jq inetutils-ping

# Restore permissions for the web interface
USER openvscode-server

ENV OPENVSCODE_SERVER_ROOT="/home/.openvscode-server"
ENV OPENVSCODE="${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server"

SHELL ["/bin/bash", "-c"]
RUN \
    # List the extensions in this array
    exts=(\
        # From https://open-vsx.org/ registry directly
        gitpod.gitpod-theme \
        redhat.java \
        vscjava.vscode-java-pack \
        vscjava.vscode-java-debug \
        vscjava.vscode-maven \
        humao.rest-client \
        ms-vscode.live-server \
        vscjava.vscode-spring-boot-dashboard \
    )\
    # Install the $exts
    && for ext in "${exts[@]}"; do ${OPENVSCODE} --install-extension "${ext}"; done
AppSecAmael commented 1 month ago

Bypassed it by adding these options :

"rest-client.previewOption": "exchange",
"rest-client.previewResponseInUntitledDocument": "true"