* Remove all newlines at the end of a string * * @deprecated Use string.trim() * @param str String to trim
(str: string)
| 242 | * @param str String to trim |
| 243 | */ |
| 244 | function removeTrailingNewlines(str: string): string { |
| 245 | let newString = str; |
| 246 | while (newString.endsWith('\n')) { |
| 247 | newString = newString.substring(0, newString.length - 1); |
| 248 | } |
| 249 | return newString; |
| 250 | } |
| 251 | |
| 252 | export class DisposableChildProcess extends ManagedChildProcess implements Disposable { |
| 253 | public toDispose: Disposable[]; |