@ -140,6 +140,10 @@ export const CompilerApiMixin = (Base) => class extends Base {
return this.call('fileManager', 'open', fileName)
}
saveCurrentFile () {
return this.call('fileManager', 'saveCurrentFile')
resetResults () {
this.currentFile = ''
this.contractsDetails = {}
@ -32,6 +32,7 @@ export interface ICompilerApi {
writeFile: (file: string, content: string) => Promise<void>
readFile: (file: string) => Promise<string>
open: (file: string) => void
saveCurrentFile: () => void
logToTerminal: (log: terminalLog) => {}
@ -121,7 +121,7 @@ export class CompileTabLogic {
// TODO readd saving current file
// this.api.saveCurrentFile()
this.api.saveCurrentFile()
this.event.emit('removeAnnotations')
var currentFile = this.api.getAppParameter('currentFile')
return this.compileFile(currentFile)