Commit Graph

32338 Commits

Author SHA1 Message Date
Max Brunsfeld
958eed3a62 Use a more recent c++ toolchain on travis 2017-06-07 16:39:23 -07:00
Max Brunsfeld
39f372a679 ⬆️ text-buffer (prerelease) 2017-06-07 15:41:40 -07:00
Max Brunsfeld
f865a75c94 Fix exception on cancelling path selection when saving
Fixes #14722
2017-06-07 12:00:25 -07:00
Max Brunsfeld
73cd0461a7 ⬆️ line-ending-selector 2017-06-07 11:33:06 -07:00
Max Brunsfeld
58cce33a96 ⬆️ whitespace (prerelease) 2017-06-07 11:26:02 -07:00
Max Brunsfeld
8f106d2d44 Don't serialize undo/redo stacks when the user is idle 2017-06-07 11:21:39 -07:00
Max Brunsfeld
1a2a5e29a6 ⬆️ text-buffer (prerelease) 2017-06-07 11:04:11 -07:00
Max Brunsfeld
3b56ef8cbf Merge remote-tracking branch 'origin/master' into mb-use-native-text-buffer 2017-06-06 17:12:34 -07:00
Max Brunsfeld
5413b7d3a4 ⬆️ whitespace 2017-06-06 16:09:32 -07:00
Max Brunsfeld
30a7d85463 ⬆️ text-buffer (prerelease) 2017-06-06 16:03:01 -07:00
Jason Rudolph
aa19fe6831 Merge pull request #14725 from atom/jr-upgrade-packages-for-14648
⬆️  Update packages to populate status bar for pending editor pane items
2017-06-06 16:42:41 -04:00
Jason Rudolph
74c82d7414 ⬆️ status-bar@1.8.11 2017-06-06 13:29:37 -04:00
Jason Rudolph
9982f3bc43 ⬆️ line-ending-selector@0.7.1 2017-06-06 13:29:02 -04:00
Jason Rudolph
5fe651fb6f ⬆️ grammar-selector@0.49.5 2017-06-06 13:26:01 -04:00
Jason Rudolph
a314ad98cf ⬆️ github@0.3.3 2017-06-06 13:25:23 -04:00
Jason Rudolph
bfdf8218cf ⬆️ encoding-selector@0.23.4 2017-06-06 13:24:43 -04:00
Jason Rudolph
268f94b89d Merge pull request #14695 from atom/jr-editors-live-in-workspace-center
Provide API for observing the active text editor
2017-06-06 10:09:52 -04:00
Max Brunsfeld
f56dedb7f5 ⬆️ text-buffer (prerelease) 2017-06-05 17:44:34 -07:00
Max Brunsfeld
60a7c235d5 ⬆️ text-buffer (prerelease) 2017-06-05 17:39:23 -07:00
Michelle Tilley
b2c2c521de Merge pull request #14718 from atom/mkt-update-github-0.3.2
⬆ github@0.3.2
2017-06-05 11:40:04 -07:00
Michelle Tilley
3a666743e0 ⬆️ github@0.3.2 2017-06-05 10:24:39 -07:00
Wliu
2455f5eff0 ⬆️ archive-view@0.63.3 2017-06-05 11:05:48 -04:00
Antonio Scandurra
baca845e64 Fix not resetting unused styles in NodePool 2017-06-03 14:56:21 +02:00
Antonio Scandurra
f07e1eb009 Merge pull request #14698 from atom/as-ns-recycle-nodes
Recycle line and line number DOM nodes
2017-06-03 10:53:47 +02:00
Antonio Scandurra
ec774e143a Fix lint errors 2017-06-03 10:52:32 +02:00
Jason Rudolph
e1719a8923 Teach Workspace::reset() to properly reset hasActiveTextEditor 2017-06-02 15:56:13 -04:00
Jason Rudolph
2347c9bdaa Always invoke callback with current active text editor
This makes observeActiveTextEditor consistent with observers like
observeActivePaneItem, which always invoke the callback with the current
value, regardless of whether that value is undefined or not.
2017-06-02 15:55:00 -04:00
Jason Rudolph
44a2be7c9d Test deserialization in terms of user-observable functionality
- Rework serialization/deserialization test
- Move simulateReload function so that it can be used in multiple
describe blocks
2017-06-02 15:30:53 -04:00
Jason Rudolph
9629caefb7 Remove unnecessary serialization 2017-06-02 15:09:20 -04:00
Max Brunsfeld
d289ca4471 Fix unintended unload prevention for spec windows 2017-06-02 10:30:10 -07:00
Max Brunsfeld
51ffa5c1bf ⬆️ text-buffer (prerelease) 2017-06-02 10:26:22 -07:00
Max Brunsfeld
a7736b81e3 Remove code for preserving cursor position on buffer reload
Updating the markers correctly is handled by TextBuffer. This
was actually breaking it.
2017-06-02 09:58:57 -07:00
Jason Rudolph
5b61c0a949 🐛 Initialize active editor state correctly after reload
Fixes the following bug:

