提交 b86c9355 编写于 作者: N Nick Snyder

guard against empty tooltip

fixes JS error "Cannot read property 'charAt' of undefined"
上级 f0f2c909
......@@ -62,7 +62,7 @@ class SCMDecorationsProvider implements IDecorationsProvider {
provideDecorations(uri: URI): IResourceDecorationData {
const resource = this._data.get(uri.toString());
if (!resource || !resource.decorations.color) {
if (!resource || !resource.decorations.color || !resource.decorations.tooltip) {
return undefined;
}
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册