Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response JSON is displayed in a single line instead of pretty format in Postman extension for VS Code #13231

Closed
1 task done
suetaaaaa opened this issue Oct 31, 2024 · 15 comments

Comments

@suetaaaaa
Copy link

Is there an existing issue for this?

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

Describe the Issue

I'm experiencing an issue with the Postman extension in VS Code where JSON responses are being displayed as a single line, even though the Pretty option is selected. Previously, responses were formatted with appropriate indentation, making them easier to read. This problem started recently, and I've confirmed that the Pretty setting is active.

Steps To Reproduce

  1. Open VS Code and launch the Postman extension.
  2. Send a request that returns a JSON response.
  3. Check the response body – it appears in a single line instead of the expected formatted, pretty version.

Screenshots or Videos

image

Operating System

Windows

Postman Version

1.3.0

Postman Platform

Postman VSCode Extension

User Account Type

Signed In User

Additional Context?

No response

@nilaygit-10721
Copy link

can you assign me this issue?

@suetaaaaa
Copy link
Author

can you assign me this issue?

What do you mean by "assign"?

@sarah-gelt
Copy link

+1 same issue here

image

VSCode details

Version: 1.95.0 (Universal)
Commit: 912bb683695358a54ae0c670461738984cbb5b95
Date: 2024-10-28T20:16:24.561Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 23.6.0

Postman plugin details
image

@suetaaaaa
Copy link
Author

@sarah-gelt do you sometimes have an empty response body until you switch between the "body", "cookies" and so on tabs?

@sarah-gelt
Copy link

@sarah-gelt do you sometimes have an empty response body until you switch between the "body", "cookies" and so on tabs?

Yes, I get that as well.

@suetaaaaa
Copy link
Author

So, I found the cause of the problem. It was the latest version of VS Code (1.95.1). As soon as I downgraded to 1.94.2, the Postman extension started working correctly.

@Dev-wonderful
Copy link

So, I found the cause of the problem. It was the latest version of VS Code (1.95.1). As soon as I downgraded to 1.94.2, the Postman extension started working correctly.

@suetaaaaa I don't think you should close this issue, the postman team still needs to be aware of this problem. We don't know if it's a bug on VS Code side or it is something that was introduced in the new version of VS Code that the postman team needs to account for.

@Dev-wonderful
Copy link

Never mind this is a duplicate

@suetaaaaa suetaaaaa reopened this Nov 1, 2024
@suetaaaaa
Copy link
Author

@Dev-wonderful yeah, you are right.

@jmaster03
Copy link

Were you guys able to find a solution for this issue?

@suetaaaaa
Copy link
Author

@jmaster03 you mean solution for the latest VS Code version?

@jmaster03
Copy link

@jmaster03 you mean solution for the latest VS Code version?

I mean I'm still receiving the JSON responses in one line and also have an empty response until I switch from Preview to Pretty

@suetaaaaa
Copy link
Author

I mean I'm still receiving the JSON responses in one line and also have an empty response until I switch from Preview to Pretty

Did you downgrade you VS Code?

@jmaster03
Copy link

I mean I'm still receiving the JSON responses in one line and also have an empty response until I switch from Preview to Pretty

Did you downgrade you VS Code?

Oh that actually worked, thank you!

@pankajk07
Copy link
Member

Duplicate of #13230

@pankajk07 pankajk07 marked this as a duplicate of #13230 Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants