Microsoft/vscode

[json] add commas automatically

Open

#69.545 aperta il 27 feb 2019

Vedi su GitHub
 (12 commenti) (26 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
feature-requesthelp wantedjson

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

Test case

untitledb2

Expected behavior

  • After typing age TAB, the comma should be added to the end of the previous line.
  • After typing " for the next object property, the comma should be added to the end of the previous line.

Actual behavior

The autocomplete does not produce valid text.

Discussion

In general, the autocomplete should strive to produce output that is maximally valid in whatever language grammar it is using.

Guida contributor