title: Visual Studio Code: use "go to definition", on methods that were added manually to the prototype
body: <p>I really like the go to definition(alt+click) feature of Visual Studio Code. The problem is, it doesn't work on functions that were added to some class by using Object.assign or some similar way. For example:</p>
  
  <pre><code>const DigestiveBehavior = require('./DigestiveBehavior');
  const Animal = require('./Animal');
  
  class Dog extends Animal{
  constructor(name){
      super();
      this.name = name;
      Object.assign(Dog.prototype,DigestiveBehavior.prototype)//I use 
       "composition" here to give Dog additional functionality.
    }
  }
  </code></pre>
  
  <p>This is DigestiveBehavior "trait", which Dog uses:</p>
  
  <pre><code>function DigestiveBehavior(){
  
  }
  
   DigestiveBehavior.prototype={
    eat:function(){
       console.log(this.name,' eating!');
      }
   }
  </code></pre>
  
  <p>This is the code that uses it:</p>
  
  <pre><code> const dog = new Dog('good doggie');
   dog.eat(); 
  </code></pre>
  
  <p>Of course this all works, but Visual Code doesn't recognize the definition source of the dog.eat() method when i alt+click it, being that it's not defined in the class. Is there any plugin or a workaround to make the IDE do that?</p>