Skip to content

Commit 6f9ce2b

Browse files
committed
DEV
1 parent 49f91d9 commit 6f9ce2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ activate = function (context) {
274274

275275
context.subscriptions.push(vscode.workspace.onWillSaveTextDocument(e => {
276276
let doc = e.document;
277-
let eol = doc.eol || vscode.EndOfLine.LF;
277+
let eol = vscode.EndOfLine.LF; // let eol = doc.eol || vscode.EndOfLine.LF;
278278
let eoltxt = eol == 1 ? 'LF' : 'CRLF';
279279

280280
const edit = vscode.TextEdit.setEndOfLine(eol);
281281
e.waitUntil(Promise.resolve([edit]));
282282

283-
let info = 'SAVE:' + doc.uri.scheme + ':' + eoltxt + ':' + doc.languageId + ':' + doc.version + ':' + doc.lineCount;
283+
let info = 'SAVE:' + doc.uri.scheme + ':' + eoltxt + ':' + doc.lineCount + ':' + doc.languageId;
284284
info = info.toUpperCase() + ': ' + doc.fileName;
285285
LOG(info);
286286
}));

0 commit comments

Comments
 (0)