{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/719","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/719/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/719/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/719/events","html_url":"https://github.com/Microsoft/vscode/issues/719","id":119096734,"number":719,"title":"Possible to suprress completion provider on specific token kinds?","user":{"login":"lukehoban","id":223467,"avatar_url":"https://avatars.githubusercontent.com/u/223467?v=3","gravatar_id":"","url":"https://api.github.com/users/lukehoban","html_url":"https://github.com/lukehoban","followers_url":"https://api.github.com/users/lukehoban/followers","following_url":"https://api.github.com/users/lukehoban/following{/other_user}","gists_url":"https://api.github.com/users/lukehoban/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehoban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehoban/subscriptions","organizations_url":"https://api.github.com/users/lukehoban/orgs","repos_url":"https://api.github.com/users/lukehoban/repos","events_url":"https://api.github.com/users/lukehoban/events{/privacy}","received_events_url":"https://api.github.com/users/lukehoban/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/api","name":"api","color":"c7def8"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/feature%20request","name":"feature request","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-26T19:52:06Z","updated_at":"2015-11-27T08:07:46Z","closed_at":null,"body":"I'm trying to fix https://github.com/Microsoft/vscode-go/issues/103, but as far as I can tell this isn't possible currently without tokenizing the whole file again in my extension and manually checking whether I'm in a comment to suprress providing results.\r\n\r\nIt would be nice if the `CompletionItemProvider` provided a setting to suppress it's results when in certain tokens/scopes.  \r\n\r\nThe implementation of the [TypeScript completion provider](https://github.com/Microsoft/vscode/blob/497788c0bcd20859f736d585b49c208af8dd518f/extensions/typescript/src/features/completionItemProvider.ts#L62) has an `excludeTokens` which seems to play this role but I can't get that to work in my own extension.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/160064673","html_url":"https://github.com/Microsoft/vscode/issues/719#issuecomment-160064673","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/719","id":160064673,"user":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T08:07:46Z","updated_at":"2015-11-27T08:07:46Z","body":"Not yet. The idea is to add scopes to `DocumentSelector`s such that you can express _I can provide suggestions in go files  when the caret is not in a comment_ \r\n\r\n```\r\n{\r\n   language: 'go',\r\n   scope: '!comment!\r\n}\r\n```\r\n\r\nStill, this requires us to expose scopes first ;-)"}}