mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Make FileSystem a class, and support multiple instances.
This commit is contained in:
1 parent
0089986f1e
commit
848e0b67f4
26 files changed
+372
-252
No files matched your search
@@ -1370,9 +1370,11 @@ define(function (require, exports, module) {
|
||||
preferences;
|
||||
|
||||
function getPreferences(path) {
|
||||
var file = brackets.appFileSystem.getFileForPath(path);
|
||||
|
||||
preferences = null;
|
||||
|
||||
FileUtils.readAsText(path).done(function (text) {
|
||||
FileUtils.readAsText(file).done(function (text) {
|
||||
var configObj = null;
|
||||
try {
|
||||
configObj = JSON.parse(text);
|
||||
|
||||
Reference in new issue
Block a user