locked
Why is the list of files of the running wwa app not sorted in Solution Explorer?

    Question

  • This is a mess! Try to find a file in here:

    I understand the files are listed here in load order, but why? 

    Wednesday, June 20, 2012 4:11 PM

Answers

  • My understanding is that it is done this way because load order matters in JavaScript.  E.g. defining the same function in two files, the last one loaded will win.  Being able to more easily visualize this and understand it as you debug your application can be useful.

    In my own experience I have also found it useful when diagnosing errors that cause the application to stop executing - knowing the last file loaded can be helpful to narrow down your search area for what is wrong.


    This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, June 21, 2012 6:11 PM

All replies

  • My understanding is that it is done this way because load order matters in JavaScript.  E.g. defining the same function in two files, the last one loaded will win.  Being able to more easily visualize this and understand it as you debug your application can be useful.

    In my own experience I have also found it useful when diagnosing errors that cause the application to stop executing - knowing the last file loaded can be helpful to narrow down your search area for what is wrong.


    This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, June 21, 2012 6:11 PM
  • Thanks! Could be an option to sort in a different order, though.
    Thursday, June 21, 2012 6:42 PM
  • You can file an item on UserVoice or Connect to have that considered for any future improvements by the team that owns that area.

    UserVoice: http://visualstudio.uservoice.com/

    Microsoft Connect: http://connect.microsoft.com/visualstudio


    This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, June 21, 2012 9:04 PM