Skip to content

Commit c953128

Browse files
committed
Merge pull request #8291 from zhengbli/honorEditorOptions
Remove hard-coded new line character option
2 parents 59d1f1f + aca769f commit c953128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ namespace ts.server {
647647
const editorOptions: ts.EditorOptions = {
648648
IndentSize: formatOptions.IndentSize,
649649
TabSize: formatOptions.TabSize,
650-
NewLineCharacter: "\n",
650+
NewLineCharacter: formatOptions.NewLineCharacter,
651651
ConvertTabsToSpaces: formatOptions.ConvertTabsToSpaces,
652652
IndentStyle: ts.IndentStyle.Smart,
653653
};

0 commit comments

Comments
 (0)