{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/23300","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/23300/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/23300/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/23300/events","html_url":"https://github.com/Microsoft/vscode/issues/23300","id":217314486,"number":23300,"title":"Local installed extension commands are shown but cannot be invoked","user":{"login":"mufatkix","id":26221591,"avatar_url":"https://avatars1.githubusercontent.com/u/26221591?v=3","gravatar_id":"","url":"https://api.github.com/users/mufatkix","html_url":"https://github.com/mufatkix","followers_url":"https://api.github.com/users/mufatkix/followers","following_url":"https://api.github.com/users/mufatkix/following{/other_user}","gists_url":"https://api.github.com/users/mufatkix/gists{/gist_id}","starred_url":"https://api.github.com/users/mufatkix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mufatkix/subscriptions","organizations_url":"https://api.github.com/users/mufatkix/orgs","repos_url":"https://api.github.com/users/mufatkix/repos","events_url":"https://api.github.com/users/mufatkix/events{/privacy}","received_events_url":"https://api.github.com/users/mufatkix/received_events","type":"User","site_admin":false},"labels":[{"id":272689423,"url":"https://api.github.com/repos/Microsoft/vscode/labels/needs%20more%20info","name":"needs more info","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars0.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"assignees":[{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars0.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false}],"milestone":null,"comments":22,"created_at":"2017-03-27T17:14:21Z","updated_at":"2017-03-30T11:29:31Z","closed_at":"2017-03-30T08:36:54Z","body":"<!-- Do you have a question? Please ask it on http://stackoverflow.com/questions/tagged/vscode -->\r\n\r\n- VSCode Version: 1.10.2\r\n- OS Version: macOS 10.11.6\r\n\r\nHello there, I've developed an extension which works under `extension development mode`, but if I installed it from a vsce generated packages, extension's commands are shown when I type `CMD + Shift + P`, but cannot be invoked, it returns `commandX not found` error. Also in the `activate()` method of my extension it should show an information message about extension is activated, however such message is not shown if I installed the package locally (Extension is activated in any events).\r\n\r\nI've tested it under macOS and Linux, it seems under macOS extension is enabled (I can only disable or uninstall from extension tab) and under Linux it cannot enabled, it constantly shows a reload button despite of if you've pressed it before.\r\n\r\nSteps to Reproduce:\r\n1. `vsce package // One warning: Couldn't detect the repository where this extension is published. Images might be broken in its README.`\r\n2. `code --install-extension extension.vsix // Returns extension successfully installed`\r\n3.  `code .`\r\n4. `CMD + Shift + P`\r\n5. `Select command X from dropdown \\\\ command x not found`\r\n\r\nPiece of my extension code:\r\n```typescript\r\nexport function activate(ctx: vscode.ExtensionContext) {\r\n  vscode.window.showInformationMessage(\"Activating extension\")\r\n\r\n  ctx.subscriptions.push(vscode.commands.registerCommand('ext.initWorkspace', () => {\r\n    initWorkspace()\r\n  }));\r\n\r\n  };\r\n```\r\n\r\nPiece of my package.json:\r\n```json\r\n{\r\n  ...\r\n  \"engines\": {\r\n    \"vscode\": \"^1.9.0\"\r\n  },\r\n  \"categories\": [\r\n    \"Other\"\r\n  ],\r\n  \"activationEvents\": [\r\n    \"*\"\r\n  ],\r\n  \"main\": \"./out/extension\",\r\n  \"contributes\": {\r\n    \"snippets\": [\r\n      {\r\n        \"language\": \"json\",\r\n        \"path\": \"./src/snippets/manifestSnippets.json\"\r\n      }\r\n    ],\r\n    \"commands\": [\r\n      {\r\n        \"command\": \"ext.initWorkspace\",\r\n        \"title\": \"Initialize Workspace\"\r\n      }\r\n    ]\r\n  },\r\n  \"scripts\": {\r\n    \"vscode:prepublish\": \"tsc -p ./\",\r\n    \"compile\": \"tsc -watch -p ./\",\r\n    \"postinstall\": \"node ./node_modules/vscode/bin/install\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@types/node\": \"^6.0.40\",\r\n    \"@types/request\": \"0.0.36\",\r\n    \"request\": \"^2.79.0\",\r\n    \"typescript\": \"^2.1.5\",\r\n    \"vscode\": \"^1.0.0\"\r\n  }\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/290383492","html_url":"https://github.com/Microsoft/vscode/issues/23300#issuecomment-290383492","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/23300","id":290383492,"user":{"login":"joaomoreno","id":22350,"avatar_url":"https://avatars0.githubusercontent.com/u/22350?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomoreno","html_url":"https://github.com/joaomoreno","followers_url":"https://api.github.com/users/joaomoreno/followers","following_url":"https://api.github.com/users/joaomoreno/following{/other_user}","gists_url":"https://api.github.com/users/joaomoreno/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomoreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomoreno/subscriptions","organizations_url":"https://api.github.com/users/joaomoreno/orgs","repos_url":"https://api.github.com/users/joaomoreno/repos","events_url":"https://api.github.com/users/joaomoreno/events{/privacy}","received_events_url":"https://api.github.com/users/joaomoreno/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T11:29:31Z","updated_at":"2017-03-30T11:29:31Z","body":"Yes, you need to put your dependencies in `package.json`. That way, `vsce` knows which dependencies to pack. It won't pack the `devDependencies`.\r\n\r\nThis is the right place to ask. 👍 "}}
{"actor":{"display_login":"joaomoreno"}}