From 6b5187104db010ea4066318fa9e3462310fe2c3e Mon Sep 17 00:00:00 2001 From: Bastian Doetsch Date: Wed, 8 Jan 2025 14:08:21 +0100 Subject: [PATCH] fix: only add workspace folder if not already added --- domain/ide/workspace/workspace.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/domain/ide/workspace/workspace.go b/domain/ide/workspace/workspace.go index dba3a81c5..8337d1d83 100644 --- a/domain/ide/workspace/workspace.go +++ b/domain/ide/workspace/workspace.go @@ -127,7 +127,9 @@ func (w *Workspace) AddFolder(f types.Folder) { if w.folders == nil { w.folders = map[string]types.Folder{} } - w.folders[f.Path()] = f + if w.folders[f.Path()] == nil { + w.folders[f.Path()] = f + } } func (w *Workspace) IssuesForFile(path string) []snyk.Issue {