提交 4640bd8c 编写于 作者: S Sandeep Somavarapu

Fixes in Tree view

上级 9ff9e802
......@@ -86,7 +86,9 @@ class ExtHostTreeView<T> extends Disposable {
constructor(private viewId: string, private dataProvider: vscode.TreeDataProvider<T>, private proxy: MainThreadTreeViewsShape) {
super();
this.proxy.$registerView(viewId);
this._register(dataProvider.onDidChange(element => this._refresh(element)));
if (dataProvider.onDidChange) {
this._register(dataProvider.onDidChange(element => this._refresh(element)));
}
}
getTreeItems(): TPromise<TreeItem[]> {
......
......@@ -388,7 +388,7 @@ class Menus implements IDisposable {
}
const _contextKeyService = this.contextKeyService.createScoped();
contextKeyService.createKey('view', id);
_contextKeyService.createKey('view', id);
const titleMenu = this.menuService.createMenu(MenuId.ViewTitle, _contextKeyService);
const updateActions = () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册