From 8d517b2ca93d0b4656c24e5123e723917ad8d44e Mon Sep 17 00:00:00 2001 From: Lionel Henry Date: Fri, 5 Apr 2024 16:45:25 +0200 Subject: [PATCH] Use empty `afterText` after all --- src/vs/editor/common/languages/autoIndent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/common/languages/autoIndent.ts b/src/vs/editor/common/languages/autoIndent.ts index 9e204ae86588..bff68c1f1939 100644 --- a/src/vs/editor/common/languages/autoIndent.ts +++ b/src/vs/editor/common/languages/autoIndent.ts @@ -178,7 +178,7 @@ export function getInheritIndentForLine( const richEditSupport = languageConfigurationService.getLanguageConfiguration(model.tokenization.getLanguageId()); if (richEditSupport) { const previousLineText = precedingUnIgnoredLine < 1 ? '' : model.getLineContent(precedingUnIgnoredLine - 1); - const afterEnterText = model.getLineContent(lineNumber); + const afterEnterText = ''; const enterResult = richEditSupport.onEnter(autoIndent, previousLineText, precedingUnIgnoredLineContent, afterEnterText); if (enterResult) { if (enterResult.indentAction === IndentAction.Outdent) {