{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/45713","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/45713/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/45713/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/45713/events","html_url":"https://github.com/Microsoft/vscode/issues/45713","id":304969896,"number":45713,"title":"vscode.executeCodeActionProvider returns nothing in cases where the editor shows a lightbulb","user":{"login":"srivatsn","id":20570,"avatar_url":"https://avatars3.githubusercontent.com/u/20570?v=4","gravatar_id":"","url":"https://api.github.com/users/srivatsn","html_url":"https://github.com/srivatsn","followers_url":"https://api.github.com/users/srivatsn/followers","following_url":"https://api.github.com/users/srivatsn/following{/other_user}","gists_url":"https://api.github.com/users/srivatsn/gists{/gist_id}","starred_url":"https://api.github.com/users/srivatsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srivatsn/subscriptions","organizations_url":"https://api.github.com/users/srivatsn/orgs","repos_url":"https://api.github.com/users/srivatsn/repos","events_url":"https://api.github.com/users/srivatsn/events{/privacy}","received_events_url":"https://api.github.com/users/srivatsn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars1.githubusercontent.com/u/1931590?v=4","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"assignees":[{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars1.githubusercontent.com/u/1931590?v=4","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-13T23:20:42Z","updated_at":"2018-03-14T09:38:25Z","closed_at":null,"author_association":"NONE","body":"Issue Type: <b>Bug</b>\r\n\r\nWith the \"Language support for Java\" extension installed, I have code like this:\r\n\r\n```java\r\nimport java.io.Console;\r\n\r\npublic class foo {\r\n    public static void main(String[] args) {\r\n        Console c12;\r\n    }\r\n```\r\n\r\nNormally if i click on c12, i get a lightbulb with a codeaction to remove the line. However , if i run \r\n\r\n```typescript\r\nvscode.commands.executeCommand<vscode.Command[]>('vscode.executeCodeActionProvider', uri, range)\r\n```\r\n\r\nif `range` corresponds to a single point on the `c12` variable then we get back no codeactions. However if `range` is a range of more than one character then we get back the codeaction that is seen in the editor.\r\n\r\nNote that in a C# file, I'm not seeing this problem. /cc @dbaeumer \r\n\r\nVS Code version: Code - Insiders 1.22.0-insider (112670122d3acf863aa9542b1642d64c69be10bf, 2018-03-13T05:16:22.707Z)\r\nOS version: Windows_NT x64 10.0.16299\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz (4 x 2900)|\r\n|Memory (System)|7.90GB (0.77GB free)|\r\n|Process Argv|C:\\Program Files\\Microsoft VS Code Insiders\\Code - Insiders.exe|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n</details><details><summary>Extensions (9)</summary>\r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\ngitlens|eam|8.1.1\r\nGo|luk|0.6.77\r\npython|ms-|2018.2.1\r\ncpptools|ms-|0.15.0\r\ncsharp|ms-|1.14.0\r\nPowerShell|ms-|1.6.0\r\nvsliveshare|ms-|0.2.206\r\njava|red|0.20.0\r\nvscode-icons|rob|7.21.0\r\n\r\n\r\n</details>\r\nReproduces only with extensions\r\n<!-- generated by issue reporter -->"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/372959691","html_url":"https://github.com/Microsoft/vscode/issues/45713#issuecomment-372959691","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/45713","id":372959691,"user":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars1.githubusercontent.com/u/1931590?v=4","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T09:38:25Z","updated_at":"2018-03-14T09:38:25Z","author_association":"MEMBER","body":"@jrieken is there anything special when this command gets executed. The LSP will simply take what the extension API gives it and forwards it to the Java LSP server."}}
{"actor":{"display_login":"dbaeumer"}}