Piotr Osiewicz
204fbd7a79
text: Wrap BufferId into a newtype
2024-01-29 20:00:47 +01:00
Piotr Osiewicz
a35e451ab6
language: Accept multiple values in line_comment language knob. ( #6713 )
...
This opens up a possibility of supporting multiple comment continuation
flavours in editor, e.g. doc comments for Rust (which we seize as well
in this commit). Only the first `line_comment` value is used for
Editor::ToggleComments
Fixes: https://github.com/zed-industries/zed/issues/6692
Release Notes:
- Added support for doc-comment continuations in Rust language.
2024-01-25 19:25:21 +01:00
Mikayla
0b43bd7c14
Fix typos detected by crate-ci/typos
2024-01-17 14:31:21 -08:00
Conrad Irwin
4260ed27f6
Track read_only per project and buffer
...
This uses a new enum to avoid confusing booleans
2024-01-03 19:31:43 -07:00
Max Brunsfeld and Mikayla
8e704c8a47
Remove 2 suffix for lsp, language, fuzzy
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 11:58:02 -08:00
Max Brunsfeld and Kirill
3248d712e5
Use normal JS comments within JSX tags and JSX expression blocks
...
Co-authored-by: Kirill <kirill@zed.dev >
2023-11-09 10:58:33 -08:00
Piotr Osiewicz
d2ff0ea117
chore: Upgrade to Rust 1.73 ( #3096 )
...
Release Notes:
- N/A
2023-10-06 14:50:29 +02:00
da054bfbb5
Avoid accidental gpui transitive dependency in collab
...
* Make Fs depend on Text, not vise versa
Co-authored-by: Joseph <joseph@zed.dev >
Co-authored-by: Mikayla <mikayla@zed.dev >
2023-08-30 13:16:01 -07:00
Piotr Osiewicz
0818c0d178
language: Make Buffer::new take an explicit ID ( #2900 )
...
See Linear description for the full explanation of the issue. This PR is
mostly a mechanical change, except for the one case where we do pass in
an explicit `next_id` instead of `model_id` in project.rs.
Release Notes:
- Fixed a bug where some results were not reported in project search in
presence of unnamed buffers.
2023-08-28 11:51:50 +02:00
Max Brunsfeld and Julia
c09b84178d
Fix regression in Buffer::language_scope_at
...
Co-authored-by: Julia <julia@zed.dev >
2023-08-18 12:58:09 -07:00
Max Brunsfeld
0bde85d0af
Use workspace dependencies for tree-sitter grammars
2023-07-14 09:25:51 -07:00
Max Brunsfeld
5046491590
Find the layer with the smallest enclosing node in language_scope_at
2023-07-14 09:11:56 -07:00
Max Brunsfeld
a3435cd0b0
Start work on a syntax tree view
2023-06-12 15:14:56 -07:00
Max Brunsfeld
6a31af8959
Show function parameters in elixir outline view
...
Introduce a new capture in the outline query called 'context.extra', which
causes text to appear in the outline, but not in the breadcrumbs.
2023-06-06 16:27:05 -07:00
Max Brunsfeld
56f2ff64ed
Define language settings in the language crate
2023-05-16 17:29:53 -07:00
Max Brunsfeld
d57a8d85f9
Introduce a LanguageServerId wrapper type
...
Clarify the meaning of all the usizes in use in all of these
struct fields an method signatures.
2023-04-20 08:58:41 -07:00
Julia and Nathan Sobo
2ae3ba38c2
Start getting diagnostics sets to work with multiple servers
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2023-04-20 08:58:41 -07:00
Max Brunsfeld
374d1fb8e3
Select language based on a file's first content line in addition to its path
2023-04-16 12:28:27 -07:00
Nathan Sobo
d937660683
Merge MutableAppContext into AppContext
...
There may have been a good reason for the difference at some point, or I was
still learning Rust. But now it's just &mut AppContext vs &AppContext.
2023-04-06 15:49:03 -06:00
Max Brunsfeld
f610d0ea51
Allow refreshing worktree entries while the initial scan is in-progress
2023-03-21 15:15:12 -07:00
Antonio Scandurra
28df591385
Allow waiting for language to be loaded in LanguageRegistry APIs
2023-03-10 12:17:47 +01:00
Antonio Scandurra
0f06a68593
Add randomized test to remove active selections from buffer
2023-03-09 07:47:05 +01:00
Max Brunsfeld
be1445076c
Apply external command formatting if buffer has changed while computing it
2023-03-01 10:17:04 -08:00
Max Brunsfeld
e4dc2de782
Avoid finalizing transactions inside Buffer::apply_diff
2023-02-28 21:52:00 -08:00
Max Brunsfeld
e0c9010104
Add setting for removing trailing whitespace on save
2023-02-28 21:52:00 -08:00
Max Brunsfeld
19dc1a1b1e
Add APIs for stripping trailing whitespace from a buffer
2023-02-28 21:52:00 -08:00
Max Brunsfeld
d6b369095f
Restructure how bracket pairs are overridden to unify lists
...
This way, a bracket pair that is disabled in a given scope can still be skipped, if
it was auto-closed before that scope existed.
2023-02-20 10:53:37 -08:00
Kay Simmons
7e98fc9a86
fix bracket ranges failing test
2023-02-17 17:19:23 -08:00
Kay Simmons
327c58fdc3
fix vim percent motion to better match the docs and observed behavior
2023-02-17 14:55:19 -08:00
Kay Simmons
6f1c04827f
use more predictable rules for selecting which bracket to jump to and where
2023-02-15 14:04:16 -08:00
Max Brunsfeld
278116bc25
Load languages lazily in the background
2023-01-25 17:47:46 -08:00
Max Brunsfeld
71b684108d
Add test for avoiding indent adjustment inside newly-created errors
2023-01-20 17:02:38 -08:00
Max Brunsfeld and Julia Risley
21cc5ebbcf
Drop 'override.' prefix from capture names in override query
...
Co-authored-by: Julia Risley <julia@zed.dev >
2023-01-20 10:44:33 -08:00
Max Brunsfeld and Julia Risley
b3dc191963
Implement scope-specific bracket matching and comment toggling
...
Co-authored-by: Julia Risley <julia@zed.dev >
2023-01-19 15:04:27 -08:00
Max Brunsfeld
30863cf803
Prevent outline items from accidentally spanning multiple lines
2023-01-18 16:43:18 -08:00
Max Brunsfeld
d6cf69a56c
Add a test for block-wise auto-indent without original indent info
2023-01-16 18:06:58 -08:00
Nathan Sobo
ce223e88fe
Fix tests that failed due to defaulting the grouping interval to zero in tests
2023-01-06 17:56:21 -07:00
Antonio Scandurra
55c5989abc
Synchronize buffers when either the host or a guest reconnects
2022-12-21 14:20:56 +01:00
Max Brunsfeld
e16439ad2b
Merge pull request #1912 from zed-industries/matching-brackets-must-contain-range
...
Fix enclosing-bracket bug that appeared in JS for loops
2022-11-23 13:44:48 -08:00
Max Brunsfeld
2c14c1a0ce
Fix enclosing-bracket bug that appeared in JS for loops
...
Previously, we were relying on the tree-sitter query's range restriction to
avoid returning brackets that did not contain the given range. But the
query's range restriction only guarantees that we don't descend into parent
nodes unless they intersect the range.
2022-11-23 13:37:22 -08:00
Julia and Max Brunsfeld
dde8f8e781
Clip diagnostic range before and during empty range expansion
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-11-23 13:21:05 -05:00
Julia
475e37d4cf
Wrap a bunch of traits for Unclipped<T>
2022-11-21 15:58:44 -05:00
Max Brunsfeld and Kay Simmons
a491a27b62
Add basic support for ruby
...
Co-authored-by: Kay Simmons <kay@zed.dev >
2022-11-03 15:52:33 -07:00
K Simmons
55b9eff3df
Add cursor blink setting and replicate cursor shape to remote collaborators
2022-10-17 16:20:47 -07:00
Max Brunsfeld
a2c9a67558
Re-export basic text types from text and language crates
...
Also avoid production dependencies on fs and rope in collab
2022-10-12 15:48:19 -07:00
Mikayla Maki
a9ce687031
Finished refactoring out fs and rope
2022-10-11 15:25:54 -07:00
Max Brunsfeld
20f22f78e4
Rename language::tests -> language::buffer_tests
2022-10-06 13:32:49 -07:00