From f3d942be1019eca59d7b9dfa44a63b62eca0ee68 Mon Sep 17 00:00:00 2001 From: Princesseuh <3019731+Princesseuh@users.noreply.github.com> Date: Thu, 14 Mar 2024 11:16:18 +0100 Subject: [PATCH] fix(prettier): await isFormattingEnabled --- packages/prettier/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/prettier/index.ts b/packages/prettier/index.ts index 71fb4b51..4c623396 100644 --- a/packages/prettier/index.ts +++ b/packages/prettier/index.ts @@ -73,7 +73,8 @@ export function create( return; } - if (!isFormattingEnabled(prettier, document, context)) { + const hasFormattingEnabled = await isFormattingEnabled(prettier, document, context); + if (!hasFormattingEnabled) { return; }