<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/atcq1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/atcq1">@atcq1</a> on March 25, 2016 13:11</em></p>
<ul dir="auto">
<li>VSCode Version:0.10.11</li>
<li>OS Version:ubuntu 14.04 x64</li>
</ul>
<p dir="auto">Intellisense\autocomplete not work to call methods and property through this.methodName () / this.propertyName.</p>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Create route:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Ember from 'ember';

export default Ember.Route.extend({
    property1: 'text',
    model(params) {
        return {};
    },
    firstMethod()
    {
        //test1
    },
    secondMethod()
    {
        //test2        
    },
    thirdMethod()
    {
        //Intellisense
        secondMethod(); //work
        this.secondMethod(); //do not work
        //Autocomplete
        property1; //work
        this.property1; //do not work
    }
});"><pre class="notranslate"><code class="notranslate">import Ember from 'ember';

export default Ember.Route.extend({
    property1: 'text',
    model(params) {
        return {};
    },
    firstMethod()
    {
        //test1
    },
    secondMethod()
    {
        //test2        
    },
    thirdMethod()
    {
        //Intellisense
        secondMethod(); //work
        this.secondMethod(); //do not work
        //Autocomplete
        property1; //work
        this.property1; //do not work
    }
});
</code></pre></div>
<p dir="auto">2 Enter <code class="notranslate">this.second</code> or <code class="notranslate">this.prop</code> in <code class="notranslate">thirdMethod(){}</code>:</p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143495788" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/4671" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/4671/hovercard" href="https://github.com/microsoft/vscode/issues/4671">microsoft/vscode#4671</a></em></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let o = {
  f: function () { this./**/ }
}"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">o</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
  <span class="pl-en">f</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c">/**/</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Expected: Intellisense shows 'f' in the list<br>
Actual: Intellisense shows nothing because <code class="notranslate">this: any</code>.</p>
<p dir="auto">Note that this similar code already works:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let o = {
  f() { this./**/ }
}"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">o</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
  <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c">/**/</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>