Commit Graph

17557 Commits

Author SHA1 Message Date
Nikolay Yakimov
2219c74b84 Fix tree-sitter-language-mode null highlight iterators 2021-04-09 15:18:41 +03:00
Andrea Bogazzi
516b6ab872 remove last change 2021-03-30 17:24:45 +02:00
Andrea Bogazzi
5fd0ef9e44 Merge branch 'master' into test-itemclick 2021-03-30 17:22:05 +02:00
Musa Ibrahim
ba746fdd51 Merge pull request #22046 from atom/fix-context-menu-bug
Fixes context menu not working
2021-03-21 12:39:03 -07:00
Andrea Bogazzi
71da729f41 fix atomWindow non being serializable 2021-03-19 11:49:45 +01:00
darangi
5ca56fc790 fix serialization error 2021-03-17 22:15:03 +01:00
Amin Yahyaabadi
ad2aaa8c3c fix: require .node files directly to detect incompatible native modules
- This fixes the incompatible native module detection for the packages 
that require their .node files lazily
- Speeds up the performance of detection by directly require .node files 
instead of requiring the package
2021-03-06 00:54:40 -06:00
Sadick
f4d832f2e2 Upgrade to electron 9.4.4 (#21777)
* Electron 9.4.4 Upgrade

Co-authored-by: Amin Yahyaabaadi <aminyahyaabadi74@gmail.com>
Co-authored-by: Maarten Fonville <mfonville@users.noreply.github.com>
Co-authored-by: Andrea Bogazzi <andreabogazzi79@gmail.com>
2021-03-05 07:48:45 +03:00
Andrea Bogazzi
8844d58595 Electron update related: fix showSaveDialog elector api for deprecated callback (#21935)
* showSaveDialog

* fix lint
2021-02-08 21:06:04 +03:00
Amanda Li
02fd34d269 Resolve Uncaught TypeError (#16392)
A `TypeError` raised when a certain file, or lack thereof, causes Atom to open improperly, without the side pane appearing. To fix this, users must clear their Atom window state, then reopen the program. Add a notification when this error occurs with information on how to resolve it.

Co-authored-by: Sadick <sadickjunior@gmail.com>
Co-authored-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
2021-02-01 11:04:32 +03:00
Sadick
ee27540065 Revert "Merge non word characters" (#21910)
This reverts commit a8b47528b8.
2021-02-01 08:52:38 +03:00
Sebastian Pfitzner
0f9234ce22 Add textEditors.getActiveTextEditor() method (#12804)
* add textEditors.getActiveTextEditor()

Co-authored-by: sadick254 <sadickjunior@gmail.com>
2021-01-27 09:54:04 +03:00
Antonio Scandurra
cfde3f2106 Simplify didFocus logic in TextEditorComponent (#15309)
Prior to #15302, we wanted to make sure the component had rendered the
hidden input when receiving the focus event. To do so, we added some
workarounds for scenarios where the focus event was triggered before the
component had the chance to detect it was attached or visible.

After that pull-request, however, we always render the hidden input
independently of which events the component has observed, thus making
those workarounds not necessary anymore.

Please, note that we decided not to include this commit's changes in
beta, and want to let them bake for a full release cycle instead.

Co-authored-by: sadick254 <sadickjunior@gmail.com>
2021-01-26 06:26:04 +03:00
Amin Yahyaabadi
d69078884b Add node support in threads (#21139)
This enables the possibility of multithreading in Atom as stated in [Electron documentation](https://www.electronjs.org/docs/tutorial/multithreading). It allows using Node features in WebWorkers.
2021-01-25 19:05:33 +03:00
Amin Yahyaabadi
9c8b097064 Refactor TextEditor updating (#21620)
Refactors the codes that were responsible for updating different parts of TextEditor out of update function, and, then, it uses those refactored functions directly, which bypasses the loop and switch case inside update.

`finishUpdate` is also refactored to allow finishing update of TextEditor from inside the update functions without the need for creating objects outside and passing them in.
2021-01-20 23:37:51 +03:00
Maarten Fonville
6ab5500d25 Electron todo cleanups (#21816)
* cleanup TodoElectronIssue for GCM initVector
* cleanup TodoElectronIssue drop manual set of random value for debugging-port
* Remove workaround for slow crypto.randomBytes
* produceCachedData --> script.createCachedData()
* Remove arguments from childProcess.removeAllListeners()

Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2021-01-18 19:29:34 +03:00
DeeDeeG
7928a1b339 Fix buggy partial startup on macOS due to flag added by Gatekeeper/XProtect (#21861)
macOS Gatekeeper adds a flag ("-psn_0_[six or seven digits here]") when it intercepts Atom launches.
This happens for fresh downloads, new installs, or first launches after upgrading).
 We don't need this flag, and yargs interprets it as many short flags. So, we filter it out.
2021-01-18 19:22:22 +03:00
Sadick
1e10a0a746 Add setting to disable middle mouse paste (#21864)
* Add editor setting

* Only paste on middle click if selectionClipboard is true

* Add specs
2021-01-15 09:50:45 +03:00
DeeDeeG
72709dcaa5 🍎 Don't quit upon 'window-all-closed' event on macOS (#21847)
* 🍎 Don't quit on 'window-all-closed' on macOS

This prevents a lot of buggy partial-quitting stuff from happening.

Fixes: https://github.com/atom/atom/issues/17672
Fixes: https://github.com/atom/atom/issues/20831

Co-authored-by: Benjamin Gray <bengray178@gmail.com>
2021-01-07 22:39:31 +03:00
Musa Ibrahim
f1b0e3b47b Merge pull request #21715 from UziTech/transpiled-testPath
check if testRunner is es module
2020-12-11 09:57:47 +01:00
Musa Ibrahim
30ba00a8f1 Merge pull request #21753 from atom/mb-fix-tree-sitter-injection
Fix handling of "empty" language injections with Tree-sitter
2020-12-10 14:17:08 +01:00
Tony Brix
dc8e4b6a30 fix async confirm
add checkboxChecked to callback parameters
2020-12-07 17:32:43 -06:00
Max Brunsfeld
847e787014 Fix tree-sitter language injection inside of empty nodes 2020-11-23 17:14:54 -08:00
Tony Brix
bd544cfd8d decaffeinate initialize-test-window 2020-11-18 14:36:04 -06:00
Tony Brix
1f2f590c73 check if testRunner is es module 2020-11-18 09:54:12 -06:00
Amin Yahyaabadi
bd189ebce9 support ES6 default require for packages (#21112)
This allows loading the packages that are Es module and export their function wrapped in a default object. This is the case for any package that uses Babel 6, Babel 7, or other modern compilers for transpiling their package.
2020-11-18 10:57:21 +03:00
Amin Yahyaabadi
a68663ef48 explicit capture option in addEventListener (#21562)
Based on the docs true is equal to {capture: true}

> In older versions of the DOM specification, the third parameter of addEventListener() was a Boolean value indicating whether or not to use capture. Over time, it became clear that more options were needed. Rather than adding more parameters to the function (complicating things enormously when dealing with optional values), the third parameter was changed to an object that can contain various properties defining the values of options to configure the process of removing the event listener.

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners
2020-11-03 16:20:58 +03:00
Benjamin Dobell
fd4dfefb6a Fixed atom.confirm and internal use of dialog.showMessageBox 2020-10-26 03:47:47 +11:00
Sadick
70eb039fa8 Merge pull request #20393 from xdelaruelle/skip-shell-func
Skip shell functions when parsing env
2020-10-20 15:58:54 +03:00
sadick254
b175f31cf7 Lint fix 2020-10-20 08:12:40 +03:00
Sadick
320c8796fc Merge pull request #20892 from robobenklein/robo/texteditorcomponent-preventscroll
Use HTML native preventScroll for textEditorComponent focus
2020-10-19 21:31:38 +03:00
Sadick
060f3f9fc8 Merge pull request #21510 from atom/NSFindPBoard
Add support for global macOS find pasteboard
2020-10-16 08:48:57 +03:00
sadick254
7db65ca899 Add macOS read and write find pasteboard methods 2020-10-15 20:26:19 +03:00
sadick254
b5d01d6441 Avoid introducing breaking change 2020-10-14 12:08:21 +03:00
sadick254
f0f9afc474 Remove unused originalFontSize 2020-10-14 08:54:19 +03:00
sadick254
6d7322993f Add defaultFontSize setting
Resolves https://github.com/atom/atom/issues/9873
2020-10-13 19:02:07 +03:00
Atom Build Bot
5b0a00b027 Merge postcss-selector-parser-6.0.4 into master 2020-10-13 05:12:01 +02:00
Sadick
53fbe5ada6 Remove unnecessary check to allow scrolling to center (#21488)
* Remove unecessary check

* Update go-to-line package
2020-10-12 20:14:05 +03:00
Sadick
7b0147b0d5 Merge non word characters (#21487) 2020-10-12 15:40:53 +03:00
darangi
6d04c923a4 used synchronouse version of the method 2020-10-11 23:58:48 +01:00
darangi
9fa58e9f24 used async 2020-10-09 11:28:35 +01:00
sadick254
71526995c2 Clarify the context under which log-file is used 2020-10-07 15:26:27 +03:00
Sadick
d72ab03b23 Merge pull request #21344 from atom/colors-3.1.2
⬆️ colors@3.1.2
2020-09-29 16:40:19 +03:00
sadick254
923de05ba8 Fix color parsing 2020-09-29 14:48:05 +03:00
Sadick
b522a45a8f Merge pull request #21256 from atom/focus-trap-6.0.1
⬆️ focus-trap@6.0.1
2020-09-23 18:07:16 +03:00
sadick254
ddc777aa32 Bump focus-trap@6.1.0 2020-09-23 15:14:27 +03:00
sadick254
aa7cb0efc4 Update focus-trap usage 2020-09-23 15:14:27 +03:00
sadick254
a3ae38f3e1 Format version info output 2020-09-23 14:45:00 +03:00
sadick254
cb448307b6 Delete version options 2020-09-23 14:45:00 +03:00
sadick254
f0b809a2ec Use yargs version 2020-09-23 14:45:00 +03:00