Add jsxAttributeCompletionStyle setting (#133920)

* Add jsxAttributeCompletionStyle setting

* Apply suggestions from code review

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
This commit is contained in:
Armando Aguirre
2021-09-29 16:20:23 -07:00
committed by GitHub
parent 3aaf810eee
commit 7fdc489e08
3 changed files with 46 additions and 0 deletions

View File

@@ -124,6 +124,10 @@
"typescript.preferences.importModuleSpecifierEnding.minimal": "Shorten `./component/index.js` to `./component`.",
"typescript.preferences.importModuleSpecifierEnding.index": "Shorten `./component/index.js` to `./component/index`.",
"typescript.preferences.importModuleSpecifierEnding.js": "Do not shorten path endings; include the `.js` extension.",
"typescript.preferences.jsxAttributeCompletionStyle": "Preferred style for JSX attribute completions.",
"typescript.preferences.jsxAttributeCompletionStyle.auto": "Insert `={}` or `=""` after attribute names based on the prop type.",
"typescript.preferences.jsxAttributeCompletionStyle.braces": "Insert `={}` after attribute names.",
"typescript.preferences.jsxAttributeCompletionStyle.none": "Only insert attribute names.",
"typescript.preferences.includePackageJsonAutoImports": "Enable/disable searching `package.json` dependencies for available auto imports.",
"typescript.preferences.includePackageJsonAutoImports.auto": "Search dependencies based on estimated performance impact.",
"typescript.preferences.includePackageJsonAutoImports.on": "Always search dependencies.",