Skip to content

Commit

Permalink
fix: only add workspace folder if not already added (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch authored Jan 8, 2025
1 parent 00acaf3 commit 16c0716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion domain/ide/workspace/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 16c0716

Please sign in to comment.