Skip to content

Commit 08a7565

Browse files
Fix typo causing '0 projects' to be displayed when open a solution
1 parent 07daf4e commit 08a7565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/status.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function reportDocumentStatus(server: OmnisharpServer): vscode.Disposable
156156
}
157157

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

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

168168
// show .NET Core projects if applicable
169-
if ('DotNet' in info) {
169+
if (info.DotNet) {
170170
addDnxOrDotNetProjects(info.DotNet.Projects);
171171
}
172172

0 commit comments

Comments
 (0)