Skip to content

Allow reselection of tree nodes#683

Open
autumn-puffin wants to merge 3 commits into
icsharpcode:masterfrom
autumn-puffin:master
Open

Allow reselection of tree nodes#683
autumn-puffin wants to merge 3 commits into
icsharpcode:masterfrom
autumn-puffin:master

Conversation

@autumn-puffin
Copy link
Copy Markdown

Resolves #679

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #679 by adjusting the ilspy.decompileNode command flow so clicking an already-selected tree node can refocus its existing decompiled document instead of doing nothing.

Changes:

  • Compute the node URI up front for reuse across branches.
  • Add a reselection path intended to bring the already-open decompiled document back into focus.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +41 to +46
let doc = vscode.workspace.textDocuments.find(
(d) => d.uri.toString() === uri.toString(),
);
if (doc) {
await vscode.window.showTextDocument(doc, { preview: true });
}
Comment thread vscode-extension/src/commands/decompileNodeCommand.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Cannot refocus a selected node via tree view

3 participants