diff --git a/src/snyk/base/statusBarItem/statusBarItem.ts b/src/snyk/base/statusBarItem/statusBarItem.ts index 04735d5c3..2c1babbb0 100644 --- a/src/snyk/base/statusBarItem/statusBarItem.ts +++ b/src/snyk/base/statusBarItem/statusBarItem.ts @@ -1,5 +1,5 @@ import * as vscode from 'vscode'; -import { SNYK_NAME_STATUS } from '../../common/constants/general'; +import { SNYK_NAME } from '../../common/constants/general'; import { SNYK_SETTINGS_COMMAND } from '../../common/constants/commands'; export interface IStatusBarItem { @@ -11,7 +11,7 @@ class SnykStatusBarItem implements IStatusBarItem { public snykStatusBarItem: vscode.StatusBarItem; public constructor() { this.snykStatusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 0); - this.snykStatusBarItem.text = SNYK_NAME_STATUS; + this.snykStatusBarItem.text = SNYK_NAME; } public show(): void { diff --git a/src/snyk/common/constants/general.ts b/src/snyk/common/constants/general.ts index fdc07c90c..c8b596a64 100644 --- a/src/snyk/common/constants/general.ts +++ b/src/snyk/common/constants/general.ts @@ -1,6 +1,5 @@ // Changing this requires changing display name in package.json. -export const SNYK_NAME = 'Snyk Security - Code, Open Source Dependencies, IaC Configurations'; -export const SNYK_NAME_STATUS = 'Snyk Security'; +export const SNYK_NAME = 'Snyk Security'; export const SNYK_TOKEN_KEY = 'snyk.token'; export const SNYK_UNIQUE_EXTENSION_NAME = 'Snyk Vulnerability Scanner'; export const SNYK_PUBLISHER = 'snyk-security'; diff --git a/src/snyk/common/views/issueTreeProvider.ts b/src/snyk/common/views/issueTreeProvider.ts index 638d03d68..3dcb5b244 100644 --- a/src/snyk/common/views/issueTreeProvider.ts +++ b/src/snyk/common/views/issueTreeProvider.ts @@ -35,14 +35,6 @@ export abstract class ProductIssueTreeProvider extends AnalysisTreeNodeProvid ); } - getAIFix(issue: Issue): boolean { - const myIssue = issue as unknown as Issue; - if (myIssue.additionalData.hasAIFix) { - return true; - } - return false; - } - abstract shouldShowTree(): boolean; abstract filterIssues(issues: Issue[]): Issue[]; diff --git a/src/snyk/snykCode/views/issueTreeProvider.ts b/src/snyk/snykCode/views/issueTreeProvider.ts index eb862269e..b52ad1bba 100644 --- a/src/snyk/snykCode/views/issueTreeProvider.ts +++ b/src/snyk/snykCode/views/issueTreeProvider.ts @@ -43,10 +43,6 @@ export class IssueTreeProvider extends ProductIssueTreeProvider { return fixIcon + title; } - getAIFix(issue: Issue): boolean { - return issue.additionalData.hasAIFix ? true : false; - } - getIssueRange(issue: Issue): Range { return IssueUtils.createVsCodeRange(issue.additionalData, this.languages); } diff --git a/src/snyk/snykCode/views/securityIssueTreeProvider.ts b/src/snyk/snykCode/views/securityIssueTreeProvider.ts index 8e9d09f26..89ed80ca8 100644 --- a/src/snyk/snykCode/views/securityIssueTreeProvider.ts +++ b/src/snyk/snykCode/views/securityIssueTreeProvider.ts @@ -39,15 +39,10 @@ export default class CodeSecurityIssueTreeProvider extends IssueTreeProvider { } protected getIssueFoundText(nIssues: number): string { - // return `Snyk found ${!nIssues ? 'no vulnerabilities! ✅' : `${nIssues} ${nIssues === 1 ? 'vulnerability' : 'vulnerabilities'}` - // }`; - let message = ""; - - if (nIssues <= 0) { - message = '✅ Congrats! No vulnerabilities found!'; + if (nIssues > 0) { + return nIssues === 1 ? `${nIssues} vulnerability found by Snyk` : `✋ ${nIssues} vulnerabilities found by Snyk`; } else { - message = nIssues === 1 ? `${nIssues} vulnerability found by Snyk` : `✋ ${nIssues} vulnerabilities found by Snyk`; + return '✅ Congrats! No vulnerabilities found!'; } - return message; } }