{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1848","repository_url":"https://api.github.com/repos/Microsoft/vscode-go","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1848/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1848/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1848/events","html_url":"https://github.com/Microsoft/vscode-go/issues/1848","id":350622563,"node_id":"MDU6SXNzdWUzNTA2MjI1NjM=","number":1848,"title":"Files with _GOOS suffix cause documentation issue","user":{"login":"SteelPhase","id":2711058,"node_id":"MDQ6VXNlcjI3MTEwNTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2711058?v=4","gravatar_id":"","url":"https://api.github.com/users/SteelPhase","html_url":"https://github.com/SteelPhase","followers_url":"https://api.github.com/users/SteelPhase/followers","following_url":"https://api.github.com/users/SteelPhase/following{/other_user}","gists_url":"https://api.github.com/users/SteelPhase/gists{/gist_id}","starred_url":"https://api.github.com/users/SteelPhase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteelPhase/subscriptions","organizations_url":"https://api.github.com/users/SteelPhase/orgs","repos_url":"https://api.github.com/users/SteelPhase/repos","events_url":"https://api.github.com/users/SteelPhase/events{/privacy}","received_events_url":"https://api.github.com/users/SteelPhase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-14T22:39:34Z","updated_at":"2018-08-16T00:06:14Z","closed_at":null,"author_association":"NONE","body":"Hover Information, Signature Help, Go to/Peek Definition, Find All References, Rename Symbol, and \r\n Change All Occurrences all seem to be affected by this.\r\n\r\n#### Current workaround:\r\nThis is a clunky solution, but also breaks the same features listed above for files using other os suffixes\r\n- Start vscode with a modified goos environment value. `env GOOS=linux code .`\r\n\r\n#### Alternative workaround:\r\nLess clunky version of the above workaround, but still breaks the above features for files using other os suffixes\r\n- update user settings `\"go.toolsEnvVars\": {\"GOOS\": \"linux\"}`\r\n\r\nSteps to Reproduce:\r\n\r\n1. clone https://github.com/kardianos/service\r\n2. open any file with a suffix that doesn't match your default GOOS\r\n3. Attempt to view hover information of a function\r\n\r\nIs there some way to get vscode to handle these functions without overwriting the GOOS environment variable every time?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/comments/413378442","html_url":"https://github.com/Microsoft/vscode-go/issues/1848#issuecomment-413378442","issue_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/1848","id":413378442,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzM3ODQ0Mg==","user":{"login":"ramya-rao-a","id":16890566,"node_id":"MDQ6VXNlcjE2ODkwNTY2","avatar_url":"https://avatars1.githubusercontent.com/u/16890566?v=4","gravatar_id":"","url":"https://api.github.com/users/ramya-rao-a","html_url":"https://github.com/ramya-rao-a","followers_url":"https://api.github.com/users/ramya-rao-a/followers","following_url":"https://api.github.com/users/ramya-rao-a/following{/other_user}","gists_url":"https://api.github.com/users/ramya-rao-a/gists{/gist_id}","starred_url":"https://api.github.com/users/ramya-rao-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramya-rao-a/subscriptions","organizations_url":"https://api.github.com/users/ramya-rao-a/orgs","repos_url":"https://api.github.com/users/ramya-rao-a/repos","events_url":"https://api.github.com/users/ramya-rao-a/events{/privacy}","received_events_url":"https://api.github.com/users/ramya-rao-a/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T00:06:14Z","updated_at":"2018-08-16T00:06:14Z","author_association":"MEMBER","body":"Isnt this a tooling problem? We use tools like `godef`, `gogetdoc`, `guru`, `gorename` etc for the features that you have mentioned. If they do not work with such files, they would have a good reason to. I wouldnt want to be making assumptions and overriding the tool behavior."}}
{"actor":{"display_login":"ramya-rao-a"}}