{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2084","repository_url":"https://api.github.com/repos/Microsoft/vscode-cpptools","labels_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2084/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2084/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2084/events","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/2084","id":328997559,"node_id":"MDU6SXNzdWUzMjg5OTc1NTk=","number":2084,"title":"Cmd-Click does \"Go to Definition\" __and__ \"Peek Definition\"","user":{"login":"toh-ableton","id":5611555,"node_id":"MDQ6VXNlcjU2MTE1NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/5611555?v=4","gravatar_id":"","url":"https://api.github.com/users/toh-ableton","html_url":"https://github.com/toh-ableton","followers_url":"https://api.github.com/users/toh-ableton/followers","following_url":"https://api.github.com/users/toh-ableton/following{/other_user}","gists_url":"https://api.github.com/users/toh-ableton/gists{/gist_id}","starred_url":"https://api.github.com/users/toh-ableton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toh-ableton/subscriptions","organizations_url":"https://api.github.com/users/toh-ableton/orgs","repos_url":"https://api.github.com/users/toh-ableton/repos","events_url":"https://api.github.com/users/toh-ableton/events{/privacy}","received_events_url":"https://api.github.com/users/toh-ableton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-04T10:27:55Z","updated_at":"2018-06-05T10:53:49Z","closed_at":null,"author_association":"NONE","body":"Issue Type: <b>Bug</b>\r\n\r\n1. Open a `.cpp` file.\r\n2. Hover a symbol, e.g. a function call.\r\n3. Cmd-Click on the symbol.\r\n\r\nExpected results:\r\nVS Code does exactly one of \"Go to Definition\" or \"Peek Definition\". There is a preference where I can control which one.\r\n\r\nActual results:\r\nVS Code does both: it jumps to the definition, and then opens a code lens with the same definition.\r\n\r\nNote:\r\nI'd prefer Cmd-Click to \"Peek Definition\", which it used to do a while ago.\r\n\r\nWorkaround:\r\nFor `Peek Definition`, `Alt-F12` works fine.\r\nFor `Go to Definition`, `F12` sometimes works fine, but sometimes has the same bug, i.e. it jumps to definition __and__ opens a code lens with the same piece of code.\r\n\r\nExtension version: 0.17.4\r\nVS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T16:03:31.083Z)\r\nOS version: Darwin x64 17.5.0\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Xeon(R) W-2191B CPU @ 2.30GHz (36 x 2300)|\r\n|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: enabled<br>rasterization: enabled<br>video_decode: enabled<br>video_encode: enabled<br>vpx_decode: enabled<br>webgl: enabled<br>webgl2: enabled|\r\n|Load (avg)|2, 2, 2|\r\n|Memory (System)|32.00GB (0.31GB free)|\r\n|Process Argv|/Applications/Visual Studio Code.app/Contents/MacOS/Electron|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n</details>\r\n<!-- generated by issue reporter -->"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/comments/394666507","html_url":"https://github.com/Microsoft/vscode-cpptools/issues/2084#issuecomment-394666507","issue_url":"https://api.github.com/repos/Microsoft/vscode-cpptools/issues/2084","id":394666507,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDY2NjUwNw==","user":{"login":"toh-ableton","id":5611555,"node_id":"MDQ6VXNlcjU2MTE1NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/5611555?v=4","gravatar_id":"","url":"https://api.github.com/users/toh-ableton","html_url":"https://github.com/toh-ableton","followers_url":"https://api.github.com/users/toh-ableton/followers","following_url":"https://api.github.com/users/toh-ableton/following{/other_user}","gists_url":"https://api.github.com/users/toh-ableton/gists{/gist_id}","starred_url":"https://api.github.com/users/toh-ableton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toh-ableton/subscriptions","organizations_url":"https://api.github.com/users/toh-ableton/orgs","repos_url":"https://api.github.com/users/toh-ableton/repos","events_url":"https://api.github.com/users/toh-ableton/events{/privacy}","received_events_url":"https://api.github.com/users/toh-ableton/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T10:53:49Z","updated_at":"2018-06-05T10:53:49Z","author_association":"NONE","body":"I see, thanks for the explanation. If possible, I'd still like to have a quick mouse interaction for `Peek Definition`, maybe `Cmd-Shift-Click`. But that's a feature wish I guess."}}
{"actor":{"display_login":"toh-ableton"}}