Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 158b1b1

Browse files
authored
fix: Avoid excessive sendDiagnostic calls (#183)
Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
1 parent 88969e1 commit 158b1b1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

release.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
{
3030
path: "analytics-lsp-linux",
3131
name: "analytics-lsp-linux",
32-
label: "analytics-lsp-server"
32+
label: "analytics-lsp-linux"
3333
},
3434
{
3535
path: "analytics-lsp-macos",
@@ -44,7 +44,7 @@ module.exports = {
4444
{
4545
path: "analytics-lsp-linux.sha256",
4646
name: "analytics-lsp-linux.sha256",
47-
label: "analytics-lsp-server.sha256"
47+
label: "analytics-lsp-linux.sha256"
4848
},
4949
{
5050
path: "analytics-lsp-macos.sha256",

src/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,9 @@ function runPipeline(response, diagnostics, packageAggregator, diagnosticFilePat
238238
totalCount.advisoryCount += secEng.advisoryCount;
239239
totalCount.exploitCount += secEng.exploitCount;
240240
}
241-
connection.sendDiagnostics({ uri: diagnosticFilePath, diagnostics: diagnostics });
242241
});
242+
connection.sendDiagnostics({ uri: diagnosticFilePath, diagnostics: diagnostics });
243+
connection.console.log(`sendDiagnostics: ${diagnostics?.length}`);
243244
}
244245

245246
/* Slice payload in each chunk size of @batchSize */

0 commit comments

Comments
 (0)