Allow wasm extensions to do arbitrary file I/O in their own directory to install language servers (#9043)
This PR provides WASM extensions with write access to their own specific working directory under the Zed `extensions` dir. This directory is set as the extensions `current_dir` when they run. Extensions can return relative paths from the `Extension::language_server_command` method, and those relative paths will be interpreted relative to this working dir. With this functionality, most language servers that we currently build into zed can be installed using extensions. Release Notes: - N/A
This commit is contained in:
parent
a550b9cecf
commit
51ebe0eb01
13 changed files with 421 additions and 215 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -3536,7 +3536,10 @@ dependencies = [
|
|||
"async-compression",
|
||||
"async-tar",
|
||||
"async-trait",
|
||||
"cap-std",
|
||||
"collections",
|
||||
"ctor",
|
||||
"env_logger",
|
||||
"fs",
|
||||
"futures 0.3.28",
|
||||
"gpui",
|
||||
|
@ -3544,6 +3547,7 @@ dependencies = [
|
|||
"log",
|
||||
"lsp",
|
||||
"node_runtime",
|
||||
"parking_lot 0.11.2",
|
||||
"project",
|
||||
"schemars",
|
||||
"serde",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue