mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
FileFinder requires the full filePath.
This commit is contained in:
@@ -30,11 +30,6 @@ describe "RootView", ->
|
||||
rootView.toggleFileFinder()
|
||||
expect(rootView.fileFinder.urlList.children('li').length).toBe 3
|
||||
|
||||
it "remove common path prefix from files", ->
|
||||
rootView.toggleFileFinder()
|
||||
commonPathPattern = new RegExp("^" + fs.directory(baseUrl))
|
||||
expect(rootView.fileFinder.urlList.children('li:first').text()).not.toMatch commonPathPattern
|
||||
|
||||
describe "when the editor has no url", ->
|
||||
it "does not open the FileFinder", ->
|
||||
expect(rootView.editor.buffer.url).toBeUndefined()
|
||||
|
||||
@@ -39,7 +39,6 @@ class RootView extends Template
|
||||
else
|
||||
directory = fs.directory @editor.buffer.url
|
||||
urls = (url for url in fs.list(directory, true) when fs.isFile url)
|
||||
urls = (url.replace(directory, "") for url in urls)
|
||||
@fileFinder = FileFinder.build({urls})
|
||||
@addPane(@fileFinder)
|
||||
@fileFinder.input.focus()
|
||||
|
||||
Reference in New Issue
Block a user