Can I silently change end of line sequence in VSCode?
Something like this:
vscode.commands.executeCommand("workbench.action.editor.changeEOL", "LF");
Can I silently change end of line sequence in VSCode?
Something like this:
vscode.commands.executeCommand("workbench.action.editor.changeEOL", "LF");
On the bottom right of vs code it will say lf or crlf. Click there and it will give an option to change.

The solution is to call edit method of active TextEditor. For example:
require('vscode').window.activeTextEditor.edit(builder => {
builder.setEndOfLine(vscode.EndOfLine.LF);
})