Jason Rudolph
dec47761f9
Merge pull request #15838 from atom/jr-decaf-grammar-registry
...
Decaffeinate `GrammarRegistry`
2017-10-10 07:14:03 -04:00
Max Brunsfeld
87d38c0a4d
Return a Point from cursor word methods
...
Fixes #15847
2017-10-09 12:23:55 -07:00
Jason Rudolph
7463925e94
Merge pull request #15834 from atom/jr-decaf-gutter-container
...
Decaffeinate `GutterContainer`
2017-10-07 15:12:38 -04:00
Jason Rudolph
a00f619643
☠ ☕ Decaffeinate src/grammar-registry.coffee
2017-10-07 08:30:44 -04:00
Nathan Sobo
6209c9072f
Merge pull request #15833 from atom/as-always-clear-composition-checkpoints
...
Always revert to composition checkpoint, even if input is disabled
2017-10-06 14:55:40 -06:00
Jason Rudolph
f79708a74a
Merge pull request #15823 from atom/jr-decaf-gutter
...
Decaffeinate `Gutter`
2017-10-06 09:35:11 -04:00
Jason Rudolph
440316b45c
☠ ☕ Decaffeinate src/gutter-container.coffee
2017-10-06 09:23:34 -04:00
Antonio Scandurra
683cdeac27
Always revert to composition checkpoint, even if input is disabled
...
Previously, if the user opened the IME menu while input was disabled, we
would create a composition checkpoint without reverting to it after the
composition ended. When enabling input again, the first keystroke would
cause any buffer change that occurred between the IME composition and
the keystroke to be reverted.
With this commit we will always revert and delete the composition
checkpoint as soon as the composition ends, regardless of whether the
input is enabled or not.
2017-10-06 13:34:16 +02:00
Nathan Sobo
835efd3d68
Clear the dimensions cache after updating the soft wrap column
...
Updating the soft wrap column could cause us to compute different values
for derived dimensions, so any dimensions that were cached *in the
process* of updating the soft wrap column need to be cleared.
2017-10-05 15:47:59 -06:00
Antonio Scandurra
f640e9339d
Make comment more succinct
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2017-10-05 18:54:26 +02:00
Jason Rudolph
785ade897e
☠ ☕ Decaffeinate src/gutter.coffee
2017-10-05 09:55:40 -04:00
Antonio Scandurra
8759f9dac7
Clear dimensions cache when approximate screen line count changes
2017-10-05 13:51:23 +02:00
Max Brunsfeld
c9c4957921
Avoid unnecessary work in TokenizedBuffer.isFoldableAtRow
2017-10-03 12:36:49 -07:00
Max Brunsfeld
c46140946e
Merge pull request #15798 from atom/mb-prompt-to-save-in-conflict
...
Prompt to save when unloading if editor is in conflict
2017-10-03 12:36:43 -07:00
Nathan Sobo
f317a458ea
Merge pull request #15800 from atom/ns-fix-soft-wrap-rendering-bug
...
Fix rendering bug when folds cause the vertical scrollbar to disappear with soft wrapping enabled
2017-10-03 13:22:15 -06:00
Max Brunsfeld
4975f659c0
🎨 toggleLineCommentsForBufferRows
2017-10-03 11:27:00 -07:00
Max Brunsfeld
4d057a16d6
Prompt to save when unloading if editor is in conflict
2017-10-03 11:09:33 -07:00
Max Brunsfeld
44d6868855
Preserve indentation when toggling comments on whitespace-only lines
2017-10-03 10:14:45 -07:00
Nathan Sobo
293b52d797
Fix rendering bug when folds hide the vertical scrollbar w/ soft wrap on
2017-10-03 11:09:44 -06:00
Max Brunsfeld
c30cc9bc83
Merge pull request #15785 from arnavb/master
...
🎨 Shortened last three methods in color class
2017-10-02 09:37:53 -07:00
Arnav Borborah
c019eb2cf9
Shortened last three methods in color class
...
Used the ternary operator to shorten the last three methods in color.js
2017-10-01 12:50:13 -04:00
Max Brunsfeld
8a6ef70611
Fix comment misplaced by decaffeinate
2017-10-01 09:39:51 -07:00
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