Commit Graph

42103 Commits

Author SHA1 Message Date
Andrew Dupont
678c1b7bd7
Address feedback
Co-authored-by: Maurício Szabo <mauricioszabo@users.noreply.github.com>
2024-05-14 18:37:24 -07:00
Andrew Dupont
5024f052e0
Merge pull request #974 from savetheclocktower/tree-sitter-may
Tree-sitter rolling fixes, 1.117 edition
2024-05-13 22:53:46 -07:00
DeeDeeG
f560f7a2e5 CI: brew uninstall node@20 in .cirrus.yml
Apparently it's not the "node" cask anymore in the base CI image,
it's the "node@20" cask. Wow.

The workaround of uninstalling this is still needed,
it's just that the package name has changed.
2024-05-13 19:09:06 -04:00
DeeDeeG
ea9182aab1 CI: Remove workaround for Homebrew node in Cirrus on macOS
This workaround was necessary before because something broke.

Now the workaround is the thing that breaks things.

Go figure.
2024-05-13 18:16:10 -04:00
confused_techie
8893ad2a35
Merge pull request #1000 from HonkingGoose/patch-1
Update Renovate preset name
2024-05-11 15:17:54 -07:00
HonkingGoose
b997853b24
Update Renovate preset name 2024-05-11 19:06:07 +02:00
DeeDeeG
c6f2d8dc29
Merge pull request #995 from pulsar-edit/debug-for-services
Debugging when a package service is incorrect
2024-05-10 01:37:06 -04:00
confused_techie
6c1f1ad697
Merge pull request #993 from pulsar-edit/bundle-snippets
Bundle snippets
2024-05-08 17:05:04 -07:00
confused_techie
93ff819122
Update packages/README.md
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2024-05-07 07:40:39 -07:00
confused_techie
b2eff87510
Update packages/README.md
Co-authored-by: DeeDeeG <DeeDeeG@users.noreply.github.com>
2024-05-07 07:40:33 -07:00
Andrew Dupont
4ff4a8bd42 [language-sass] Bump tree-sitter-scss to fix a bug 2024-05-06 17:11:41 -07:00
confused-Techie
c4cdd373bf Merge branch 'master' into bundle-snippets 2024-05-05 23:57:50 -07:00
Andrew Dupont
74589feb9c Remove the loading indicator when there's a rendering error 2024-05-05 23:30:29 -07:00
Andrew Dupont
054100b43c Rework loading indicator for markdown-preview
…and make the pane appear earlier on first open.
2024-05-05 23:30:29 -07:00
Andrew Dupont
b46a7e8e86 Don't make TextEditor instances render synchronously…
…because we don't need it for our use case. Helps performance.
2024-05-05 23:30:29 -07:00
Andrew Dupont
18e0da8baa Fix atom.ui.markdown issue with rendering of HTML in code blocks 2024-05-05 23:30:29 -07:00
Andrew Dupont
62a35bccad Optimize re-rendering of content in a preview pane…
…especially syntax highlighting.

This change brings in `morphdom` to allow us to be more efficient about how we apply the changes needed when the Markdown source re-renders. Instead of replacing all the content with every single change, we apply only the selective edits needed to adapt our existing markup to the target markup.

Once this process is done, we introduce one `TextEditor` instance for each `pre` tag in the markup, then persist those editor elements in the rendered output so that we don't have to spend so much time creating and destroying editors. This is a _huge_ performance win, especially in documents with lots of code blocks. The editor instances are cached using the `pre` elements as keys, which is now possible because the `pre` elements themselves are preserved across re-renders.

Editors are created when new `pre` elements appear, and are destroyed when they are no longer needed, change their contents whenever the contents of the `pre` changes, and change language modes whenever the code fence language identifier changes.

