Avoid config calls at package load time
Refs
MODIFY
lib/find.coffee
lib/find.coffee
@@ -11,13 +11,13 @@ ProjectFindView = require './project-find-view'
ResultsModel = require './project/results-model'
ResultsPaneView = require './project/results-pane'
+module.exports =
+ activate: ({findOptions, findHistory, replaceHistory, pathsHistory}={}) ->
# Convert old config setting for backward compatibility.
if atom.config.get('find-and-replace.openProjectFindResultsInRightPane')
atom.config.set('find-and-replace.projectSearchResultsPaneSplitDirection', 'right')
atom.config.unset('find-and-replace.openProjectFindResultsInRightPane')
-module.exports =
- activate: ({findOptions, findHistory, replaceHistory, pathsHistory}={}) ->
atom.workspace.addOpener (filePath) ->
new ResultsPaneView() if filePath is ResultsPaneView.URI

Avoid config calls at package load time

Refs #829