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 {