Skip to content

Commit

Permalink
Merge pull request #723 from DustinCampbell/fix-zero-projects-label
Browse files Browse the repository at this point in the history
Fix typo causing '0 projects' to be displayed when open a solution
  • Loading branch information
DustinCampbell authored Aug 26, 2016
2 parents 07daf4e + 08a7565 commit 3532794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function reportDocumentStatus(server: OmnisharpServer): vscode.Disposable
}

// show sln-file if applicable
if ('MSBuild' in info && info.MsBuild.SolutionPath) {
if (info.MsBuild && info.MsBuild.SolutionPath) {
label = basename(info.MsBuild.SolutionPath); //workspace.getRelativePath(info.MsBuild.SolutionPath);
fileNames.push({ pattern: info.MsBuild.SolutionPath });

Expand All @@ -166,7 +166,7 @@ export function reportDocumentStatus(server: OmnisharpServer): vscode.Disposable
}

// show .NET Core projects if applicable
if ('DotNet' in info) {
if (info.DotNet) {
addDnxOrDotNetProjects(info.DotNet.Projects);
}

Expand Down

0 comments on commit 3532794

Please sign in to comment.