{"action":"closed","issue":{"url":"https://api.github.com/repos/fdorg/flashdevelop/issues/928","labels_url":"https://api.github.com/repos/fdorg/flashdevelop/issues/928/labels{/name}","comments_url":"https://api.github.com/repos/fdorg/flashdevelop/issues/928/comments","events_url":"https://api.github.com/repos/fdorg/flashdevelop/issues/928/events","html_url":"https://github.com/fdorg/flashdevelop/issues/928","id":112084660,"number":928,"title":"Project panel: Track active document not always tracking","user":{"login":"gene-pavlovsky","id":2841193,"avatar_url":"https://avatars.githubusercontent.com/u/2841193?v=3","gravatar_id":"","url":"https://api.github.com/users/gene-pavlovsky","html_url":"https://github.com/gene-pavlovsky","followers_url":"https://api.github.com/users/gene-pavlovsky/followers","following_url":"https://api.github.com/users/gene-pavlovsky/following{/other_user}","gists_url":"https://api.github.com/users/gene-pavlovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/gene-pavlovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gene-pavlovsky/subscriptions","organizations_url":"https://api.github.com/users/gene-pavlovsky/orgs","repos_url":"https://api.github.com/users/gene-pavlovsky/repos","events_url":"https://api.github.com/users/gene-pavlovsky/events{/privacy}","received_events_url":"https://api.github.com/users/gene-pavlovsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T07:04:31Z","updated_at":"2015-12-05T12:33:12Z","closed_at":"2015-12-05T12:33:12Z","body":"I have ``Track Active Document`` enabled in the project panel, it updates when switching tabs, opening a new tab using Ctrl+R shortcut, opening one of project's file with a file manager (e.g. Explorer).\r\nHowever, when I first start (or restart) FD, it restores the last session including the tab I was on, but on the project panel everything is collapsed and the root node is selected. Have to ctrl-tab to another tab then back to get my current tab's document tracked. Similar (more common) scenario is switching between projects, both of which reference some common code. E.g. I have a class library I'm developing together with a main project, and a simple sandbox project where I just test various things from that class library. So sandbox project includes the source path from the class library. I'm working with the sandbox project, modifying some class in the class library, then after some sandbox testing I want to switch to the main project and test the new feature in there. After I switch, the project tree collapsed and the active doc is not tracked. Switching back to the sandbox project, still it's all collapsed.\r\nI think when a project is opened, FD should check if the active document is a part of, or referenced by that project, if so, navigate to that document's node in the project tree."}}