Commit Graph

17066 Commits

Author SHA1 Message Date
David Wilson
af54b63c3d Merge pull request #17949 from ariasuni/more-agressive-word-wrapping
Make soft-wrap break words before a slash or space and after a dash
2018-10-01 13:38:40 -07:00
Jason Rudolph
72f4a68d13 Revert "Write config file atomically" 2018-09-27 18:33:09 -04:00
ariasuni
81364b6a1c Make soft-wrap break words before a slash or space and after a dash 2018-09-26 14:05:38 +02:00
Ash Wilson
d2c38ac36a Merge pull request #18087 from atom/aw/gutter-measurement-update
Update soft wrap margins on gutter re-measurement
2018-09-21 15:48:12 -04:00
Ash Wilson
5912301563 Trigger a re-updateSync when gutter dimensions have changed 2018-09-21 13:15:38 -04:00
Max Brunsfeld
245472734b Allow tree-sitter setting to be set for specific languages 2018-09-21 09:34:13 -07:00
Lee Dohm
35eb249e66 Merge pull request #18045 from zypA13510/patch-1
Fixed broken Markdown syntax in doc
2018-09-17 11:11:46 -07:00
David Wilson
b35778b686 Catch exceptions for bad package.json when looking for Atom repo in pwd 2018-09-15 06:30:49 -07:00
Tilde Ann Thurium
945b57e2ca 👕 2018-09-13 17:09:38 -07:00
Tilde Ann Thurium
51b873345f add comment advising against adding window listeners in tooltip manager 2018-09-13 16:26:58 -07:00
Yuping Zuo
fe42554f3c Fixed broken Markdown syntax in doc 2018-09-13 14:08:20 +08:00
Tilde Ann Thurium
f7b95d03d3 fixes bug with keyboard input in click tooltips
Co-Authored-By: David Wilson <daviwil@users.noreply.github.com>
2018-09-12 16:17:30 -07:00
Max Brunsfeld
0b6876c4c6 Accept a TextMate scope selector in bufferRangeForScopeAtPosition 2018-09-10 20:38:54 -07:00
David Wilson
d0ecc657ce Merge pull request #17958 from cacheflow/add-capturing-to-keydown-events-when-hiding-tooltips
Fix: Added capturing to keydown events when hiding tooltips
2018-09-06 08:18:56 -07:00
David Wilson
c03ddebaef Merge pull request #16940 from BoykoAlex/atom-links
Support `atom` protocol links when links are handled
2018-09-06 07:32:49 -07:00
Max Brunsfeld
ba96bbf8f1 Add TreeSitterLanguageMode.tokenForPosition 2018-09-05 09:54:43 -07:00
David Wilson
f5cda2b70b Merge remote-tracking branch 'origin/master' into atom-links 2018-09-05 09:43:06 -07:00
Max Brunsfeld
979c52abfa Enable Tree-sitter by default 2018-09-04 11:37:30 -07:00
Lexis Alexander
52331786a2 Fix: Added capturing to keydown events when hiding tooltips 2018-08-30 14:11:33 -07:00
Max Brunsfeld
3160c60c00 Always include root scope name in Tree-sitter scope descriptors 2018-08-30 12:30:52 -07:00
Max Brunsfeld
6456f8a032 Update language mode synchronously for multiple synchronous buffer changes 2018-08-30 12:30:34 -07:00
Ash Wilson
e3e315c5e9 Merge branch 'master' of github.com:atom/atom into pr-11139/atom/ld-change-range-event 2018-08-29 15:08:50 -04:00
Max Brunsfeld
b424400c7f Convert PaneAxis class to JavaScript 2018-08-28 10:24:31 -07:00
Stepan Hruda
069d3ec91a Merge pull request #17873 from atom/fb-sh-close-on-unload
During quit, close unloaded windows
2018-08-27 20:32:26 -04:00
Stepan Hruda
12c4e596b9 During quit, close unloaded windows
Released under CC0.
2018-08-27 19:06:36 -04:00
Max Brunsfeld
5c74112f79 Merge pull request #17913 from captbaritone/race
Avoid serialization race condition with slow package deactivation
2018-08-27 12:59:07 -07:00
Jordan Eldredge
351b624487 Fix unloading serialization test 2018-08-27 10:24:04 -07:00
Jordan Eldredge
57e6927f2a Fix lint 2018-08-27 08:31:11 -07:00
Max Brunsfeld
7111c80555 Move deprecated-packages functions into PackageManager 2018-08-24 14:22:27 -07:00
Max Brunsfeld
231cc58e00 Replace ScopeProperties with private SettingsFile class in package.js 2018-08-24 13:53:32 -07:00
Max Brunsfeld
b2153a33dd Decaffeinate ModuleCache 2018-08-24 12:54:09 -07:00
Max Brunsfeld
d875a0db89 Don't require compile cache in main process 2018-08-24 12:01:09 -07:00
Max Brunsfeld
ce18e1b7d6 Convert remaining coffee-script code in main process code to javascript 2018-08-24 12:01:09 -07:00
Max Brunsfeld
467415af19 Merge branch 'master' into wl-rm-safe-clipboard 2018-08-24 11:57:36 -07:00
Max Brunsfeld
4d3a9ec17b Update TextEditorRegistry spec to expect sync updates 2018-08-24 10:37:06 -07:00
Max Brunsfeld
f1f37ee948 Update syntax highlighting synchronously if parsing completes synchronously 2018-08-24 09:34:58 -07:00
Max Brunsfeld
c0c071d6a4 Avoid error calling buildHighlightIterator on a destroyed language mode 2018-08-24 09:34:58 -07:00
Max Brunsfeld
3b9eb20c15 Implement getNonWordCharacters on TreeSitterLanguageMode 2018-08-24 09:34:58 -07:00
Max Brunsfeld
f716a73b59 Allow replacing editor's grammar with a grammar with the same scope name 2018-08-24 09:34:58 -07:00
Max Brunsfeld
d937f14265 Fix off-by-one error that was masked by TextMateLanguageMode
TextMateLanguageMode.isRowCommented would return `undefined` instead of 
`false` for out-of-bounds rows.
2018-08-24 09:34:58 -07:00
Max Brunsfeld
d1283fa69f Fix TreeSitterLanguageMode.isRowCommented 2018-08-24 09:34:58 -07:00
Jordan Eldredge
a9e887976f Remove unload-aborted event
This edge case will be handled by https://github.com/atom/atom/pull/17873/
2018-08-23 16:11:20 -07:00
Jordan Eldredge
9895badff8 Avoid serialization race condition with slow package deactivation
If any package takes longer than one second (the
`saveStateDebounceInterval`) to deactivate, and the unload was triggered
by a key or mouse down, mouse event, you can end up in a situation where
sate is serialized _after_ the packages are deactivated.

The result in a bug where panes, such as the File Tree, will randomly
be closed when you reload or reopen Atom.

This can be reproduced by creating a package that has an artificially
slow `deactivate` method. With such a package enabled, every reload ends
up serializing a state where all panes are closed.

I'm a bit nervous about this exact fix, since we have to track every
place where it's possible for `prepare-to-unload` to be fired, without
the window actually closing.

I handled the only instance I saw, but the logic is complex enough, that
I'm not 100% confident there are not other instances.

If it did happen that `prepare-to-unload` was fired and some other logic
caused the window to not actually close, we could end up in a state
where mousedown/keydown events were no longer causing state to get
serialized.
2018-08-23 14:17:22 -07:00
David Wilson
9aa50b9cd4 Merge pull request #17903 from atom/dw-fix-dev-resource-path
Always provide a devResourcePath in load settings
2018-08-22 16:38:28 -07:00
David Wilson
c1f58e7971 Recognize short form argument -r of --resource-path in main.js 2018-08-22 12:42:15 -07:00
David Wilson
f31471707d Remove resourcePath and devResourcePath assignment from parseCommandLine 2018-08-22 12:41:36 -07:00
David Wilson
bb1f7b0a2f Always provide a devResourcePath in load settings 2018-08-22 11:48:50 -07:00
Ash Wilson
393ded88bc Inherit environment variables in the test runner window 2018-08-22 13:26:46 -04:00
Ash Wilson
dbb3947250 Pass the environment to the window if one is present 2018-08-22 13:22:08 -04:00
Ash Wilson
e1015103c8 Use Object.assign() instead of spread so we don't confuse Joanna 2018-08-22 13:21:44 -04:00