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
8e73be41
Commit
8e73be41
authored
Sep 08, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readd saveCurrentFile
parent
034863b9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
fileManager.js
apps/remix-ide/src/app/files/fileManager.js
+1
-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/remix-ide/src/app/files/fileManager.js
View file @
8e73be41
...
...
@@ -22,7 +22,7 @@ const profile = {
icon
:
'assets/img/fileManager.webp'
,
permission
:
true
,
version
:
packageJson
.
version
,
methods
:
[
'file'
,
'exists'
,
'open'
,
'writeFile'
,
'readFile'
,
'copyFile'
,
'copyDir'
,
'rename'
,
'mkdir'
,
'readdir'
,
'remove'
,
'getCurrentFile'
,
'getFile'
,
'getFolder'
,
'setFile'
,
'switchFile'
,
'refresh'
,
'getProviderOf'
,
'getProviderByName'
,
'getPathFromUrl'
,
'getUrlFromPath'
],
methods
:
[
'file'
,
'exists'
,
'open'
,
'writeFile'
,
'readFile'
,
'copyFile'
,
'copyDir'
,
'rename'
,
'mkdir'
,
'readdir'
,
'remove'
,
'getCurrentFile'
,
'getFile'
,
'getFolder'
,
'setFile'
,
'switchFile'
,
'refresh'
,
'getProviderOf'
,
'getProviderByName'
,
'getPathFromUrl'
,
'getUrlFromPath'
,
'saveCurrentFile'
],
kind
:
'file-system'
}
const
errorMsg
=
{
...
...
apps/solidity-compiler/src/app/compiler-api.ts
View file @
8e73be41
...
...
@@ -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
=
{}
...
...
libs/remix-lib/src/types/ICompilerApi.ts
View file @
8e73be41
...
...
@@ -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
)
=>
{}
...
...
libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts
View file @
8e73be41
...
...
@@ -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
)
...
...
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