Merge pull request #8291 from zhengbli/honorEditorOptions

Remove hard-coded new line character option
This commit is contained in:
Zhengbo Li 2016-04-25 15:45:37 -07:00
commit c953128870

View file

@ -647,7 +647,7 @@ namespace ts.server {
const editorOptions: ts.EditorOptions = {
IndentSize: formatOptions.IndentSize,
TabSize: formatOptions.TabSize,
NewLineCharacter: "\n",
NewLineCharacter: formatOptions.NewLineCharacter,
ConvertTabsToSpaces: formatOptions.ConvertTabsToSpaces,
IndentStyle: ts.IndentStyle.Smart,
};