Skip to content

Commit

Permalink
Use empty afterText after all
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Apr 5, 2024
1 parent 9be8570 commit 8d517b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/common/languages/autoIndent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8d517b2

Please sign in to comment.