Commit Graph

23832 Commits

Author SHA1 Message Date
Nathan Sobo
ffcebdad33 Remove outdated test 2015-06-05 23:14:11 +02:00
Nathan Sobo
48ce361bd0 Select grammars based on first 10 lines of content, not the entire file 2015-06-05 22:24:49 +02:00
Nathan Sobo
56273e7eef Preserve large file mode across serialization and pane splits 2015-06-05 21:44:23 +02:00
Nathan Sobo
efd4662de0 Don’t allow soft wrap to be enabled in large file mode 2015-06-05 21:36:20 +02:00
Nathan Sobo
639647d115 Disallow fold creation in large file mode 2015-06-05 21:31:06 +02:00
Nathan Sobo
c34838277d In largeFileMode, base maxLineLength on the longest line we’ve seen
This is pretty hacky. If we want to compute the true longest line, we’ll
need to process every line, which is what large file mode is designed
to avoid. So now whenever the display buffer returns a line, it has
the potential to update the longest line.

This is a bit weird because retrieving a line now has a side effect.
It’s even more weird because the longest line will actually be wrong for
the initial state updates in the TextEditorPresenter. But as soon as
the user interacts in any way the dimensions are recomputed, so it works
for now.

A better approach may be to set a visible region on the display buffer.
But I’d like to keep this low-touch until we have a chance to revisit
the design of DisplayBuffer in a bigger way.
2015-06-05 19:55:34 +02:00
Nathan Sobo
de508db9b2 Implement basic large file mode for editor
* Don’t tokenize
* Don’t build metadata to support folds and soft wraps

Remaining issues:

* Max line length is hard coded
* Foldable indicators should be disabled
* Folding via API should be disallowed
2015-06-05 02:25:57 +02:00
Nathan Sobo
5b494b7b17 Lazily construct placeholder lines in TokenizedBuffer 2015-06-05 02:22:44 +02:00
Kevin Sawicki
f585b5bb12 Prepare 0.207 2015-06-04 15:05:05 -07:00
Kevin Sawicki
5793919f3b ⬆️ apm@0.171 2015-06-04 14:07:53 -07:00
Ben Ogle
2f26de3e26 Remove treeview from the deprecated packages 2015-06-04 13:52:05 -07:00
Kevin Sawicki
65831f1a4d ⬆️ language-html@0.39 2015-06-04 11:25:14 -07:00
Kevin Sawicki
abdec07bfe Merge pull request #7086 from atom/jl-preferences
Add 'Show Preferences' command to open Settings
2015-06-04 11:20:06 -07:00
Max Brunsfeld
63fbf7382e ⬆️ find-and-replace 2015-06-04 10:57:31 -07:00
Max Brunsfeld
688cc5ef9d Merge pull request #7023 from atom/mb-optimize-marker-observation
Optimize marker observation
2015-06-04 10:57:00 -07:00
Kevin Sawicki
91e3a76d17 Update spec for new deprecation data 2015-06-04 10:53:12 -07:00
Kevin Sawicki
bb680fc942 ⬆️ apm@0.170 2015-06-04 10:46:52 -07:00
Max Brunsfeld
ee3cd3994d ⬆️ text-buffer 2015-06-04 10:38:44 -07:00
Max Brunsfeld
b80c480d86 Store overlay decorations to optimize ::getOverlayDecorations() 2015-06-04 10:27:36 -07:00
Ben Ogle
e1514cf363 Update to latest deprecation data 2015-06-03 18:30:53 -07:00
Max Brunsfeld
f5895d8b0b presenter: use 'markers-updated' event for state updates
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-06-03 17:58:44 -07:00
Ben Ogle
f524ce728e ⬆️ settings-view@0.207.0 2015-06-03 17:46:08 -07:00
Kevin Sawicki
37939f6c76 Log deprecated-packages require error 2015-06-03 16:12:48 -07:00
Kevin Sawicki
c9eb9d71cc Setup deprecated packages in dev mode 2015-06-03 16:11:16 -07:00
Kevin Sawicki
74389fee43 ⬆️ language-gfm@0.77 2015-06-03 15:25:55 -07:00
Kevin Sawicki
281e0b420d 🎨 Move one flag near deprecated flag 2015-06-03 15:00:33 -07:00
Kevin Sawicki
eeddb22c4c Merge pull request #7084 from atom/ks-add-back-one-flag
Log message about --one being removed
2015-06-03 14:59:35 -07:00
Kevin Sawicki
205059cd2f The -> This 2015-06-03 12:00:48 -07:00
Kevin Sawicki
6a5bf633e9 Show deprecation text via usage message 2015-06-03 11:53:59 -07:00
Kevin Sawicki
d965abce38 Remove atom.sh -1/--one checks 2015-06-03 11:47:49 -07:00
Kevin Sawicki
75f2ce148a Use consistent default format 2015-06-03 11:43:58 -07:00
Kevin Sawicki
6ebbb58a80 Log message about --one being removed 2015-06-03 11:43:58 -07:00
Kevin Sawicki
d44aeb28f7 ⬆️ apm@0.169 2015-06-03 10:59:05 -07:00
Jessica Lord
0db71fa115 Add 'Show Preferences' command to open Settings 2015-06-03 10:20:34 -07:00
Kevin Sawicki
b467a7d126 ⬆️ tabs@0.73 2015-06-03 10:08:54 -07:00
Kevin Sawicki
9709c6e34a Merge pull request #7021 from atom/ks-dont-load-packages-with-deprecations
Don't load packages with deprecations
2015-06-03 10:08:04 -07:00
Kevin Sawicki
2523e72e50 🎨 2015-06-03 09:49:03 -07:00
Kevin Sawicki
df2bd62327 Load deprecated packages when including deprecated APIs 2015-06-03 09:47:13 -07:00
Kevin Sawicki
551636d59e 📝 Tweak deprecated load message 2015-06-03 09:19:57 -07:00
Kevin Sawicki
8dbec4afe2 🎨 2015-06-03 09:19:57 -07:00
Kevin Sawicki
87bbf15c6d Log to console about not loading deprecated packages 2015-06-03 09:19:57 -07:00
Kevin Sawicki
51611c24b5 Don't validate version until checking for empty range 2015-06-03 09:19:57 -07:00
Kevin Sawicki
4bb6728784 Add atom.packages.getDeprecatedPackageMetadata 2015-06-03 09:19:57 -07:00
Kevin Sawicki
d557e78847 Add spec for deprecated packages 2015-06-03 09:19:57 -07:00
Kevin Sawicki
22f2de77d1 Expose a atom.packages.isPackageDeprecated helper 2015-06-03 09:19:57 -07:00
Kevin Sawicki
06c4f17af0 Don't load deprecated packages 2015-06-03 09:19:57 -07:00
Kevin Sawicki
59e3b01dd1 Ignore missing versions 2015-06-03 09:19:57 -07:00
Kevin Sawicki
b7c2cd7ba1 Precheck ranges just to be safe 2015-06-03 09:19:57 -07:00
Kevin Sawicki
90ea63393c Include deprecated packages in package.json 2015-06-03 09:19:57 -07:00
Kevin Sawicki
ab36e690d0 Add deprecated packages metadata 2015-06-03 09:19:56 -07:00