From 4448808afbb1f7c97d4c9a902133153aa2d7074f Mon Sep 17 00:00:00 2001 From: Sophio Japharidze Date: Thu, 27 Feb 2025 11:21:05 +0100 Subject: [PATCH] SLVSCODE-1029 fix order in HotspotResolution enum --- src/lsp/protocol.ts | 4 ++-- test/suite/hotspots.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lsp/protocol.ts b/src/lsp/protocol.ts index 19be7aa05..0448f98cd 100644 --- a/src/lsp/protocol.ts +++ b/src/lsp/protocol.ts @@ -185,9 +185,9 @@ export enum HotspotStatus { export enum ExtendedHotspotStatus { ToReview, - Safe, + Acknowledged, Fixed, - Acknowledged + Safe } export interface RemoteHotspot { diff --git a/test/suite/hotspots.test.ts b/test/suite/hotspots.test.ts index 7b23e595d..09cc60d40 100644 --- a/test/suite/hotspots.test.ts +++ b/test/suite/hotspots.test.ts @@ -380,9 +380,9 @@ suite('Hotspots Test Suite', async () => { suite('formatStatus', () => { test('Should correctly format status', () => { assert.strictEqual(formatDetectedHotspotStatus(0), 'To review'); - assert.strictEqual(formatDetectedHotspotStatus(1), 'Safe'); + assert.strictEqual(formatDetectedHotspotStatus(1), 'Acknowledged'); assert.strictEqual(formatDetectedHotspotStatus(2), 'Fixed'); - assert.strictEqual(formatDetectedHotspotStatus(3), 'Acknowledged'); + assert.strictEqual(formatDetectedHotspotStatus(3), 'Safe'); }); }); });