Commit 8898acba authored by yann300's avatar yann300 Committed by davidzagi93@gmail.com

readd saveCurrentFile

parent 628e4fa5
...@@ -140,6 +140,10 @@ export const CompilerApiMixin = (Base) => class extends Base { ...@@ -140,6 +140,10 @@ export const CompilerApiMixin = (Base) => class extends Base {
return this.call('fileManager', 'open', fileName) return this.call('fileManager', 'open', fileName)
} }
saveCurrentFile () {
return this.call('fileManager', 'saveCurrentFile')
}
resetResults () { resetResults () {
this.currentFile = '' this.currentFile = ''
this.contractsDetails = {} this.contractsDetails = {}
......
...@@ -32,6 +32,7 @@ export interface ICompilerApi { ...@@ -32,6 +32,7 @@ export interface ICompilerApi {
writeFile: (file: string, content: string) => Promise<void> writeFile: (file: string, content: string) => Promise<void>
readFile: (file: string) => Promise<string> readFile: (file: string) => Promise<string>
open: (file: string) => void open: (file: string) => void
saveCurrentFile: () => void
logToTerminal: (log: terminalLog) => {} logToTerminal: (log: terminalLog) => {}
......
...@@ -121,7 +121,7 @@ export class CompileTabLogic { ...@@ -121,7 +121,7 @@ export class CompileTabLogic {
} }
} }
// TODO readd saving current file // TODO readd saving current file
// this.api.saveCurrentFile() this.api.saveCurrentFile()
this.event.emit('removeAnnotations') this.event.emit('removeAnnotations')
var currentFile = this.api.getAppParameter('currentFile') var currentFile = this.api.getAppParameter('currentFile')
return this.compileFile(currentFile) return this.compileFile(currentFile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment