| Summary: | Provide getProject support in the file client | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> | ||||||||||
| Component: | Client | Assignee: | Michael Rennie <Michael_Rennie> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | enhancement | ||||||||||||
| Priority: | P2 | CC: | kuschel, Silenio_Quarti, steve_northover | ||||||||||
| Version: | 13.0 | ||||||||||||
| Target Milestone: | 14.0 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Mac OS X | ||||||||||||
| Whiteboard: | 2017-02-24 | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 511590 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Michael Rennie
*** Bug 511063 has been marked as a duplicate of this bug. *** Created attachment 267005 [details]
Proposed fix
Patch contains support in fileClient and the node server to look up a project context.
Right now it only considers a folder with a .git folder to be a project (by default).
It is hooked up the the JavaScript project to see it working - but the JS hooks are not complete yet.
One remaining part of the work would be to allow a consumer of the API to pass in either a list of names of files / folders to consider project-like (or a regex).
Created attachment 267007 [details]
Updated fix
Here is an updated fix that allows clients to specify names to consider "project-like". It also adds project.json to the default list of names for projects
Created attachment 267009 [details]
Fix including the server changes
Last patch seems to have left out the server changes. This patch includes them. Ignore the vs code launch config, it won't be committed with the fix (but for some reason could not exclude it from the patch in Eclipse).
The new API and node server support have been added in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=8419cbddf81c7b92094654433ce994dbe222896c I will make the corresponding changes in the Java server as well. Created attachment 267035 [details]
Java server patch
This patch provides server support for getProject in the Java server.
Java server changes pushed to (thanks for reviewing Silenio): http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=8f527aa5c43dc827ba1be8fda0d8a52ba8f18315 |