Skip to content

Commit

Permalink
Fix typo causing '0 projects' to be displayed when open a solution
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinCampbell committed Aug 26, 2016
1 parent 07daf4e commit 08a7565
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 08a7565

Please sign in to comment.