-
Couldn't load subscription status.
- Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editor
Milestone
Description
TypeScript Version: 3.4.0-rc
Search Terms:
- suggestion, suggest, completions
Code
For the javascript
// @ts-check
import React from 'react';
class X extends React.Component {
x = 1
comp
}- Trigger suggestions after
comp
Expected behavior:
Suggestions for the react componentDid... methods returned
Actual behavior:
Global suggestions returned
If you add a semicolon after x = 1;, you get the correct suggestions:
// @ts-check
import React from 'react';
class X extends React.Component {
x = 1
comp
}Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editor