Commit Graph

16240 Commits

Author SHA1 Message Date
Max Brunsfeld
887ebd913b ⬆️ text-buffer 2017-09-30 23:50:46 -07:00
Max Brunsfeld
43aa3c788f Optimize cursor methods that find the current word 2017-09-29 17:20:47 -07:00
Max Brunsfeld
6c4a9c1987 Optimize getCurrentWordBufferRange 2017-09-29 17:20:47 -07:00
Max Brunsfeld
9f12b4f569 Convert Cursor to JS 2017-09-29 17:20:47 -07:00
Matthew Dapena-Tretter
eb46d0a5c6 Fix mouseup listener cleanup when dragging in text editor 2017-09-29 14:34:43 -07:00
Max Brunsfeld
7124b4d949 Don't pass addCursor options through to markBufferPosition
Fixes #15646
2017-09-28 12:28:42 -07:00
Max Brunsfeld
969cb7a0f5 Merge pull request #15692 from UziTech/pane-onDidChangePath
Pane on did change path
2017-09-28 11:51:12 -07:00
Max Brunsfeld
ce105ab914 Give an id to each GitRepository 2017-09-27 14:18:40 -07:00
Max Brunsfeld
e3abcebb76 Restore behavior where only one status refresh happens at a time 2017-09-27 12:18:17 -07:00
Max Brunsfeld
c54e0782da Fix isProjectAtRoot 2017-09-27 12:18:17 -07:00
Max Brunsfeld
99f3ada86b Refresh git status in process using async APIs 2017-09-27 12:18:17 -07:00
Max Brunsfeld
83c90e341a Convert GitRepository to JS 2017-09-27 12:18:16 -07:00
Max Brunsfeld
121ede50b8 Merge pull request #15713 from atom/mb-use-language-mode-api
Update syntax-related code to use new TextBuffer LanguageMode API (part 1)
2017-09-25 10:37:22 -07:00
Max Brunsfeld
345e236d86 Fix toggleLineCommentsForBufferRows 2017-09-25 09:52:15 -07:00
Ash Wilson
88a32589ab Restore a missing "typeof" 2017-09-25 09:56:40 -04:00
Max Brunsfeld
090b753d84 Move toggleLineCommentsForBufferRows to TokenizedBuffer 2017-09-24 10:34:34 -07:00
Max Brunsfeld
7cd6e266b2 Add back some default properties of TokenizedBuffer 2017-09-24 09:16:30 -07:00
Max Brunsfeld
6df3c27da0 Fix unfoldBufferRow 2017-09-23 15:56:55 -07:00
Max Brunsfeld
a73de8c0b5 Avoid spurious updates in autoDecreaseIndentForBufferRow 2017-09-23 00:22:11 -07:00
Max Brunsfeld
9abcad11e4 Add shim for TextEditor.languageMode, will deprecate later 2017-09-22 21:06:15 -07:00
Max Brunsfeld
e14aa842ff Move auto-indent code to TokenizedBuffer, 🔥 LanguageMode 2017-09-22 16:44:21 -07:00
Max Brunsfeld
274a699272 Remove unused method TokenizedBuffer.indentLevelForRow 2017-09-22 16:20:10 -07:00
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
Tony Brix
90503f6d4a dispose changePathDisposable on destroy 2017-09-19 14:37:29 -05:00
Tony Brix
1745b4be6b change activeItemPath if item's path changes 2017-09-19 14:37:29 -05: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