Commit Graph

38084 Commits

Author SHA1 Message Date
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
darangi
5ca56fc790 fix serialization error 2021-03-17 22:15:03 +01:00
Musa Ibrahim
7574784426 Merge pull request #21927 from atom-community/incompatible-native-detection
fix: require .node files directly to detect incompatible native modules
2021-03-13 03:51:11 -08:00
Musa Ibrahim
c7bf8f1aa3 Merge pull request #22019 from atom/fix-dependency-bump-failure
Fixes failing Dependency Bump script
2021-03-10 11:18:44 -08:00
Ruby Allison Rose
b079194478 Fix git diff subscriptions (#21968)
The startup script now uses a `Set` to manage `GitDiffView`s held in memory and destroy them when `deactivate` is called.
There are now four major subscription blocks. 
1. The outer subscriptions held by `activate`.
2. The per-editor subscriptions held within `activate`.
3. The per-editor repository event subscriptions held within each `GitDIffView` instance.
4. The per-editor modification event subscriptions held within each `GitDiffView` are only active when the editor content is bound to a valid git repository.

Teardowns of any editor or the module now result in `disposal` of the respective editor's subscriptions or all subscriptions authored within the module.

I removed some of `GitDiffView`'s unnecessary methods such as the `start`, `cancleUpdate`, `addDecoration` and `removeDecorations`;
The last two methods were combined into the body of `updateDiffs`.
`scheduleUpdate` now calls `requestAnimationFrame` instead of `setImmediate` because it's native, standard, and yields
to other more important browser processes. I know Atom Core implements setImmediate, but rAF seems to work just as fast if not faster.
The memory management of the editor markers and diffs have been joined using a WeakMap. When the diffs are destroyed,
so too are the editor markers.
Finally, I added the `destroy` method to handle the teardown of subscriptions and other destroyable objects contained within the `GitDiffViews` before object release.
2021-03-08 21:12:07 +03:00
Amin Yahyaabadi
0f04fb2a74 test: add test for conditionally loaded .node files 2021-03-06 20:00:57 -06: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
Hubot
42f24335d6 1.57.0-dev 2021-03-05 11:51:16 -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
Sadick
7fbc957fba Clang 9 is already in the image. (#22000)
It's on the PATH and is the version that will be used without needing to do update-alternatives.
2021-03-03 17:48:30 +03:00
陈亿强
6f52e03bc4 Update LICENSE.md (#21997) 2021-03-02 10:24:09 +03:00
darangi
7a255bc138 rm .catch block 2021-03-01 19:01:36 +01:00
darangi
ce5e0f3068 use a default branch instead of master 2021-03-01 18:57:27 +01:00
Maarten Fonville
3d5c83be99 Add libxkbfile.so.1 to RPM Requires (#21980) 2021-02-23 07:00:08 +03:00
chbk
eb064bf502 Implement naming conventions in default themes (#20524)
Update of the default syntax themes to implement [naming conventions](https://github.com/atom/flight-manual.atom.io/pull/564) for syntax scopes.

Adds the [template](https://github.com/atom/apm/pull/883) to each theme with custom colors, to accommodate the naming conventions. There should be no compatibility break with existing grammars.

As naming conventions are implemented in more language grammars, their old specific stylesheets can be retired.
2021-02-19 08:55:25 +03:00
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