Max Brunsfeld
fad4365565
Fix association of 'json' lsp language id with JSON language
2022-07-12 15:43:59 -07:00
Max Brunsfeld
aee4f25a7a
Rename LanguageSettings -> EditorSettings
2022-07-12 11:42:43 -07:00
Antonio Scandurra
810a5d5318
Merge pull request #1252 from zed-industries/plugin
...
Language Server WebAssembly Plugin Integration (Part 2)
2022-07-12 11:04:20 +02:00
Isaac Clayton and Antonio Scandurra
2312266afa
Rewrite test_managing_language_servers to add languages after buffers are open
...
Co-Authored-By: Antonio Scandurra <antonio@zed.dev >
2022-07-12 10:25:11 +02:00
Isaac Clayton
99f67fde8c
Rename LspAdapterTrait to LspAdapter and LspAdapter to CachedLspAdapter
2022-07-12 09:29:38 +02:00
Antonio Scandurra
985d005da4
Don't prompt guest to save when closing window after disconnection
2022-07-12 09:05:39 +02:00
Isaac Clayton
617068fe7c
Fix minor issues in plugin and project raised during review
2022-07-11 16:40:12 +02:00
Isaac Clayton
030587e61b
Restore main version of Project::symbols and convert to async
2022-07-11 16:22:58 +02:00
Isaac Clayton
faacf63f39
Restore main version of Project::completions and convert to async
2022-07-11 15:55:07 +02:00
Isaac Clayton
6a1f649d6a
Fix minor issues pointed out in the review
2022-07-11 15:54:03 +02:00
Isaac Clayton
aa6fc12980
Remove the blocking call and inline on_lsp_diagnostics_published
2022-07-11 12:11:00 +02:00
Isaac Clayton
49adbc124e
Minor fixes found during review
2022-07-11 10:37:51 +02:00
Max Brunsfeld
a71a78fc7f
Merge pull request #1314 from zed-industries/code-action-with-edit-and-command
...
Run code action's commands if their edits are empty
2022-07-08 16:58:12 -07:00
Max Brunsfeld
ed31f9fe28
Run code action's commands if their edits are empty
2022-07-08 16:12:20 -07:00
Isaac Clayton
ce8898acf1
Remove debug statements
2022-07-08 21:28:35 +02:00
Isaac Clayton
5a48e0fa2a
Require theme directly when creating language
2022-07-08 16:08:40 +02:00
Isaac Clayton
2140c81501
Add channel to notify project when languages are added
2022-07-08 14:37:27 +02:00
Antonio Scandurra
f2b8f45ac3
Include ignored files in fuzzy search when root entry is ignored
2022-07-08 11:54:45 +02:00
Antonio Scandurra
005bba6203
🎨
2022-07-08 11:42:59 +02:00
Antonio Scandurra
b1b78dac12
Honor gitignores above worktree root
2022-07-08 11:19:46 +02:00
Antonio Scandurra
a90bf45522
Use absolute paths to compute ignored status
...
This lays the groundwork for harvesting gitignores up above the
worktree.
2022-07-08 11:19:21 +02:00
Antonio Scandurra
355a214454
Make build_gitignore async
2022-07-08 08:50:21 +02:00
Isaac Clayton
c4c1977bdb
Fix errors resulting from rebase
2022-07-07 18:14:16 +02:00
Isaac Clayton
0b85613a86
Done! Finish transition to async, very close to merging
2022-07-07 16:21:20 +02:00
Isaac Clayton
50db545b00
Fix most warnings
2022-07-07 16:19:49 +02:00
Isaac Clayton
69b1324a93
Further unpropogate async
2022-07-07 16:16:58 +02:00
Isaac Clayton
2d4bc1704b
Switch LspAdapter to struct and revert some async/await
2022-07-07 16:12:10 +02:00
Isaac Clayton
9cf2253c88
use join_all to build partial symbols and completions asynchronously
2022-07-07 15:44:21 +02:00
Isaac Clayton
5f055cd352
Going to move LspAdapter from trait to struct
2022-07-07 15:44:21 +02:00
Isaac Clayton
a74da62914
Uncommented previously commented sections
2022-07-07 15:44:18 +02:00
Isaac Clayton
79d7d3b873
Move await outside of a closure, remove future_wrap dependency
2022-07-07 15:42:53 +02:00
Isaac Clayton
7eade87582
Fix warnings and propogate async further
2022-07-07 15:42:48 +02:00
Isaac Clayton
b2772808f6
Temporarily comment out closure errors to address other errors in project
2022-07-07 15:41:34 +02:00
Isaac Clayton
22ec534f35
Factor out await in doubly-nested for loop
2022-07-07 15:40:39 +02:00
Isaac Clayton
c172bd7143
Fix on_settings_changed, need to review that impl is correct
2022-07-07 15:40:01 +02:00
Isaac Clayton
71c1e0588c
Refactor closure to extract async
2022-07-07 15:40:01 +02:00
Isaac Clayton
0ba6d9618e
Add lsp_settings_changed: Task to Project, need to resolve cx in Project::on_settings_changed
2022-07-07 15:39:59 +02:00
Isaac Clayton
238690802d
More work on transitioning to async, need to figure out when to stop
2022-07-07 15:38:28 +02:00
Isaac Clayton
3eb0abeddd
Allow async to infect some more functions
2022-07-07 15:34:27 +02:00
Isaac Clayton
b74f90639c
Work on updating code to be async
2022-07-07 15:32:41 +02:00
Antonio Scandurra
a1fadb916f
Add integration test to exercise formatting via external command
2022-07-07 11:53:32 +02:00
Antonio Scandurra
3b345cba67
Allow providing an external format in format_on_save setting
2022-07-07 11:04:03 +02:00
Antonio Scandurra and Max Brunsfeld
6d573a2822
Normalize line endings when parsing completions
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2022-07-06 19:32:45 +02:00
Max Brunsfeld and Keith Simmons
e6c9549bbd
Strip carriage returns from all text in text::Buffer
...
* Moving the logic from Rope to text::Buffer makes it easier
to keep the Rope in sync with the fragment tree.
* Removing carriage return characters is lossier, but is much
simpler than incrementally maintaining the invariant that
there are no carriage returns followed by newlines. We may
want to do something smarter in the future.
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-07-05 17:25:09 -07:00
Max Brunsfeld
190658f40f
Select the last root when right-clicking below all project panel entries
2022-07-05 13:21:41 -07:00
Antonio Scandurra
a90a086c3e
Transmit new line ending when buffer is reloaded
2022-07-05 08:01:14 +02:00
Max Brunsfeld
abaa2837a3
Normalize line endings consistently between fake and real FS
2022-07-04 13:00:12 -07:00
Max Brunsfeld
bf20993000
Rename NewlineStyle -> LineEnding
2022-07-04 12:47:40 -07:00
Max Brunsfeld
31ca4c5efa
Handle a file's line endings changing on disk
2022-07-04 12:30:28 -07:00
Max Brunsfeld
5001b64235
Move project tests into their own file
2022-07-04 12:00:15 -07:00