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

Please, trim the fields

Open Aierbote opened this issue 6 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

Wanna know what's the difference between these two screenshots (1. and 2.)?

Just a trailing whitespace in the first row for 'email ' instead of the correct 'email'

It's a small issue which bugged me, and It was quite easy to spot [^1], cause I met a similar case with Postman UI a couple of weeks ago), but lucky for me this one took me much less time to figure it out this time (being an IDE you can spot the space easily, unlike in that other case)

Steps To Reproduce

  1. configure your code for POST request for a field email type string
  2. leave a leading or trailing whitespace by mistake
  3. ???
  4. Unprofit

Screenshots or Videos

1. FIRST SCREENSHOT

Wrong field

2 SECOND SCREENSHOT. Correct field

Side Note

I hope trimming the fields could be a viable solution for this tiny needle in the haystack, or at very least why not a simple syntax highlight

[^1]: Ignore the commit info by GitLens, it was just a minor seatback before the weekend break

Aierbote avatar Jul 29 '24 09:07 Aierbote