Skip to content

Commit c953128

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)