{"action":"created","comment":{"url":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/comments/181868055","pull_request_review_id":112566725,"id":181868055,"diff_hunk":"@@ -0,0 +1,46 @@\n+'use strict';\n+\n+import { getUserHome } from \"../utils\";\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { userConfigurationFolder, userConfigurationFileName } from \"../constants\";\n+import { Dashboard } from \"../nuclio\";\n+\n+const fse = require('fs-extra');\n+\n+export async function createEnvironment(): Promise<void> {\n+\n+    // Create .nuclio-vscode on user home if not exist\n+    const vscodePath: string = await fse.ensureDir(path.join(getUserHome(), userConfigurationFolder));\n+\n+    const settingsJsonPath: string = path.join(getUserHome(), userConfigurationFolder, userConfigurationFileName);\n+\n+    // Get project details\n+    let name = await vscode.window.showInputBox({ prompt: \"Enter the new environment name\" });\n+\n+    let host = await vscode.window.showInputBox({ prompt: \"Enter the new environment host\" });\n+    let port = await vscode.window.showInputBox({ prompt: \"Enter the new environment port\" });\n+    if (!host.startsWith(\"http\")){","path":"src/environment/createEnvironment.ts","position":23,"original_position":23,"commit_id":"2b57a1b8eb837c1d6b1ea4c778db75619dade975","original_commit_id":"2b57a1b8eb837c1d6b1ea4c778db75619dade975","user":{"login":"eran-nussbaum","id":13918850,"avatar_url":"https://avatars2.githubusercontent.com/u/13918850?v=4","gravatar_id":"","url":"https://api.github.com/users/eran-nussbaum","html_url":"https://github.com/eran-nussbaum","followers_url":"https://api.github.com/users/eran-nussbaum/followers","following_url":"https://api.github.com/users/eran-nussbaum/following{/other_user}","gists_url":"https://api.github.com/users/eran-nussbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/eran-nussbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eran-nussbaum/subscriptions","organizations_url":"https://api.github.com/users/eran-nussbaum/orgs","repos_url":"https://api.github.com/users/eran-nussbaum/repos","events_url":"https://api.github.com/users/eran-nussbaum/events{/privacy}","received_events_url":"https://api.github.com/users/eran-nussbaum/received_events","type":"User","site_admin":false},"body":"please add a space between `)` and `{`: `) {`","created_at":"2018-04-16T20:05:56Z","updated_at":"2018-04-16T20:11:56Z","html_url":"https://github.com/nuclio/nuclio-vscode/pull/10#discussion_r181868055","pull_request_url":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/comments/181868055"},"html":{"href":"https://github.com/nuclio/nuclio-vscode/pull/10#discussion_r181868055"},"pull_request":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10","id":181909150,"html_url":"https://github.com/nuclio/nuclio-vscode/pull/10","diff_url":"https://github.com/nuclio/nuclio-vscode/pull/10.diff","patch_url":"https://github.com/nuclio/nuclio-vscode/pull/10.patch","issue_url":"https://api.github.com/repos/nuclio/nuclio-vscode/issues/10","number":10,"state":"open","locked":false,"title":"Add first phase features","user":{"login":"Ilanak","id":13463870,"avatar_url":"https://avatars2.githubusercontent.com/u/13463870?v=4","gravatar_id":"","url":"https://api.github.com/users/Ilanak","html_url":"https://github.com/Ilanak","followers_url":"https://api.github.com/users/Ilanak/followers","following_url":"https://api.github.com/users/Ilanak/following{/other_user}","gists_url":"https://api.github.com/users/Ilanak/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilanak/subscriptions","organizations_url":"https://api.github.com/users/Ilanak/orgs","repos_url":"https://api.github.com/users/Ilanak/repos","events_url":"https://api.github.com/users/Ilanak/events{/privacy}","received_events_url":"https://api.github.com/users/Ilanak/received_events","type":"User","site_admin":false},"body":"**Implemented:**\r\n\t• Create environment\r\n\t• Global refresh\r\n\t• Create new project \r\n\t• Function: Create, Delete, Deploy, Invoke (creation is partially supported because I don't have all the handlers yet)\r\n\r\n**Not implemented yet:**\r\n\t• User adds nuclio project to workspace\r\n\t• Deploy project \r\n\t• Delete project- only deletes it remotly \r\n\t• Differentiation between deployed and undeployed function\r\n\t• Error handling\r\n\r\nI didn't test it on mac so I hope it will work :)","created_at":"2018-04-16T15:44:38Z","updated_at":"2018-04-16T20:11:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7d4afb1d3cfa4eb7b41ba667a897cd60dcc2c0a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10/commits","review_comments_url":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10/comments","review_comment_url":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nuclio/nuclio-vscode/issues/10/comments","statuses_url":"https://api.github.com/repos/nuclio/nuclio-vscode/statuses/2b57a1b8eb837c1d6b1ea4c778db75619dade975","head":{"label":"Ilanak:create-project-and-function","ref":"create-project-and-function","sha":"2b57a1b8eb837c1d6b1ea4c778db75619dade975","user":{"login":"Ilanak","id":13463870,"avatar_url":"https://avatars2.githubusercontent.com/u/13463870?v=4","gravatar_id":"","url":"https://api.github.com/users/Ilanak","html_url":"https://github.com/Ilanak","followers_url":"https://api.github.com/users/Ilanak/followers","following_url":"https://api.github.com/users/Ilanak/following{/other_user}","gists_url":"https://api.github.com/users/Ilanak/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilanak/subscriptions","organizations_url":"https://api.github.com/users/Ilanak/orgs","repos_url":"https://api.github.com/users/Ilanak/repos","events_url":"https://api.github.com/users/Ilanak/events{/privacy}","received_events_url":"https://api.github.com/users/Ilanak/received_events","type":"User","site_admin":false},"repo":{"id":128761394,"name":"nuclio-vscode","full_name":"Ilanak/nuclio-vscode","owner":{"login":"Ilanak","id":13463870,"avatar_url":"https://avatars2.githubusercontent.com/u/13463870?v=4","gravatar_id":"","url":"https://api.github.com/users/Ilanak","html_url":"https://github.com/Ilanak","followers_url":"https://api.github.com/users/Ilanak/followers","following_url":"https://api.github.com/users/Ilanak/following{/other_user}","gists_url":"https://api.github.com/users/Ilanak/gists{/gist_id}","starred_url":"https://api.github.com/users/Ilanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ilanak/subscriptions","organizations_url":"https://api.github.com/users/Ilanak/orgs","repos_url":"https://api.github.com/users/Ilanak/repos","events_url":"https://api.github.com/users/Ilanak/events{/privacy}","received_events_url":"https://api.github.com/users/Ilanak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ilanak/nuclio-vscode","description":null,"fork":true,"url":"https://api.github.com/repos/Ilanak/nuclio-vscode","forks_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/forks","keys_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/teams","hooks_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/hooks","issue_events_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/issues/events{/number}","events_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/events","assignees_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/assignees{/user}","branches_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/branches{/branch}","tags_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/tags","blobs_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/statuses/{sha}","languages_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/languages","stargazers_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/stargazers","contributors_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/contributors","subscribers_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/subscribers","subscription_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/subscription","commits_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/contents/{+path}","compare_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/merges","archive_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/downloads","issues_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/issues{/number}","pulls_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/pulls{/number}","milestones_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/milestones{/number}","notifications_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/labels{/name}","releases_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/releases{/id}","deployments_url":"https://api.github.com/repos/Ilanak/nuclio-vscode/deployments","created_at":"2018-04-09T11:28:53Z","updated_at":"2018-04-09T11:28:55Z","pushed_at":"2018-04-16T15:40:48Z","git_url":"git://github.com/Ilanak/nuclio-vscode.git","ssh_url":"git@github.com:Ilanak/nuclio-vscode.git","clone_url":"https://github.com/Ilanak/nuclio-vscode.git","svn_url":"https://github.com/Ilanak/nuclio-vscode","homepage":null,"size":83,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nuclio:development","ref":"development","sha":"98e28bb41ca0a1f697a0a6c97e656b3bee0e2e8e","user":{"login":"nuclio","id":28734234,"avatar_url":"https://avatars3.githubusercontent.com/u/28734234?v=4","gravatar_id":"","url":"https://api.github.com/users/nuclio","html_url":"https://github.com/nuclio","followers_url":"https://api.github.com/users/nuclio/followers","following_url":"https://api.github.com/users/nuclio/following{/other_user}","gists_url":"https://api.github.com/users/nuclio/gists{/gist_id}","starred_url":"https://api.github.com/users/nuclio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuclio/subscriptions","organizations_url":"https://api.github.com/users/nuclio/orgs","repos_url":"https://api.github.com/users/nuclio/repos","events_url":"https://api.github.com/users/nuclio/events{/privacy}","received_events_url":"https://api.github.com/users/nuclio/received_events","type":"Organization","site_admin":false},"repo":{"id":127102612,"name":"nuclio-vscode","full_name":"nuclio/nuclio-vscode","owner":{"login":"nuclio","id":28734234,"avatar_url":"https://avatars3.githubusercontent.com/u/28734234?v=4","gravatar_id":"","url":"https://api.github.com/users/nuclio","html_url":"https://github.com/nuclio","followers_url":"https://api.github.com/users/nuclio/followers","following_url":"https://api.github.com/users/nuclio/following{/other_user}","gists_url":"https://api.github.com/users/nuclio/gists{/gist_id}","starred_url":"https://api.github.com/users/nuclio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuclio/subscriptions","organizations_url":"https://api.github.com/users/nuclio/orgs","repos_url":"https://api.github.com/users/nuclio/repos","events_url":"https://api.github.com/users/nuclio/events{/privacy}","received_events_url":"https://api.github.com/users/nuclio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nuclio/nuclio-vscode","description":null,"fork":false,"url":"https://api.github.com/repos/nuclio/nuclio-vscode","forks_url":"https://api.github.com/repos/nuclio/nuclio-vscode/forks","keys_url":"https://api.github.com/repos/nuclio/nuclio-vscode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nuclio/nuclio-vscode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nuclio/nuclio-vscode/teams","hooks_url":"https://api.github.com/repos/nuclio/nuclio-vscode/hooks","issue_events_url":"https://api.github.com/repos/nuclio/nuclio-vscode/issues/events{/number}","events_url":"https://api.github.com/repos/nuclio/nuclio-vscode/events","assignees_url":"https://api.github.com/repos/nuclio/nuclio-vscode/assignees{/user}","branches_url":"https://api.github.com/repos/nuclio/nuclio-vscode/branches{/branch}","tags_url":"https://api.github.com/repos/nuclio/nuclio-vscode/tags","blobs_url":"https://api.github.com/repos/nuclio/nuclio-vscode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nuclio/nuclio-vscode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nuclio/nuclio-vscode/git/refs{/sha}","trees_url":"https://api.github.com/repos/nuclio/nuclio-vscode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nuclio/nuclio-vscode/statuses/{sha}","languages_url":"https://api.github.com/repos/nuclio/nuclio-vscode/languages","stargazers_url":"https://api.github.com/repos/nuclio/nuclio-vscode/stargazers","contributors_url":"https://api.github.com/repos/nuclio/nuclio-vscode/contributors","subscribers_url":"https://api.github.com/repos/nuclio/nuclio-vscode/subscribers","subscription_url":"https://api.github.com/repos/nuclio/nuclio-vscode/subscription","commits_url":"https://api.github.com/repos/nuclio/nuclio-vscode/commits{/sha}","git_commits_url":"https://api.github.com/repos/nuclio/nuclio-vscode/git/commits{/sha}","comments_url":"https://api.github.com/repos/nuclio/nuclio-vscode/comments{/number}","issue_comment_url":"https://api.github.com/repos/nuclio/nuclio-vscode/issues/comments{/number}","contents_url":"https://api.github.com/repos/nuclio/nuclio-vscode/contents/{+path}","compare_url":"https://api.github.com/repos/nuclio/nuclio-vscode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nuclio/nuclio-vscode/merges","archive_url":"https://api.github.com/repos/nuclio/nuclio-vscode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nuclio/nuclio-vscode/downloads","issues_url":"https://api.github.com/repos/nuclio/nuclio-vscode/issues{/number}","pulls_url":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls{/number}","milestones_url":"https://api.github.com/repos/nuclio/nuclio-vscode/milestones{/number}","notifications_url":"https://api.github.com/repos/nuclio/nuclio-vscode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nuclio/nuclio-vscode/labels{/name}","releases_url":"https://api.github.com/repos/nuclio/nuclio-vscode/releases{/id}","deployments_url":"https://api.github.com/repos/nuclio/nuclio-vscode/deployments","created_at":"2018-03-28T07:39:22Z","updated_at":"2018-03-28T08:38:07Z","pushed_at":"2018-04-16T15:44:39Z","git_url":"git://github.com/nuclio/nuclio-vscode.git","ssh_url":"git@github.com:nuclio/nuclio-vscode.git","clone_url":"https://github.com/nuclio/nuclio-vscode.git","svn_url":"https://github.com/nuclio/nuclio-vscode","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10"},"html":{"href":"https://github.com/nuclio/nuclio-vscode/pull/10"},"issue":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/issues/10"},"comments":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/nuclio/nuclio-vscode/statuses/2b57a1b8eb837c1d6b1ea4c778db75619dade975"}},"author_association":"NONE"}}
{"actor":{"display_login":"eran-nussbaum"}}