title: Command not found in VSCode extension
body: <p>I am trying to create a VSCode extension. This extension provides two commands, never mind their implementation:</p>
  
  <pre><code>export function activate(context: ExtensionContext) {
  
      const provider = new ContentProvider();
      const providerRegistrations = Disposable.from(
          workspace.registerTextDocumentContentProvider(ContentProvider.scheme, provider)
      );
  
      // Open the dynamic document, and shows it in the next editor
      const openMyExtensionCommandRegistration = commands.registerTextEditorCommand('extension.openMyExtension', editor =&gt; {
          // Activate the extension and do something
      });
  
      const useMyExtensionCommandRegistration = commands.registerTextEditorCommand('extension.useMyExtension', editor =&gt; {
          // Do something
      });
  
      context.subscriptions.push(
          provider,
          openMyExtensionCommandRegistration,
          useMyExtensionCommandRegistration,
          providerRegistrations
      );
  }
  </code></pre>
  
  <p>And this is a part of my <code>package.json</code> file:</p>
  
  <pre><code>"activationEvents": [
          "onCommand:extension.openMyExtension"
      ],
      "main": "./out/extension",
      "contributes": {
          "commands": [
              {
                  "command": "extension.openMyExtension",
                  "title": "Open my extension",
                  "category": "MyExtension"
              },
              {
                  "command": "extension.useMyExtension",
                  "title": "Do something with my extension",
                  "category": "MyExtension"
              }
          ],
  </code></pre>
  
  <p>The first command, which is supposed to activates my extension, works. It appears in the command palette, and actually does what it is supposed to do when invoked.</p>
  
  <p>The second command however, despite appearing in the command palette, raise the following error message when called:</p>
  
  <blockquote>
    <p><code>command 'extension.useMyExtension' not found</code></p>
  </blockquote>
  
  <p>I find it weird that my first command works fine but not the second since the code is quite similar. Any ideas why?</p>
  
  <p><em>Note that I obviously changed some variable names, I double checked for typos in the real code.</em></p>