@mrclrchtr/supi-lsp 4.4.0 → 4.5.1
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 +1 -1
- package/node_modules/@mrclrchtr/supi-code-runtime/README.md +6 -0
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/README.md +1 -1
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-runtime/package.json +2 -2
- package/node_modules/@mrclrchtr/supi-core/README.md +1 -1
- package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/package.json +3 -3
- package/src/client/client-refresh.ts +1 -1
- package/src/client/client.ts +6 -6
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<a href="https://github.com/mrclrchtr/supi/tree/main/packages/supi-lsp">
|
|
3
3
|
<picture>
|
|
4
|
-
<img src="https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-lsp/assets/
|
|
4
|
+
<img src="https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-lsp/assets/social-preview.png" alt="SuPi LSP" width="100%">
|
|
5
5
|
</picture>
|
|
6
6
|
</a>
|
|
7
7
|
</div>
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://github.com/mrclrchtr/supi/tree/main/packages/supi-code-runtime">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-code-runtime/assets/social-preview.png" alt="SuPi Code Runtime" width="100%">
|
|
4
|
+
</a>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
1
7
|
# @mrclrchtr/supi-code-runtime
|
|
2
8
|
|
|
3
9
|
Shared workspace context, capability contracts, and canonical types for the SuPi code-understanding stack.
|
package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<a href="https://github.com/mrclrchtr/supi/tree/main/packages/supi-core">
|
|
3
3
|
<picture>
|
|
4
|
-
<img src="https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-core/assets/
|
|
4
|
+
<img src="https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-core/assets/social-preview.png" alt="SuPi Core" width="100%">
|
|
5
5
|
</picture>
|
|
6
6
|
</a>
|
|
7
7
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-code-runtime",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
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.
|
|
32
|
+
"@mrclrchtr/supi-core": "4.5.1"
|
|
33
33
|
},
|
|
34
34
|
"bundledDependencies": [
|
|
35
35
|
"@mrclrchtr/supi-core"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<a href="https://github.com/mrclrchtr/supi/tree/main/packages/supi-core">
|
|
3
3
|
<picture>
|
|
4
|
-
<img src="https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-core/assets/
|
|
4
|
+
<img src="https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-core/assets/social-preview.png" alt="SuPi Core" width="100%">
|
|
5
5
|
</picture>
|
|
6
6
|
</a>
|
|
7
7
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-lsp",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
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.
|
|
41
|
-
"@mrclrchtr/supi-core": "4.
|
|
40
|
+
"@mrclrchtr/supi-code-runtime": "4.5.1",
|
|
41
|
+
"@mrclrchtr/supi-core": "4.5.1"
|
|
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. */
|
package/src/client/client.ts
CHANGED
|
@@ -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
|
}
|