提交 62727a35 编写于 作者: J Johannes Rieken

fixes #672

上级 9d1054fb
......@@ -122,8 +122,10 @@ export function reportDocumentStatus(server: OmnisharpServer): vscode.Disposable
for (let project of info.MSBuild.Projects) {
fileNames.push({ pattern: project.Path });
for (let sourceFile of project.SourceFiles) {
fileNames.push({ pattern: sourceFile });
if (project.SourceFiles) {
for (let sourceFile of project.SourceFiles) {
fileNames.push({ pattern: sourceFile });
}
}
}
}
......@@ -134,8 +136,10 @@ export function reportDocumentStatus(server: OmnisharpServer): vscode.Disposable
count += 1;
fileNames.push({ pattern: project.Path });
for (let sourceFile of project.SourceFiles) {
fileNames.push({ pattern: sourceFile });
if (project.SourceFiles) {
for (let sourceFile of project.SourceFiles) {
fileNames.push({ pattern: sourceFile });
}
}
}
if (label) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册