From 26c0644cb260723025fbb5c96fbaadb0a5526cf2 Mon Sep 17 00:00:00 2001 From: Dylan Piercey Date: Thu, 28 Jul 2022 20:06:12 -0700 Subject: [PATCH] fix: enable formatter as a default config option --- .changeset/rare-suns-remain.md | 5 +++++ clients/vscode/package.json | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/rare-suns-remain.md diff --git a/.changeset/rare-suns-remain.md b/.changeset/rare-suns-remain.md new file mode 100644 index 00000000..92d554e9 --- /dev/null +++ b/.changeset/rare-suns-remain.md @@ -0,0 +1,5 @@ +--- +"marko-vscode": patch +--- + +Enable Marko's formatter by default without needing to specify it in your vscode config. diff --git a/clients/vscode/package.json b/clients/vscode/package.json index e13e4156..7d1ec1cf 100644 --- a/clients/vscode/package.json +++ b/clients/vscode/package.json @@ -57,6 +57,11 @@ "description": "Traces the communication between VSCode and the language server." } } + }, + "configurationDefaults": { + "[marko]": { + "editor.defaultFormatter": "Marko-JS.marko-vscode" + } } }, "devDependencies": {