Antonio Scandurra
b6f4741a58
Prompt before closing buffer with unsaved changes or conflicts
2022-04-01 14:33:07 +02:00
Antonio Scandurra
cc11f45a1a
Introduce workspace::Item::reload to manually trigger a reload
2022-04-01 14:02:49 +02:00
Antonio Scandurra
340874ce76
Allow explicit reload of buffers via Project::reload_buffers
2022-04-01 14:01:56 +02:00
Antonio Scandurra
91c003ee59
Merge pull request #705 from zed-industries/breadcrumbs
...
Introduce breadcrumbs
2022-04-01 11:02:54 +02:00
Antonio Scandurra
dddbf20c75
Let toolbar items specify flex when they have a primary location
2022-04-01 10:55:38 +02:00
Antonio Scandurra
09ed46ed25
Show "untitled" in breadcrumbs when the buffer has no path
2022-04-01 10:15:37 +02:00
Antonio Scandurra
52f1207b9b
Hide breadcrumbs when project search has no results
2022-04-01 10:00:21 +02:00
Antonio Scandurra
d89a7f6c2a
Fix styling of project search bar
2022-04-01 09:59:36 +02:00
Max Brunsfeld and Keith Simmons
cc28562c9e
Start work on applying code actions that use commands
...
Co-Authored-By: Keith Simmons <keith@zed.dev >
2022-03-31 22:03:52 -07:00
Max Brunsfeld
df45c44872
Let fake and real LanguageServer access AsyncAppContext in handler callbacks
...
Also, reimplement FakeLanguageServer by wrapping LanguageServer, instead of
duplicating its functionality differently.
2022-03-31 21:57:00 -07:00
Nate Butler
cbd1e27e12
Update renamed/moved imports
2022-03-31 23:43:01 -04:00
Nate Butler
97917b8473
Type name
2022-03-31 23:42:45 -04:00
Keith Simmons and Nate Butler
6ebfdd8aa6
Finish dark.ts initial port and restructure files to get ready for build script
...
Build script currently fails to type check. Not sure whats going on. Will fix in the morning.
Co-authored-by: Nate Butler <nate@zed.dev >
2022-03-31 20:31:18 -07:00
Keith Simmons
6ebeacc0c6
wip
2022-03-31 19:05:21 -07:00
Keith Simmons
4e54a09062
Address panic when completions requested and returned to outdated buffer
2022-03-31 18:22:55 -07:00
Keith Simmons
aa98902621
wip
2022-03-31 17:51:25 -07:00
Nate Butler
a815864c8e
WIP for keith
2022-03-31 20:32:47 -04:00
Nate Butler
9836d4d323
WIP: Scaffold tokens in dark.ts, no real values yet.
2022-03-31 19:10:44 -04:00
Keith Simmons and Max Brunsfeld
0468cc5952
Provide diagnostic context to codeAction
...
Co-authored-by: Max Brunsfeld <max@zed.dev >
2022-03-31 15:39:52 -07:00
208c8d620d
Style search in buffer below breadcrumbs
...
We still have issues with project search styling.
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-03-31 11:44:16 -06:00
42203752e5
Render the search UI on a separate row from the breadcrumbs
...
- In project search, render it above the breadcrumbs
- In buffer search, render it below
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com >
2022-03-31 10:36:39 -06:00
Nate Butler
fa36e66a4c
Extract search from app
...
- Also update border to use borderColor( )
2022-03-31 11:27:02 -04:00
Keith Simmons
bad4e01909
Add test for common_prefix_at and rewrite it to be more readable and
...
pass the new test cases
2022-03-31 01:09:58 -07:00
Nate Butler
0e65af56a9
Update app.ts, editor.ts
2022-03-31 01:38:18 -04:00
Max Brunsfeld and Keith Simmons
8450d218cd
Start work on interpreting 'label/insertText' completions
...
These completions don't supply a range that should be overwritten, so
the client needs to infer it via substring matching.
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-03-30 17:47:25 -07:00
Nathan Sobo
8771d4443e
Convert chat panel
2022-03-30 18:45:34 -06:00
Nathan Sobo
1a8038af23
Convert project panel styles
2022-03-30 18:26:47 -06:00
Max Brunsfeld and Keith Simmons
d97a956050
Hard-code LSP formatting options for now
...
This is needed for auto-formatting to work properly in TypeScript and JSON
Co-Authored-By: Keith Simmons <keith@zed.dev >
2022-03-30 17:08:40 -07:00
Nathan Sobo
b4bc096ee8
Convert editor styles to TypeScript
2022-03-30 17:59:35 -06:00
Max Brunsfeld and Keith Simmons
e5bb803ebb
Improve installation of npm-based language servers
...
* Use --prefix flag to guarantee that they are installed in .zed
* Use the @latest tag when available
* Extract helper functions
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-03-30 16:48:59 -07:00
Max Brunsfeld
199d4d07f5
Merge branch 'main' into typescript
2022-03-30 14:44:07 -07:00
Max Brunsfeld
cd2eafe469
Merge pull request #701 from zed-industries/restart-lsp
...
Add restart-lsp keybinding
2022-03-30 13:59:04 -07:00
Keith Simmons and Max Brunsfeld
f11b269016
Add assert_set_eq macro to make test clearer
...
Co-authored-by: Max Brunsfeld <max@zed.dev >
2022-03-30 13:53:38 -07:00
Keith Simmons and Max Brunsfeld
801cdde8a7
Test language server restart works as expected
...
Co-authored-by: Max Brunsfeld <max@zed.dev >
2022-03-30 13:08:36 -07:00
Antonio Scandurra and Nathan Sobo
04d1c52456
Allow flex items to float to the end of the flex axis
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-03-30 16:46:14 +02:00
Antonio Scandurra
9654622f2c
Revert deletion of FindEditor in theme
2022-03-30 13:35:17 +02:00
Antonio Scandurra
cd43c2eb06
Fix buffer search unit tests
2022-03-30 13:18:31 +02:00
Max Brunsfeld
bc8ed5dba1
Use a fancier angle bracket in the breadcrumbs
2022-03-29 21:16:12 -07:00
Max Brunsfeld
55223be9e4
Parse JS as TSX
2022-03-29 18:26:58 -07:00
Max Brunsfeld
7262c2455b
Move all configuration of individual LSP servers to LspAdapter
2022-03-29 18:14:30 -07:00
Max Brunsfeld
fa6e6fd8fe
Restructure fake language server setup
...
Replace FakeLanguageServerConfig with FakeLanguageServerAdapter
2022-03-29 17:55:57 -07:00
Keith Simmons
7cedb28a82
Properly dedup restarts of language servers
2022-03-29 17:46:39 -07:00
Keith Simmons
598d2433bf
Add restart-lsp keybinding
2022-03-29 17:24:23 -07:00
Max Brunsfeld
207e166471
Start work on allowing language servers to support multiple languages
2022-03-29 16:57:18 -07:00
Nathan Sobo and Nate Butler
69309f9301
Express workspace in terms of new components
...
Co-Authored-By: Nate Butler <1714999+iamnbutler@users.noreply.github.com >
2022-03-29 16:28:19 -06:00
Nate Butler
d41c4995e8
WIP: Color WIP
2022-03-29 17:10:46 -04:00
Keith Simmons and Max Brunsfeld
3bcc515b7b
Add typescript language server
...
Currently not tested for tsx files
Co-authored-by: Max Brunsfeld <max@zed.dev >
2022-03-29 13:42:21 -07:00
Nate Butler
85bdd4d353
WIP: Add rose color tokens to core.ts
2022-03-29 15:33:03 -04:00
Nathan Sobo and Nate Butler
802b64b561
Start on TypeScript-based styling system
...
Co-Authored-By: Nate Butler <1714999+iamnbutler@users.noreply.github.com >
2022-03-29 13:08:00 -06:00
Max Brunsfeld
79884d9e72
WIP
2022-03-29 11:06:08 -07:00