Commit Graph

13418 Commits

Author SHA1 Message Date
Antonio Scandurra
e1e06580c1 Move position conversion in LinesYardstick 2015-11-27 12:47:47 +01:00
Antonio Scandurra
1a8d7b486d Remove caching by screen rows
Because we cannot use them as a cache key, because markers' position can change
at any time. Performance-wise this is slow with many markers, as we need to do a
lot of buffer-to-screen conversions.
2015-11-27 12:29:14 +01:00
Antonio Scandurra
0b5638f749 Make sure tile positions are computed correctly 2015-11-27 10:47:25 +01:00
Antonio Scandurra
6e2587bc8c 🐎 Cache screen row height
I am trying to defer the usage of fancy algorithms as much as possible. The
current one is linear and should probably be changed, but it performs quite
decently for the time being. Maybe with some more caching we could even avoid to
implement a tree data structure?
2015-11-27 10:30:44 +01:00
Antonio Scandurra
a9cb1bda8d Use ::positionForRow in ::updateTilesState
The algorithm is still super sloooow 🐌, but we'll fix that in a later
commit.
2015-11-27 10:16:38 +01:00
Antonio Scandurra
1b5fd18630 Use ::rowForPosition and ::positionForRow instead of simple math 2015-11-27 09:54:14 +01:00
Antonio Scandurra
02651b7a58 🎨 Rename to ::setBlockDecorationDimensions 2015-11-26 16:10:08 +01:00
Antonio Scandurra
5ac7ffcf48 🎨 Rename to ::blockDecorationsDimensionsById 2015-11-26 16:09:21 +01:00
Antonio Scandurra
89d9a2ce83 🎨 Create block decorations in TextEditor
This is just an experiment, although I like that we can hide some information
(irrelevant to the user) behind a clean API.
2015-11-26 15:40:08 +01:00
Antonio Scandurra
c8254566ef Change verticalScrollbar's height according to block decorations 2015-11-26 15:34:45 +01:00
Nathan Sobo
8978691831 Merge pull request #9773 from atom/mb-ns-prepare-stack-trace-fixes
Allow Error.prepareStackTrace to be temporarily reassigned
2015-11-24 11:59:53 -07:00
Antonio Scandurra
8dbb9cfd55 Use CommandRegistry to listen for native-key-bindings 2015-11-24 16:24:51 +01:00
Antonio Scandurra
7bd62790d2 📝 2015-11-24 14:02:34 +01:00
Antonio Scandurra
b3738cfc34 Interact with DevTools on process.nextTick
Using any of the DevTools synchronous methods causes the bad character input
issue.
2015-11-24 12:51:13 +01:00
Antonio Scandurra
6b5ef9a0aa 🔥 2015-11-24 12:45:15 +01:00
Antonio Scandurra
9e931b15c3 Switch to a Promise-based version of DevTools interaction 2015-11-24 12:21:16 +01:00
Antonio Scandurra
9655d8184e Interact with DevTools asynchronously 2015-11-24 11:43:09 +01:00
Max Brunsfeld
4bc46db355 Still assign error's raw stack when prepareStackTrace is overridden
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 15:30:11 -08:00
Max Brunsfeld
4616b426b0 Allow Error.prepareStackTrace to be temporarily reassigned
Fixes https://github.com/atom/atom/issues/9660

Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 15:22:15 -08:00
Chen Shen
d17ab332ec fix bug in getRawStack 2015-11-23 14:29:17 -08:00
Max Brunsfeld
30b3cb249e Merge pull request #9636 from DouweM/unique-title
Use unique text editor title in window and tab titles
2015-11-20 16:55:38 -08:00
Nathan Sobo
3e22d9f7a2 Merge PR #9607 with a small change 2015-11-20 10:41:22 -07:00
Antonio Scandurra
a546005c65 Merge pull request #9709 from atom/as-fix-longest-screen-row-issue
Compute content width when the longest row is the first one
2015-11-20 09:24:33 -08:00
Douwe Maan
a7809d6772 Add 'Close Empty Windows' option.' 2015-11-20 16:40:55 +01:00
Antonio Scandurra
93481c8a0d Move ::isTextEditor down into Workspace 2015-11-19 17:56:53 -08:00
Antonio Scandurra
0218431c62 🐛 Compute content width when the longest row is the first one 2015-11-19 16:38:20 -08:00
Nathan Sobo
a126374a7b Coerce boolean options to booleans
Pairing with @as-cii
2015-11-19 08:14:24 -08:00
Nathan Sobo
e572763cf7 Remove unnecessary fat arrow 2015-11-18 22:21:27 -08:00
Nathan Sobo
b04c26ba30 Discard highlights that end above the visible row range
Fixes #9628
2015-11-18 21:32:05 -08:00
Max Brunsfeld
799a792f7f Remove public docs for DirectorySearch and DefaultDirectorySearcher 2015-11-18 13:05:27 -08:00
Thomas Johansen
a8147c09a2 🔥 Remove console.log shims 2015-11-18 17:46:20 +01:00
Nathan Sobo
9537007a2a Merge branch 'beta' 2015-11-17 16:57:33 -08:00
Nathan Sobo
e475065b45 Merge branch 'stable' into beta 2015-11-17 16:57:19 -08:00
Nathan Sobo
668aa0532e Merge pull request #9665 from atom/ns-fix-remove-event-listeners
Fix removeListener calls
2015-11-17 16:46:25 -08:00
Nathan Sobo
6e72ebb886 Load packages before deserializing workspace
This ensures that package-defined deserializers work.
2015-11-17 16:28:53 -08:00
Nathan Sobo
3b2c6afdaf Fix removeListener calls 2015-11-17 16:23:38 -08:00
Douwe Maan
4bc4c6888f Use unique text editor title in window and tab titles 2015-11-17 23:34:41 +01:00
Douwe Maan
a9bf2a73a5 Improve TextEditor::getLongTitle 2015-11-17 23:34:31 +01:00
Nathan Sobo
8da44c4dfc Discard highlights that end above the visible row range
Fixes #9628
2015-11-17 11:45:51 -08:00
Nathan Sobo
6862610e70 Merge branch 'beta' 2015-11-17 08:53:27 -08:00
Nathan Sobo
af22a149bd Replace getLongTitle with getUniqueTitle 2015-11-16 13:47:23 -08:00
Douwe Maan
f93565708b Close empty active window when Close command is given 2015-11-16 17:54:06 +01:00
abe33
2696f49385 🐛 Fix typo in project deserializer method
Addresses #9598
2015-11-16 10:06:35 +01:00
Antonio Scandurra
1a8e2c6f8d 🎨 2015-11-13 16:23:32 -07:00
Antonio Scandurra
62de930b03 Set initialLoadComplete to true only in test mode 2015-11-13 16:23:24 -07:00
Antonio Scandurra
7c6fcea441 Set initialLoadComplete to true only in test mode 2015-11-13 16:00:54 -07:00
Antonio Scandurra
967fca7214 🎨 2015-11-13 18:51:06 +01:00
Antonio Scandurra
c7ca50b2b6 Set initialLoadComplete to true only in test mode 2015-11-13 18:01:21 +01:00
Nathan Sobo
fa66048d71 Guard against focusing a destroyed pane 2015-11-12 17:34:48 -07:00
Nathan Sobo
df0671cf5f Merge pull request #9513 from Ingramz/grammar-scores
Prioritize file type matching over first line matching in grammar scoring system
2015-11-12 16:12:26 -07:00