1. Open Atom
2. Open a file
3. Observe the file's encoding in the status bar
4. Reload Atom
5. Close the file
6. Observe that the closed file's encoding is still present in the
status bar

This bug occured because the reload did not deserialize/serialze the
workspace's active text editor state. As a result, when closing the
text editor in step 5, we failed to notify observers that there is no
longer an active text editor.
2017-06-02 08:01:42 -04:00
simurai
84d07e351c Merge pull request #14657 from atom/sm-atomicons
Atomicons
2017-06-02 11:47:50 +09:00
simurai
d2d3645646 Merge branch 'master' into sm-atomicons 2017-06-02 09:55:58 +09:00
Max Brunsfeld
345b9e6af4 ⬆️ text-buffer and pathwatcher (prerelease) 2017-06-01 16:11:44 -07:00
Max Brunsfeld
021f934ccd Fix Pane.close test 2017-06-01 15:48:08 -07:00
Max Brunsfeld
307d63e1ed Fix handling of aborted save in Pane.saveItem 2017-06-01 15:10:09 -07:00
Max Brunsfeld
7535a9419f Use async/await in Pane spec 2017-06-01 14:42:45 -07:00
Jason Rudolph
5dfbb65b0e 🎨 Reduce ternaries 2017-06-01 17:09:38 -04:00
Jason Rudolph
6a694f80f4 🎨 Replace instanceof check with nullness check
xref: https://github.com/atom/atom/pull/14695#discussion_r119721719
2017-06-01 17:04:43 -04:00
Jason Rudolph
fe550a1b03 🎨 Refactor: Introduce explaining variable
xref: https://github.com/atom/atom/pull/14695#discussion_r119721719
2017-06-01 17:04:17 -04:00
Ash Wilson
d16996f9c4 ⬆️ github 2017-06-01 16:34:44 -04:00
Max Brunsfeld
d50a9fac33 Merge branch 'master' into mb-use-native-text-buffer 2017-06-01 12:51:00 -07:00
Max Brunsfeld
a3240e78f8 ⬆️ pathwatcher (prerelease) 2017-06-01 12:50:21 -07:00
Jason Rudolph
14d8eccc6e 📝 Add API docs for observeActiveTextEditor(callback) 2017-06-01 15:47:31 -04:00
Jason Rudolph
5b52d8c77a 📝 Add API docs for onDidChangeActiveTextEditor(callback) 2017-06-01 15:44:37 -04:00
Jason Rudolph
09495dfc35 🔥 Remove broken Dock::getTextEditors() function
We're updating Atom to disallow editors in docks. As a result, we need
to remove Dock::getTextEditors(). Normally, we would deprecate a method
before removing it, but this method is broken and has never worked:

  atom.workspace.getLeftDock().getTextEditors()
  (unknown) Uncaught TypeError: this.paneContainer.getTextEditors is not a function
      at Dock.getTextEditors (/Applications/Atom.app/Contents/Resources/app/src/dock.js:590:37)
      at <anonymous>:1:30

Since the method is broken, we know that nobody is relying on it.
Instead of deprecating the method, we can just remove it.
2017-06-01 15:31:21 -04:00
Jason Rudolph
0b314ac1a9 🔥 Remove broken Dock::observeTextEditors(callback) fn
We're updating Atom to disallow editors in docks. As a result, we need
to remove Dock::observeTextEditors(callback). Normally, we would
deprecate a method before removing it, but this method is broken and has
never worked:

  atom.workspace.getLeftDock().observeTextEditors(console.log)
  (unknown) Uncaught TypeError: this.paneContainer.getTextEditors is not a function
      at Dock.getTextEditors (/Applications/Atom.app/Contents/Resources/app/src/dock.js:590:37)
      at Dock.observeTextEditors (/Applications/Atom.app/Contents/Resources/app/src/dock.js:396:41)
      at <anonymous>:1:30
  getTextEditors @ <embedded>:29933
  observeTextEditors @ <embedded>:29739
  (anonymous) @ VM1941:1

Since the method is broken, we know that nobody is relying on it.
Instead of deprecating the method, we can just remove it.
2017-06-01 15:26:12 -04:00
Jason Rudolph
f8ebd71200 Deprecate Dock::getActiveTextEditor() 2017-06-01 15:24:50 -04:00