Sprint 6 Step 192: security diagnostics integration

This commit is contained in:
Bill
2026-02-10 02:08:15 -07:00
parent 908436b577
commit 330fb9e668
14 changed files with 277 additions and 2 deletions

View File

@@ -374,6 +374,7 @@ static void renderEditorPanel(EditorState& state) {
result.violations,
EditorState::toFileUri(state.active()->path));
state.appendUnusedImportDiagnostics(state.whetstoneDiagnostics);
state.appendVulnerabilityDiagnostics(state.whetstoneDiagnostics);
} else {
state.whetstoneDiagnostics.clear();
}

View File

@@ -349,6 +349,11 @@ static void renderSettingsPanel(EditorState& state) {
state.settings.setReduceMotion(reduceMotionSetting);
settingsChanged = true;
}
bool blockVulnImports = state.settings.getBlockVulnerableImports();
if (ImGui::Checkbox("Block Vulnerable Imports", &blockVulnImports)) {
state.settings.setBlockVulnerableImports(blockVulnImports);
settingsChanged = true;
}
LayoutPreset preset = state.ui.layoutPreset;
int presetIndex = 0;

View File

@@ -89,6 +89,8 @@ static void renderDependenciesPanel(EditorState& state) {
state.library.vulnDb);
ImGui::PopFont();
ImGui::End();
state.library.primitives.setVulnerableLibraries(
state.library.dependencyPanel.vulnerableLibraries);
if (state.library.dependencyPanel.needsIndex) {
state.requestLibraryIndex();
state.library.dependencyPanel.needsIndex = false;