{"action":"created","comment":{"url":"https://api.github.com/repos/adobe/brackets/pulls/comments/34084555","id":34084555,"diff_hunk":"@@ -398,6 +408,60 @@ define(function (require, exports, module) {\n         }\n         return result.promise();\n     }\n+    \n+    /**\n+     * Disables the installed extension with the given id.\n+     * \n+     * @param {string} id The id of the extension to disable.\n+     * @return {$.Promise} A promise that's resolved when the extenion is disabled or\n+     *      rejected with an error that prevented the disabling.\n+     */\n+    function disable(id) {\n+        var result = new $.Deferred(),\n+            extension = extensions[id];\n+        if (extension && extension.installInfo) {\n+            Package.disable(extension.installInfo.path)\n+                .done(function () {\n+                    extension.installInfo.status = DISABLED;\n+                    extension.installInfo.metadata.disabled = true;\n+                    result.resolve();\n+                    exports.trigger(\"statusChange\", id);\n+                })\n+                .fail(function (err) {\n+                    result.reject(err);\n+                });\n+        } else {\n+            result.reject(StringUtils.format(Strings.EXTENSION_NOT_INSTALLED, id));\n+        }\n+        return result.promise();\n+    }\n+    \n+    /**\n+     * Enables the installed extension with the given id.\n+     * \n+     * @param {string} id The id of the extension to enable.\n+     * @return {$.Promise} A promise that's resolved when the extenion is enabled or\n+     *      rejected with an error that prevented the enabling.\n+     */\n+    function enable(id) {\n+        var result = new $.Deferred(),","path":"src/extensibility/ExtensionManager.js","position":125,"original_position":125,"commit_id":"1eef654b68c88832f52dcbe16fc3cccaa5db7f1d","original_commit_id":"6cc768500e1b6165a859fbb3a60784c41e582cd1","user":{"login":"busykai","id":3368515,"avatar_url":"https://avatars.githubusercontent.com/u/3368515?v=3","gravatar_id":"","url":"https://api.github.com/users/busykai","html_url":"https://github.com/busykai","followers_url":"https://api.github.com/users/busykai/followers","following_url":"https://api.github.com/users/busykai/following{/other_user}","gists_url":"https://api.github.com/users/busykai/gists{/gist_id}","starred_url":"https://api.github.com/users/busykai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busykai/subscriptions","organizations_url":"https://api.github.com/users/busykai/orgs","repos_url":"https://api.github.com/users/busykai/repos","events_url":"https://api.github.com/users/busykai/events{/privacy}","received_events_url":"https://api.github.com/users/busykai/received_events","type":"User","site_admin":false},"body":"OK, whatever. I disagree completely and I don't understand why this was worth such a discussion. I will make the change you're asking for just to end it. Added lines count will be more than remove lines count.\r\n\r\nP.S. I think it would be helpful if someone with the authority would document this in code style guides so that nobody would have to lose their time in a discussion like this.\r\n\r\nP.P.S. [bikeshed](http://bikeshed.com/)","created_at":"2015-07-07T20:13:45Z","updated_at":"2015-07-07T20:13:45Z","html_url":"https://github.com/adobe/brackets/pull/11184#discussion_r34084555","pull_request_url":"https://api.github.com/repos/adobe/brackets/pulls/11184","_links":{"self":{"href":"https://api.github.com/repos/adobe/brackets/pulls/comments/34084555"},"html":{"href":"https://github.com/adobe/brackets/pull/11184#discussion_r34084555"},"pull_request":{"href":"https://api.github.com/repos/adobe/brackets/pulls/11184"}}},"pull_request":{"url":"https://api.github.com/repos/adobe/brackets/pulls/11184","id":36573461,"html_url":"https://github.com/adobe/brackets/pull/11184","diff_url":"https://github.com/adobe/brackets/pull/11184.diff","patch_url":"https://github.com/adobe/brackets/pull/11184.patch","issue_url":"https://api.github.com/repos/adobe/brackets/issues/11184","number":11184,"state":"open","locked":false,"title":"Disable and enable extensions","user":{"login":"busykai","id":3368515,"avatar_url":"https://avatars.githubusercontent.com/u/3368515?v=3","gravatar_id":"","url":"https://api.github.com/users/busykai","html_url":"https://github.com/busykai","followers_url":"https://api.github.com/users/busykai/followers","following_url":"https://api.github.com/users/busykai/following{/other_user}","gists_url":"https://api.github.com/users/busykai/gists{/gist_id}","starred_url":"https://api.github.com/users/busykai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busykai/subscriptions","organizations_url":"https://api.github.com/users/busykai/orgs","repos_url":"https://api.github.com/users/busykai/repos","events_url":"https://api.github.com/users/busykai/events{/privacy}","received_events_url":"https://api.github.com/users/busykai/received_events","type":"User","site_admin":false},"body":"This PR provides a simple mechanism to disable and enable again an extension and complete support of the functionality in the Extension Manager.\r\n\r\nExtension loader looks for `.disabled` file in the extension directory, if it's present the information is included and propagated to the entire extensibility subsystem. Extension Manager can disable and enable extensions using the same mechanism.","created_at":"2015-05-30T22:55:26Z","updated_at":"2015-07-07T20:13:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"795f1e63bd8fbacfeeb0923cca9b924b9dc44a2b","assignee":{"login":"rroshan1","id":11662297,"avatar_url":"https://avatars.githubusercontent.com/u/11662297?v=3","gravatar_id":"","url":"https://api.github.com/users/rroshan1","html_url":"https://github.com/rroshan1","followers_url":"https://api.github.com/users/rroshan1/followers","following_url":"https://api.github.com/users/rroshan1/following{/other_user}","gists_url":"https://api.github.com/users/rroshan1/gists{/gist_id}","starred_url":"https://api.github.com/users/rroshan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rroshan1/subscriptions","organizations_url":"https://api.github.com/users/rroshan1/orgs","repos_url":"https://api.github.com/users/rroshan1/repos","events_url":"https://api.github.com/users/rroshan1/events{/privacy}","received_events_url":"https://api.github.com/users/rroshan1/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/adobe/brackets/milestones/36","html_url":"https://github.com/adobe/brackets/milestones/Release%201.4","labels_url":"https://api.github.com/repos/adobe/brackets/milestones/36/labels","id":1048084,"number":36,"title":"Release 1.4","description":"","creator":{"login":"ryanstewart","id":45450,"avatar_url":"https://avatars.githubusercontent.com/u/45450?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanstewart","html_url":"https://github.com/ryanstewart","followers_url":"https://api.github.com/users/ryanstewart/followers","following_url":"https://api.github.com/users/ryanstewart/following{/other_user}","gists_url":"https://api.github.com/users/ryanstewart/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanstewart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanstewart/subscriptions","organizations_url":"https://api.github.com/users/ryanstewart/orgs","repos_url":"https://api.github.com/users/ryanstewart/repos","events_url":"https://api.github.com/users/ryanstewart/events{/privacy}","received_events_url":"https://api.github.com/users/ryanstewart/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":24,"state":"open","created_at":"2015-04-01T04:03:49Z","updated_at":"2015-07-02T07:33:03Z","due_on":"2015-07-07T18:30:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/adobe/brackets/pulls/11184/commits","review_comments_url":"https://api.github.com/repos/adobe/brackets/pulls/11184/comments","review_comment_url":"https://api.github.com/repos/adobe/brackets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adobe/brackets/issues/11184/comments","statuses_url":"https://api.github.com/repos/adobe/brackets/statuses/1eef654b68c88832f52dcbe16fc3cccaa5db7f1d","head":{"label":"adobe:kai/disable-enable-extensions","ref":"kai/disable-enable-extensions","sha":"1eef654b68c88832f52dcbe16fc3cccaa5db7f1d","user":{"login":"adobe","id":476009,"avatar_url":"https://avatars.githubusercontent.com/u/476009?v=3","gravatar_id":"","url":"https://api.github.com/users/adobe","html_url":"https://github.com/adobe","followers_url":"https://api.github.com/users/adobe/followers","following_url":"https://api.github.com/users/adobe/following{/other_user}","gists_url":"https://api.github.com/users/adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adobe/subscriptions","organizations_url":"https://api.github.com/users/adobe/orgs","repos_url":"https://api.github.com/users/adobe/repos","events_url":"https://api.github.com/users/adobe/events{/privacy}","received_events_url":"https://api.github.com/users/adobe/received_events","type":"Organization","site_admin":false},"repo":{"id":2935735,"name":"brackets","full_name":"adobe/brackets","owner":{"login":"adobe","id":476009,"avatar_url":"https://avatars.githubusercontent.com/u/476009?v=3","gravatar_id":"","url":"https://api.github.com/users/adobe","html_url":"https://github.com/adobe","followers_url":"https://api.github.com/users/adobe/followers","following_url":"https://api.github.com/users/adobe/following{/other_user}","gists_url":"https://api.github.com/users/adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adobe/subscriptions","organizations_url":"https://api.github.com/users/adobe/orgs","repos_url":"https://api.github.com/users/adobe/repos","events_url":"https://api.github.com/users/adobe/events{/privacy}","received_events_url":"https://api.github.com/users/adobe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adobe/brackets","description":"An open source code editor for the web, written in JavaScript, HTML and CSS.","fork":false,"url":"https://api.github.com/repos/adobe/brackets","forks_url":"https://api.github.com/repos/adobe/brackets/forks","keys_url":"https://api.github.com/repos/adobe/brackets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adobe/brackets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adobe/brackets/teams","hooks_url":"https://api.github.com/repos/adobe/brackets/hooks","issue_events_url":"https://api.github.com/repos/adobe/brackets/issues/events{/number}","events_url":"https://api.github.com/repos/adobe/brackets/events","assignees_url":"https://api.github.com/repos/adobe/brackets/assignees{/user}","branches_url":"https://api.github.com/repos/adobe/brackets/branches{/branch}","tags_url":"https://api.github.com/repos/adobe/brackets/tags","blobs_url":"https://api.github.com/repos/adobe/brackets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adobe/brackets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adobe/brackets/git/refs{/sha}","trees_url":"https://api.github.com/repos/adobe/brackets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adobe/brackets/statuses/{sha}","languages_url":"https://api.github.com/repos/adobe/brackets/languages","stargazers_url":"https://api.github.com/repos/adobe/brackets/stargazers","contributors_url":"https://api.github.com/repos/adobe/brackets/contributors","subscribers_url":"https://api.github.com/repos/adobe/brackets/subscribers","subscription_url":"https://api.github.com/repos/adobe/brackets/subscription","commits_url":"https://api.github.com/repos/adobe/brackets/commits{/sha}","git_commits_url":"https://api.github.com/repos/adobe/brackets/git/commits{/sha}","comments_url":"https://api.github.com/repos/adobe/brackets/comments{/number}","issue_comment_url":"https://api.github.com/repos/adobe/brackets/issues/comments{/number}","contents_url":"https://api.github.com/repos/adobe/brackets/contents/{+path}","compare_url":"https://api.github.com/repos/adobe/brackets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adobe/brackets/merges","archive_url":"https://api.github.com/repos/adobe/brackets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adobe/brackets/downloads","issues_url":"https://api.github.com/repos/adobe/brackets/issues{/number}","pulls_url":"https://api.github.com/repos/adobe/brackets/pulls{/number}","milestones_url":"https://api.github.com/repos/adobe/brackets/milestones{/number}","notifications_url":"https://api.github.com/repos/adobe/brackets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adobe/brackets/labels{/name}","releases_url":"https://api.github.com/repos/adobe/brackets/releases{/id}","created_at":"2011-12-07T21:14:40Z","updated_at":"2015-07-07T17:46:44Z","pushed_at":"2015-07-07T19:17:19Z","git_url":"git://github.com/adobe/brackets.git","ssh_url":"git@github.com:adobe/brackets.git","clone_url":"https://github.com/adobe/brackets.git","svn_url":"https://github.com/adobe/brackets","homepage":"http://brackets.io","size":326710,"stargazers_count":22723,"watchers_count":22723,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4724,"mirror_url":null,"open_issues_count":1374,"forks":4724,"open_issues":1374,"watchers":22723,"default_branch":"master"}},"base":{"label":"adobe:master","ref":"master","sha":"96f24bf81f02a64cd2bfce3e7aa2258b992bac23","user":{"login":"adobe","id":476009,"avatar_url":"https://avatars.githubusercontent.com/u/476009?v=3","gravatar_id":"","url":"https://api.github.com/users/adobe","html_url":"https://github.com/adobe","followers_url":"https://api.github.com/users/adobe/followers","following_url":"https://api.github.com/users/adobe/following{/other_user}","gists_url":"https://api.github.com/users/adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adobe/subscriptions","organizations_url":"https://api.github.com/users/adobe/orgs","repos_url":"https://api.github.com/users/adobe/repos","events_url":"https://api.github.com/users/adobe/events{/privacy}","received_events_url":"https://api.github.com/users/adobe/received_events","type":"Organization","site_admin":false},"repo":{"id":2935735,"name":"brackets","full_name":"adobe/brackets","owner":{"login":"adobe","id":476009,"avatar_url":"https://avatars.githubusercontent.com/u/476009?v=3","gravatar_id":"","url":"https://api.github.com/users/adobe","html_url":"https://github.com/adobe","followers_url":"https://api.github.com/users/adobe/followers","following_url":"https://api.github.com/users/adobe/following{/other_user}","gists_url":"https://api.github.com/users/adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adobe/subscriptions","organizations_url":"https://api.github.com/users/adobe/orgs","repos_url":"https://api.github.com/users/adobe/repos","events_url":"https://api.github.com/users/adobe/events{/privacy}","received_events_url":"https://api.github.com/users/adobe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adobe/brackets","description":"An open source code editor for the web, written in JavaScript, HTML and CSS.","fork":false,"url":"https://api.github.com/repos/adobe/brackets","forks_url":"https://api.github.com/repos/adobe/brackets/forks","keys_url":"https://api.github.com/repos/adobe/brackets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adobe/brackets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adobe/brackets/teams","hooks_url":"https://api.github.com/repos/adobe/brackets/hooks","issue_events_url":"https://api.github.com/repos/adobe/brackets/issues/events{/number}","events_url":"https://api.github.com/repos/adobe/brackets/events","assignees_url":"https://api.github.com/repos/adobe/brackets/assignees{/user}","branches_url":"https://api.github.com/repos/adobe/brackets/branches{/branch}","tags_url":"https://api.github.com/repos/adobe/brackets/tags","blobs_url":"https://api.github.com/repos/adobe/brackets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adobe/brackets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adobe/brackets/git/refs{/sha}","trees_url":"https://api.github.com/repos/adobe/brackets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adobe/brackets/statuses/{sha}","languages_url":"https://api.github.com/repos/adobe/brackets/languages","stargazers_url":"https://api.github.com/repos/adobe/brackets/stargazers","contributors_url":"https://api.github.com/repos/adobe/brackets/contributors","subscribers_url":"https://api.github.com/repos/adobe/brackets/subscribers","subscription_url":"https://api.github.com/repos/adobe/brackets/subscription","commits_url":"https://api.github.com/repos/adobe/brackets/commits{/sha}","git_commits_url":"https://api.github.com/repos/adobe/brackets/git/commits{/sha}","comments_url":"https://api.github.com/repos/adobe/brackets/comments{/number}","issue_comment_url":"https://api.github.com/repos/adobe/brackets/issues/comments{/number}","contents_url":"https://api.github.com/repos/adobe/brackets/contents/{+path}","compare_url":"https://api.github.com/repos/adobe/brackets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adobe/brackets/merges","archive_url":"https://api.github.com/repos/adobe/brackets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adobe/brackets/downloads","issues_url":"https://api.github.com/repos/adobe/brackets/issues{/number}","pulls_url":"https://api.github.com/repos/adobe/brackets/pulls{/number}","milestones_url":"https://api.github.com/repos/adobe/brackets/milestones{/number}","notifications_url":"https://api.github.com/repos/adobe/brackets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adobe/brackets/labels{/name}","releases_url":"https://api.github.com/repos/adobe/brackets/releases{/id}","created_at":"2011-12-07T21:14:40Z","updated_at":"2015-07-07T17:46:44Z","pushed_at":"2015-07-07T19:17:19Z","git_url":"git://github.com/adobe/brackets.git","ssh_url":"git@github.com:adobe/brackets.git","clone_url":"https://github.com/adobe/brackets.git","svn_url":"https://github.com/adobe/brackets","homepage":"http://brackets.io","size":326710,"stargazers_count":22723,"watchers_count":22723,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4724,"mirror_url":null,"open_issues_count":1374,"forks":4724,"open_issues":1374,"watchers":22723,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adobe/brackets/pulls/11184"},"html":{"href":"https://github.com/adobe/brackets/pull/11184"},"issue":{"href":"https://api.github.com/repos/adobe/brackets/issues/11184"},"comments":{"href":"https://api.github.com/repos/adobe/brackets/issues/11184/comments"},"review_comments":{"href":"https://api.github.com/repos/adobe/brackets/pulls/11184/comments"},"review_comment":{"href":"https://api.github.com/repos/adobe/brackets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adobe/brackets/pulls/11184/commits"},"statuses":{"href":"https://api.github.com/repos/adobe/brackets/statuses/1eef654b68c88832f52dcbe16fc3cccaa5db7f1d"}}}}