@lspeasy/server 4.0.2 → 4.1.0

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/dist/types.d.ts CHANGED
@@ -9,7 +9,14 @@ import type { ResponseErrorInterface } from '@lspeasy/core';
9
9
  */
10
10
  export type { Server } from '@lspeasy/core';
11
11
  /**
12
- * Server initialization options
12
+ * Configuration for an `LSPServer` instance.
13
+ *
14
+ * @remarks
15
+ * Passed to the `LSPServer` constructor. All fields are optional; the server
16
+ * works with zero configuration and sensible defaults.
17
+ *
18
+ * @config
19
+ * @category Server
13
20
  */
14
21
  export interface ServerOptions<Capabilities extends Partial<ServerCapabilities> = ServerCapabilities> {
15
22
  /**
@@ -57,41 +64,99 @@ export interface ServerOptions<Capabilities extends Partial<ServerCapabilities>
57
64
  middleware?: Array<Middleware | ScopedMiddleware>;
58
65
  }
59
66
  /**
60
- * Context provided to request handlers
67
+ * Context provided to request handlers alongside params and the cancellation token.
68
+ *
69
+ * @remarks
70
+ * Use `id` for correlating log entries to specific requests, and
71
+ * `clientCapabilities` to conditionally include capability-dependent data in
72
+ * the response (e.g. include `commitCharacters` only when the client supports
73
+ * `completionItem.commitCharactersSupport`).
74
+ *
75
+ * @category Handler
61
76
  */
62
77
  export interface RequestContext {
63
78
  /**
64
- * Request ID for correlation
79
+ * JSON-RPC request ID for correlation.
80
+ *
81
+ * @remarks
82
+ * May be a `string` or a `number` — never coerce to integer.
65
83
  */
66
84
  id: number | string;
67
85
  /**
68
- * Method name
86
+ * LSP method string, e.g. `'textDocument/hover'`.
69
87
  */
70
88
  method: string;
71
89
  /**
72
- * Client capabilities (available after initialization)
90
+ * Client capabilities received during `initialize`.
91
+ * Available after the first `initialize` request.
73
92
  */
74
93
  clientCapabilities?: ClientCapabilities | undefined;
75
94
  }
76
95
  /**
77
- * Context provided to notification handlers
96
+ * Context provided to notification handlers alongside params.
97
+ *
98
+ * @category Handler
78
99
  */
79
100
  export interface NotificationContext {
80
101
  /**
81
- * Method name
102
+ * LSP method string, e.g. `'textDocument/didOpen'`.
82
103
  */
83
104
  method: string;
84
105
  /**
85
- * Client capabilities (available after initialization)
106
+ * Client capabilities received during `initialize`.
107
+ * Available after the `initialize` handshake.
86
108
  */
87
109
  clientCapabilities?: ClientCapabilities | undefined;
88
110
  }
89
111
  /**
90
- * Request handler function type
112
+ * Signature for LSP request handlers registered via `LSPServer.onRequest`.
113
+ *
114
+ * @remarks
115
+ * Handlers are async by default — returning `Promise<Result>` is fine.
116
+ * Throw a `ResponseError` to send a structured JSON-RPC error response.
117
+ * Throw any other `Error` to send a generic `-32603 InternalError` response.
118
+ *
119
+ * Check `token.isCancellationRequested` at async yield points to stop
120
+ * early when the client sends `$/cancelRequest`.
121
+ *
122
+ * @never
123
+ * NEVER call `server.close()` or `server.shutdown()` from inside a handler —
124
+ * the server is processing messages on the transport at that point, and
125
+ * closing the transport from within a handler causes a deadlock: the handler
126
+ * awaits the close, but the close waits for all handlers to finish.
127
+ *
128
+ * NEVER mutate server capabilities inside a handler. Capabilities are
129
+ * negotiated once during `initialize`; changing them at runtime has no effect
130
+ * on the client, which cached the `InitializeResult` at startup.
131
+ *
132
+ * @throws {@link ResponseError} A structured JSON-RPC error (preferred for protocol errors).
133
+ * @throws Error Any `Error` subclass is converted to a `-32603 InternalError` response.
134
+ *
135
+ * @see {@link NotificationHandler} for the fire-and-forget counterpart.
136
+ * @see {@link RequestContext} for the third parameter shape.
137
+ *
138
+ * @typeParam Params - The request params type, inferred from the method name.
139
+ * @typeParam Result - The response result type, inferred from the method name.
140
+ * @category Handler
91
141
  */
92
142
  export type RequestHandler<Params = unknown, Result = unknown> = (params: Params, token: CancellationToken, context: RequestContext) => Promise<Result> | Result;
93
143
  /**
94
- * Notification handler function type
144
+ * Signature for LSP notification handlers registered via
145
+ * `LSPServer.onNotification`.
146
+ *
147
+ * @remarks
148
+ * Notifications are fire-and-forget — the framework does not wait for the
149
+ * returned promise in any protocol-observable way, but unhandled rejections
150
+ * are forwarded to `server.onError()`.
151
+ *
152
+ * @never
153
+ * NEVER send a server-to-client notification inside a handler for the LSP
154
+ * `initialize` request. The `initialize` response has not yet been sent at
155
+ * that point; notifications sent before the response are discarded by clients.
156
+ * Use the `initialized` notification handler for post-handshake setup instead.
157
+ *
158
+ * @typeParam Params - The notification params type, inferred from method name.
159
+ * @category Handler
95
160
  */
96
161
  export type NotificationHandler<Params = unknown> = (params: Params, context: NotificationContext) => void | Promise<void>;
97
162
  /**
@@ -102,7 +167,19 @@ export interface HandlerRegistration {
102
167
  isRequest: boolean;
103
168
  }
104
169
  /**
105
- * Server state enum
170
+ * Lifecycle state of an `LSPServer` instance.
171
+ *
172
+ * @remarks
173
+ * State transitions:
174
+ * `Created` → `Initializing` (on `initialize` request)
175
+ * → `Initialized` (after `initialize` response sent)
176
+ * → `ShuttingDown` (on `shutdown` request)
177
+ * → `Shutdown` (transport closed).
178
+ *
179
+ * Non-lifecycle requests received before `Initialized` are automatically
180
+ * rejected with `ServerNotInitialized (-32002)`.
181
+ *
182
+ * @category Lifecycle
106
183
  */
107
184
  export declare enum ServerState {
108
185
  Created = "created",
@@ -111,16 +188,30 @@ export declare enum ServerState {
111
188
  ShuttingDown = "shutting_down",
112
189
  Shutdown = "shutdown"
113
190
  }
191
+ /**
192
+ * Namespace for registering notebook-document lifecycle notification handlers.
193
+ *
194
+ * @remarks
195
+ * Available on `server.notebookDocument`. Mirrors the standard LSP
196
+ * `notebookDocument/*` notification methods for servers that support
197
+ * `notebookDocumentSync` capability.
198
+ *
199
+ * @category Handler
200
+ */
114
201
  export interface NotebookDocumentHandlerNamespace {
202
+ /** Register a handler for `notebookDocument/didOpen` notifications. */
115
203
  onDidOpen(handler: NotificationHandler<DidOpenNotebookDocumentParams>): {
116
204
  dispose(): void;
117
205
  };
206
+ /** Register a handler for `notebookDocument/didChange` notifications. */
118
207
  onDidChange(handler: NotificationHandler<DidChangeNotebookDocumentParams>): {
119
208
  dispose(): void;
120
209
  };
210
+ /** Register a handler for `notebookDocument/didSave` notifications. */
121
211
  onDidSave(handler: NotificationHandler<DidSaveNotebookDocumentParams>): {
122
212
  dispose(): void;
123
213
  };
214
+ /** Register a handler for `notebookDocument/didClose` notifications. */
124
215
  onDidClose(handler: NotificationHandler<DidCloseNotebookDocumentParams>): {
125
216
  dispose(): void;
126
217
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,MAAM,EACN,kBAAkB,EAElB,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,8BAA8B,EAC9B,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D;;GAEG;AACH,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,aAAa,CAC5B,YAAY,SAAS,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB;IAErE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,cAAc,GAAG,mBAAmB,KAC1C,sBAAsB,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IAEH,YAAY,C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AClC,OAAO,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;IAC7D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,YAAY,kBAAkB;IAC9B,QAAQ,aAAa;CACtB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,gCAAgC;IAC/C,uEAAuE;IACvE,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC,6BAA6B,CAAC,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE,CAAC;IAC5F,yEAAyE;IACzE,WAAW,CAAC,OAAO,EAAE,mBAAmB,CAAC,+BAA+B,CAAC,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE,CAAC;IAChG,uEAAuE;IACvE,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC,6BAA6B,CAAC,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE,CAAC;IAC5F,wEAAwE;IACxE,UAAU,CAAC,OAAO,EAAE,mBAAmB,CAAC,8BAA8B,CAAC,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE,CAAC;CAC/F"}
package/dist/types.js CHANGED
@@ -1,11 +1,22 @@
1
1
  /**
2
2
  * Type definitions for @lspeasy/server
3
3
  */
4
- export { ServerState };
5
4
  /**
6
- * Server state enum
5
+ * Lifecycle state of an `LSPServer` instance.
6
+ *
7
+ * @remarks
8
+ * State transitions:
9
+ * `Created` → `Initializing` (on `initialize` request)
10
+ * → `Initialized` (after `initialize` response sent)
11
+ * → `ShuttingDown` (on `shutdown` request)
12
+ * → `Shutdown` (transport closed).
13
+ *
14
+ * Non-lifecycle requests received before `Initialized` are automatically
15
+ * rejected with `ServerNotInitialized (-32002)`.
16
+ *
17
+ * @category Lifecycle
7
18
  */
8
- var ServerState;
19
+ export var ServerState;
9
20
  (function (ServerState) {
10
21
  ServerState["Created"] = "created";
11
22
  ServerState["Initializing"] = "initializing";
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;SAsJS,WAAW;AAHvB;;GAEG;AACH,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,6CAA8B,CAAA;IAC9B,oCAAqB,CAAA;AAAA,CACvB,EANY,WAAW,KAAX,WAAW,QAMtB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAoNH;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,6CAA8B,CAAA;IAC9B,oCAAqB,CAAA;AACvB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C;;;GAGG;AACH,OAAO,EACL,iBAAiB,IAAI,iBAAiB,EACtC,sBAAsB,IAAI,sBAAsB,EAChD,sBAAsB,IAAI,sBAAsB,EAChD,qBAAqB,IAAI,qBAAqB,EAC9C,0BAA0B,IAAI,0BAA0B,EACxD,sBAAsB,IAAI,sBAAsB,EAChD,+BAA+B,IAAI,+BAA+B,EAClE,iCAAiC,IAAI,iCAAiC,EACtE,gCAAgC,IAAI,gCAAgC,EACrE,MAAM,eAAe,CAAC;AAEvB;;;GAGG;A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EAAE,OAAO,CAAC,CAAC;gBACnD,MAAM,IAAI,aAAa,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1E,CAAC;YAED,oCAAoC;YACpC,MAAM,aAAa,CAAC,aAAa,CAC/B,sBAAsB,MAAM,KAAK,KAAK,CAAC,OAAO,EAAE,EAChD,KAAK,CAAC,MAAM,CACb,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lspeasy/server",
3
- "version": "4.0.2",
4
- "description": "Build LSP servers with simple, typed API",
3
+ "version": "4.1.0",
4
+ "description": "Build LSP language servers with a simple, fully-typed API",
5
5
  "private": false,
6
6
  "keywords": [
7
7
  "lsp",
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/pradeepmouli/lspeasy/issues"
15
15
  },
16
16
  "license": "MIT",
17
- "author": "Pradeep Mouli",
17
+ "author": "Pradeep Mouli <pmouli@mac.com> (https://github.com/pradeepmouli)",
18
18
  "repository": {
19
19
  "type": "git",
20
20
  "url": "https://github.com/pradeepmouli/lspeasy.git",
@@ -37,15 +37,14 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@lspeasy/core": "2.1.2"
40
+ "@lspeasy/core": "2.2.0"
41
41
  },
42
42
  "optionalDependencies": {
43
- "zod": "^4.3.6"
43
+ "zod": "^4.4.3"
44
44
  },
45
45
  "devDependencies": {
46
- "typescript": "^5.9.3",
47
- "vscode-languageserver-protocol": "^3.17.5",
48
- "zod": "^4.3.6"
46
+ "typescript": "^6.0.3",
47
+ "vscode-languageserver-protocol": "^3.17.5"
49
48
  },
50
49
  "engines": {
51
50
  "node": ">=20.0.0"