{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/53222978","id":53222978,"diff_hunk":"@@ -0,0 +1,48 @@\n+﻿// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.\n+\n+using Microsoft.CodeAnalysis.Editor.CommandHandlers;\n+using Microsoft.CodeAnalysis.Editor.Commands;\n+using System;\n+using System.Collections.Generic;\n+using System.ComponentModel.Composition;\n+using System.Linq;\n+\n+namespace Microsoft.CodeAnalysis.Editor.CSharp.Interactive\n+{\n+    /// <summary>\n+    /// Implements a execute in interactive command handler.\n+    /// </summary>\n+    [ExportCommandHandler(\"Interactive Command Handler\", ContentTypeNames.CSharpContentType)]\n+    internal class CSharpExecuteInInteractiveCommandHandler\n+        : ICommandHandler<ExecuteInInteractiveCommandArgs>\n+    {\n+        private readonly IEnumerable<Lazy<IExecuteInInteractiveCommandHandler, ContentTypeMetadata>> _executeInInteractiveHandlers;\n+\n+        [ImportingConstructor]\n+        public CSharpExecuteInInteractiveCommandHandler(\n+            [ImportMany]IEnumerable<Lazy<IExecuteInInteractiveCommandHandler, ContentTypeMetadata>> executeInInteractiveHandlers)\n+        {\n+            _executeInInteractiveHandlers = executeInInteractiveHandlers;\n+        }\n+\n+        private IExecuteInInteractiveCommandHandler CommandHandler\n+        {\n+            get\n+            {\n+                return _executeInInteractiveHandlers\n+                    .Where(handler => handler.Metadata.ContentTypes.Contains(ContentTypeNames.CSharpContentType))","path":"src/EditorFeatures/CSharp/Interactive/CSharpExecuteInInteractiveCommandHandler.cs","position":33,"original_position":33,"commit_id":"8bc7bcd6338cc00151c92d434551eb443b83d144","original_commit_id":"8bc7bcd6338cc00151c92d434551eb443b83d144","user":{"login":"KevinH-MS","id":6464209,"avatar_url":"https://avatars.githubusercontent.com/u/6464209?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinH-MS","html_url":"https://github.com/KevinH-MS","followers_url":"https://api.github.com/users/KevinH-MS/followers","following_url":"https://api.github.com/users/KevinH-MS/following{/other_user}","gists_url":"https://api.github.com/users/KevinH-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinH-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinH-MS/subscriptions","organizations_url":"https://api.github.com/users/KevinH-MS/orgs","repos_url":"https://api.github.com/users/KevinH-MS/repos","events_url":"https://api.github.com/users/KevinH-MS/events{/privacy}","received_events_url":"https://api.github.com/users/KevinH-MS/received_events","type":"User","site_admin":false},"body":"Ideally, we would get an IContentType for these, and to IContentType.IsOfType (rather than a string comparison), because content types can \"inherit\" from one another, but this can be addressed in a subsequent checkin. ","created_at":"2016-02-17T20:05:02Z","updated_at":"2016-02-17T20:05:02Z","html_url":"https://github.com/dotnet/roslyn/pull/8812#discussion_r53222978","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/8812","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/53222978"},"html":{"href":"https://github.com/dotnet/roslyn/pull/8812#discussion_r53222978"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/8812"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/8812","id":59688545,"html_url":"https://github.com/dotnet/roslyn/pull/8812","diff_url":"https://github.com/dotnet/roslyn/pull/8812.diff","patch_url":"https://github.com/dotnet/roslyn/pull/8812.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/8812","number":8812,"state":"open","locked":false,"title":"Move interactive commands out of InteractiveFeatures","user":{"login":"drognanar","id":3418274,"avatar_url":"https://avatars.githubusercontent.com/u/3418274?v=3","gravatar_id":"","url":"https://api.github.com/users/drognanar","html_url":"https://github.com/drognanar","followers_url":"https://api.github.com/users/drognanar/followers","following_url":"https://api.github.com/users/drognanar/following{/other_user}","gists_url":"https://api.github.com/users/drognanar/gists{/gist_id}","starred_url":"https://api.github.com/users/drognanar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drognanar/subscriptions","organizations_url":"https://api.github.com/users/drognanar/orgs","repos_url":"https://api.github.com/users/drognanar/repos","events_url":"https://api.github.com/users/drognanar/events{/privacy}","received_events_url":"https://api.github.com/users/drognanar/received_events","type":"User","site_admin":false},"body":"Moves the interactive commands out of interactive features in order to expose the QueryStatus for such commands.\r\nUses MEF to actually call command's implementation.\r\n\r\nPuts the commands in dlls which get loaded by default when Roslyn starts.\r\nThis way interactive dlls load only when commands get executed and not when they get created.","created_at":"2016-02-17T18:38:53Z","updated_at":"2016-02-17T20:05:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28e9fed2e37209fa494d00c9136859a4add7ed77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/8812/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/8812/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/8812/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/8bc7bcd6338cc00151c92d434551eb443b83d144","head":{"label":"drognanar:delayloadinteractivedll","ref":"delayloadinteractivedll","sha":"8bc7bcd6338cc00151c92d434551eb443b83d144","user":{"login":"drognanar","id":3418274,"avatar_url":"https://avatars.githubusercontent.com/u/3418274?v=3","gravatar_id":"","url":"https://api.github.com/users/drognanar","html_url":"https://github.com/drognanar","followers_url":"https://api.github.com/users/drognanar/followers","following_url":"https://api.github.com/users/drognanar/following{/other_user}","gists_url":"https://api.github.com/users/drognanar/gists{/gist_id}","starred_url":"https://api.github.com/users/drognanar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drognanar/subscriptions","organizations_url":"https://api.github.com/users/drognanar/orgs","repos_url":"https://api.github.com/users/drognanar/repos","events_url":"https://api.github.com/users/drognanar/events{/privacy}","received_events_url":"https://api.github.com/users/drognanar/received_events","type":"User","site_admin":false},"repo":{"id":45070113,"name":"roslyn","full_name":"drognanar/roslyn","owner":{"login":"drognanar","id":3418274,"avatar_url":"https://avatars.githubusercontent.com/u/3418274?v=3","gravatar_id":"","url":"https://api.github.com/users/drognanar","html_url":"https://github.com/drognanar","followers_url":"https://api.github.com/users/drognanar/followers","following_url":"https://api.github.com/users/drognanar/following{/other_user}","gists_url":"https://api.github.com/users/drognanar/gists{/gist_id}","starred_url":"https://api.github.com/users/drognanar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drognanar/subscriptions","organizations_url":"https://api.github.com/users/drognanar/orgs","repos_url":"https://api.github.com/users/drognanar/repos","events_url":"https://api.github.com/users/drognanar/events{/privacy}","received_events_url":"https://api.github.com/users/drognanar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drognanar/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":true,"url":"https://api.github.com/repos/drognanar/roslyn","forks_url":"https://api.github.com/repos/drognanar/roslyn/forks","keys_url":"https://api.github.com/repos/drognanar/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drognanar/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drognanar/roslyn/teams","hooks_url":"https://api.github.com/repos/drognanar/roslyn/hooks","issue_events_url":"https://api.github.com/repos/drognanar/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/drognanar/roslyn/events","assignees_url":"https://api.github.com/repos/drognanar/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/drognanar/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/drognanar/roslyn/tags","blobs_url":"https://api.github.com/repos/drognanar/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drognanar/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drognanar/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/drognanar/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drognanar/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/drognanar/roslyn/languages","stargazers_url":"https://api.github.com/repos/drognanar/roslyn/stargazers","contributors_url":"https://api.github.com/repos/drognanar/roslyn/contributors","subscribers_url":"https://api.github.com/repos/drognanar/roslyn/subscribers","subscription_url":"https://api.github.com/repos/drognanar/roslyn/subscription","commits_url":"https://api.github.com/repos/drognanar/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/drognanar/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/drognanar/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/drognanar/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/drognanar/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/drognanar/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drognanar/roslyn/merges","archive_url":"https://api.github.com/repos/drognanar/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drognanar/roslyn/downloads","issues_url":"https://api.github.com/repos/drognanar/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/drognanar/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/drognanar/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/drognanar/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drognanar/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/drognanar/roslyn/releases{/id}","deployments_url":"https://api.github.com/repos/drognanar/roslyn/deployments","created_at":"2015-10-27T21:07:49Z","updated_at":"2016-02-11T23:39:46Z","pushed_at":"2016-02-17T18:31:41Z","git_url":"git://github.com/drognanar/roslyn.git","ssh_url":"git@github.com:drognanar/roslyn.git","clone_url":"https://github.com/drognanar/roslyn.git","svn_url":"https://github.com/drognanar/roslyn","homepage":"","size":133535,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:stabilization","ref":"stabilization","sha":"3644837016a7a7d84fd9f16391d5da5282e018e5","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":29078997,"name":"roslyn","full_name":"dotnet/roslyn","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":false,"url":"https://api.github.com/repos/dotnet/roslyn","forks_url":"https://api.github.com/repos/dotnet/roslyn/forks","keys_url":"https://api.github.com/repos/dotnet/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/roslyn/teams","hooks_url":"https://api.github.com/repos/dotnet/roslyn/hooks","issue_events_url":"https://api.github.com/repos/dotnet/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/roslyn/events","assignees_url":"https://api.github.com/repos/dotnet/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/roslyn/tags","blobs_url":"https://api.github.com/repos/dotnet/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/roslyn/languages","stargazers_url":"https://api.github.com/repos/dotnet/roslyn/stargazers","contributors_url":"https://api.github.com/repos/dotnet/roslyn/contributors","subscribers_url":"https://api.github.com/repos/dotnet/roslyn/subscribers","subscription_url":"https://api.github.com/repos/dotnet/roslyn/subscription","commits_url":"https://api.github.com/repos/dotnet/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/roslyn/merges","archive_url":"https://api.github.com/repos/dotnet/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/roslyn/downloads","issues_url":"https://api.github.com/repos/dotnet/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/roslyn/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/roslyn/deployments","created_at":"2015-01-11T02:39:03Z","updated_at":"2016-02-17T18:42:24Z","pushed_at":"2016-02-17T19:49:18Z","git_url":"git://github.com/dotnet/roslyn.git","ssh_url":"git@github.com:dotnet/roslyn.git","clone_url":"https://github.com/dotnet/roslyn.git","svn_url":"https://github.com/dotnet/roslyn","homepage":"","size":158824,"stargazers_count":4441,"watchers_count":4441,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1104,"mirror_url":null,"open_issues_count":2191,"forks":1104,"open_issues":2191,"watchers":4441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/8812"},"html":{"href":"https://github.com/dotnet/roslyn/pull/8812"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/8812"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/8812/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/8812/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/8812/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/8bc7bcd6338cc00151c92d434551eb443b83d144"}}}}