Skip to content

Commit

Permalink
fix(messages): updates messages sent from language server
Browse files Browse the repository at this point in the history
  • Loading branch information
invincibleJai authored and Ravindra Singh Ratnawat committed Oct 26, 2018
1 parent b056cb6 commit 2ace23b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Component Analysis LSP Server
# Dependency Analytics LSP Server

LSP Server that can analyze your dependencies specified in `package.json`.

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "fabric8-analytics-lsp-server",
"description": "LSP Server for Component Analysis",
"description": "LSP Server for Dependency Analytics",
"version": "0.0.0-development",
"author": "Pavel Odvody",
"contributors": [{
"contributors": [
{
"name": "Michal Srb",
"email": "[email protected]"
},
Expand Down
8 changes: 4 additions & 4 deletions src/consumers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class EmptyResultEngine extends AnalysisConsumer implements DiagnosticProducer
return [{
severity: DiagnosticSeverity.Information,
range: get_range(this.context.version),
message: `Package ${this.context.name.value}-${this.context.version.value} - analysis is pending`,
source: 'Component Analysis'
message: `Application dependency ${this.context.name.value}-${this.context.version.value} - analysis is pending`,
source: 'Dependency Analytics'
}]
} else {
return [];
Expand Down Expand Up @@ -143,8 +143,8 @@ class SecurityEngine extends AnalysisConsumer implements DiagnosticProducer
let diagnostic = {
severity: DiagnosticSeverity.Error,
range: get_range(this.context.version),
message: `Package ${this.context.name.value}-${this.context.version.value} is vulnerable: ${cves}`,
source: 'Component Analysis'
message: `Application dependency ${this.context.name.value}-${this.context.version.value} is vulnerable: ${cves}`,
source: 'Dependency Analytics'
};

// TODO: this can be done lazily
Expand Down

0 comments on commit 2ace23b

Please sign in to comment.