Skip to content

Commit

Permalink
Avoid changing context key view when changing selection
Browse files Browse the repository at this point in the history
fixes eclipse-theia#13375

contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <rschnekenburger@eclipsesource.com>
  • Loading branch information
rschnekenbu committed Jun 5, 2024
1 parent a6fb882 commit f862f23
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/plugin-ext/src/main/browser/view/tree-views-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
CompositeTreeNode,
WidgetManager
} from '@theia/core/lib/browser';
import { ViewContextKeyService } from './view-context-key-service';
import { Disposable, DisposableCollection } from '@theia/core';
import { TreeViewWidget, TreeViewNode, PluginTreeModel, TreeViewWidgetOptions } from './tree-view-widget';
import { PluginViewWidget } from './plugin-view-widget';
Expand All @@ -36,7 +35,6 @@ export class TreeViewsMainImpl implements TreeViewsMain, Disposable {

private readonly proxy: TreeViewsExt;
private readonly viewRegistry: PluginViewRegistry;
private readonly contextKeys: ViewContextKeyService;
private readonly widgetManager: WidgetManager;
private readonly fileContentStore: DnDFileContentStore;

Expand All @@ -50,7 +48,6 @@ export class TreeViewsMainImpl implements TreeViewsMain, Disposable {
this.proxy = rpc.getProxy(MAIN_RPC_CONTEXT.TREE_VIEWS_EXT);
this.viewRegistry = container.get(PluginViewRegistry);

this.contextKeys = this.container.get(ViewContextKeyService);
this.widgetManager = this.container.get(WidgetManager);
this.fileContentStore = this.container.get(DnDFileContentStore);
}
Expand Down Expand Up @@ -197,7 +194,6 @@ export class TreeViewsMainImpl implements TreeViewsMain, Disposable {
}));

this.toDispose.push(treeViewWidget.model.onSelectionChanged(event => {
this.contextKeys.view.set(treeViewId);
this.proxy.$setSelection(treeViewId, event.map((node: TreeViewNode) => node.id));
}));

Expand Down

0 comments on commit f862f23

Please sign in to comment.