Commit Graph

26 Commits

Author SHA1 Message Date
Benjamin Pasero
a5744684f0 files.insertFinalNewline: is now an overridable setting 2017-01-19 16:11:30 +01:00
Sandeep Somavarapu
1af9669771 #1587 Adopt editor.formatOnSave to respect language based settings 2017-01-19 15:07:25 +01:00
Benjamin Pasero
c936b0f6f5 Jumpy cursor with trim trailing whitespace and autosave (fixes #18410) 2017-01-11 18:45:24 +01:00
Benjamin Pasero
d80c577f1d Insert final new line doesn't work with format JSON on save (fixes #17078) 2016-12-13 10:45:27 +01:00
Benjamin Pasero
7c7df17989 files.insertFinalNewline should Not Move Cursor to New Line (fixes #16557) 2016-12-07 08:47:23 +01:00
Alex Dima
e1f557143c Prefer using Position, Range over IPosition or IRange 2016-12-05 21:18:43 +01:00
Benjamin Pasero
f94a893f8e use IModel for IResolverService now that it lives in editor land 2016-11-16 16:20:03 +01:00
Benjamin Pasero
19f152cee6 add tests 2016-11-02 10:43:53 +01:00
Benjamin Pasero
f9cbe207a3 Provide an option to insert a final newline (fixes #1666) 2016-11-02 07:33:57 +01:00
Johannes Rieken
887a4a1b7d when saving expect the extension host to be virtually dead, #14635 2016-10-31 15:24:48 +01:00
Johannes Rieken
1b8d31f29f fix telemetry event for save participants 2016-10-28 12:29:58 +02:00
Johannes Rieken
ebd2e2e57d log save participant timings, #13492 2016-10-26 18:12:01 +02:00
Johannes Rieken
4d4cce534b fmt - protected from concurrent document changes 2016-10-20 17:52:27 +02:00
Johannes Rieken
5c553b6ad4 start with document formatters, fallback to range formatters, fixes #13690 2016-10-17 12:09:34 +02:00
Benjamin Pasero
96f11177eb push ITextFileService to be a workbench service (fixes #6429) 2016-10-05 15:19:18 +02:00
Johannes Rieken
503c01b93e use pushEditOperation instead of dangerous applyEdits, fixes #12832 2016-09-28 11:23:03 +02:00
Johannes Rieken
cd2e9da5f7 make sure to timeout format on save, #12725 2016-09-28 10:55:53 +02:00
Johannes Rieken
e986a2b093 add TextDocumentWillSaveEvent#reason, #239 2016-09-26 17:33:41 +02:00
Johannes Rieken
73e3f8d9b2 use proper settings name in code 2016-09-23 15:29:43 +02:00
Johannes Rieken
21d4e10fa0 don't run formatOnSave when auto saved, #12449 2016-09-23 14:29:36 +02:00
Johannes Rieken
2fb97c07bc don't format on save when auto-saving the active editor and when edits conflict with cursors 2016-09-22 16:20:00 +02:00
Johannes Rieken
07aeea6f46 move things back to participant for better control 2016-09-22 15:42:24 +02:00
Johannes Rieken
818f5deef0 actually run in sequence... 2016-09-22 15:38:54 +02:00
Johannes Rieken
d0e7a52498 add setting 2016-09-22 15:25:08 +02:00
Johannes Rieken
e71d1e8841 first cut of format on save 2016-09-22 13:49:25 +02:00
Johannes Rieken
08b23250e1 wire ext host save participant to main thread save participant 2016-09-21 11:13:26 +02:00