MCPcopy Create free account
hub / github.com/Reflectology/M0WER / registerOpenHandler

Method registerOpenHandler

src/entityTreeProvider.ts:72–82  ·  view source on GitHub ↗
(view: vscode.TreeView<EntityTreeItem>)

Source from the content-addressed store, hash-verified

70
71 // Add this method to hook up selection/open
72 public registerOpenHandler(view: vscode.TreeView<EntityTreeItem>) {
73 view.onDidChangeSelection(e => {
74 const item = e.selection[0];
75 if (item) {
76 vscode.commands.executeCommand('mower.revealInEditor', item.node.id);
77 }
78 });
79 view.onDidChangeVisibility(() => { /* ... */ });
80 view.onDidExpandElement(() => { /* ... */ });
81 view.onDidCollapseElement(() => { /* ... */ });
82 }
83}

Callers 1

activateFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected