Merge pull request #723 from DustinCampbell/fix-zero-projects-label

Fix typo causing '0 projects' to be displayed when open a solution
This commit is contained in:
Dustin Campbell 2016-08-26 13:42:07 -07:00 коммит произвёл GitHub
Родитель 07daf4ecbd 08a7565daf
Коммит 353279461b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -156,7 +156,7 @@ export function reportDocumentStatus(server: OmnisharpServer): vscode.Disposable
} }
// show sln-file if applicable // 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); label = basename(info.MsBuild.SolutionPath); //workspace.getRelativePath(info.MsBuild.SolutionPath);
fileNames.push({ pattern: 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 // show .NET Core projects if applicable
if ('DotNet' in info) { if (info.DotNet) {
addDnxOrDotNetProjects(info.DotNet.Projects); addDnxOrDotNetProjects(info.DotNet.Projects);
} }