Toad World® Forums

Navigator selection not changing when selecting method parameters in editor

When clicking on the name or the body of a package method (procedure or function), then the method is selected in the Navigator.
This does not work when selecting method parameters.

This is rather confusing, can it be fixed?

Can you post sample code? I’m testing with this package body and clicking on p1 and p2 for each method selects and focuses the navigator node for those params.

    CREATE OR REPLACE PACKAGE BODY MSTASZEW.overload_test
AS
PROCEDURE proc_1 (p1 IN NUMBER)
AS
BEGIN
NULL;
END;
PROCEDURE proc_1 (p1 IN NUMBER, p2 OUT DATE)
AS
BEGIN
NULL;
END;
END;
/

I can reproduce it with your example.

Cursor is at p1 of the second proc_1, but Navigator highlights the first proc_1.

Rt-click on the Navigator, Navigator Options, make sure Show parameters is checked.

Ah, I see.

It works when enabled, but I disabled this for a reason. Now that I thought about it, I have also disabled declarations.
Whenever I click into a parameter list or the declaration part, the tree is expanded, making the Navigator less usable for me.

My main use of the Navigator is to get a feeling for my current position in the package and to see the name of the current method. If I want to see the parameters/declaration of a method, then I navigate to this method.

Since this already works for method bodies, is there a way to make it jump to the method name if the options “Show declarations” and “Show parameters” are disabled?
Right now it is rather confusing, if the wrong method stays selected.

Thanks!

Fixed for today’s beta. Navigator will try for direct match to what has been clicked and when no node exists it will work up the tree from the clicked token until something is found to select.

Perfect,thank you!