Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
8898acba
Commit
8898acba
authored
Sep 08, 2021
by
yann300
Committed by
davidzagi93@gmail.com
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readd saveCurrentFile
parent
628e4fa5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
compiler-api.ts
apps/solidity-compiler/src/app/compiler-api.ts
+4
-0
ICompilerApi.ts
libs/remix-lib/src/types/ICompilerApi.ts
+1
-0
compileTabLogic.ts
...mix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts
+1
-1
No files found.
apps/solidity-compiler/src/app/compiler-api.ts
View file @
8898acba
...
@@ -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
=
{}
...
...
libs/remix-lib/src/types/ICompilerApi.ts
View file @
8898acba
...
@@ -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
)
=>
{}
...
...
libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts
View file @
8898acba
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment