{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/11360","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/11360/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/11360/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/11360/events","html_url":"https://github.com/Microsoft/vscode/issues/11360","id":174418163,"number":11360,"title":"Issue with dynamic content providers and reference ui (and more)","user":{"login":"eamodio","id":641685,"avatar_url":"https://avatars.githubusercontent.com/u/641685?v=3","gravatar_id":"","url":"https://api.github.com/users/eamodio","html_url":"https://github.com/eamodio","followers_url":"https://api.github.com/users/eamodio/followers","following_url":"https://api.github.com/users/eamodio/following{/other_user}","gists_url":"https://api.github.com/users/eamodio/gists{/gist_id}","starred_url":"https://api.github.com/users/eamodio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eamodio/subscriptions","organizations_url":"https://api.github.com/users/eamodio/orgs","repos_url":"https://api.github.com/users/eamodio/repos","events_url":"https://api.github.com/users/eamodio/events{/privacy}","received_events_url":"https://api.github.com/users/eamodio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/api","name":"api","color":"1d76db"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/question","name":"question","color":"E2A1C2"}],"state":"closed","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/26","html_url":"https://github.com/Microsoft/vscode/milestones/September%202016","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/26/labels","id":1944122,"number":26,"title":"September 2016","description":"","creator":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"open_issues":153,"closed_issues":196,"state":"open","created_at":"2016-08-16T05:20:24Z","updated_at":"2016-09-21T10:57:49Z","due_on":"2016-09-30T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-09-01T01:47:51Z","updated_at":"2016-09-21T12:29:17Z","closed_at":"2016-09-20T10:47:19Z","body":"- VSCode Version: `Version 1.5.0-insider (1.5.0-insider)` 1de4d832ccb061c13cf70eaf0221fbaa86abfbdd\r\n- OS Version: `OS X El Capitan Version 10.11.6 (15G31)`\r\n\r\nI'm working on a new extension to provide CodeLens for Git across most supported vscode languages (assuming they implement a DocumentSymbolProvider. But I've run into a few bugs as well as API (and UI) limitations.\r\n\r\nYou can find my [GitLens](https://github.com/eamodio/vscode-gitlens) extension on GitHub with the latest release [here](https://github.com/eamodio/vscode-gitlens/releases/tag/0.0.3). I haven't yet wanted to publish it to the marketplace until I get some of these issues resolved.\r\n\r\nHere are a couple of screenshots to give you an idea of the UI:\r\n\r\nProvides CodeLens with the author and date of the last check-in.\r\n\r\n> ![CodeLens](https://raw.githubusercontent.com/eamodio/vscode-git-codelens/master/images/preview-codelens.png)\r\n\r\nClicking on a CodeLens opens a blame \"explorer\" with the commits and changed lines in the right pane and the commit (file) contents on the left.\r\n\r\n> ![Blame Explorer](https://raw.githubusercontent.com/eamodio/vscode-git-codelens/master/images/preview-blame.png)\r\n\r\nLet me first say that I know I am really stretching the limits (read: hijacking) the reference UI, but I think it does come pretty close to something pretty cool for this.\r\n\r\nThe first biggest issue I've been running into is using a `TextDocumentContentProvider` to provide the content for a reference location url seems to time out after a minute or so -- seems like it is getting garbage collection, but I'm not sure how to stop that.\r\n\r\nNext issue is I would like to provide decorators (blame line indication) for the content provided by my `TextDocumentContentProvider`. I've been able to hack this the first time the my [GitBlameContentProvider](https://github.com/eamodio/vscode-gitlens/blob/master/src/gitBlameContentProvider.ts) is loaded for a particular uri, but once it is cached there doesn't seem to be any published event that I can trap to trigger a decoration. It would be really nice if there was an even when a reference was selected in the reference UI. It would also be great if there was a way to officially find a particular uri in the visible set of editors -- right now I have this[ awful hack](https://github.com/eamodio/vscode-gitlens/blob/master/src/gitBlameContentProvider.ts#L75).\r\n\r\nI would also love to be able to control the order (and initial selection) of locations provided to the reference UI -- right now they are sorted alphabetically, so I am resorting to crafting my uris with an [embedded index](https://github.com/eamodio/vscode-gitlens/blob/master/src/gitProvider.ts#L140) -- which is less than ideal. Also the initial selection of the reference UI seems to be the location closest to the trigger point in the document, but I would love to be able to control that -- even for real references it is arguable if that is ideal.\r\n\r\nI thought I was also seeing race conditions with the Omnisharp-vscode extension, where the C# `DocumentSymbolProvider` wouldn't respond when my CodeLens would try to execute `vscode.executeDocumentSymbolProvider`. I haven't been able to really reproduce this lately, so it could be gone now.\r\n\r\nThank you for the awesome product that vscode is and I would greatly appreciate any help or guidance on these issues!\r\n\r\nThanks,\r\nEric Amodio"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/248596986","html_url":"https://github.com/Microsoft/vscode/issues/11360#issuecomment-248596986","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/11360","id":248596986,"user":{"login":"eamodio","id":641685,"avatar_url":"https://avatars.githubusercontent.com/u/641685?v=3","gravatar_id":"","url":"https://api.github.com/users/eamodio","html_url":"https://github.com/eamodio","followers_url":"https://api.github.com/users/eamodio/followers","following_url":"https://api.github.com/users/eamodio/following{/other_user}","gists_url":"https://api.github.com/users/eamodio/gists{/gist_id}","starred_url":"https://api.github.com/users/eamodio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eamodio/subscriptions","organizations_url":"https://api.github.com/users/eamodio/orgs","repos_url":"https://api.github.com/users/eamodio/repos","events_url":"https://api.github.com/users/eamodio/events{/privacy}","received_events_url":"https://api.github.com/users/eamodio/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T12:29:17Z","updated_at":"2016-09-21T12:29:17Z","body":"@jrieken Yes, the content is visible in the peek and will just go blank after ~1 minute."}}
{"actor":{"display_login":"eamodio"}}