Bug 492746 - [content assist] Add code completion support for let and const
Summary: [content assist] Add code completion support for let and const
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-29 15:06 EDT by Ian Stewart-Binks CLA
Modified: 2016-04-29 15:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Stewart-Binks CLA 2016-04-29 15:06:09 EDT
Let and const support are currently not supported. At best, let and const declarations likely behave like var declarations. This should be changed. A fix can likely be implemented in the ScopedCodeAssistVisitor in the UI plugin. That class uses scopes to keep track of relevant variables, and these will likely be useful in the implementation of this. The x,y position of the code completion invocation is also supplied to this class, which can also be useful.