Skip to content

Commit

Permalink
speculative fix for issue #52
Browse files Browse the repository at this point in the history
  • Loading branch information
Irame committed Jun 5, 2018
1 parent fbfbbe3 commit 53fc6a6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion SmartCmdArgs/SmartCmdArgs/Helper/ProjectArguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,18 @@ private static void GetCpsProjectAllArguments(EnvDTE.Project project, List<strin

public static bool IsSupportedProject(Microsoft.VisualStudio.Shell.Interop.IVsHierarchy project)
{
return project != null && supportedProjects.ContainsKey(project.GetKind());
if (project == null)
return false;

// Issue #52:
// Excludes a magic and strange SingleFileIntelisens pseudo project in %appdata%\Roaming\Microsoft\VisualStudio\<VS_Version>\SingleFileISense
// Seems like that all of these _sfi_***.vcxproj files have the same magic guid
// https://blogs.msdn.microsoft.com/vcblog/2015/04/29/single-file-intellisense-and-other-ide-improvements-in-vs2015/
// https://support.sourcegear.com/viewtopic.php?f=5&t=22778
if (project.GetGuid() == new Guid("a7a2a36c-3c53-4ccb-b52e-425623e2dda5"))
return false;

return supportedProjects.ContainsKey(project.GetKind());
}

public static void AddAllArguments(IVsHierarchy project, List<string> allArgs)
Expand Down

0 comments on commit 53fc6a6

Please sign in to comment.