@mrclrchtr/supi-lsp 4.4.0 → 4.5.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-core",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "SuPi core — shared infrastructure for SuPi extensions (XML context tags, config system)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-code-runtime",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "SuPi code-runtime — shared workspace context, capability contracts, and canonical types for the code-understanding stack",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "!__tests__"
30
30
  ],
31
31
  "dependencies": {
32
- "@mrclrchtr/supi-core": "4.4.0"
32
+ "@mrclrchtr/supi-core": "4.5.0"
33
33
  },
34
34
  "bundledDependencies": [
35
35
  "@mrclrchtr/supi-core"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-core",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "SuPi core — shared infrastructure for SuPi extensions (XML context tags, config system)",
5
5
  "license": "MIT",
6
6
  "repository": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-lsp",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "SuPi LSP runtime — Language Server Protocol integration library for pi",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,8 +37,8 @@
37
37
  "vscode-jsonrpc": "^9.0.0",
38
38
  "vscode-languageserver-protocol": "^3.17.5",
39
39
  "vscode-languageserver-types": "^3.17.5",
40
- "@mrclrchtr/supi-code-runtime": "4.4.0",
41
- "@mrclrchtr/supi-core": "4.4.0"
40
+ "@mrclrchtr/supi-core": "4.5.0",
41
+ "@mrclrchtr/supi-code-runtime": "4.5.0"
42
42
  },
43
43
  "bundledDependencies": [
44
44
  "@mrclrchtr/supi-code-runtime",
@@ -85,7 +85,7 @@ function sendDidChange(client: LspClient, uri: string, version: number, content:
85
85
  /** Send an RPC notification through the client. */
86
86
  function sendNotification(client: LspClient, method: string, params: unknown): void {
87
87
  const rpc = accessClient(client).rpc;
88
- if (rpc) rpc.sendNotification(method, params);
88
+ if (rpc) void rpc.sendNotification(method, params);
89
89
  }
90
90
 
91
91
  /** Clear open doc and diagnostic state for a URI. */
@@ -223,7 +223,7 @@ export class LspClient {
223
223
  })) as InitializeResult;
224
224
 
225
225
  this.capabilities = result.capabilities;
226
- this.rpc.sendNotification("initialized", {});
226
+ void this.rpc.sendNotification("initialized", {});
227
227
  this._status = "running";
228
228
 
229
229
  this.armNoProgressTimer();
@@ -306,7 +306,7 @@ export class LspClient {
306
306
  }
307
307
 
308
308
  this.openDocs.set(uri, { version: 1, languageId });
309
- this.rpc.sendNotification("textDocument/didOpen", {
309
+ void this.rpc.sendNotification("textDocument/didOpen", {
310
310
  textDocument: {
311
311
  uri,
312
312
  languageId,
@@ -330,7 +330,7 @@ export class LspClient {
330
330
  }
331
331
 
332
332
  doc.version++;
333
- this.rpc.sendNotification("textDocument/didChange", {
333
+ void this.rpc.sendNotification("textDocument/didChange", {
334
334
  textDocument: { uri, version: doc.version } satisfies VersionedTextDocumentIdentifier,
335
335
  contentChanges: [{ text: content }],
336
336
  });
@@ -345,7 +345,7 @@ export class LspClient {
345
345
 
346
346
  if (!wasOpen || !this.rpc || this._status !== "running") return;
347
347
 
348
- this.rpc.sendNotification("textDocument/didClose", {
348
+ void this.rpc.sendNotification("textDocument/didClose", {
349
349
  textDocument: { uri } satisfies TextDocumentIdentifier,
350
350
  });
351
351
  }
@@ -364,7 +364,7 @@ export class LspClient {
364
364
  removedFiles.push(filePath);
365
365
 
366
366
  if (wasOpen && this.rpc && this._status === "running") {
367
- this.rpc.sendNotification("textDocument/didClose", {
367
+ void this.rpc.sendNotification("textDocument/didClose", {
368
368
  textDocument: { uri } satisfies TextDocumentIdentifier,
369
369
  });
370
370
  }
@@ -421,7 +421,7 @@ export class LspClient {
421
421
  /** Notify the server that watched workspace files changed. */
422
422
  notifyWorkspaceFileChanges(changes: FileEvent[]): void {
423
423
  if (!this.rpc || this._status !== "running" || changes.length === 0) return;
424
- this.rpc.sendNotification("workspace/didChangeWatchedFiles", {
424
+ void this.rpc.sendNotification("workspace/didChangeWatchedFiles", {
425
425
  changes,
426
426
  } satisfies DidChangeWatchedFilesParams);
427
427
  }