mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Insert a line break before a function at EOF if needed
This is a pre-existing issue that became more obvious after refining trivia handling.
This commit is contained in:
1 parent
98f04e6cfd
commit
2ea4cfe23b
71 files changed
+74
-2
No files matched your search
@@ -4526,7 +4526,7 @@ namespace ts.projectSystem {
|
||||
{
|
||||
start: { line: 3, offset: 2 },
|
||||
end: { line: 3, offset: 2 },
|
||||
newText: "\nfunction newFunction() {\n 1;\n}\n",
|
||||
newText: "\n\nfunction newFunction() {\n 1;\n}\n",
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user