{"action":"opened","issue":{"url":"https://api.github.com/repos/mitaki28/vscode-clang/issues/10","repository_url":"https://api.github.com/repos/mitaki28/vscode-clang","labels_url":"https://api.github.com/repos/mitaki28/vscode-clang/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mitaki28/vscode-clang/issues/10/comments","events_url":"https://api.github.com/repos/mitaki28/vscode-clang/issues/10/events","html_url":"https://github.com/mitaki28/vscode-clang/issues/10","id":146343182,"number":10,"title":"activeTextEditor might undefined, not null","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-06T15:05:54Z","updated_at":"2016-04-06T15:05:54Z","closed_at":null,"body":"I stumbled over [this](https://github.com/mitaki28/vscode-clang/blob/master/src/extension.ts#L76) and just fyi the editor won't be `null` but `undefined`. Also, using `registerTextEditorCommand` might be more convenient for your use-case."}}