Nathan Sobo
47338253db
Adapt to new text-buffer API
2016-01-26 12:38:35 -07:00
Nathan Sobo
21b1f79fab
Avoid updating screen lines in DisplayBuffer
2016-01-19 14:51:24 -07:00
Nathan Sobo
ed79413de1
Depend on DisplayLayer for more things
2016-01-19 14:39:37 -07:00
Nathan Sobo
a90a2e65b5
Implement TokenizedBuffer.prototype.onDidInvalidateRange
...
This causes DisplayLayer to emit change events when syntax is updated
asynchronously.
2016-01-14 14:45:52 -07:00
Nathan Sobo
acbacae6d5
Use TokenizedBuffer as a text decoration layer and render tags
2016-01-13 18:23:22 -07:00
Nathan Sobo
0d55a0bd76
Make TokenizedBuffer conform to text decoration layer interface
2016-01-13 18:22:04 -07:00
Nathan Sobo
972fda4ef7
Start using DisplayLayer for folds
2016-01-13 12:17:01 -07:00
Nathan Sobo
caf6d7f473
Use DisplayMarkerLayers
...
I’m creating the DisplayLayer in the DisplayBuffer. In places where our
API deviates from DisplayBuffer, I’ll use the DisplayLayer directly from
as a property of TextEditor. Otherwise I’ll continue to delegate from
the DisplayLayer into the DisplayLayer to minimize impact until the
DisplayBuffer can be removed entirely.
2016-01-13 12:17:01 -07:00
Nathan Sobo
5292767084
Use DisplayLayers for position translation and clipping in editor
...
Markers are still translating via the DisplayBuffer, but that will
change when display markers are moved into DisplayLayers.
2016-01-13 12:17:01 -07:00
Nathan Sobo
9fd9c0c621
Fix screenPositionForPixelPosition with DisplayLayers
2016-01-13 12:17:01 -07:00
Nathan Sobo
8e1a772a24
Replace spaces w/ non-breaking spaces when rendering text nodes
2016-01-13 12:17:01 -07:00
Nathan Sobo
d5b204226f
Correctly pass tabLength to addDisplayLayer
2016-01-13 12:17:01 -07:00
Nathan Sobo
b5f9ed2b0e
Fix pixelPositionForScreenPosition
2016-01-13 12:17:01 -07:00
Nathan Sobo
924d880fa8
WIP: Start rendering lines from DisplayLayers
2016-01-13 12:17:01 -07:00
Max Brunsfeld
57aa70cc87
Merge pull request #10395 from atom/mb-disable-babel-logging
...
Stop babel from logging to stderr during compilation
2016-01-13 09:40:45 -08:00
Josh Abernathy
68fb9ab2cf
Merge pull request #10361 from atom/mq-disable-package
...
Only disable a package if it isn't already disabled
2016-01-13 09:49:12 -05:00
Max Brunsfeld
680e123f88
Prevent babel from logging to stderr
2016-01-12 15:42:44 -08:00
Josh Abernathy
38d6ded9c4
Merge pull request #10359 from ypresto/copy-project-path
...
Add copy project path command to text-editor
2016-01-12 11:15:09 -05:00
Max Brunsfeld
b01e97be59
Explicitly guard against decorating destroyed markers
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-01-11 14:01:55 -08:00
Machiste Quintana
78543a7a34
Only disable a package if it isn't already disabled
2016-01-11 13:44:27 -05:00
Yuya Tanaka
d4c8770176
Add copy project path command to text-editor
2016-01-10 19:35:34 +09:00
Nathan Sobo
db74f4a8f0
Merge pull request #10178 from atom/ku-pending-editor
...
Open file in pending state on single click
2016-01-08 14:45:14 -07:00
Katrina Uychaco
28517563eb
Merge pull request #10310 from atom/ku-handle-more-fs-errors
...
Handle EAGAIN and ETIMEDOUT errors on open/save
2016-01-07 16:49:14 -08:00
Max Brunsfeld
ec66a66bb3
Merge pull request #9990 from scv119/test
...
Add a core config `core.automaticallyUpdate` to disable Atom autoupdate.
2016-01-07 11:05:43 -08:00
Katrina Uychaco
41c8792a7d
Handle EAGAIN errors on open
2016-01-06 18:27:18 -08:00
Katrina Uychaco
3bcb062ab0
Add friendly message for ETIMEDOUT
2016-01-06 18:23:25 -08:00
Katrina Uychaco
9efb3328bc
Add helper to map error codes to friendly messages
2016-01-06 18:20:46 -08:00
Josh Abernathy
61475ed77c
Merge pull request #10296 from viatsko/repository-providers-priority
...
This change gives custom repositoryProviders more priority
2016-01-06 13:49:46 -05:00
Valerii Iatsko
3b8375d2b4
This change gives custom repositoryProviders more priority - this wil allow us to override base git repository implementation
2016-01-06 00:05:58 +01:00
Katrina Uychaco
cee41a2fb0
Remove new line
2016-01-05 10:42:07 -08:00
joshaber
b6c3b39dfe
Merge branch 'master' into cascade-windows
2016-01-05 12:48:30 -05:00
Josh Abernathy
96eff38707
Merge pull request #10249 from atom/use-project-relative-status
...
Use .getStatusForPaths.
2016-01-05 12:40:28 -05:00
joshaber
94b77d0998
Separate the offset determination from the dimensions.
2016-01-05 11:59:59 -05:00
Nathan Sobo
2493269f09
Merge pull request #10277 from atom/ns-fix-horizontal-measurement
...
Fix measurement of rows that are present in the model but haven't been rendered yet
2016-01-05 09:43:01 -07:00
Nathan Sobo
6669703677
Force a sync render when measuring if we don’t have a DOM node for a row
2016-01-04 16:40:56 -07:00
Nathan Sobo
9f6fbacddd
Don’t clip screen positions in yardstick
...
By clipping positions only in the TextEditorComponent, we can ensure
that we check for the presence of a rendered line for the clipped row
value.
2016-01-04 16:32:38 -07:00
joshaber
fb8b25dc16
Merge branch 'master' into cascade-windows
2016-01-04 16:49:07 -05:00
Josh Abernathy
29590d94ac
Merge pull request #10233 from atom/fix-new-file
...
Fix New File with no open windows
2016-01-04 16:43:46 -05:00
joshaber
703361afc9
Merge branch 'master' into use-project-relative-status
2016-01-04 11:13:56 -05:00
Kevin J
876928f7f6
Update function documentation for scrollToScreenPosition
2016-01-02 16:05:21 -05:00
joshaber
b4035547c2
Use .getStatusForPaths.
2016-01-01 17:05:50 -05:00
joshaber
dcd860ae6f
Use the last focused window instead of the last opened window.
2016-01-01 12:18:48 -05:00
joshaber
9e7cb15c2c
Offset on Windows too.
2016-01-01 12:05:42 -05:00
joshaber
a63e70148d
Cascade new windows on OS X
...
Fixes #10057 .
2015-12-30 17:33:45 -05:00
joshaber
5c14d3e99b
Don't fail if event is undefined.
...
Unclear why this is undefined, but apparently it is.
2015-12-30 14:33:23 -05:00
joshaber
7024e000a8
Provide some defaults.
...
Otherwise we’ll get:
TypeError: Cannot read property 'pathToOpen' of undefined
when called from ‘application:new-file’.
2015-12-30 14:32:55 -05:00
Katrina Uychaco
7f57b0ada4
Change event to 'did-terminate-pending-state'
2015-12-24 18:02:07 -08:00
Katrina Uychaco
cca9ea4b60
Rename onDidConfirmPendingState for clarity
...
Now it is called onDidTerminatePendingState.
2015-12-24 17:56:18 -08:00
Katrina Uychaco
63b5ddbd99
Handle out-of-bound indices for ::activateItemAtIndex
2015-12-24 13:58:59 -08:00
Katrina Uychaco
e26ae05597
Fix bug in ::activateItemAtIndex
...
Revert to original code to conform to specs.
2015-12-24 13:34:58 -08:00