Skip to content

Commit 2f8b268

Browse files
authored
[ROAD-950] Fix: files not detected issue (#173)
1 parent 0c30afa commit 2f8b268

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# Snyk Changelog
22

3+
## [1.1.20]
4+
5+
### Fixed
6+
- Files not detected issue.
7+
38
## [1.1.19]
49

510
### Fixed
6-
- Errors when projects are nested inside solution folders
11+
- Errors when projects are nested inside solution folders.
712

813
## [1.1.18]
914

1015
### Changed
11-
- Removed manually included DLLs from VSIX package
16+
- Removed manually included DLLs from VSIX package.
1217

1318
## [1.1.17]
1419

1520
### Fixed
16-
- Selection of tree view items only working when clicking on the icon
17-
- Background color of unfocused selected items might blend with font color on some themes
21+
- Selection of tree view items only working when clicking on the icon.
22+
- Background color of unfocused selected items might blend with font color on some themes.
1823

1924
## [1.1.16]
2025

@@ -24,7 +29,7 @@
2429
### Fixed
2530
- The color of the text in the tree view does not match the color from VS theme.
2631
- A problem with partially lost Snyk Code results if a single file contains multiple identical suggestions.
27-
- Error when clicking on issues with unknown severity in the tool window
32+
- Error when clicking on issues with unknown severity in the tool window.
2833

2934
## [1.1.15]
3035

@@ -33,7 +38,7 @@
3338
- Restore all tree items after clear search or filter.
3439

3540
### Changed
36-
- Expand all scan results after completing a scan
41+
- Expand all scan results after completing a scan.
3742

3843
## [1.1.14]
3944

Snyk.VisualStudio.Extension.Shared/Service/SnykSolutionService.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,20 @@ private IList<string> GetSolutionProjects(Toolkit.SolutionItem solutionItem)
413413
{
414414
foreach (var children in solutionItem.Children)
415415
{
416-
if (children.Type == Toolkit.SolutionItemType.Project
417-
|| children.Type == Toolkit.SolutionItemType.VirtualProject
416+
if (children.Type == Toolkit.SolutionItemType.VirtualProject
418417
|| children.Type == Toolkit.SolutionItemType.MiscProject)
419418
{
420419
projectFolders.Add(this.GetExistingDirectoryPath(children.FullPath));
421420
}
421+
else if (children.Type == Toolkit.SolutionItemType.Project)
422+
{
423+
var project = children as Toolkit.Project;
424+
425+
if (project.IsLoaded)
426+
{
427+
projectFolders.Add(this.GetExistingDirectoryPath(project.FullPath));
428+
}
429+
}
422430
}
423431
}
424432
}

0 commit comments

Comments
 (0)