title: Visual Studio Code - Add multiple commands
body: <p>I am developing my first VSC extension with this <a href="https://code.visualstudio.com/api/get-started/your-first-extension" rel="nofollow noreferrer">tutorial</a>.</p>
  <p>The &quot;extension.ts&quot; contains a hello world command.</p>
  <p>I want to add another command <code>git_open_modified_files</code>, but it is not described in the tutorial how it is done.</p>
  <p>I just added this to my <strong>package.json</strong>:</p>
  <pre><code>...
    &quot;contributes&quot;: {
      &quot;commands&quot;: [
        {
          &quot;command&quot;: &quot;git-open-modified-files.helloWorld&quot;,
          &quot;title&quot;: &quot;Hello World&quot;
        },
        {
          &quot;command&quot;: &quot;git-open-modified-files.git_open_modified_files&quot;,
          &quot;title&quot;: &quot;Git open modified files&quot;
        }
      ]
    },
  ...
  </code></pre>
  <h3>extension.ts</h3>
  <pre><code>// The module 'vscode' contains the VS Code extensibility API
  // Import the module and reference it with the alias vscode in your code below
  import * as vscode from 'vscode';
  
  // this method is called when your extension is activated
  // your extension is activated the very first time the command is executed
  export function activate(context: vscode.ExtensionContext) {
      
      // Use the console to output diagnostic information (console.log) and errors (console.error)
      // This line of code will only be executed once when your extension is activated
      console.log('Congratulations, your extension &quot;git-open-modified-files&quot; is now active!');
  
      // The command has been defined in the package.json file
      // Now provide the implementation of the command with registerCommand
      // The commandId parameter must match the command field in package.json
      let disposable = vscode.commands.registerCommand('git-open-modified-files.helloWorld', () =&gt; {
          // The code you place here will be executed every time your command is executed
          // Display a message box to the user
          vscode.window.showInformationMessage('Hello World from Git_Open_Modified_Files!');
      });
  
      context.subscriptions.push(disposable);
  
      let disposable2 = vscode.commands.registerCommand('git-open-modified-files.git_open_modified_files', () =&gt; {
          // The code you place here will be executed every time your command is executed
          // Display a message box to the user
          vscode.window.showInformationMessage('Hello World 2 from Git_Open_Modified_Files!');
      });
  
      context.subscriptions.push(disposable2);
  }
  
  // this method is called when your extension is deactivated
  export function deactivate() {}
  </code></pre>
  <p>But if I call the command I get</p>
  <p><a href="https://i.stack.imgur.com/0WC32.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0WC32.png" alt="enter image description here" /></a></p>