@stripe/extensibility-language-server 0.2.8 → 0.3.2

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.
Files changed (30) hide show
  1. package/dist/api-surface.d.ts.map +1 -0
  2. package/dist/index.cjs +9401 -4
  3. package/dist/index.js +9388 -2
  4. package/dist/plugin/declaration-tooltip-experiences.d.ts +27 -0
  5. package/dist/plugin/declaration-tooltip-experiences.d.ts.map +1 -0
  6. package/dist/plugin/display-parts.d.ts +32 -0
  7. package/dist/plugin/display-parts.d.ts.map +1 -0
  8. package/dist/plugin/index.d.ts.map +1 -1
  9. package/dist/plugin/quick-info-composer.d.ts +38 -0
  10. package/dist/plugin/quick-info-composer.d.ts.map +1 -0
  11. package/dist/plugin.cjs +9403 -4
  12. package/dist/plugin.js +9388 -2
  13. package/dist/tsconfig.build.tsbuildinfo +1 -1
  14. package/package.json +5 -3
  15. package/plugin/index.js +2 -0
  16. package/plugin/package.json +4 -0
  17. package/server/index.js +2 -0
  18. package/server/package.json +4 -0
  19. package/dist/extensibility-language-server-alpha.d.ts +0 -46
  20. package/dist/extensibility-language-server-beta.d.ts +0 -46
  21. package/dist/extensibility-language-server-internal.d.ts +0 -46
  22. package/dist/extensibility-language-server-plugin-alpha.d.ts +0 -10
  23. package/dist/extensibility-language-server-plugin-beta.d.ts +0 -10
  24. package/dist/extensibility-language-server-plugin-internal.d.ts +0 -10
  25. package/dist/extensibility-language-server-plugin-public.d.ts +0 -10
  26. package/dist/extensibility-language-server-public.d.ts +0 -46
  27. package/dist/extensibility-language-server-server-alpha.d.ts +0 -25
  28. package/dist/extensibility-language-server-server-beta.d.ts +0 -25
  29. package/dist/extensibility-language-server-server-internal.d.ts +0 -25
  30. package/dist/extensibility-language-server-server-public.d.ts +0 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/extensibility-language-server",
3
- "version": "0.2.8",
3
+ "version": "0.3.2",
4
4
  "description": "Language server and tsserver plugin for Stripe extensibility SDK",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -11,7 +11,9 @@
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist",
14
- "plugin.cjs"
14
+ "plugin",
15
+ "plugin.cjs",
16
+ "server"
15
17
  ],
16
18
  "exports": {
17
19
  "./plugin": {
@@ -29,7 +31,7 @@
29
31
  "@formspec/language-server": "0.1.0-alpha.59",
30
32
  "@formspec/ts-plugin": "0.1.0-alpha.59",
31
33
  "vscode-languageserver": "^9.0.1",
32
- "@stripe/extensibility-jsonschema-tools": "0.6.3"
34
+ "@stripe/extensibility-jsonschema-tools": "0.6.6"
33
35
  },
34
36
  "peerDependencies": {
35
37
  "typescript": "^5.8.0"
@@ -0,0 +1,2 @@
1
+ // Resolves through plugin.cjs which extracts .init — the export shape tsserver expects.
2
+ module.exports = require('../plugin.cjs');
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "commonjs",
3
+ "main": "./index.js"
4
+ }
@@ -0,0 +1,2 @@
1
+ // Direct re-export of the bundled CJS server entrypoint.
2
+ module.exports = require('../dist/server.cjs');
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "commonjs",
3
+ "main": "./index.js"
4
+ }
@@ -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 { }