Microsoft/vscode

[json] add commas automatically

Open

#69,545 建立於 2019年2月27日

在 GitHub 查看
 (12 留言) (26 反應) (1 負責人)TypeScript (10,221 fork)batch import
feature-requesthelp wantedjson

倉庫指標

Star
 (74,848 star)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

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.

貢獻者指南