vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Response tab does not use the active color theme and font settings

Open martinky opened this issue 2 years ago • 3 comments

  • REST Client Version: v0.25.1
  • VSCode Version: 1.70.2
  • OS Version: Windows_NT x64 10.0.19044

Steps to Reproduce:

  1. Perform any HTTP request to any web service that returns a JSON document. E.g. GET https://jsonplaceholder.typicode.com/users/1
  2. Observe the document in the Response tab:
    1. The syntax coloring does not match the current color theme of VS Code, nor does it change when I switch to different color theme. Only the background color of the current theme is used, but not the text colors. This makes the result hard to read for some themes.
    2. The Result tab does not respect my editor.fontWeight setting, which I set to 500, but the Response is rendered with default font weight of 400.

Screenshot: the JSON document rendered in normal editor tab (left) and REST Client Response tab (right) look very different. Default VS Code Light+ theme was used when taking the screenshot.

image

martinky avatar Aug 24 '22 06:08 martinky

Also it would be nice to have an option to disable syntax highlight altogether, and also an option to set the desired indentation size.

anothergituser avatar Sep 01 '22 12:09 anothergituser

Totally agree. I am using the Boox mira pro E-Ink monitor to protect my eyes, it's really difficult to recognize the response content. image

hugejile avatar Aug 07 '23 06:08 hugejile

I would also like this. In the meantime, users can just change the CSS used for that view. It is located at

${HOME}/.vscode/extensions/humao.rest-client-0.25.1/styles

Adjust path whatever version you are using. Just remove all use of color from the CSS, like for example by using this file instead:

rest-client.css.txt

You just have to rename it from .css.txt to just rest-client.css. I had to rename it because uploading CSS is not allowed.

derammo avatar Nov 24 '23 23:11 derammo