Kirill Bulatov
4cccb4e3d0
Fix LSP shenanigans when opening and/or editing settings files ( #4212 )
...
Fixes
* LSP servers never being shut down on worktree release
* worktrees (and LSP servers) being re-created for settings files on
every opening
Also,
* removes `async` from `workspace_configuration` to simplify the code:
we only return static configurations now
Release Notes:
- Fixed excessive LSP server creation for Zed settings files
2024-01-23 13:20:00 +02:00
Kirill Bulatov
5e0cabc394
Create a special worktree for settings files
...
To avoid LSP server restarts/leaks when those are being opened
co-authored-by: Piotr <piotr@zed.dev>
2024-01-23 13:10:30 +02:00
Kirill Bulatov
ab8585ee7e
Remove the async
modifier from the workspace_configuration
method
2024-01-23 11:58:17 +02:00
Thorsten Ball
f8939fd859
Trim diagnostic messages to fix rendering bug
...
Before this change a diagnostic message with a trailing newline (e.g.
`line1\nline2\n`) would be rendered in a `Block` with `line_height: 2`.
But the content we then display in this block had 3 "lines", which
pushed the content out of the block.
This fixes the issue by trimming the newlines at the end from the
diagnostics.
Co-authored-by: Antonio <antonio@zed.dev>
2024-01-23 10:36:06 +01:00
Kirill Bulatov
351914f4bd
Clean up LSP servers on worktree release
2024-01-23 11:34:51 +02:00
Piotr Osiewicz
6c82380232
chore: Fix clippy::needless_borrow up to an editor
2024-01-21 15:03:24 +01:00
Max Brunsfeld
1ceccdf03b
Move the details of completion-resolution logic into Project
...
Co-authored-by: Conrad <conrad@zed.dev>
2024-01-19 11:52:28 -08:00
Max Brunsfeld
9ec6855e6b
Start work on API docs for the language crate ( #3981 )
2024-01-19 10:04:45 -08:00
Marshall Bowers
01f06f96a1
Update tenses of doc comment summary lines ( #4161 )
...
This PR updates the tenses used by the summary line of doc comments to
match the [Rust API documentation
conventions](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#summary-sentence ).
Specifically:
> The summary line should be written in third person singular present
indicative form. Basically, this means write ‘Returns’ instead of
‘Return’.
I'm sure there are plenty occurrences that I missed.
Release Notes:
- N/A
2024-01-19 11:18:50 -05:00
Max Brunsfeld
b65cf6d2d9
Merge branch 'main' into language-api-docs
2024-01-18 15:06:45 -08:00
Mikayla
57400e9687
Fix typos detected by crate-ci/typos
2024-01-17 14:31:21 -08:00
Max Brunsfeld
6457ccf9ec
Add docs for buffer.rs
...
Co-authored-by: Antonio <antonio@zed.dev>
2024-01-17 10:08:42 -08:00
Mikayla
5897b18cfd
remove more commented code
2024-01-12 20:10:40 -08:00
Conrad Irwin
f418bd907d
Stop following when project is unshared
...
Before this change the views would continue to update in the background
of the "disconnected" dialogue, which was disconcerting.
2024-01-10 23:09:09 -07:00
Conrad Irwin
844d161c40
Allow adding write access to guests
2024-01-08 22:02:56 -07:00
Conrad Irwin
59a1648445
Disallow creating files with '..' ( #3156 )
...
Release Notes:
- Fixed a crash that could occur when creating files with '..' in the
path
2024-01-08 15:43:57 -07:00
Conrad Irwin
71149bc7cc
Fix relative path opening from project symbols
...
Co-Authored-By: Max <max@zed.dev>
2024-01-08 15:12:22 -07:00
Conrad Irwin
604fcd8f1d
No .. paths...
2024-01-08 13:46:08 -07:00
Piotr Osiewicz
e4b1c76895
Display setting documentation in settings.json ( #3936 )
...
Let this screenshot of settings.json speak for itself:
![image](https://github.com/zed-industries/zed/assets/24362066/fca60383-1788-43f9-803b-00f083394c8a )
Release Notes:
- Added code completion & on-hover documentation to Zed's settings.json
file.
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-01-08 19:30:18 +01:00
Conrad Irwin
3c0052850c
Merge branch 'main' into channel-guests
2024-01-05 10:05:59 -07:00
Conrad Irwin
d2afc97b53
Tidy up branch
2024-01-04 11:55:14 -07:00
Piotr Osiewicz
3d1023ef52
lsp: Do not cache initialization options
2024-01-04 19:54:58 +01:00
Conrad Irwin
84171787a5
Track read_only per project and buffer
...
This uses a new enum to avoid confusing booleans
2024-01-03 19:31:43 -07:00
Conrad Irwin
bf304b3fe7
Track room participant role
...
(Also wire that through to project collaboration rules for now)
2024-01-03 19:30:32 -07:00
Conrad Irwin
88ed5f7290
Plumbing to pass role
for room participants
2024-01-03 19:30:32 -07:00
Max Brunsfeld
28c39aae17
Start work on read-only project access for channel guests
...
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 19:30:32 -07:00
Max Brunsfeld
f5ba22659b
Remove 2 suffix from gpui
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 12:59:39 -08:00
Max Brunsfeld
4305c5fdbe
Remove 2 suffix for ui, storybook, text
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 12:33:51 -08:00
Max Brunsfeld
0cf65223ce
Remove 2 suffix for collab, rope, settings, menu
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 12:29:16 -08:00
Max Brunsfeld
177e3028a9
Remove 3 suffix for git crate
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 12:11:59 -08:00
Max Brunsfeld
5ddd298b4d
Remove 2 suffix for fs, db, semantic_index, prettier
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 12:09:42 -08:00
Max Brunsfeld
53bdf6beb3
Remove 2 suffix for client, call, channel
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 12:02:14 -08:00
Max Brunsfeld
9f99e58834
Remove 2 suffix for lsp, language, fuzzy
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:58:02 -08:00
Max Brunsfeld
c5a1950522
Remove 2 suffix for project
...
Co-authored-by: Mikayla <mikayla@zed.dev>
2024-01-03 11:53:34 -08:00
Kirill Bulatov
7e21e0f0eb
Do not panic on non-worktree file indexing
2023-12-18 13:10:26 +02:00
Kirill Bulatov
27d6432c84
Rework the way project panel auto reveals entries
...
* gitignored entries are never auto revealed
* `project_panel::auto_reveal_entries = true` settings entry was added,
setting it to `false` will disable the auto reveal
* `pane::RevealInProjectPanel` action was added that activates the project panel and reveals the entry it got triggered on (including the gitignored ones)
2023-12-12 11:38:51 +02:00
Kirill Bulatov
55374e8ac0
Port to gpui1
2023-12-11 12:28:22 +02:00
Kirill Bulatov
16b5d4b35c
Port to gpui2
2023-12-05 16:13:39 +02:00
Kirill Bulatov
e5616bce98
Fix the test
2023-12-05 12:45:44 +02:00
Kirill Bulatov
92fbdb429c
Add project search in gitignored test
2023-12-05 12:45:44 +02:00
Kirill Bulatov
b43dc480a9
Integration tests for excluded files
2023-12-05 12:45:44 +02:00
Kirill Bulatov
2c2c14a360
Fix the regex matcher
2023-12-05 12:45:36 +02:00
Kirill Bulatov
f0ca7141b8
Ignore excluded files on worktree entry refresh
2023-12-05 12:30:29 +02:00
Kirill Bulatov
1f6c69c7dc
Allow opening buffers without a project entry
2023-12-05 12:30:29 +02:00
Kirill Bulatov
45230dcaf3
Log project path that was no open due to no project entry found
2023-12-04 12:45:57 +02:00
Kirill Bulatov
69bfd47cf9
Exclude gitignored files' diagnostics from project panel and its indicator.
...
The diagnostics are collected and available still, since that might become a settings/UI toggle later.
Also, buffer diagnostics are still updated for gitignored files.
2023-11-30 15:46:30 +02:00
Kirill Bulatov
f9cd45269a
Fix eslint diagnostics by passing worktree root during workspace init
2023-11-30 11:38:16 +02:00
Kirill Bulatov
d92153218c
Log prettier installation start & success
2023-11-29 13:44:19 +02:00
Kirill Bulatov
3e3b64bb1c
Fix the tests
2023-11-29 12:10:41 +02:00
Kirill Bulatov
6e44f53ea1
Style fixes
2023-11-29 11:33:29 +02:00
Kirill Bulatov
f1314afe35
Simplify default prettier installation function
2023-11-29 10:58:22 +02:00
Kirill Bulatov
96f6b89508
Clear failed installation task when error threshold gets exceeded
2023-11-29 10:58:22 +02:00
Kirill Bulatov
acd1aec862
Properly determine default prettier plugins to install
2023-11-29 10:58:22 +02:00
Kirill Bulatov
64259e4a0b
Properly increment installation attempts
2023-11-29 10:58:22 +02:00
Kirill Bulatov
465e53ef41
Always install default prettier
2023-11-29 10:58:22 +02:00
Kirill Bulatov
46ac82f498
Do not attempt to run default prettier if it's not installed yet
2023-11-29 10:58:22 +02:00
Kirill Bulatov
938f2531c4
Always write prettier server file
2023-11-29 10:58:22 +02:00
Kirill Bulatov
eab3476304
Split prettier code off to a separate module
2023-11-29 10:58:22 +02:00
Kirill Bulatov
e7e56757dc
Limit prettier installation and start attempts
2023-11-29 10:58:22 +02:00
Kirill Bulatov
c288c6eaf9
Use enum variants for prettier installation and startup phases
2023-11-29 10:58:22 +02:00
Kirill Bulatov
d010f5f98d
Exctract the common code
2023-11-29 10:58:22 +02:00
Kirill Bulatov
31a4acf98a
Fix collab tests
2023-11-24 12:56:58 +02:00
Kirill Bulatov
95a413847a
Properly ignore FS events of excluded files
2023-11-24 11:59:13 +02:00
Kirill Bulatov
4a060db801
Add a test
2023-11-24 11:59:13 +02:00
Kirill Bulatov
c2751c717e
Parallelize ignored entries for search lookup
2023-11-23 09:53:00 +02:00
Kirill Bulatov
566857b0b7
Output non-ignored files first
2023-11-22 19:03:27 +02:00
Kirill Bulatov
92953fb53d
If enabled, search in ignored files during project search
2023-11-22 16:41:02 +02:00
Kirill Bulatov
d352a63d9d
Port new workspace logic to gpui2, uncomment most of the workspace2 tests
2023-11-17 22:54:19 +02:00
Kirill Bulatov
616bda85e9
Fix the tests
2023-11-17 21:40:57 +02:00
Kirill Bulatov
2759ed4d00
An attempt to ignore git regularly
2023-11-17 21:40:57 +02:00
Kirill Bulatov
8180938401
Fix most of the TODOs
2023-11-17 21:40:57 +02:00
Kirill Bulatov
6028cd90d4
Retract back to original scanning strategy
...
Do not descend into ignored directories, to avoid tracking their state.
2023-11-17 21:40:57 +02:00
Kirill Bulatov
906db58188
Defer ignored dirs scanning
2023-11-17 21:40:57 +02:00
Kirill Bulatov
30fefa0ef8
Use a better name
2023-11-17 21:40:57 +02:00
Kirill Bulatov
5f468970f0
Fix some of the old tests
2023-11-17 21:40:57 +02:00
Kirill Bulatov
d3ce82e82c
Fix the new test
2023-11-17 21:40:57 +02:00
Kirill Bulatov
cafeba103b
Exclude ignored opened buffers from search
2023-11-17 21:40:57 +02:00
Kirill Bulatov
ce2cfc6035
Fix the ! bug, better test draft
2023-11-17 21:40:57 +02:00
Kirill Bulatov
26f7e66b49
Add default scan excluded files settings
2023-11-17 21:40:56 +02:00
Kirill Bulatov
9373d38434
Rescan worktree on scan exclusions settings change
2023-11-17 21:40:56 +02:00
Kirill Bulatov
1612c90052
More lenient file path matchers
2023-11-17 21:40:56 +02:00
Kirill Bulatov
b8be720490
Fix the bugs
2023-11-17 21:40:56 +02:00
Kirill Bulatov
126e4cce8f
Scan all ignored files by default now
2023-11-17 21:40:56 +02:00
Kirill Bulatov
401f85bed2
Properly ignore elements from configured exceptions
2023-11-17 21:40:56 +02:00
Kirill Bulatov
9072e5a507
Properly set ignore stacks and is_ignored values
2023-11-17 21:40:56 +02:00
Kirill Bulatov
7d97dfa6be
Test and filter data draft
2023-11-17 21:40:56 +02:00
Kirill Bulatov
a5c615ceb4
Pass a new query parameter into the search
2023-11-17 21:40:56 +02:00
Max Brunsfeld
0bed5e4562
Port buffer reload bug fixes back to gpui1 crates
2023-11-16 16:03:14 -08:00
Kirill Bulatov
888098bad2
More detailed errors when opening files
2023-11-15 16:20:00 +02:00
Kirill Bulatov
2e957bc564
Do not propose prettier formatters for documents in node_modules/
2023-11-09 14:49:37 +02:00
Kirill Bulatov
8be07eddcc
Change locate prettier method signature
2023-11-09 14:23:33 +02:00
Kirill Bulatov
09346fb9f1
Port changes to zed2
2023-11-03 11:02:50 +02:00
Kirill Bulatov
24dd1c5812
Properly order default prettier installations and startups
2023-11-03 11:02:50 +02:00
Kirill Bulatov
244c693968
Reuse already running default prettiers
2023-11-03 11:02:50 +02:00
Kirill Bulatov
cf95f9b082
Make it more clear that missing prettier is to blame
2023-11-03 11:02:50 +02:00
Kirill Bulatov
369b5140fb
Restore LSP names for prettier servers
2023-11-03 11:02:50 +02:00
Kirill Bulatov
b75d8a60a8
Simplify
2023-11-03 11:02:50 +02:00
Kirill Bulatov
ff144def63
Fix the bugs
2023-11-03 11:02:50 +02:00
Kirill Bulatov
6bbb79a9f5
Rework prettier installation and start
2023-11-03 11:02:50 +02:00
Kirill Bulatov
d673efebd2
Add prettier workspace resolution test
2023-11-03 11:02:50 +02:00