mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Make FileSystem a singleton.
This commit is contained in:
1 parent
1d815b9996
commit
290da888da
30 files changed
+187
-297
No files matched your search
@@ -32,6 +32,7 @@ define(function (require, exports, module) {
|
||||
DocumentManager = brackets.getModule("document/DocumentManager"),
|
||||
Editor = brackets.getModule("editor/Editor").Editor,
|
||||
EditorManager = brackets.getModule("editor/EditorManager"),
|
||||
FileSystem = brackets.getModule("filesystem/FileSystem"),
|
||||
FileUtils = brackets.getModule("file/FileUtils"),
|
||||
SpecRunnerUtils = brackets.getModule("spec/SpecRunnerUtils"),
|
||||
UnitTestReporter = brackets.getModule("test/UnitTestReporter"),
|
||||
@@ -1544,7 +1545,7 @@ define(function (require, exports, module) {
|
||||
function getPreferences(path) {
|
||||
preferences = null;
|
||||
|
||||
brackets.appFileSystem.resolve(path, function (err, file) {
|
||||
FileSystem.resolve(path, function (err, file) {
|
||||
if (!err) {
|
||||
FileUtils.readAsText(file).done(function (text) {
|
||||
var configObj = null;
|
||||
|
||||
Reference in new issue
Block a user