title: Why does VSCode keep opening *.class files as opposed to .java files?
body: <p>(I couldn't figure out how to upload my screen capture to stackoverflow. So this is a streamable link: <a href="https://streamable.com/0im8tx" rel="nofollow noreferrer">https://streamable.com/0im8tx</a>)</p>
  <p>In this video, VSCode opens QueriesController.class as opposed to QueriesController.java when I cmd click into <code>QueriesController</code>.</p>
  <p>I have compiled provided the definitions of the jar file in my workspace:</p>
  <pre><code>    &quot;settings&quot;: {
          &quot;java.project.referencedLibraries&quot;: {
              &quot;include&quot;: [
                  &quot;&lt;path-to-jar-that-contains-QueriesController.jar&gt;&quot;,
  .... 
              &quot;sources&quot;: {
                  &quot;&lt;path-to-jar-that-contains-QueriesController.jar&gt;&quot;: &quot;/my/local/java/definition/src/folder&quot;,
  
  </code></pre>
  <p>Does anyone know why VSCode is choosing to open the definition as a .class file rather than a .java file?</p>