|
|
@ -9,7 +9,7 @@ function Files (storage) { |
|
|
|
|
|
|
|
|
|
|
|
this.exists = function (path) { |
|
|
|
this.exists = function (path) { |
|
|
|
// NOTE: ignore the config file
|
|
|
|
// NOTE: ignore the config file
|
|
|
|
if (path === '.browser-solidity.json') { |
|
|
|
if (path === '.remix.config') { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ function Files (storage) { |
|
|
|
|
|
|
|
|
|
|
|
this.get = function (path) { |
|
|
|
this.get = function (path) { |
|
|
|
// NOTE: ignore the config file
|
|
|
|
// NOTE: ignore the config file
|
|
|
|
if (path === '.browser-solidity.json') { |
|
|
|
if (path === '.remix.config') { |
|
|
|
return null |
|
|
|
return null |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -27,7 +27,7 @@ function Files (storage) { |
|
|
|
|
|
|
|
|
|
|
|
this.set = function (path, content) { |
|
|
|
this.set = function (path, content) { |
|
|
|
// NOTE: ignore the config file
|
|
|
|
// NOTE: ignore the config file
|
|
|
|
if (path === '.browser-solidity.json') { |
|
|
|
if (path === '.remix.config') { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -94,7 +94,7 @@ function Files (storage) { |
|
|
|
// add r/w files to the list
|
|
|
|
// add r/w files to the list
|
|
|
|
storage.keys().forEach(function (path) { |
|
|
|
storage.keys().forEach(function (path) { |
|
|
|
// NOTE: as a temporary measure do not show the config file
|
|
|
|
// NOTE: as a temporary measure do not show the config file
|
|
|
|
if (path !== '.browser-solidity.json') { |
|
|
|
if (path !== '.remix.config') { |
|
|
|
files[path] = false |
|
|
|
files[path] = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
@ -106,6 +106,11 @@ function Files (storage) { |
|
|
|
|
|
|
|
|
|
|
|
return files |
|
|
|
return files |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// rename .browser-solidity.json to .remix.config
|
|
|
|
|
|
|
|
if (this.exists('.browser-solidity.json')) { |
|
|
|
|
|
|
|
this.rename('.browser-solidity.json', '.remix.config') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
module.exports = Files |
|
|
|
module.exports = Files |
|
|
|