Commit Graph

1603 Commits

Author SHA1 Message Date
DeeDeeG
3062b8a166 Changelog: Update for 1.122.0 2024-10-17 23:11:40 -04:00
Andrew Dupont
a2c236f06f
Merge pull request #1101 from pulsar-edit/tree-sitter-october
Tree-sitter rolling fixes, 1.122 edition
2024-10-15 18:34:26 -07:00
DeeDeeG
1ef8b8ec9c
Merge pull request #1058 from Digitalone1/master
Fix reading error of length property on null
2024-10-15 15:16:21 -04:00
Andrew Dupont
a564e9379a Remove logging 2024-09-29 14:21:35 -07:00
Andrew Dupont
40702769e1 [tree-view] Fix failing specs 2024-09-29 14:11:48 -07:00
Andrew Dupont
5cb8371bd9 [tree-view] Fix error when trying to delete files from the tree view
The cause was Electron’s removal of the synchronous `shell.moveItemToTrash` method in favor of the asynchronous `shell.trashItem` method.

(This is a BACKPORT candidate; it should work just fine in Electron 12.)
2024-09-29 13:32:36 -07:00
Andrew Dupont
f6ea101b87 [language-c] Restore some function highlighting in C++…
…that was inadvertently deleted.
2024-09-23 11:40:49 -07:00
Andrew Dupont
67857f8875 Un-focus a spec 2024-09-22 13:35:15 -07:00
Andrew Dupont
7cfee9c77a [language-c] Extract common parts of C and C++ highlights.scm
…into a new `common/highlights.scm`.

Add highlighting specs for C and C++ Tree-sitter grammars.
2024-09-22 13:12:06 -07:00
Andrew Dupont
3e3e0d6f0e [language-javascript] Add scope specs
The first of what will hopefully be a series of similar additions, ordered (roughly) by grammar complexity.
2024-09-20 11:52:08 -07:00
Andrew Dupont
4d350454c2 [language-c] Scope template delimiters properly in C++ 2024-09-19 13:44:59 -07:00
Andrew Dupont
22a23ed06b [language-php] Highlight null-safe property access correctly 2024-09-19 13:44:28 -07:00
DeeDeeG
8e61b8d19e Changelog: Add slash to fix closing <code> tag 2024-09-18 10:08:08 -04:00
DeeDeeG
5b4195cf3f Changelog: Add changelog entries for Pulsar 1.121.0 2024-09-18 00:22:37 -04:00
Andrew Dupont
836c348587
Merge pull request #1085 from pulsar-edit/tree-sitter-august
Tree-sitter rolling fixes: 1.121 edition
2024-09-16 19:12:29 -07:00
Andrew Dupont
986c697f10 [language-html] Update parserSource fields 2024-09-14 13:49:36 -07:00
Andrew Dupont
0f0050f398 [language-html] Update to latest Tree-sitter parsers…
…for `tree-sitter-html` and `tree-sitter-embedded-template`.

Fixed an inscrutable out-of-memory error I was getting in an EJS file.
2024-09-14 11:28:07 -07:00
confused_techie
a1095a8e00
Merge pull request #1071 from pulsar-edit/win-path-during-install
[windows] Add PATH manipulation to Pulsar installer
2024-09-13 13:02:56 -07:00
Andrew Dupont
44d7734e4c [language-gfm] Migrate to tree-sitter-markdown
…at new repo location.
2024-09-09 23:19:02 -07:00
Andrew Dupont
cdad4ffbbe [language-(java|type)script] Update injections…
…to conform to new `tree-sitter-(java|type)script` node structure for template strings.
2024-09-09 18:24:23 -07:00
Andrew Dupont
44ad31fb12 [symbol-provider-tree-sitter] Fix specs…
…after `tree-sitter-javascript` bump.
2024-09-09 17:33:38 -07:00
Andrew Dupont
03ba902e46 [language-(java|type)script]: Update Tree-sitter parsers to 0.23.0…
…and modify query files in response to all non–backwards-compatible changes.
2024-09-09 16:54:30 -07:00
Andrew Dupont
265d7e09c1 [language-(java|type)script] Scope ??=, ++, etc., as assignments 2024-09-07 20:53:26 -07:00
Andrew Dupont
72b1a6e0d2 [language-yaml] Update to newest tree-sitter-yaml 2024-09-07 18:17:25 -07:00
Andrew Dupont
87a9322415 Upgrade web-tree-sitter to 0.23.0…
…and update our API usages.

Tree-sitter harmonized the API differences between `web-tree-sitter` and
`node-tree-sitter` in version 0.22.0. This is the first time we’ve had to deal
with that. Luckily, the changes were mostly palatable.

The biggest API difference is in `Query#captures`; two positional arguments for
defining the extent of the query have been moved to keyword arguments. We’ve
updated our internal usages, but any community packages that relied on the old
function signature would break if we didn’t do anything about it. So we’ve
wrapped the `Query#captures` method in one of our own; it detects usages that
expect the old signature and rearranges their arguments, issuing a deprecation
warning in the process. Hopefully this generates enough noise that any such
packages understand what’s going on and can update.

Other API changes are more obscure — which is good, because we can’t wrap them
the way we wrapped `Query#captures`. They involve conversion of functions to
getters (`node.hasErrors` instead of `node.hasErrors()`), and there’s no good
way to make both usages work… short of wrapping nodes in `Proxy` objects, and
that’s not on the table.

Since lots has changed in `tree-sitter` since we last upgraded
`web-tree-sitter`, I updated our documentation about building a custom version
of `web-tree-sitter`.
2024-09-07 16:48:03 -07:00
Andrew Dupont
26be87490c [language-typescript] Scope ! in variable declarators 2024-09-04 16:44:00 -07:00
Andrew Dupont
9db65c0369 [language-java] Fix the scope on foo in foo.bar() 2024-08-26 20:23:47 -07:00
Andrew Dupont
738536f686 [language-php] Handle case-insensitive constants like TRUE/FALSE
…as booleans. Handle `NULL` in a similar way.
2024-08-26 20:20:38 -07:00
Andrew Dupont
338f68845c [language-css] Bump tree-sitter-css to 0.21.1
Fixes issue with parsing of selectors in `:has`, `:is`, and other pseudoclasses.
2024-08-17 10:33:48 -07:00
confused_techie
661468d43d
Merge pull request #1078 from pulsar-edit/v1.120.0-changelog
v1.120.0 Changelog
2024-08-15 19:03:19 -07:00
DeeDeeG
43b39930ef Changelog: Fix typo ("in" --> "an") 2024-08-15 22:00:00 -04:00
DeeDeeG
b41cfa4ea9 Changelog: Add note for the Tree-sitter 1.20.0 edition changes 2024-08-15 21:59:57 -04:00
DeeDeeG
d63ab231d0
Merge pull request #1062 from savetheclocktower/tree-sitter-august
Tree-sitter rolling fixes, 1.120 edition
2024-08-15 21:26:13 -04:00
confused-Techie
2fed59a7e5 Add new changelog entries 2024-08-15 17:08:44 -07:00
Andrew Dupont
6846b9cef2 Update a few stragglers for the query property renaming 2024-08-09 10:51:11 -07:00
Andrew Dupont
11e2f75b0c [language-(java|type)script] Fix indentation of case statements…
…when the user is typing and doesn't yet have a valid tree.
2024-08-09 10:06:27 -07:00
Andrew Dupont
2afd4b704a
Merge pull request #1043 from savetheclocktower/fix-snippet-indentation
[snippets] Fix incorrect range traversal when resolving variables
2024-08-08 18:49:02 -07:00
Andrew Dupont
af133b04f9 [language-typescript] Add bitwise operators
(could've sworn I did this already)
2024-08-05 18:52:04 -07:00
confused-Techie
a6dad23279 Remove Windows PATH handling from Pulsar core
This does add a notice about the change instead. Which should removed within a few versions.
2024-07-30 19:14:52 -07:00
Andrew Dupont
8090558242 Bump to the latest tree-sitter-hyperlink
…which has better support for certain URLs.
2024-07-25 16:24:12 -07:00
Giusy Digital
dad98e2b51
fix reading error of length property on null 2024-07-17 11:25:23 +02:00
DeeDeeG
a8c8b1d0fd
Merge pull request #1056 from pulsar-edit/1.119.0-changelog
Add v1.119.0 Changelog
2024-07-15 21:01:43 -04:00
confused-Techie
a2f1f48807 Modify previous changelog summary entries 2024-07-15 17:57:19 -07:00
confused-Techie
da285ded26 Added changelog notes for Tree-sitter changes 2024-07-15 17:45:20 -07:00
Andrew Dupont
9aeb99a325
Merge pull request #1028 from savetheclocktower/tree-sitter-july
Tree-sitter rolling fixes, 1.119 edition
2024-07-15 17:27:33 -07:00
confused-Techie
2d9ef7542b Add v1.119.0 Changelog 2024-07-15 17:21:25 -07:00
Andrew Dupont
22f1943ec2 Remove the last of the logging 2024-07-10 12:58:55 -07:00
Andrew Dupont
872886d8a6 Remove stray logging; add back documentation comments 2024-07-10 10:36:26 -07:00
Andrew Dupont
9c9737eaba Tweak getActivePath 2024-07-10 00:26:26 -07:00
Andrew Dupont
cbcd5568b7 Decaffeinate tree-view.js 2024-07-09 21:39:21 -07:00