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

JSON formatting often fails at first #71652

Closed
helgemahrt opened this issue Apr 3, 2019 · 2 comments
Closed

JSON formatting often fails at first #71652

helgemahrt opened this issue Apr 3, 2019 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug json JSON support issues verified Verification succeeded

Comments

@helgemahrt
Copy link

Issue Type: Bug

A lot of times, when I want to format JSON in a temporary document I have to to set the language mode to JSON several times before the formatting works.
Steps to repro:

  1. Open VS Code and create a new document (CTRL+N)
  2. Paste one-line JSON
  3. click on the language mode on the bottom right, type JSON and press enter
  4. set the cursos in the document and press SHIFT+ALT+F

Expected: the JSON text is formatted properly
Actual: "There is no document formatter for 'json'-files installed.

Current solution: repeat stpes 3) and 4) until it works...

VS Code version: Code 1.32.3 (a3db5be, 2019-03-14T23:43:35.476Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.93GB (6.68GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
azure-account ms- 0.8.0
csharp ms- 1.18.0
powershell ms- 1.12.0
azure-event-hub-explorer Sum 0.1.2
azure-iot-edge vsc 1.11.1
azure-iot-toolkit vsc 2.5.0
@vscodebot
Copy link

vscodebot bot commented Apr 3, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@helgemahrt
Copy link
Author

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Not the same, as the other issue appears to be specific to large JSON documents.

@aeschli aeschli modified the milestones: On Deck, September 2019 Sep 5, 2019
@aeschli aeschli added json JSON support issues bug Issue identified by VS Code Team member as probable bug labels Sep 5, 2019
@jrieken jrieken added the verified Verification succeeded label Oct 3, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug json JSON support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants