Commit Graph

91 Commits

Author SHA1 Message Date
Alex Dima c935020a8a Fixes #22688: Always use CRLF for clipboard on Windows 2018-04-25 22:23:54 +02:00
Alex Dima 0100518547 Highlight active indent guide (closes #14017) 2018-04-18 18:31:28 +02:00
Alex Dima 367aef3253 Fixes #35574 2018-04-17 16:50:37 +02:00
Alex Dima 150b85b2cd Add ViewModel.getLineLength (#46942) 2018-04-09 12:06:21 +02:00
Alex Dima 0f436b5700 Add isBasicASCII to RenderLineInput (#22352) 2018-04-04 12:48:57 +02:00
Alex Dima b58f27d0cb Simplify ViewLineRenderingData (#22352) 2018-04-04 12:48:57 +02:00
Alex Dima dcc822dac1 Store the first visible line in the view state (#41968) 2018-03-28 22:21:20 +02:00
Alex Dima f9faca3fbb Fixes #46455: Restore logical viewport when edits occur in another editor 2018-03-27 23:09:58 +02:00
Alex Dima 74b681b08a Avoid view model inconsistency 2018-02-26 22:12:18 +01: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
Alex Dima fe4ca868d1 Reduce usage of old ViewLineToken 2017-12-21 12:38:28 +02:00
Alex Dima 60e7210916 Align shape of LineTokens and ViewLineTokens in preparation for merger 2017-12-21 10:48:12 +02:00
Alex Dima 45db74a46a Reduce usage of ViewLineToken 2017-12-20 17:44:02 +02:00
Alex Dima 12396ea083 Fixes #40271: Compute visible line widths when restoring the scroll position 2017-12-19 09:43:45 +01:00
Alex Dima e07bba8de9 Keep track of what text got copied from what cursor and use that information when pasting (fixes #4996) 2017-12-14 18:09:48 +01:00
Alex Dima 08767f86d3 Have InlineDecoration keep track of its type (#37401) 2017-11-20 15:05:07 +01:00
Alex Dima 4fed11f880 Remove unused code (#38414) 2017-11-17 20:15:48 +01:00
Alex Dima bf8518de35 Have the view ask for indent guides in batches 2017-10-25 17:37:38 +02:00
Alex Dima 819c00594e Simplify ViewModelDecoration 2017-10-20 11:33:14 +02:00
Alex Dima b6d492b446 Encode overview ruler decorations in a number array 2017-10-20 09:18:34 +02:00
Alex Dima 30e2d204a0 Move getAllOverviewRulerDecorations to IViewModelLinesCollection 2017-10-20 08:43:45 +02:00
Alex Dima dfd902449c Fixes #33351: Compute the scroll location for a reveal range request based on the already pending animation 2017-09-01 11:40:04 +02:00
Alex Dima 3b433ea24d Fix horizontal revealing of a range (in the smooth scrolling case where the line containing the range might come in the viewport at a later time) 2017-08-22 15:35:54 +02:00
Alex Dima 90377a73d4 * separate scroll dimensions and scroll positions
* have explicit methods for changing the scroll position (delayed/smooth vs now/direct) that bubble up to the editor internals.
* have all other clients of ScrollableElement not use smooth scrolling
2017-08-21 18:25:03 +02:00
Alex Dima 05f7db06b2 Fixes #27216: Change editor selection when a valid selectionchange event comes in. 2017-08-09 16:35:38 +02:00
Benjamin Pasero a9486e406f linting: convert double quote imports to single quote 2017-05-26 09:27:46 +02:00
Alex Dima d1e209bb67 Fix some TS noImplicitAny and noUnusedLocals warnings 2017-05-20 15:03:02 +02:00
Alex Dima dcbe78a124 The cursor gets passed in the ViewModel 2017-05-19 16:29:38 +02:00
Alex Dima 7a765323ac Move ViewEventEmitter out of viewModelImpl 2017-05-19 16:29:38 +02:00
Alex Dima 7a15a509d0 Remove browser.enableEmptySelectionClipboard 2017-05-18 11:21:20 +02:00
Alex Dima 8485cb6e4d Simplifications post moving viewLayout into viewModel 2017-05-10 00:31:12 +02:00
Alex Dima 1d6e311998 Move viewLayout management into viewModel 2017-05-10 00:31:12 +02:00
Alex Dima b8a2488a8f Reduce view model responsibilities 2017-05-09 12:51:28 +02:00
Alex Dima c3ce62100a Debt: Simplify TextAreaHandler 2017-05-03 19:15:15 +02:00
Alex Dima 45af288d44 Move more types out of editorCommon 2017-04-19 15:19:25 +03:00
Alex Dima c8ec3ef999 More clean-up in editorCommon 2017-04-19 15:17:32 +03:00
Alex Dima 8a3f8985fa Move IPosition out of editorCommon 2017-04-18 16:53:33 +03:00
Alex Dima 2c3f743161 Simplify usage of ViewLayer 2017-03-03 20:48:11 +01:00
Alex Dima dccc72832b Use typed view events from the view model to the view 2017-02-21 15:09:29 +01:00
Alex Dima f0506f29e7 Emit fabricated position/selection change events when the line mapping changes 2017-02-17 16:17:37 +01:00
Alex Dima bccd4045eb Merge remote-tracking branch 'origin/master' into alex/minimap 2017-02-16 23:26:51 +01:00
Alex Dima 4d010f7be2 Align data types 2017-02-16 12:59:32 +01:00
Alex Dima 550fd30ad9 Read minimap render data in bulk 2017-02-16 12:19:25 +01:00
Alex Dima 42dfb39f3f Finish ViewLineToken2 adoption 2017-02-14 05:59:37 -08:00
Alex Dima 24aba5b2d8 Adopt ViewLineToken2 2017-02-14 05:24:52 -08:00
Alex Dima 441c12d2b3 Render a minimap 2017-02-13 10:36:46 +01:00
rebornix 0a893ff46e use inline styles 2017-02-09 15:14:48 -08:00
Alex Dima ad605ea39a Reduce IViewLayout usage 2017-02-05 14:12:16 +01:00
Alex Dima 5ab4210487 Establish IViewLayout shape 2017-02-05 12:31:01 +01:00