|
|
@ -298,7 +298,9 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe |
|
|
|
} |
|
|
|
} |
|
|
|
return Object.keys(standardInput.sources)[0] |
|
|
|
return Object.keys(standardInput.sources)[0] |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
await workspaceProvider.set(path, JSON.stringify(content)) |
|
|
|
// preserve JSON whitepsace if this isn't a Solidity compiler JSON-input-output file
|
|
|
|
|
|
|
|
content = data.content |
|
|
|
|
|
|
|
await workspaceProvider.set(path, content) |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.log(e) |
|
|
|
console.log(e) |
|
|
|