fabric8-analytics-lsp-server
Advanced tools
Comparing version 0.4.17 to 0.4.18
{ | ||
"name": "fabric8-analytics-lsp-server", | ||
"description": "LSP Server for Dependency Analytics", | ||
"version": "0.4.17", | ||
"version": "0.4.18", | ||
"author": "Pavel Odvody", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -228,2 +228,4 @@ /* -------------------------------------------------------------------------------------------- | ||
const sendDiagnostics = (ecosystem, diagnosticFilePath, contents, collector) => __awaiter(void 0, void 0, void 0, function* () { | ||
// clear all diagnostics | ||
connection.sendDiagnostics({ uri: diagnosticFilePath, diagnostics: [] }); | ||
connection.sendNotification('caNotification', { data: caDefaultMsg, done: false, uri: diagnosticFilePath }); | ||
@@ -235,12 +237,8 @@ let deps = null; | ||
const end = new Date().getTime(); | ||
connection.console.log(`manifest parse took ${end - start} ms`); | ||
connection.console.log(`manifest parse took ${end - start} ms, found ${deps.length} deps`); | ||
} | ||
catch (error) { | ||
// Error can be raised during golang `go list ` command only. | ||
if (ecosystem == "golang") { | ||
connection.console.warn(`Command execution failed with error: ${error}`); | ||
connection.sendNotification('caError', { data: error, uri: diagnosticFilePath }); | ||
connection.sendDiagnostics({ uri: diagnosticFilePath, diagnostics: [] }); | ||
return; | ||
} | ||
connection.console.warn(`Error: ${error}`); | ||
connection.sendNotification('caError', { data: error, uri: diagnosticFilePath }); | ||
return; | ||
} | ||
@@ -247,0 +245,0 @@ let validPackages = deps; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104873
1058