mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Pluralize Project API
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
This commit is contained in:
@@ -5,7 +5,7 @@ describe "Workspace", ->
|
||||
workspace = null
|
||||
|
||||
beforeEach ->
|
||||
atom.project.setPath(atom.project.resolve('dir'))
|
||||
atom.project.setPaths([atom.project.resolve('dir')])
|
||||
atom.workspace = workspace = new Workspace
|
||||
|
||||
describe "::open(uri, options)", ->
|
||||
|
||||
Reference in New Issue
Block a user