mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Include hidden files when running nak
This commit is contained in:
@@ -284,6 +284,22 @@ describe "Project", ->
|
||||
expect(paths.length).toBe 0
|
||||
expect(matches.length).toBe 0
|
||||
|
||||
it "includes files and folders that begin with a '.'", ->
|
||||
projectPath = '/tmp/atom-tests/folder-with-dot-file'
|
||||
filePath = fsUtils.join(projectPath, '.text')
|
||||
fsUtils.write(filePath, 'match this')
|
||||
project.setPath(projectPath)
|
||||
paths = []
|
||||
matches = []
|
||||
waitsForPromise ->
|
||||
project.scan /match this/, ({path, match, range}) ->
|
||||
paths.push(path)
|
||||
matches.push(match)
|
||||
|
||||
runs ->
|
||||
expect(paths.length).toBe 1
|
||||
expect(paths[0]).toBe filePath
|
||||
expect(matches.length).toBe 1
|
||||
|
||||
describe "serialization", ->
|
||||
it "restores the project path", ->
|
||||
|
||||
@@ -196,7 +196,7 @@ class Project
|
||||
readLine(line) if state is 'readingLines'
|
||||
|
||||
command = require.resolve('nak')
|
||||
args = ['--ackmate', regex.source, @getPath()]
|
||||
args = ['--hidden', '--ackmate', regex.source, @getPath()]
|
||||
args.unshift("--addVCSIgnores") if config.get('core.excludeVcsIgnoredPaths')
|
||||
new BufferedProcess({command, args, stdout, exit})
|
||||
deferred
|
||||
|
||||
@@ -15,6 +15,7 @@ class LoadPathsTask
|
||||
args.unshift('--addVCSIgnores') if config.get('core.excludeVcsIgnoredPaths')
|
||||
args.unshift('--ignore', ignoredNames.join(',')) if ignoredNames.length > 0
|
||||
args.unshift('--follow')
|
||||
args.unshift('--hidden')
|
||||
|
||||
paths = []
|
||||
exit = (code) =>
|
||||
|
||||
Reference in New Issue
Block a user