Turn off use_on_type_format too, for languages that have format_on_save disabled (#14413)

Based on the discussion in
https://github.com/zed-industries/zed/issues/14400


Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-07-13 22:04:15 +03:00 committed by GitHub
parent f8b5e42070
commit 59ce3535d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,14 +133,7 @@
// The default number of lines to expand excerpts in the multibuffer by. // The default number of lines to expand excerpts in the multibuffer by.
"expand_excerpt_lines": 3, "expand_excerpt_lines": 3,
// Globs to match against file paths to determine if a file is private. // Globs to match against file paths to determine if a file is private.
"private_files": [ "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
"**/.env*",
"**/*.pem",
"**/*.key",
"**/*.cert",
"**/*.crt",
"**/secrets.yml"
],
// Whether to use additional LSP queries to format (and amend) the code after // Whether to use additional LSP queries to format (and amend) the code after
// every "trigger" symbol input, defined by LSP server capabilities. // every "trigger" symbol input, defined by LSP server capabilities.
"use_on_type_format": true, "use_on_type_format": true,
@ -729,10 +722,12 @@
} }
}, },
"C": { "C": {
"format_on_save": "off" "format_on_save": "off",
"use_on_type_format": false
}, },
"C++": { "C++": {
"format_on_save": "off" "format_on_save": "off",
"use_on_type_format": false
}, },
"CSS": { "CSS": {
"prettier": { "prettier": {
@ -784,6 +779,7 @@
}, },
"Markdown": { "Markdown": {
"format_on_save": "off", "format_on_save": "off",
"use_on_type_format": false,
"prettier": { "prettier": {
"allowed": true "allowed": true
} }