This approach is now used no matter which Markdown renderer is employed; we manage syntax highlighting ourselves in all cases rather than letting `atom.ui.markdown` do it.
2024-05-05 23:30:29 -07:00
Andrew Dupont
8e9e05db44 [language-typescript] More highlighting fixes, especially for operators 2024-05-05 22:45:41 -07:00
Andrew Dupont
3d70f62953 [language-gfm] Make each block-level HTML tag its own injection…
…which, surprising as it sounds, has a _huge_ performance benefit.
2024-05-05 22:45:41 -07:00
Andrew Dupont
6d36685df3 [language-ruby] Update to latest Tree-sitter Ruby parser 2024-05-05 22:45:41 -07:00
Andrew Dupont
5ea9adf13b Avoid the cost of reading node.children when we don't need to 2024-05-05 22:45:41 -07:00
Andrew Dupont
5472e32e21 [language-sass] Force the TextMate grammar when running SassDoc specs 2024-05-05 22:45:41 -07:00
Andrew Dupont
da1912d1a7 [language-sass] Add SCSS Tree-sitter grammar 2024-05-05 22:45:41 -07:00
confused_techie
ac17cd589e
Merge pull request #997 from pulsar-edit/CI-pin-GHA-to-macos-12-runner-images
CI: Pin to macOS 12 runner images instead of macos-latest (GiHub Actions)
2024-05-05 22:38:09 -07:00
DeeDeeG
70f48e2770 CI: Pin to macOS 12 runner images instead of macos-latest (GiHub Actions)
There is an issue with the libiconv library not being available
in macOS 14 out of the box. We can get it from Homebrew perhaps,
but for now pin to macos-12 runner images so we can be assured
of having working CI faster, without having to R&D a libiconv-
related workaround for macOS 14.
2024-05-05 22:23:44 -04:00
Maurício Szabo
8064ea6c6b Debugging when a package service is incorrect
This PR is basically to add some debugging info for providers and
consumers. Currently, when a package registers as a service provider or
a service consumer, and doesn't actually implements the right interface
(a function, basically) the package loader silently ignores it. This
commit adds a warning to console so that we know a package did the wrong
thing.
2024-05-05 20:43:10 -03:00
Maurício Szabo
9e70a723c7 Fixed tags 2024-04-30 19:06:11 -03:00
Maurício Szabo
781060e01b Adding a tags query 2024-04-30 15:35:52 -03:00
Maurício Szabo
bd5d1f69ae Fixed Javascript injections for Clojure 2024-04-30 12:32:47 -03:00
Maurício Szabo
10c6eb0b0c Adding Jank as an extension 2024-04-30 12:32:30 -03:00
Maurício Szabo
754dcf2cc3 Removed test for Jank 2024-04-30 12:31:31 -03:00
Maurício Szabo
c7d3a00bce Removed Jank injection (they changed the API) 2024-04-30 12:14:05 -03:00
Maurício Szabo
a2a6d3e67e Merge remote-tracking branch 'origin/master' into clojure-grammar-enhancements 2024-04-30 11:10:27 -03:00
confused-Techie
15dd4f29c0 Update packages info 2024-04-28 13:22:01 -07:00
confused-Techie
4f02ca3b71 Bundle snippets 2024-04-28 13:16:43 -07:00
DeeDeeG
83f537c357
Merge branch 'master' into allow-window-transparency 2024-04-20 23:24:46 -04:00
savetheclocktower
313793d78d GH Action Documentation 2024-04-20 18:37:12 +00:00
Andrew Dupont
b1b6883c57
Merge pull request #973 from savetheclocktower/regenerate-github-css
[markdown-preview] Add dark mode for GitHub-style preview
2024-04-20 11:35:14 -07:00
confused_techie
5c193276a6
Merge pull request #545 from pulsar-edit/change-window-theme
Change Window Theme with Pulsar Theme
2024-04-19 16:28:31 -07:00
DeeDeeG
99b62977b9
Merge pull request #983 from pulsar-edit/update-deprecated-GH-Actions
CI: Upgrade or replace all deprecated GH Actions
2024-04-19 12:24:15 -04:00
confused_techie
c2af92f0f0
Merge pull request #980 from pulsar-edit/org-is-not-clojure
[language-clojure] Stop detecting `.org` files as `language-clojure`
2024-04-18 19:55:10 -07:00
DeeDeeG
419801037e CI: Replace git-auto-commit-action with a short inline script
Avoids another external dependency.
2024-04-18 21:39:49 -04:00
DeeDeeG
f4622128f0 CI: Fix editor test run on macOS (no xvfb-run on macOS) 2024-04-18 17:37:32 -04:00
DeeDeeG
0be235a212 CI: Upgrade or replace all deprecated GH Actions
Most of these were old versions of actions
which were running on Node 16. Upgraded them to newer versions
which run on Node 20 instead.

Also tried to replace setup-xvfb action with a direct xvfb-run command.
Let's hope this works.
2024-04-18 17:19:26 -04:00
DeeDeeG
6220705884 src: Allow windows to be transparent, behind a pref (off by default)
Add a `core.allowWindowTransparency` pref (off by default).

Sets `options.transparent = true` for the `browserWindow` `options`
when this pref is enabled.

Requires a restart to activate.

Co-credit to savetheclocktower for the revised description of the pref.

Co-authored-by: Andrew Dupont <github@andrewdupont.net>
2024-04-18 16:02:56 -04:00
confused-Techie
9f0e8a2c8a Stop detecting .org files as language-clojure 2024-04-17 19:29:57 -07:00
confused_techie
a6fe2bcf3c
Merge pull request #977 from pulsar-edit/v1.116.0-release
v1.116.0 Release
2024-04-15 20:39:52 -07:00
confused-Techie
68cedf0977 Add back -dev 2024-04-15 20:39:32 -07:00
confused-Techie
31d7d8460e Last minute bug fix in StyleManager Changes
Odd this wasn't caught in our initial specs. But this issue only effects specs, as the actual production code is able to assign the callback with a function reference rather than a string which is then used to assign the callback itself.
2024-04-15 17:45:48 -07:00
confused-Techie
84608dc503 bump version 2024-04-15 17:02:01 -07:00