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

답변됨 Why is the list of files of the running wwa app not sorted in Solution Explorer?

  • miércoles, 20 de junio de 2012 16:11
     
     

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

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

Todas las respuestas

  • jueves, 21 de junio de 2012 18:11
     
     Respondida

    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.

  • jueves, 21 de junio de 2012 18:42
     
     
    Thanks! Could be an option to sort in a different order, though.
  • jueves, 21 de junio de 2012 21:04
     
     

    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.