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.

贡献者指南