Commit Graph

38069 Commits

Author SHA1 Message Date
DeeDeeG
ff1e4f6be4 atom.spec.in: Disable Fedora's shebang lint script (#21964)
Fedora's script tries to coerce all shebangs
to point to exact, system-provided binaries.

For example: `#!/usr/bin/env sh` becomes `#!/usr/bin/sh`.

Starting with Fedora 30, the script errors out when it encounters
ambiguous, versionless `python` in shebangs.

(`python2` and `python3` are allowed.)

For example, this shebang causes an error: `#!/usr/bin/env python`.

---

Disable this script for two reasons:

1) Fedora users should be able to build Atom without errors.
2) Consistent shebangs across builds of Atom on Ubuntu and Fedora.

See: https://github.com/atom/atom/issues/21937 for more details.

Fixes: https://github.com/atom/atom/issues/21937
2021-02-15 06:54:12 +03:00
DeeDeeG
2469309235 tree-sitter-rust@0.17.0 (#21790) (#21949)
(cherry picked from commit ea5dbdfb57)

Co-authored-by: Musa Ibrahim <small_musa@hotmail.com>
2021-02-15 06:50:52 +03:00
Sadick
2f6f41b96e Revert "Bump minidump @aminya/minidump@0.19.0-8 (#21792)" (#21942)
This reverts commit 11b9559a5b.
2021-02-09 09:08:23 +03:00
Amin Yahyaabadi
dc6cfb8197 performance: CSS containment for workspace (#21940)
* add css-containment to workspace variables
2021-02-09 09:06:52 +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
Musa Ibrahim
394b468779 Merge pull request #21928 from atom/fix-dependency-bump-failure
Fixes dependency bump script
2021-02-04 15:48:11 +01:00
darangi
b6b8a87558 fix lint 2021-02-04 13:40:24 +01:00
darangi
1db87c09b0 checkout origin/master 2021-02-04 08:29:27 +01:00
DeeDeeG
55df66bd4c package-lock.json: ⬇️ @babel/core 7.12.9 (#21923)
@babel/core 7.12.10 partly breaks when used with
Atom's custom require.resolve() function.

That in turn breaks the loading of the "github" package.

See https://github.com/atom/github/issues/2620 for details.
2021-02-02 19:50:54 +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
Amin Yahyaabadi
d3ace8a9b2 The script executables should be LF so they can be edited on Windows (#21426) 2021-01-29 21:56:12 +03:00
Amin Yahyaabadi
6333223063 performance: add more CSS containment to text-editor (#21561)
This adds more [CSS containment](https://drafts.csswg.org/css-contain/#contain-property) to text-editor CSS classes. This results in performance improvements by giving the hint to the browser that the size/paint/layout of these elements does not affect other elements around them.

Fixes https://github.com/atom/atom/pull/21561#discussion_r515201915
2021-01-29 20:22:00 +03:00
Ash Wilson
1f9e0c01b0 Merge pull request #21903 from atom/github-up-dev
⬆️ github
2021-01-29 08:55:14 -05:00
Ash Wilson
91e85776e2 ⬆️ github 2021-01-28 19:40:12 -05:00
DeeDeeG
83a883e8d0 script/test: Add a timeout message to retry for (#21898)
We should retry when encountering "Error: Timed out waiting on",
seen in the wild as "Error: Timed out waiting on anonymous condition".
2021-01-28 21:01:58 +03:00
Sadick
80bf68edbc Fix path when copying resource (#21900)
When copying resource from `{repositoryRootPath}/resources/win/*` to `{bundledResourcesPath}/cli/*`, omitted the {repositoryRootPath}.

Co-authored-by: yoonhyung <yoonhyungkim@webida.org>
2021-01-28 12:24:23 +03:00
Amin Yahyaabadi
11b9559a5b Bump minidump @aminya/minidump@0.19.0-8 (#21792)
* ⬆️ Bump minidump @aminya/minidump@0.19.0-8
2021-01-27 21:51:06 +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
Jose Ramon C
719be6bc1d Fix js colors to match solarized dark example (#19991)
Match JS colours more closely the original solarized spec.
2021-01-26 07:56:27 +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
DeeDeeG
8d471a58e5 Update the "welcome" package's package-lock.json (#21887)
Gets rid of warnings about cache keys changing in the macOS Tests packages-2 job.
2021-01-25 21:35:39 +03:00
Amin Yahyaabadi
7f38e3f641 Line ending selector refactor (#20542)
Making code modular by introducing Selector class
2021-01-25 19:10:31 +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
Benjamin Gray
4e1f76530c Define npm_config_jobs env variable in build scripts (#21315)
Adds the npm_config_jobs env variable across build scripts that may benefit from it (ones that run apm install). This variable is used by node-gyp to compile native code with a number of threads equal to the reported CPU core count
2021-01-22 23:03:30 +03:00
Amin Yahyaabadi
0008c25757 don't use then on an awaited function 2021-01-21 21:20:44 +03:00
Amin Yahyaabadi
12ddf94d25 support sync conditions 2021-01-21 21:20:44 +03:00
DeeDeeG
79446ad2ef CI: Cache the packages/ directory (#21884)
Ensures we do not miss restoring these packages' node_modules folders
when running the post-build jobs (the test jobs in particular).
2021-01-21 20:53:15 +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
Sadick
082c2c1f6a Revert "⬆️ tree-sitter-rust@0.17.0 (#21790)" (#21880)
This reverts commit ea5dbdfb57.
2021-01-20 10:39:00 +03:00
Kane Montreuil
f0cdefbe7f Consolidate log files (#13121) 2021-01-19 07:13:58 +03:00
Dhairya
3a371bb25e 📝 Update Contributing.md (#20707)
* Update Contributing.md
2021-01-19 06:34:39 +03:00
Musa Ibrahim
ea5dbdfb57 ⬆️ tree-sitter-rust@0.17.0 (#21790) 2021-01-19 05:10:00 +03:00
dependabot[bot]
2182479e4f ⬆️ Bump ini from 1.3.5 to 1.3.7 in /script/vsts (#21793)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-18 19:44:31 +03:00
dependabot[bot]
c87216bb62 ⬆️ Bump ini from 1.3.5 to 1.3.7 (#21791)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-18 19:43:40 +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
Dr. Bryan Roessler
e231837705 Update Dockerfile (#20845)
Update base image, dependencies, add ENTRYPOINT, and don't ADD source to reduce image size
2021-01-12 22:32:10 +03:00
dependabot[bot]
d885f15697 ⬆️ Bump highlight.js from 9.18.1 to 9.18.5 (#21758)
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.18.1 to 9.18.5.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/9.18.5/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/9.18.1...9.18.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-12 21:49:44 +03:00
Ivan
3ea504256a update language-java (#21852) 2021-01-12 20:06:51 +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
Sadick
c1fd11cc62 Merge pull request #21848 from atom/electron-signing
Add Authorization
2021-01-06 05:23:17 +03:00
sadick254
b9ef64e667 Add authorization 2021-01-04 22:19:26 +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
darangi
0af360a8e0 ⬇️ text-buffer@13.17.4 2020-12-10 12:28:47 +01:00
darangi
853d162950 ⬆️ text-buffer@13.18.5 2020-12-10 09:26:01 +01:00
Hubot
d2e7d16f59 1.56.0-dev 2020-12-09 10:54:25 -06:00
Musa Ibrahim
4c30215f20 Merge pull request #21787 from UziTech/patch-10
fix async confirm
2020-12-08 14:32:04 +01:00