title: How to get project folder path in visual studio code extension
body: <p>I am trying to get project folder path in visual studio code extension but very difficult to find the answer. My code is not working. I do not know it is possible or not. I have checked in google no one answer for this question. Anyone know about this please help me to find the answer.</p>
  
  <p><a href="https://i.stack.imgur.com/JymMY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JymMY.png" alt="enter image description here"></a></p>
  
  <p>extension.js:</p>
  
  <pre><code>var vscode = require("vscode");
  var path = require("path");
  
  exports.activate = context =&gt; {
  const findPath = 
  vscode.commands.registerCommand('extension.search', () =&gt; {
  
     let findprojectfolderPath = vscode.workspace.uri.fsPath; // Not working
  
     console.log(findprojectfolderPath);
  
  });
  }
  </code></pre>