提交 06e4e227 编写于 作者: R Rudi Chen

strictNullCheck merge conflicts

上级 77710c11
......@@ -23,7 +23,7 @@ export interface IBreadcrumbsService {
register(group: GroupIdentifier, widget: BreadcrumbsWidget): IDisposable;
getWidget(group: GroupIdentifier): BreadcrumbsWidget;
getWidget(group: GroupIdentifier): BreadcrumbsWidget | undefined;
}
......@@ -43,7 +43,7 @@ export class BreadcrumbsService implements IBreadcrumbsService {
};
}
getWidget(group: number): BreadcrumbsWidget {
getWidget(group: number): BreadcrumbsWidget | undefined {
return this._map.get(group);
}
}
......
......@@ -117,7 +117,7 @@ export class EditorBreadcrumbsModel {
info.path.unshift(new FileElement(uriPrefix, info.path.length === 0 ? FileKind.FILE : FileKind.FOLDER));
let prevPathLength = uriPrefix.path.length;
uriPrefix = dirname(uriPrefix);
if (uriPrefix.path.length === prevPathLength) {
if (!uriPrefix || uriPrefix.path.length === prevPathLength) {
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册