Commit Graph

32299 Commits

Author SHA1 Message Date
Wliu
02258a9994 📝 Fix get{Left|Right|Bottom}Dock links 2017-06-06 23:34:47 -04:00
Wliu
55a0fcb3f2 📝 Document pane location methods in Workspace 2017-06-06 23:33:46 -04:00
Wliu
c34061a52e 📝 Document the WorkspaceCenter class 2017-06-06 23:33:29 -04: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
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
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
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
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
Damien Guard
1d0bd5359f
⬆️ status-bar 2017-06-01 12:11:49 -07:00
Damien Guard
0f58b3f5cf
⬆️ fs-plus 2017-06-01 12:09:05 -07:00
Jason Rudolph
e569f8fc4d
📝 Fix odd grammar in API docs 2017-06-01 12:08:09 -04:00
Lee Dohm
50603ef19c Merge pull request #14697 from atom/ld-activate-item-docs
📝 Add missing parameter documentation
2017-06-01 08:26:20 -07:00
Antonio Scandurra
a25134e97f Recycle line number nodes
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-06-01 17:24:18 +02:00
Lee Dohm
fdd4d52fcc
📝 Add missing parameter documentation 2017-06-01 08:24:14 -07:00
Antonio Scandurra
b8d0d83b9a Recycle line nodes
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-06-01 17:24:13 +02:00
Antonio Scandurra
7b2a3075cb Merge pull request #14694 from atom/ns-as-fix-line-number-hiding
Render line number gutter without numbers when showLineNumbers is false
2017-06-01 17:23:18 +02:00
Antonio Scandurra
6d1f8ea88c Render line number gutter without numbers when showLineNumbers is false
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-06-01 16:29:04 +02:00
simurai
3425692b14 🎨 Rename "entity" to "type" 2017-06-01 22:51:46 +09:00
Jason Rudolph
16e1ef917b
Update Workspace specs regarding editors in docks 2017-06-01 09:34:56 -04:00
Antonio Scandurra
7ef498d53c Merge pull request #14693 from atom/as-ns-fix-overlay-resize-observers
Skip overlay resize events when we already measured at the current size
2017-06-01 14:44:48 +02:00
Antonio Scandurra
23e26da2fb Skip overlay resize events when we already measured at the current size
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-06-01 14:44:06 +02:00
simurai
c1534d7d2d Use .icon class for atomicons 2017-06-01 20:57:57 +09:00
Nathan Sobo
2372227b00 Fix specs on macOS when "Show scroll bars" option isn't "always" 2017-06-01 12:01:11 +02:00
simurai
d9337a453a Capitalize font name 2017-06-01 17:19:45 +09:00
Antonio Scandurra
44a442c08a Merge pull request #14686 from atom/as-ns-prevent-browser-autoscroll
Try a different approach for preventing autoscroll to off-screen input
2017-06-01 10:17:22 +02:00
simurai
bae7b6c0de Update refined icons
Now they should snap to whole pixels
2017-06-01 14:22:46 +09:00