Commit Graph

16216 Commits

Author SHA1 Message Date
Max Brunsfeld
8be9375508 Remove unnecessary TokenizedBuffer methods 2017-09-22 14:38:54 -07:00
Max Brunsfeld
0884546d3c Move everything but auto-indent out of LanguageMode 2017-09-22 14:33:02 -07:00
Max Brunsfeld
6c1356cae3 Move folding logic from LanguageMode to TokenizedBuffer
* Restate the folding logic to not *use* the TextEditor, but instead to
*return* ranges which can be folded by the editor.
* Convert the LanguageMode spec to JS
2017-09-22 12:04:51 -07:00
Max Brunsfeld
58035e4682 👕 2017-09-21 15:15:53 -07:00
Max Brunsfeld
67254766d7 Convert TokenizedBuffer to JS 2017-09-21 14:05:49 -07:00
Robert Sese
7cb7b36d81 Merge pull request #14654 from UziTech/patch-3
Improve confirm documentation
2017-09-20 14:07:45 -06:00
Ash Wilson
817c98619c Always emit did-change-paths 2017-09-20 11:43:35 -04:00
Ash Wilson
181b5b8828 Pass exact: option from setPaths() to addPath() 2017-09-20 10:51:30 -04:00
Ash Wilson
74268cba03 Reset retained IDs and paths on .reset() 2017-09-20 10:51:30 -04:00
Ash Wilson
1a53ad5722 Deserialize TextBuffers that have never been saved to disk 2017-09-20 10:51:30 -04:00
Ash Wilson
0782f0f4d0 "Retire" buffer IDs when the buffer can't be deserialized 2017-09-20 10:51:30 -04:00
Ash Wilson
46fc5ffc8c Better conditional 2017-09-20 10:51:30 -04:00
Ash Wilson
54ecff4510 Provide the message as a .description 2017-09-20 10:51:30 -04:00
Ash Wilson
41db574699 Use a fat arrow for @notifications 2017-09-20 10:51:30 -04:00
Ash Wilson
f28192bfbc Scope is hard 2017-09-20 10:51:29 -04:00
Ash Wilson
868d9393de Deserialize the exact serialized project paths, never a parent dir 2017-09-20 10:51:29 -04:00
Ash Wilson
1734aa7787 Shuffle Project deserialization a little 2017-09-20 10:51:29 -04:00
Ash Wilson
22c0b6a4f3 Notify if one or more deserialized project directories no longer exist 2017-09-20 10:51:29 -04:00
Ash Wilson
c205a07bc4 Require project directories to exist on deserialization 2017-09-20 10:51:29 -04:00
Ash Wilson
3d51ed9766 Support {mustExist} option in setPaths 2017-09-20 10:51:29 -04:00
Ash Wilson
156cd02953 Optionally throw an error when attempting to open a non-existent dir 2017-09-20 10:51:29 -04:00
Max Brunsfeld
9bdf4b01d0 Merge pull request #15643 from atom/mb-async-onWillDestroyPaneItem
Wait for async PaneContainer.onWillDestroyPaneItem listeners
2017-09-19 11:21:54 -07:00
Max Brunsfeld
56926695ba Return a promise from Pane.destroyActiveItem 2017-09-19 10:11:40 -07:00
Jason Rudolph
d7fe05c80e Merge #15678: Decaffeinate Notification, NotificationManager, & related specs 2017-09-19 08:27:09 -04:00
Max Brunsfeld
e875f5447e Convert Pane to JS 2017-09-18 17:02:48 -07:00
David Reiss
8ef9dabffa Allow atom:// urls to be opened from the command line
Some Atom extensions (like Nuclide) have functionality that can only be
triggered by open-url events, which only work on Mac OS.  With this
change, `atom://` URLs can be passed on the command-line, and they will
opened with the normal openUrl method on all platforms.

This change doesn't set Atom up as the default handler for atom:// urls.
That will require some platform-specific changes.
2017-09-18 12:27:29 -07:00
Jason Rudolph
9d0ed6da52 📝 Document that NotficationManager add* methods return a Notification
Parts of the Atom ecosystem rely on the fact that these methods return
the Notification that was added. For example:

https://github.com/atom/exception-reporting/blob/4e6866c3a9/lib/reporter.js#L159

Therefore, we should document that these methods are expected to return
the Notification that was added.
2017-09-17 08:25:05 -04:00
Jason Rudolph
3e21dd6923 :skull: Decaffeinate src/notification-manager.coffee 2017-09-16 21:02:58 -04:00
Jason Rudolph
3fb699fa22 :skull: Decaffeinate src/notification.coffee 2017-09-16 21:02:54 -04:00
Wliu
f1a2af6e6a Merge pull request #15669 from BenRussert/cursor-docs-fix
📝 Fix cursor name letter casing
2017-09-16 22:43:23 +02:00
Ben Russert
69b1e2c4d8 📝 Fix cursor name letter casing [ci skip] 2017-09-16 15:30:44 -05:00
Ash Wilson
275089fdbe Restore the fs.existsSync guard 2017-09-14 21:06:49 -04:00
Max Brunsfeld
19e56b5b3b Wait for async onWillDestroyPaneItem listeners 2017-09-13 13:31:33 -07:00
Max Brunsfeld
f786950d65 Make .destroyItem take effect synchronously when possible
This is ugly but prevents the breakage of community packages' tests.
2017-09-12 16:03:20 -07:00
Max Brunsfeld
cca04f85a3 📝 Document async onWillDestroyItem behavior 2017-09-12 15:19:46 -07:00
Max Brunsfeld
2374077a6e Wait for async onWillDestroyItem handlers before destroying item 2017-09-12 15:04:37 -07:00
Ash Wilson
8632e73d07 Merge pull request #15440 from atom/ku-reload-config-when-created
Replace pathwatcher w/ bundled watcher to catch created & rename events
2017-09-12 15:23:19 -04:00
Ash Wilson
ff8e21a20e Let the debouncer debounce 2017-09-12 14:39:08 -04:00
Ash Wilson
0c021f777e Initialize the new flag and pendingOperations in clear() 2017-09-12 14:38:49 -04:00
Ian Olsen
7f7bdbf103 Merge pull request #14495 from warrenpnz/maxScreenLineLength
Enable MAX_SCREEN_LINE_LENGTH to now be set via a config option
2017-09-12 11:32:41 -07:00
Ash Wilson
fa1ebd0529 👕 lint lint lint 2017-09-12 11:52:39 -04:00
Ash Wilson
979f525e3b Work with spies a little more gracefully 2017-09-12 11:50:15 -04:00
Ash Wilson
19500d1b40 Functions are more useful if you call them 2017-09-12 11:30:07 -04:00
Ash Wilson
28a4203482 Apply config changes before an initial load, but also replay them 2017-09-12 11:22:40 -04:00
Ash Wilson
4b7b513b93 The method is requestSave() 2017-09-12 10:21:47 -04:00
Ash Wilson
46d5ebb2f4 Only reset settings if the file is empty 2017-09-12 10:21:02 -04:00
Ash Wilson
8601a5df21 Only catch an expected EEXIST error 2017-09-12 10:20:30 -04:00
Ash Wilson
85ca408b29 Remove some console logging 2017-09-12 10:20:14 -04:00
Ash Wilson
b45fb2e918 Use the wx flag to atomically create a config file if it doesn't exist 2017-09-12 10:19:38 -04:00
Ash Wilson
8b94ed9558 "arguments" is overwritten by closure arguments 2017-09-12 10:18:47 -04:00