提交 cfa29c48 编写于 作者: P pkoushik

fix-73465 Tweaked Toggle Search Position Feature to work on empty tree and No Search Results

上级 a6774a69
......@@ -683,9 +683,9 @@ export class SearchView extends ViewletPanel {
}
private onContextMenu(e: ITreeContextMenuEvent<RenderableMatch | null>): void {
if (!e.element) {
return;
}
// if (!e.element) {
// return;
// }
if (!this.contextMenu) {
this.contextMenu = this._register(this.menuService.createMenu(MenuId.SearchContext, this.contextKeyService));
......@@ -1327,7 +1327,7 @@ export class SearchView extends ViewletPanel {
// Indicate as status to ARIA
aria.status(message);
dom.hide(this.resultsElement);
//dom.hide(this.resultsElement);
const messageEl = this.clearMessage();
const p = dom.append(messageEl, $('p', undefined, message));
......@@ -1358,6 +1358,7 @@ export class SearchView extends ViewletPanel {
const learnMoreLink = dom.append(p, $('a.pointer.prominent', { tabindex: 0 }, nls.localize('openSettings.learnMore', "Learn More")));
this.addClickEvents(learnMoreLink, this.onLearnMore);
this.reLayout();
}
if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册