From cfdd92eb03730be175d270c4f9740e997792f3c5 Mon Sep 17 00:00:00 2001 From: Ibrahim Rahhal Date: Wed, 1 Apr 2026 16:59:26 +0300 Subject: [PATCH 1/2] Fixing VS code issues --- .../vulnerabilitiesWebviewProvider.ts | 19 ++++++++++--------- src/views/entry/SidePanelView.tsx | 10 ++++++++++ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/providers/vulnerabilitiesWebviewProvider.ts b/src/providers/vulnerabilitiesWebviewProvider.ts index 0a97df3..8eb2fbe 100644 --- a/src/providers/vulnerabilitiesWebviewProvider.ts +++ b/src/providers/vulnerabilitiesWebviewProvider.ts @@ -405,6 +405,10 @@ export default class VulnerabilitiesWebviewProvider implements vscode.WebviewVie }); } + private _safeJsonStringify(value: any): string { + return JSON.stringify(value).replace(//g, '\\u003e'); + } + private _getReactHtmlTemplate(data: any): string { return ` @@ -420,33 +424,30 @@ export default class VulnerabilitiesWebviewProvider implements vscode.WebviewVie
- + `; } diff --git a/src/views/entry/SidePanelView.tsx b/src/views/entry/SidePanelView.tsx index 3a20ebf..fc6b24a 100644 --- a/src/views/entry/SidePanelView.tsx +++ b/src/views/entry/SidePanelView.tsx @@ -6,6 +6,16 @@ import VulnerabilitiesApp from '../components/VulnerabilitiesApp/Vulnerabilities // Global styles import '../styles/global.css'; +declare function acquireVsCodeApi(): { + postMessage: (message: any) => void; + getState: () => any; + setState: (state: any) => void; +}; + +if (typeof acquireVsCodeApi !== 'undefined' && !window.vscode) { + window.vscode = acquireVsCodeApi(); +} + const container = document.getElementById('app'); if (!container) { throw new Error('Root container not found'); From 33746f55a038a9bdfedb4a4385f8d8c08d1e7f0e Mon Sep 17 00:00:00 2001 From: Ibrahim Rahhal Date: Wed, 1 Apr 2026 17:01:19 +0300 Subject: [PATCH 2/2] Pump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e900516..c0147d7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Corgea", "publisher": "Corgea", "description": "Corgea helps you automatically fix insecure code.", - "version": "1.5.2", + "version": "1.5.3", "icon": "images/logo.png", "license": "UNLICENSED", "repository": {