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

Bug 493461

Summary: codeEdit: Need to hook up project metadata to the in memory file system.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: EditorAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, Michael_Rennie, pahnke.sebastian
Version: 12.0   
Target Milestone: 12.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 493652    
Bug Blocks:    

Description libing wang CLA 2016-05-11 16:08:49 EDT
The widget hooks an in memory file system to allow the input manager to manage the inputChange event, etc.
The javascript tooling now improves a lot by configuring the linting options that live in the project level. This now requires the file system to be able to tell where the project meta data is and the APIs to create and modify different conf files, e.g., .tern-project file right under the project.
Comment 1 libing wang CLA 2016-05-11 16:17:48 EDT
We will then allow end user to use code like
codeEdit.fileClient.createFile(projectLocation, ".tern-project"), codeEdit.fileClient.write(ternProjectFileURL, contents).

If user uses quick fix in the editor, the .tern-project contents might have been changed so they close the widget, they can decide to use codeEdit.fileClient.read(ternProjectFileURL) to persist the contents by them self.