From 08a7565dafd655bc768058e55af9095710827081 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Fri, 26 Aug 2016 13:35:51 -0700 Subject: [PATCH] Fix typo causing '0 projects' to be displayed when open a solution --- src/features/status.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/status.ts b/src/features/status.ts index 22b3615..b6b0cb6 100644 --- a/src/features/status.ts +++ b/src/features/status.ts @@ -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 }); @@ -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); }