@stripe/extensibility-language-server 0.3.1 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/plugin/index.d.ts +3 -1
- package/package.json +2 -2
- package/dist/extensibility-language-server-alpha.d.ts +0 -46
- package/dist/extensibility-language-server-beta.d.ts +0 -46
- package/dist/extensibility-language-server-internal.d.ts +0 -46
- package/dist/extensibility-language-server-plugin-alpha.d.ts +0 -10
- package/dist/extensibility-language-server-plugin-beta.d.ts +0 -10
- package/dist/extensibility-language-server-plugin-internal.d.ts +0 -10
- package/dist/extensibility-language-server-plugin-public.d.ts +0 -10
- package/dist/extensibility-language-server-public.d.ts +0 -46
- package/dist/extensibility-language-server-server-alpha.d.ts +0 -25
- package/dist/extensibility-language-server-server-beta.d.ts +0 -25
- package/dist/extensibility-language-server-server-internal.d.ts +0 -25
- package/dist/extensibility-language-server-server-public.d.ts +0 -25
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @stripe/extensibility-language-server
|
|
2
|
+
|
|
3
|
+
Language server and tsserver plugin for Stripe Apps development. Provides IDE features like autocomplete, diagnostics, and hover information for extension code.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @stripe/extensibility-language-server
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires `typescript` >= 5.8.3 as a peer dependency.
|
|
12
|
+
|
|
13
|
+
## Subpath exports
|
|
14
|
+
|
|
15
|
+
| Subpath | Description |
|
|
16
|
+
| ---------------------------------------------- | ------------------------------------------------- |
|
|
17
|
+
| `@stripe/extensibility-language-server/plugin` | TypeScript server plugin for tsserver integration |
|
|
18
|
+
| `@stripe/extensibility-language-server/server` | Standalone LSP language server |
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
### As a TypeScript plugin
|
|
23
|
+
|
|
24
|
+
Add to your `tsconfig.json`:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"compilerOptions": {
|
|
29
|
+
"plugins": [{ "name": "@stripe/extensibility-language-server/plugin" }]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### As a standalone LSP server
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { createServer } from '@stripe/extensibility-language-server/server';
|
|
38
|
+
|
|
39
|
+
const server = createServer({
|
|
40
|
+
/* options */
|
|
41
|
+
});
|
|
42
|
+
```
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -4,5 +4,7 @@ import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
|
4
4
|
*
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare function init(modules: {
|
|
7
|
+
export declare function init(modules: {
|
|
8
|
+
readonly typescript: typeof tsServer;
|
|
9
|
+
}): tsServer.server.PluginModule;
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/extensibility-language-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Language server and tsserver plugin for Stripe extensibility SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@formspec/language-server": "0.1.0-alpha.59",
|
|
32
32
|
"@formspec/ts-plugin": "0.1.0-alpha.59",
|
|
33
33
|
"vscode-languageserver": "^9.0.1",
|
|
34
|
-
"@stripe/extensibility-jsonschema-tools": "0.6.
|
|
34
|
+
"@stripe/extensibility-jsonschema-tools": "0.6.8"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"typescript": "^5.8.0"
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extensibility Language Server
|
|
3
|
-
*
|
|
4
|
-
* Provides a tsserver plugin and standalone LSP language server for the
|
|
5
|
-
* Stripe extensibility SDK, built on formspec building blocks.
|
|
6
|
-
*
|
|
7
|
-
* Consumers should import from subpath exports:
|
|
8
|
-
* - `extensibility-language-server/plugin` — tsserver plugin
|
|
9
|
-
* - `extensibility-language-server/server` — LSP language server
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
15
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
16
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Creates and configures the Extensibility language server connection.
|
|
20
|
-
*
|
|
21
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
22
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
23
|
-
* without changing this package's public API.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Public configuration for constructing the Extensibility language server.
|
|
31
|
-
*
|
|
32
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
33
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
34
|
-
*
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
45
|
-
|
|
46
|
-
export { }
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extensibility Language Server
|
|
3
|
-
*
|
|
4
|
-
* Provides a tsserver plugin and standalone LSP language server for the
|
|
5
|
-
* Stripe extensibility SDK, built on formspec building blocks.
|
|
6
|
-
*
|
|
7
|
-
* Consumers should import from subpath exports:
|
|
8
|
-
* - `extensibility-language-server/plugin` — tsserver plugin
|
|
9
|
-
* - `extensibility-language-server/server` — LSP language server
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
15
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
16
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Creates and configures the Extensibility language server connection.
|
|
20
|
-
*
|
|
21
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
22
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
23
|
-
* without changing this package's public API.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Public configuration for constructing the Extensibility language server.
|
|
31
|
-
*
|
|
32
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
33
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
34
|
-
*
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
45
|
-
|
|
46
|
-
export { }
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extensibility Language Server
|
|
3
|
-
*
|
|
4
|
-
* Provides a tsserver plugin and standalone LSP language server for the
|
|
5
|
-
* Stripe extensibility SDK, built on formspec building blocks.
|
|
6
|
-
*
|
|
7
|
-
* Consumers should import from subpath exports:
|
|
8
|
-
* - `extensibility-language-server/plugin` — tsserver plugin
|
|
9
|
-
* - `extensibility-language-server/server` — LSP language server
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
15
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
16
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Creates and configures the Extensibility language server connection.
|
|
20
|
-
*
|
|
21
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
22
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
23
|
-
* without changing this package's public API.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Public configuration for constructing the Extensibility language server.
|
|
31
|
-
*
|
|
32
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
33
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
34
|
-
*
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
45
|
-
|
|
46
|
-
export { }
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
9
|
-
|
|
10
|
-
export { }
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
9
|
-
|
|
10
|
-
export { }
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
9
|
-
|
|
10
|
-
export { }
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
9
|
-
|
|
10
|
-
export { }
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extensibility Language Server
|
|
3
|
-
*
|
|
4
|
-
* Provides a tsserver plugin and standalone LSP language server for the
|
|
5
|
-
* Stripe extensibility SDK, built on formspec building blocks.
|
|
6
|
-
*
|
|
7
|
-
* Consumers should import from subpath exports:
|
|
8
|
-
* - `extensibility-language-server/plugin` — tsserver plugin
|
|
9
|
-
* - `extensibility-language-server/server` — LSP language server
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
15
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
16
|
-
import type * as tsServer from 'typescript/lib/tsserverlibrary.js';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Creates and configures the Extensibility language server connection.
|
|
20
|
-
*
|
|
21
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
22
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
23
|
-
* without changing this package's public API.
|
|
24
|
-
*
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Public configuration for constructing the Extensibility language server.
|
|
31
|
-
*
|
|
32
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
33
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
34
|
-
*
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Initializes the Extensibility TypeScript language service plugin.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
|
-
export declare function init(modules: { readonly typescript: typeof tsServer }): tsServer.server.PluginModule;
|
|
45
|
-
|
|
46
|
-
export { }
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
2
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates and configures the Extensibility language server connection.
|
|
6
|
-
*
|
|
7
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
8
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
9
|
-
* without changing this package's public API.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Public configuration for constructing the Extensibility language server.
|
|
17
|
-
*
|
|
18
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
19
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
24
|
-
|
|
25
|
-
export { }
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
2
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates and configures the Extensibility language server connection.
|
|
6
|
-
*
|
|
7
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
8
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
9
|
-
* without changing this package's public API.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Public configuration for constructing the Extensibility language server.
|
|
17
|
-
*
|
|
18
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
19
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
24
|
-
|
|
25
|
-
export { }
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
2
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates and configures the Extensibility language server connection.
|
|
6
|
-
*
|
|
7
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
8
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
9
|
-
* without changing this package's public API.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Public configuration for constructing the Extensibility language server.
|
|
17
|
-
*
|
|
18
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
19
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
24
|
-
|
|
25
|
-
export { }
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Connection } from 'vscode-languageserver/node.js';
|
|
2
|
-
import { CreateServerOptions as CreateServerOptions_2 } from '@formspec/language-server';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates and configures the Extensibility language server connection.
|
|
6
|
-
*
|
|
7
|
-
* The current implementation delegates to FormSpec's packaged server and keeps
|
|
8
|
-
* a local wrapper so Extensibility-specific handlers can be interleaved later
|
|
9
|
-
* without changing this package's public API.
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
export declare function createServer(options?: CreateServerOptions): Connection;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Public configuration for constructing the Extensibility language server.
|
|
17
|
-
*
|
|
18
|
-
* This currently matches FormSpec's server options, while preserving an SDK-owned
|
|
19
|
-
* wrapper seam where Extensibility-specific LSP behavior can be layered in.
|
|
20
|
-
*
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
export declare type CreateServerOptions = CreateServerOptions_2;
|
|
24
|
-
|
|
25
|
-
export { }
|