Commit Graph

17053 Commits

Author SHA1 Message Date
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
Ash Wilson
528346040c Pass additional options to the test runner window 2018-08-22 10:28:41 -04:00
Ash Wilson
42c75ecbe5 Pass additional options with run-package-specs message 2018-08-22 10:28:20 -04:00
David Wilson
cbcad274a7 Merge pull request #17892 from atom/dw-improve-repo-local-packages
Improve repo-local packages implementation
2018-08-21 15:26:18 -07:00
Ash Wilson
4e150179a9 Merge pull request #17736 from atom/aw/custom-line-number-gutter
Multiple, custom line number gutters
2018-08-21 18:17:31 -04:00
David Wilson
2d65535147 Don't normalize undefined devResourcePath on Windows 2018-08-21 14:20:42 -07:00
David Wilson
ba12a1e2fc Simplify dev resource path detection 2018-08-21 11:57:18 -07:00
David Wilson
ad4553cbba Merge pull request #17686 from atom/dw-repo-local-core-packages
Enable repo-local core packages in the 'packages' folder
2018-08-21 10:08:39 -07:00
Ash Wilson
ddb1dec987 Merge remote-tracking branch 'origin/master' into aw/custom-line-number-gutter 2018-08-21 11:39:47 -04:00
David Wilson
8cd788e00f 👕 2018-08-21 06:50:37 -07:00
David Wilson
7b50f72ac2 Call getDevResourcePath 2018-08-21 06:43:28 -07:00
David Wilson
94f972e0bf Teach --dev to detect Atom repo in process.cwd() 2018-08-21 06:40:25 -07:00
David Wilson
b84592ba10 Allow nightly releases to auto-update
This change removes a bad version check which prevented nightly releases 
to be considered for auto-update checks.  The fix is to only skip 
auto-updates when using a build with a version containing `-dev`.

Fixes #17885
2018-08-20 15:40:14 -07:00
Max Brunsfeld
fd6f9d39bd Make tree-sitter scope descriptors match HTML classes, not syntax tree 2018-08-20 10:40:55 -07:00