restore files

editorcontextDummy
filip mertens 2 years ago
parent 5c737a5c35
commit 098baa7302
  1. 8
      apps/solidity-compiler/src/app/compiler-api.ts
  2. 1
      libs/remix-lib/src/types/ICompilerApi.ts

@ -98,10 +98,6 @@ export const CompilerApiMixin = (Base) => class extends Base {
return this.call('contentImport', 'resolveAndSave', url) return this.call('contentImport', 'resolveAndSave', url)
} }
resolveContent (url) {
return this.call('contentImport', 'resolveAndSave', url, undefined, false)
}
runScriptAfterCompilation (fileName: string) { runScriptAfterCompilation (fileName: string) {
this.call('compileAndRun', 'runScriptAfterCompilation', fileName) this.call('compileAndRun', 'runScriptAfterCompilation', fileName)
} }
@ -223,7 +219,6 @@ export const CompilerApiMixin = (Base) => class extends Base {
this.data.loading = true this.data.loading = true
this.data.loadingUrl = url this.data.loadingUrl = url
this.statusChanged({ key: 'loading', title: 'loading compiler...', type: 'info' }) this.statusChanged({ key: 'loading', title: 'loading compiler...', type: 'info' })
this.emit('loadingCompiler', url)
} }
this.compiler.event.register('loadingCompiler', this.data.eventHandlers.onLoadingCompiler) this.compiler.event.register('loadingCompiler', this.data.eventHandlers.onLoadingCompiler)
@ -324,9 +319,6 @@ export const CompilerApiMixin = (Base) => class extends Base {
} }
} }
} }
this.compiler.event.register('compilationFinished', this.data.eventHandlers.onCompilationFinished) this.compiler.event.register('compilationFinished', this.data.eventHandlers.onCompilationFinished)
this.data.eventHandlers.onThemeChanged = (theme) => { this.data.eventHandlers.onThemeChanged = (theme) => {

@ -33,7 +33,6 @@ export interface ICompilerApi {
onFileClosed: (name: string) => void onFileClosed: (name: string) => void
resolveContentAndSave: (url: string) => Promise<string> resolveContentAndSave: (url: string) => Promise<string>
resolveContent: (url: string) => Promise<string>
fileExists: (file: string) => Promise<boolean> fileExists: (file: string) => Promise<boolean>
writeFile: (file: string, content: string) => Promise<void> writeFile: (file: string, content: string) => Promise<void>
readFile: (file: string) => Promise<string> readFile: (file: string) => Promise<string>

Loading…
Cancel
Save