Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 496647

Summary: Can not get proposals on window and document globals after adding "env" property in the eslintrc file.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 12.0   
Target Milestone: 13.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2016-06-23 08:52:46 EDT
Got customer feedback on http://libingw.github.io/OrionCodeEditTern/.
Steps to reproduce:
1. In the main editor on the top, empty the contents and type "window; document;"
2. hover on window and use quick fix to add "/*eslint-env browser */"
3. type "." after both "window" and "document", proposals popup properly.
4. Delete "/*eslint-env browser */" in the main editor and add the following into .eslintrc file:
"env": {
"browser": true
}
5. Now errors go away and hovering shows the right tooltips on window and document.
But proposals do not appear on document. Interestingly window. shows some of the proposals but not complete list, comparing when "/*eslint-env browser */" is on.
Comment 1 libing wang CLA 2016-06-23 08:55:34 EDT
This is reproducible in orion.eclipse.org as well.
Comment 3 Michael Rennie CLA 2016-06-23 11:02:55 EDT
Closing...