Commit Graph

63 Commits

Author SHA1 Message Date
Johannes Rieken
9435f9cbc7 use IdleValue to prevent overly eager service creation 2018-10-01 09:29:09 +02:00
Alex Dima
941c0e56ff Fixes #45895: Do nout touch lines where cursors rest 2018-09-20 15:55:03 +02:00
Dirk Baeumer
775a156339 Fixes #57994: Narrow signature of localize function to string | number | boolean | undefined | null 2018-09-05 22:43:44 +02:00
Johannes Rieken
ea7232e791 debt - use Promise and CancellationToken instead of TPromise 2018-08-06 12:18:19 +02:00
Johannes Rieken
ed5da7ac48 fix #54431 2018-07-18 10:01:29 +02:00
Sandeep Somavarapu
41729b45f2 #50730 Move progress service 2 to workbench 2018-06-11 16:02:42 +02:00
Matt Bierner
0a0d3d5e45 Add code action trigger to proposed API
#50248
2018-05-21 16:19:10 -07:00
Matt Bierner
819a1af8f4 Support running organize imports for background files
Fixes #49405
2018-05-07 13:50:52 -07:00
Alex Dima
292732cd19 Clarify editor focus related methods 2018-05-04 15:22:56 +02:00
Johannes Rieken
2d15717a66 remove old command and use executeEdits everywhere, #47107 2018-05-02 11:54:43 +02:00
Johannes Rieken
727774d6bc debt - make bulkEdit a service so that we can add create/delete/rename file to it 2018-04-30 12:30:24 +02:00
Matt Bierner
c29f432de5 Add editor.codeActionsOnSave (#48086)
* Add editor.codeActionsOnSave

Fixes #42092

Adds a way to run code actions on save using the `editor.codeActionsOnSave` setting. This setting lists code action kinds to be executed automatically when  the document is saved.

* Use  object instead of array for config option

* Adding timeout

* Fix description

* Fix relative path
2018-04-20 13:46:25 -07:00
Alex Dima
42a5c79309 Fixes #45146 2018-04-19 15:46:39 +02:00
Alex Dima
97ff53076c Fix issue #46075: Validate range before checking if it is empty 2018-03-28 18:31:48 +02:00
Alex Dima
51436fe7b7 Merge remote-tracking branch 'origin/master' into bug46075 2018-03-28 18:29:10 +02:00
Alex Dima
6e1f737afc Simplify FormatCommand (#44870) 2018-03-27 18:28:00 +02:00
Alex Dima
118e1445ea Fixes #46208: Recover selection from markers when the undo/redo stack lacks selection information 2018-03-27 17:57:41 +02:00
Johannes Rieken
5f8b697437 better timeout-error messages for format on save and onWillSave-event, #45421 2018-03-21 10:38:44 +01:00
AiryShift
fe395f5178 Fix #46075 2018-03-21 14:41:04 +11:00
isidor
f470ce19e7 textModel: add isForSimpleWidget property so these model are not synchronized 2018-03-20 16:25:10 +01:00
Johannes Rieken
41f7a57c71 Merge pull request #43702 from buyology/formatOnSave-timeout
make the timeout for formatOnSave configurable
2018-03-02 15:59:12 +01:00
Matt Bierner
ae15d09cbc Mark injected service properties as readonly 2018-02-15 10:38:37 -08:00
Robin
ac944e94c9 make the timeout for formatOnSave configurable 2018-02-15 00:26:42 +01:00
Johannes Rieken
61c7c768bd fix #42488 2018-01-31 10:31:40 +01:00
Johannes Rieken
4fde7a3773 add main-side logging for save participants, #42013 2018-01-24 09:51:08 +01:00
Alex Dima
d73725c384 Fixes #41925: ERR Illegal value 0 for lineNumber 2018-01-22 12:23:50 +01:00
Johannes Rieken
cb3c8e7e50 fix format on save problem that occurs when a provider returns no edits 2018-01-19 17:56:36 +01:00
Johannes Rieken
61a035c642 fix #37005 2018-01-08 17:08:39 -08:00
Alex Dima
45fee5691b Simplify IIdentifiedSingleEditOperation 2018-01-05 11:10:54 +02:00
Alex Dima
54e7055c12 Rename IModel to ITextModel 2018-01-04 16:44:40 +02:00
Alex Dima
0721df783d Extract model types out of editorCommon.ts 2018-01-04 16:27:58 +02:00
Johannes Rieken
4b0e0d678c don't bubble no provider error 2017-12-13 17:27:11 +01:00
Alex Dima
367dd10413 Rename RPCProtocol.get to RPCProtocol.getProxy (#36972) 2017-12-13 16:04:14 +01:00
Johannes Rieken
db328de17a show generic progress message when running save hooks, #40030 2017-12-12 11:19:52 +01:00
Peng Lyu
95814990bf Merge pull request #39845 from AiryShift/39750
Fixes #39750
2017-12-11 13:56:10 -08:00
Johannes Rieken
5e840a6de2 eng - no TPromise in save participants 2017-12-11 14:34:10 +01:00
AiryShift
eb81a0b2f8 Fixes #39750
Doesn't edit the model unless an edit is required, which means the undo
stack is updated properly. Behaviour should be similar to
trimTrailingWhitespace
2017-12-07 13:33:00 +11:00
Johannes Rieken
060a549a02 debt - remove named saveparticipant 2017-11-24 09:43:36 +01:00
Johannes Rieken
9ca78d114f clean save participant telemetry 2017-11-22 08:56:41 +01:00
Alex Dima
e499dc62b5 Reduce usages of ICommonCodeEditor (#37834) 2017-11-10 10:08:39 +01:00
Alex Dima
aa14fc5914 Bring ICodeEditorService to /browser/ (#37834) 2017-11-09 12:29:14 +01:00
Alex Dima
8a79656f6a vs/editor/contrib is /browser/ by convention (#37834) 2017-11-08 22:54:31 +01:00
Johannes Rieken
3ebb8c2c5d compute more minimal edits in format save participants, fixes #30010 2017-10-27 11:10:38 +02:00
Sandeep Somavarapu
75cf7dabb5 Refactor Configuration Service
- API to get a value given a key
- API to update value smartly
- Fine grained configuration change event
- Smart reload API
- Remove unnecessary APIs
2017-10-05 23:13:18 +02:00
Alexandru Dima
1429c4ec3e Merge pull request #33947 from AiryShift/master
Create setting that trims newlines from the end of a file
2017-09-27 18:05:34 +02:00
kieferrm
08d8f0f9f6 indentation changes 2017-09-25 18:36:43 -07:00
kieferrm
f244a4f70e formatting change 2017-09-25 18:36:43 -07:00
kieferrm
fbb3e25987 omit endPoint where it defaults to none 2017-09-25 18:36:43 -07:00
kieferrm
6607604333 correct wildcard usage 2017-09-25 18:36:43 -07:00
kieferrm
935debd389 GDPR classification for save participants 2017-09-25 18:36:43 -07:00