Current filter:
                                You should refresh the page.
                                0
                                  • If I extract code from a method with the "Extract method" refactoring a target picker appears. If I move this target picker it does not stop BEFORE a region, but only right after it. Although I want to keep the extracted method right after the original method it will pe placed inside a region that comes right after the original method.

                                    Please see my screenshots as it is a bit hard to describe ;-)

                                    Dirk

                                    Steps to Reproduce:

                                    Do the following:

                                    Bug #1

                                    --------

                                    Open Form1.cs

                                    go to method DeleteRow()

                                    select the complete line 'Console.WriteLine("MEDlgActivity deleteBarButtonItem_ItemClick() ");'

                                    In the appearing Refactor marker select 'Extract method'

                                    Target picker appears above method

                                    Press Down key one time

                                    Picker does not stay within the region 'test' but jumps INSIDE the next region 'Validation'

                                    Bug #2

                                    --------

                                    Go to method OtherMethod()

                                    Select the whole line 'i = j + 1;'

                                    In the appearing Refactor marker select 'Extract method'

                                    Target picker appears above method, BUT outside the region 'other methods'. In this case it is not possible to pick a location inside 'region Other methods' and also not possible to pick a location inside 'region RegionName'

                                    (==> it should be possible to pick a location (a) inside the same region right after 'region other methods' (b) outside the region just above '#region OtherMethod' (c) inside 'region RegionName'

                                    Expected Results:

                                    The picker should make a stop BEFORE and AFTER a #region and #endregion line.

                                tpick1.jpg
                                0

                                Second screenshot. Shows the picker aft I pressed the Down-ArrowKey for ONE time. The picker jumps right into the region, but should stop before AND after the region

                                tpick2.jpg
                                0

                                Hi Dirk,

                                Thank you for the screenshots.

                                However, I don't completely understand how to replicate the problem you reported. Can you please post here a sample code snippet, where the problem is reproduced at your side, and specify exactly which actions we should perform to replicate it (in particular, please clarify which code we should select and mark somehow the desired position for the extracted method)?

                                Thanks,
                                Vito

                                0

                                Hi Vito,
                                I attached a sample solution. In this solution the bug appears. I also found another issue. Both are explained in Steps to reproduce

                                Dirk

                                DXBugPicker.rar
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.