Skip to content

Commit

Permalink
fix: cleaner vuln count text [HEAD-1063] (#399)
Browse files Browse the repository at this point in the history
* chore: do not show vuln count text if vuln count is 0

* chore: updated changelog
  • Loading branch information
j-luong authored Nov 24, 2023
1 parent 033be34 commit a2c0676
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Snyk Security - Code and Open Source Dependencies Changelog

## [1.27.1]

### Changed

- Cleaner OSS vulnerability count text

## [1.27.0]

### Feat
### Changed

- Snyk LS: Snyk Open Source Security features now use Language Server backend

Expand Down
2 changes: 1 addition & 1 deletion src/snyk/snykOss/editor/editorDecorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class EditorDecorator {
this.fileDecorationMap.set(filePath, lineDecorations); // set map, if no decoration was set before
}

const vulnerabilityCountMessage = vulnerabilityCount.count ?? 'Vulnerabilities: 0';
const vulnerabilityCountMessage = vulnerabilityCount.count ?? '';

lineDecorations[vulnerabilityCount.line] = {
range: this.languages.createRange(
Expand Down

0 comments on commit a2c0676

Please sign in to comment.