Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Pluralize Project API #3691

Merged
merged 2 commits into from
Oct 1, 2014
Merged

Pluralize Project API #3691

merged 2 commits into from
Oct 1, 2014

Conversation

nathansobo
Copy link
Contributor

This changes all APIs concerning paths and repositories on the project to be plural, preparing us to switch to multi-folder projects. It doesn’t make any changes to actually support multiple folders. Instead we just wrap the previous return values in singleton arrays.

  • constructor path params -> paths
  • getRootDirectory -> getDirectories
  • getPath -> getPaths
  • setPath -> setPaths
  • getRepo -> getRepositories

It also adds the Project::onDidChangePaths event.

Nathan Sobo added 2 commits October 1, 2014 10:48
This changes all APIs concerning paths and repositories on the project
to be plural, preparing us to switch to multi-folder projects. It
doesn’t make any changes to actually support multiple folders. Instead
we just wrap the previous return values in singleton arrays.

* constructor ‘path’ params -> ‘paths’
* getRootDirectory -> getDirectories
* getPath -> getPaths
* setPath -> setPaths
* getRepo -> getRepositories
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant