Skip to content
Snippets Groups Projects
Commit 2f338da0 authored by Mark Banner's avatar Mark Banner
Browse files

Bug 1834967 - Add HTML to the list of items to automatically format with...

Bug 1834967 - Add HTML to the list of items to automatically format with Prettier in VS Code. r=firefox-build-system-reviewers,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D179042
parent 81ff1f5f
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ def setup_vscode(command_context, interactive):
},
# Note, the top-level editor settings are left as default to allow the
# user's defaults (if any) to take effect.
"[javascript][javascriptreact][typescript][typescriptreact][json]": {
"[javascript][javascriptreact][typescript][typescriptreact][json][html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": True,
},
......@@ -206,6 +206,13 @@ def setup_vscode(command_context, interactive):
old_settings.pop(
"[javascript][javascriptreact][typescript][typescriptreact]"
)
if (
"[javascript][javascriptreact][typescript][typescriptreact][json]"
in old_settings
):
old_settings.pop(
"[javascript][javascriptreact][typescript][typescriptreact][json]"
)
settings = {**old_settings, **new_settings}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment