Draft a project part of the prettier

This commit is contained in:
Kirill Bulatov
2023-10-11 12:56:28 +03:00
parent eced842dfc
commit 553abd01be
6 changed files with 122 additions and 14 deletions
+6 -1
View File
@@ -149,10 +149,15 @@ pub enum ShowWhitespaceSetting {
All,
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, JsonSchema)]
#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum Formatter {
#[default]
Auto,
LanguageServer,
Prettier {
config: (), // Support some of the most important settings in the prettier-vscode extension.
},
External {
command: Arc<str>,
arguments: Arc<[String]>,