{"action":"created","issue":{"url":"https://api.github.com/repos/PEZ/clojure4vscode/issues/15","repository_url":"https://api.github.com/repos/PEZ/clojure4vscode","labels_url":"https://api.github.com/repos/PEZ/clojure4vscode/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/PEZ/clojure4vscode/issues/15/comments","events_url":"https://api.github.com/repos/PEZ/clojure4vscode/issues/15/events","html_url":"https://github.com/PEZ/clojure4vscode/issues/15","id":317012096,"number":15,"title":"Pasted code doesn't indent correctly","user":{"login":"tjbrandt","id":1688865,"avatar_url":"https://avatars3.githubusercontent.com/u/1688865?v=4","gravatar_id":"","url":"https://api.github.com/users/tjbrandt","html_url":"https://github.com/tjbrandt","followers_url":"https://api.github.com/users/tjbrandt/followers","following_url":"https://api.github.com/users/tjbrandt/following{/other_user}","gists_url":"https://api.github.com/users/tjbrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/tjbrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjbrandt/subscriptions","organizations_url":"https://api.github.com/users/tjbrandt/orgs","repos_url":"https://api.github.com/users/tjbrandt/repos","events_url":"https://api.github.com/users/tjbrandt/events{/privacy}","received_events_url":"https://api.github.com/users/tjbrandt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-23T22:59:12Z","updated_at":"2018-04-24T10:42:10Z","closed_at":"2018-04-24T10:33:56Z","author_association":"NONE","body":"Keep up the great work, Peter! I noticed a few format-as-you-go issues as I've been using the extension for a while, but most of it is working nicely.\r\n\r\nHere's one, and I might file a couple more when I get around to it.\r\n\r\nTake the following code snippet:\r\n```\r\n(ns testapp.core\r\n  (:require\r\n   [clojure.string :as string]))\r\n```\r\n\r\nIf you want to add paste in `[clojure.set :as set]` in as a new required namespace, do the following:\r\n\r\n1. Copy the text `[clojure.set :as set]`\r\n2. Put your cursor after `string]` and hit `ENTER`, which correctly lines up your cursor with the first `[`\r\n3. Paste `[clojure.set :as set]`\r\n\r\nThe auto-indentation indents the new code an extra space:\r\n```\r\n(ns testapp.core\r\n  (:require\r\n   [clojure.string :as string]\r\n    [clojure.set :as set]))\r\n```\r\n\r\nAn example with slightly different behavior. Start with this:\r\n```\r\n(let [var1 :test]\r\n  (do-something))\r\n```\r\n\r\n1. Copy the text `var1 :test`\r\n2. Put your cursor after `:test` to add a new binding to the binding list and hit `ENTER`, which correctly aligns your cursor under `var1`\r\n3. Paste the text.\r\n\r\nThe pasted text this time gets un-indented in a strange way:\r\n```\r\n(let [var1 :test\r\n  var1 :test]\r\n  (do-something))\r\n```"},"comment":{"url":"https://api.github.com/repos/PEZ/clojure4vscode/issues/comments/383886557","html_url":"https://github.com/PEZ/clojure4vscode/issues/15#issuecomment-383886557","issue_url":"https://api.github.com/repos/PEZ/clojure4vscode/issues/15","id":383886557,"user":{"login":"pedrorgirardi","id":585191,"avatar_url":"https://avatars3.githubusercontent.com/u/585191?v=4","gravatar_id":"","url":"https://api.github.com/users/pedrorgirardi","html_url":"https://github.com/pedrorgirardi","followers_url":"https://api.github.com/users/pedrorgirardi/followers","following_url":"https://api.github.com/users/pedrorgirardi/following{/other_user}","gists_url":"https://api.github.com/users/pedrorgirardi/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrorgirardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrorgirardi/subscriptions","organizations_url":"https://api.github.com/users/pedrorgirardi/orgs","repos_url":"https://api.github.com/users/pedrorgirardi/repos","events_url":"https://api.github.com/users/pedrorgirardi/events{/privacy}","received_events_url":"https://api.github.com/users/pedrorgirardi/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T10:42:10Z","updated_at":"2018-04-24T10:42:10Z","author_association":"COLLABORATOR","body":"Hi @tjbrandt, it will be fixed in the next release. Thank you for reporting this!\r\n\r\nThe issue was the `\"editor.formatOnPaste\": false` configuration, so we changed that to default to `true` and that fixes your problem."}}
{"actor":{"display_login":"pedrorgirardi"}}