Skip to content

code-server webview: unable to expand test report with vscode-java-test #688

Closed
@rohinwork

Description

@rohinwork

Description

I am using the vscode-java-test plugin and after running the test case it opens a web-view with a generated HTML report of the test results.

However, I am not able to expand the report of the test result. I had raised a ticket on the extension page and was requested to raise a ticket here.

Expected functionality (local machine):
57829164-be858a80-77cb-11e9-9684-bb607a6cc304

Actual (remote):
57829188-d0672d80-77cb-11e9-8077-523c55481b3e

Steps to Reproduce

  • If you try to install the java extension pack extension with the UI in code-server; it fails to install (this should be a different issue, I'm not sure where I should raise this.)

So a workaround that I found in this dockerfile is to actually get the extensions locally before starting code-server.

Here is a script that does this:

sudo apt-get update && apt-get install --no-install-recommends -y \
  bsdtar \
  openssl \
  locales \
  net-tools 

export VSCODE_code-user=/home/code-user/.local/share/code-server/code-user;
export VSCODE_EXTENSIONS=/home/code-user/.local/share/code-server/extensions;

mkdir -p ${VSCODE_code-user};

chown code-user:code-user /home/code-user/.local/share/code-server/code-user/

mkdir -p ${VSCODE_EXTENSIONS}/java \
  && curl -JLs --retry 5 https://marketplace.visualstudio.com/_apis/public/gallery/publishers/redhat/vsextensions/java/latest/vspackage | bsdtar --strip-components=1 -xf - -C ${VSCODE_EXTENSIONS}/java extension

mkdir -p ${VSCODE_EXTENSIONS}/java-debugger \
&& curl -JLs --retry 5 https://marketplace.visualstudio.com/_apis/public/gallery/publishers/vscjava/vsextensions/vscode-java-debug/latest/vspackage | bsdtar --strip-components=1 -xf - -C ${VSCODE_EXTENSIONS}/java-debugger extension

mkdir -p ${VSCODE_EXTENSIONS}/java-test \
  && curl -JLs --retry 5 https://marketplace.visualstudio.com/_apis/public/gallery/publishers/vscjava/vsextensions/vscode-java-test/latest/vspackage | bsdtar --strip-components=1 -xf - -C ${VSCODE_EXTENSIONS}/java-test extension

mkdir -p /home/code-user/sandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions