Peter Tripp
5445f898e8
ruby: Move Ruby extension to zed-extensions/ruby repo ( #19098 )
2024-10-15 15:41:20 -04:00
Peter Tripp
0fc3072362
Document extension extraction process ( #19085 )
...
Release Notes:
- N/A
2024-10-11 16:33:40 -04:00
Marshall Bowers
d976c5f1b6
gleam: Extract to external repository ( #19072 )
...
This PR transfers the Gleam extension over to the @gleam-lang
organization:
https://github.com/gleam-lang/zed-gleam
Release Notes:
- N/A
2024-10-11 10:05:46 -04:00
狐狸
f05b440572
Improve syntax highlights ( #18728 )
...
Closes #18722
- Replace the `@escape` capture name with `@string.escape` for escape
sequences in Go, Python, Regex, Racket, Ruby, and Scheme.
- Rust
- Add syntax highlighting for escape sequences. Close #18722
- Fix the issue where `@punctuation.delimiter` is being overwritten by
`@operator`.
- Add the period (".") to `@punctuation.delimiter`.
Release Notes:
- N/A
2024-10-09 19:25:46 +02:00
Peter Tripp
f33019c885
Document extension bump process ( #18872 )
...
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-08 16:13:56 -04:00
Peter Tripp
7960468d8a
dart: Bump to v0.1.1 ( #18859 )
...
- Includes https://github.com/zed-industries/zed/pull/18845
2024-10-08 14:25:29 -04:00
Marshall Bowers
5377674fc0
csharp: Add support for triple-slash doc comments ( #18869 )
...
This PR adds support for triple-slash (`///`) doc comments in C#.
As requested by https://github.com/zed-industries/zed/issues/18766 .
Release Notes:
- N/A
2024-10-08 13:54:11 -04:00
Peter Tripp
dd44168cad
dart: Improve indentation ( #18845 )
...
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-08 10:20:20 -04:00
Marshall Bowers
d1a758708d
php: Bump to v0.2.1 ( #18815 )
...
This PR bumps the PHP extension to v0.2.1.
Changes:
- https://github.com/zed-industries/zed/pull/18368
- https://github.com/zed-industries/zed/pull/18774
Release Notes:
- N/A
2024-10-07 10:23:16 -04:00
Marshall Bowers
7c7151551a
proto: Bump to v0.2.0 ( #18814 )
...
This PR bumps the Protobuf extension to v0.2.0.
Changes:
- https://github.com/zed-industries/zed/pull/18763
Release Notes:
- N/A
2024-10-07 10:11:12 -04:00
Peter
06bd2431d2
proto: Add language server support ( #18763 )
...
Closes #18762
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-06 10:12:06 -04:00
Roman Zipp
200b2bf70a
php: Add syntax highlighting for Intelephense completions ( #18774 )
...
Release Notes:
- N/A
This PR introduces syntax highlighting for intelephense autocomple. The
styling was selected to roughly match PHPStorm's default scheme.
Please note that I'm not very familiar with writing Rust, but I'm happy
to adapt to any requested changes!
## Examples
### Object attributes, methods and constants
![Screenshot 2024-10-06 at 13 38
03](https://github.com/user-attachments/assets/a91634ff-0f2e-41f0-b548-ecb09c40947c )
![Screenshot 2024-10-06 at 13 38
11](https://github.com/user-attachments/assets/b6f179f4-898b-4d82-9d36-a3e82328325c )
### Typed enum members
![Screenshot 2024-10-06 at 13 38
53](https://github.com/user-attachments/assets/7133b981-4f68-4210-b233-403cdf3ec9bb )
![Screenshot 2024-10-06 at 13 38
41](https://github.com/user-attachments/assets/2e806f3d-3538-45f2-b075-b8be5902b786 )
### Variables
Includes altered highlighting for [reserved variable
names](https://www.php.net/manual/en/reserved.variables.php ).
![Screenshot 2024-10-06 at 13 39
30](https://github.com/user-attachments/assets/be426eb8-5879-432d-b302-391c2c68a7cb )
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-06 10:11:21 -04:00
Marshall Bowers
cddd7875a4
Extract Protocol Buffers support into an extension ( #18704 )
...
This PR extracts the Protocol Buffers support into an extension.
Release Notes:
- Removed built-in support for Protocol Buffers, in favor of making it
available as an extension. The Protocol Buffers extension will be
suggested for download when you open a `.proto` file.
2024-10-03 13:37:43 -04:00
Sylvain Brunerie
898d48a574
php: Add syntax highlighting inside heredoc strings ( #18368 )
...
PHP heredoc strings make it easy to define string literals over multiple
lines:
```php
$someString = <<<EOT
multiline
text
EOT;
```
That `EOT` identifier can be anything else, and it is actually being
used in Sublime Text and VS Code to inject syntax highlighting for
another language in said string, depending on the identifier. For
instance, if the identifier is SQL, SQL syntax highlighting will be
applied to the contents of the string. Likewise if the identifier is CSS
or JS.
```php
$someString = <<<SQL
SELECT *
FROM my_table
SQL;
```
This PR changes the PHP extension so that it supports that feature too.
Release Notes:
- php: Added syntax highlighting inside heredoc strings
2024-09-30 10:02:12 +03:00
Taras Martyniuk
1deed247eb
terraform: Bump to v0.1.1 ( #18382 )
...
This PR bumps the Terraform extension to v0.1.1
- https://github.com/zed-industries/zed/pull/17200
Release Notes:
- N/A
2024-09-26 08:36:58 -04:00
狐狸
1f54fde4d2
toml: Add highlight for escape sequences ( #18346 )
2024-09-25 13:29:02 -04:00
Thorsten Ball
eb71d2f1a8
zig: Fix highlighting of keywords like orelse
, or
, and
( #18323 )
...
This changes the Zig highlights.scm to tag all keywords with `@keyword`
and not with `@keyword.<subtype>`, so the highlighting works properly.
Closes #9355
Release Notes:
- N/A
Demo:
![screenshot-2024-09-25-09 32
20@2x](https://github.com/user-attachments/assets/567b8817-a522-4741-af7f-dcb1a79ddd40 )
2024-09-25 10:03:10 +02:00
Peter Tripp
6b56530a4a
lua: Bump to v0.1.0 ( #18246 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
This PR bumps the Lua extension to v0.1.0
- https://github.com/zed-industries/zed/pull/18199
- https://github.com/zed-industries/zed/pull/16955
2024-09-23 19:53:28 -04:00
狐狸
1ff10b71c8
lua: Add auto-close for single quote strings and highlight escape sequences ( #18199 )
...
- Add auto close to single quote string
- Add syntax highlights to escape sequence
2024-09-23 15:39:01 -04:00
Marshall Bowers
97dc1d193f
Use @tag.doctype
for HTML doctype highlights ( #18024 )
...
This PR updates the following extensions to use the `@tag.doctype`
selector for highlighting HTML doctypes:
- Astro
- Elixir (HEEx)
- HTML
Additionally, it also changes the base selector for HTML tags from
`@keyword` to `@tag`.
| Before | After |
|
-------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------
|
| <img width="308" alt="Screenshot 2024-09-18 at 2 04 41 PM"
src="https://github.com/user-attachments/assets/818d98ba-fce7-4683-b67f-61c86543831c ">
| <img width="358" alt="Screenshot 2024-09-18 at 2 05 00 PM"
src="https://github.com/user-attachments/assets/5071db7c-e0bf-44df-8959-38275833833b ">
|
Extracted this from https://github.com/zed-industries/zed/pull/16723 .
Release Notes:
- N/A
---------
Co-authored-by: 狐狸 <134658521+Huliiiiii@users.noreply.github.com>
2024-09-18 14:24:09 -04:00
Graham Taylor
e7912370e6
perplexity: Remove duplicate step and fix numbering in README ( #17978 )
...
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-17 18:31:06 -04:00
Marshall Bowers
06a13c2983
svelte: Bump to v0.2.0 ( #17962 )
...
This PR bumps the Svelte extension to v0.2.0.
Changes:
- https://github.com/zed-industries/zed/pull/17529
Release Notes:
- N/A
2024-09-17 15:33:28 -04:00
Marshall Bowers
869a72bb3f
ruff: Bump to v0.1.0 ( #17960 )
...
This PR bumps the Ruff extension to v0.1.0.
Changes:
- https://github.com/zed-industries/zed/pull/15852
- https://github.com/zed-industries/zed/pull/16955
- https://github.com/zed-industries/zed/pull/17883
Release Notes:
- N/A
2024-09-17 14:21:06 -04:00
ClanEver
fc43b21e78
ruff: Fix wrong Ruff path on Windows ( #17883 )
...
Log:
2024-09-16T22:32:04.7715712+08:00 [ERROR] failed to start language
server "ruff": failed to spawn command. path:
"...\\AppData\\Local\\Zed\\extensions\\work\\ruff\\ruff-0.6.5\\ruff-x86_64-pc-windows-msvc\\ruff"
The right path:
`...\\AppData\\Local\\Zed\\extensions\\work\\ruff\\ruff-0.6.5\\ruff.exe`
Release Notes:
- N/A
2024-09-17 14:10:37 -04:00
Marshall Bowers
76603a5fc6
ocaml: Bump to v0.1.0 ( #17945 )
...
This PR bumps the OCaml extension to v0.1.0.
Changes:
- https://github.com/zed-industries/zed/pull/16955
- https://github.com/zed-industries/zed/pull/17886
Release Notes:
- N/A
2024-09-17 12:13:06 -04:00
Albert Marashi
accff826ca
svelte: Migrate to tree-sitter-grammars/tree-sitter-svelte
( #17529 )
...
> [!NOTE]
> The https://github.com/tree-sitter-grammars/tree-sitter-svelte
repository seems to be more well maintained, with higher quality code,
and as per https://github.com/zed-extensions/svelte/issues/1 it was
suggested that we swap to this repository for Svelte grammars
- Closes https://github.com/zed-industries/zed/issues/17310
- Closes https://github.com/zed-industries/zed/issues/10893
- Closes https://github.com/zed-industries/zed/issues/12833
- Closes https://github.com/zed-extensions/svelte/issues/1
- Closes https://github.com/zed-industries/zed/issues/14943
- Closes https://github.com/zed-extensions/svelte/issues/2
- Added: buffer/file symbol outlines for `.svelte` (`outlines.scm`)
- Improved: Attribute directives & modifiers in `.svelte` files can be
styled independently.
- Fixed: issue where svelte expression inside quotes failed parsing
- Improved: Svelte components in Markup are styled differently from
tags.
- Added: Support for Svelte 5 syntax (`{#snippet children()}`, `{@render
foo()`)
- Change: Svelte now using
[tree-sitter-grammars/tree-sitter-svelte](https://github.com/tree-sitter-grammars/tree-sitter-svelte )
for language highlighting
- Added: Support for typescript syntax in svelte expressions
![image](https://github.com/user-attachments/assets/49d199ee-7550-49a7-912d-070cf691b029 )
![image](https://github.com/user-attachments/assets/848ac5b6-62da-4c42-8e24-b7023504f8af )
Release Notes:
- N/A
---
**tree-sitter-grammar things to improve**
- [ ] snippet functions aren't being treated as JS code
- [ ] we should be able to detect @component comments and treat them as
markdown
- [x] `foo:bar` style/class/prop directives
- [x] `--foo="..."` var fields
- [ ] snippet/if blocks's children may need to be indented a little
further
Will implement some of the rest of these in a separate PR
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-17 12:02:25 -04:00
Marshall Bowers
e88b48a9c7
ocaml: Fix indentation in files ( #17942 )
...
This PR fixes the indentation in the Dune-related files after
https://github.com/zed-industries/zed/pull/17886 .
Release Notes:
- N/A
2024-09-17 11:42:20 -04:00
Stanislav Alekseev
10cfaecffa
ocaml: Add Dune language support ( #17886 )
...
This uses my fork of the dune tree-sitter grammar to include the
generated files
Release Notes:
- N/A
2024-09-17 11:28:03 -04:00
Marshall Bowers
fb79346e6f
dart: Bump to v0.1.0 ( #17887 )
...
This PR bumps the Dart extension to v0.1.0.
Changes:
- https://github.com/zed-industries/zed/pull/16955
- https://github.com/zed-industries/zed/pull/17494
Release Notes:
- N/A
2024-09-16 11:57:34 -04:00
Yohanes Bandung Bondowoso
2cae6f3e08
dart: Respect LSP binary settings ( #17494 )
...
Enable configuring Dart's LSP from other means of installation types.
Some users don't install the `dart` binary, but uses version manager.
In the example, I uses [FVM](https://fvm.app/ ) (short for "Flutter
Version Manager").
I have tested this with "Install Dev Extensions".
Release Notes:
- N/A
cc other maintainer: @agent3bood @flo80
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-16 11:03:51 -04:00
Peter Tripp
4f251429c7
Add perplexity extension readme ( #17861 )
...
Release Notes:
- N/A
2024-09-15 19:45:06 -04:00
Marshall Bowers
93a3e8bc94
zed_extension_api: Fork new version of extension API ( #17795 )
...
This PR forks a new version of the `zed_extension_api` in preparation
for new changes.
Release Notes:
- N/A
---------
Co-authored-by: Max <max@zed.dev>
2024-09-13 10:54:23 -04:00
Marshall Bowers
331d28d479
php: Remove invalid node types from highlights queries ( #17680 )
...
This PR removes some invalid node types from the PHP highlights queries.
Release Notes:
- N/A
2024-09-10 23:37:37 -04:00
Dairon M.
8088d1a9b7
erlang: Bump to v0.1.0 ( #17679 )
...
Changes:
- https://github.com/zed-industries/zed/pull/14914
- https://github.com/zed-industries/zed/pull/14879
- https://github.com/zed-industries/zed/pull/14923
- https://github.com/zed-industries/zed/pull/15973
- https://github.com/zed-industries/zed/pull/16955
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-10 23:21:24 -04:00
Marshall Bowers
8f28445612
php: Bump to v0.2.0 ( #17674 )
...
This PR bumps the PHP extension to v0.2.0.
Changes:
- https://github.com/zed-industries/zed/pull/16720
- https://github.com/zed-industries/zed/pull/16955
- https://github.com/zed-industries/zed/pull/17243
- https://github.com/zed-industries/zed/pull/17545
Release Notes:
- N/A
2024-09-10 22:57:44 -04:00
Fernando Tagawa
b16af138e2
php: Add auto-indent ( #17545 )
...
Release Notes:
- N/A
2024-09-10 17:41:37 -04:00
Taras Martyniuk
f92d0de58d
terraform: Update indents ( #17200 )
...
Closes #15988
Fixed indent configuration for terraform/HCL
Release Notes:
- N/A
https://github.com/user-attachments/assets/09b44ac9-ef09-463c-876d-0fbcdd1f09c9
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-09 14:31:57 -07:00
Piotr Osiewicz
e6c1c51b37
chore: Fix several style lints ( #17488 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
It's not comprehensive enough to start linting on `style` group, but
hey, it's a start.
Release Notes:
- N/A
2024-09-06 11:58:39 +02:00
Marshall Bowers
7c9abcfd6c
slash-commands-example: Fix numbering in README ( #17452 )
...
This PR fixes the numbering in the README for the
`slash-commands-example` extension.
Release Notes:
- N/A
2024-09-05 15:39:09 -04:00
Marshall Bowers
9a5194b505
svelte: Bump to v0.1.1 ( #17414 )
...
This PR bumps the Svelte extension to v0.1.1.
Changes:
- https://github.com/zed-industries/zed/pull/17404
Release Notes:
- N/A
2024-09-05 10:14:20 -04:00
Albert Marashi
0988313805
svelte: Revert Tree-sitter grammar upgrade ( #17404 )
...
Closes : #17310
This PR https://github.com/zed-industries/zed/pull/17364 broke my svelte
code, downgrading to the previous commit SHA
`b08d070e303d2a385d6d0ab3add500f8fa514443` fixes the issue.
Until the following issue is resolved, the commit SHA should not be
updated
- tree-sitter-svelte issue I filed:
https://github.com/Himujjal/tree-sitter-svelte/issues/61
Release Notes:
- N/A
2024-09-05 10:05:38 -04:00
Marshall Bowers
4b094798e0
terraform: Bump to v0.1.0 ( #17365 )
...
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Docs / Check formatting (push) Waiting to run
This PR bumps the Terraform extension to v0.1.0.
Changes:
- https://github.com/zed-industries/zed/pull/16955
- https://github.com/zed-industries/zed/pull/16945
Release Notes:
- N/A
2024-09-04 13:44:43 -04:00
Marshall Bowers
6b23213d5f
svelte: Bump to v0.1.0 ( #17364 )
...
This PR bumps the Svelte extension to v0.1.0.
Changes:
- https://github.com/zed-industries/zed/pull/16955
- https://github.com/zed-industries/zed/pull/17323
Release Notes:
- N/A
2024-09-04 13:38:51 -04:00
Mathias
bde1c95158
svelte: Update Tree-sitter grammar ( #17323 )
...
Before:
![Screenshot from 2024-09-03
20-36-48](https://github.com/user-attachments/assets/c4eca8c9-977b-461c-bb0a-77c0d94554b8 )
After:
![Screenshot from 2024-09-03
20-43-44](https://github.com/user-attachments/assets/d9b9653c-29c0-4273-85ee-040fb51af07c )
Release Notes:
- N/A
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-04 10:00:19 -04:00
Patka
7844b9f38e
php: Add more keywords ( #17243 )
...
This list should now be complete according to the official list at
https://www.php.net/manual/en/reserved.keywords.php
2024-09-02 18:30:02 +00:00
Peter Tripp
16942610cb
examples: Update slash-commands-example readme ( #17204 )
...
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-01 14:02:14 -04:00
Vitaly Slobodin
7cc24eaf4b
ruby: Bump version to v0.2.0 ( #17128 )
...
**Changelog:**
- Replace default tasks with a stub message (#16752 )
- Update tree-sitter grammar for the Ruby language (#16892 )
- Rename `rbs` to `RBS` (#16893 )
- Upgrade `zed_extension_api` to v0.1.0 (#16907 )
Release Notes:
- N/A
2024-08-30 09:02:22 -04:00
Vitaly Slobodin
5af116d676
ruby: Replace default tasks with a stub message ( #16752 )
...
The Ruby world has many testing frameworks:
- Minitest
- RSpec
- quickdraw
- tldr
- and many others.
Attempting to support all of them through a single `tasks.json` file is
a challenging task and nearly impossible. All testing frameworks have
different running options and commands. It's still possible to use
tree-sitter queries to detect runnables in Ruby code but Zed lacks the
ability to detect the testing framework in a project that can be used to
detect the correct commands to run tests or runnables. The end user
knows the correct command and it's wise to delegate creating the command
to them. It would be a bit strange to leave the user without any
guidance, so this commit adds example tasks for various Ruby testing
frameworks.
Closes #12579
Here is the screenshot how it looks:
![CleanShot 2024-07-01 at 19 37
08@2x](https://github.com/zed-industries/zed/assets/1894248/e9659822-6c02-4afb-a0e4-e9966b9fb2f5 )
Release Notes:
- N/A
2024-08-29 10:32:05 -07:00
Taras Martyniuk
a4893ab561
terraform: Add outline queries ( #16945 )
...
Closes #16944
Added outline schema for terraform/HCL
Release Notes:
- N/A
![SCR-20240827-omjs](https://github.com/user-attachments/assets/48a31863-e848-4a86-97b7-67440d62c93f )
2024-08-28 21:51:08 -07:00
Marshall Bowers
ace8734b63
Revert "extension: Define capabilities in the extension manifest ( #16953 )" ( #17003 )
...
This PR reverts the addition of extension capabilities from #16953 .
While these may end up being useful at some point, after some discussion
they don't seem like the exact fit for what we're looking to do right
now.
This reverts commit 8ec36f1e2b
.
Release Notes:
- N/A
2024-08-28 09:30:13 -04:00