From 03e16a4ac0640fb8d5403dd15130d80c1940b3bc Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Fri, 19 Jun 2020 14:40:49 +0100 Subject: [PATCH] detect indent from CSS text only --- src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts b/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts index 23cdbb5..22c6603 100644 --- a/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts +++ b/src/lsp/providers/codeActions/provideInvalidApplyCodeActions.ts @@ -104,7 +104,7 @@ export async function provideInvalidApplyCodeActions( } let outputIndent: string - let documentIndent = detectIndent(documentText) + let documentIndent = detectIndent(cssText) changes.push({ range: ruleRange,