title: Why dont I get a lexical this on vscode typescript files when declaring functions in objects?
body: <p>In the typescript playground, whenever I declare an object with a function property, the lexical <code>this</code> is inferred as the parent object. See example: <a href="https://www.typescriptlang.org/play?#code/MYewdgzgLgBAHjAvDA3gKBpmUCm0Bc2ATgK44A0GWEIAtjgGJgAUAlKlVllABYCWEAHS5onGAF804oA" rel="nofollow noreferrer">https://www.typescriptlang.org/play?#code/MYewdgzgLgBAHjAvDA3gKBpmUCm0Bc2ATgK44A0GWEIAtjgGJgAUAlKlVllABYCWEAHS5onGAF804oA</a></p>
  <p>However, in VSCode, for whatever reason, I do not get a lexical this unless I explicitly declare the <code>this</code> for that function on a pre-declared type. Does anyone have any idea why this would happen? VSCode is latest, version is <code>4.3.5</code></p>
  <p><em><strong>Note: this only happens with OBJECTS; classes work fine.</strong></em></p>
  <p><a href="https://i.stack.imgur.com/e7GkJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e7GkJ.png" alt="no type inferred on lexical this" /></a>
  <a href="https://i.stack.imgur.com/L94Vd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L94Vd.png" alt="no auto complete on the lexical this" /></a></p>