zed_extension_api: Fork new version of extension API (#29579)
This PR forks a new version of the `zed_extension_api` in preparation for new changes. Release Notes: - N/A
This commit is contained in:
parent
bc665b2a76
commit
2cc5a0de26
16 changed files with 1464 additions and 650 deletions
13
crates/extension_api/wit/since_v0.5.0/nodejs.wit
Normal file
13
crates/extension_api/wit/since_v0.5.0/nodejs.wit
Normal file
|
@ -0,0 +1,13 @@
|
|||
interface nodejs {
|
||||
/// Returns the path to the Node binary used by Zed.
|
||||
node-binary-path: func() -> result<string, string>;
|
||||
|
||||
/// Returns the latest version of the given NPM package.
|
||||
npm-package-latest-version: func(package-name: string) -> result<string, string>;
|
||||
|
||||
/// Returns the installed version of the given NPM package, if it exists.
|
||||
npm-package-installed-version: func(package-name: string) -> result<option<string>, string>;
|
||||
|
||||
/// Installs the specified NPM package.
|
||||
npm-install-package: func(package-name: string, version: string) -> result<_, string>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue