Skip to content

Commit

Permalink
fix uploading bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
songhui committed Oct 16, 2018
1 parent 581b2df commit 313772e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ An offline IDE for customising SuperOffice CRM with its CRMScript langange
* Download/update CRMScripts from the remote tenant into a local project. Command "Cirrus: Download scripts to the current folder". NB: Your local changes may be overwritten.
* Editing the meta-information and script source code
* Create new scripts inside the local project
* Delete a script
* Upload scripts into the tenant. Command "Cirrus: Upload all in the current folder".
* Execute the Script opened in the current editor. Command "Cirrus: Execute the current script". Results will be shown in OUTPUT->CRMSCript
- CRMScript editor
* Syntax highlighting
* Auto-completion of variables with candidate functions
Expand All @@ -23,7 +25,7 @@ An offline IDE for customising SuperOffice CRM with its CRMScript langange

# Install

- ```git clone https://huis@bitbucket.org/cirrusproject/vscode-crmscript.git```
- ```git clone https://github.com/SuperOffice/vscode-crmscript```
- ```cd vscode-crmscript```
- ```npm install```
- Open VS Code from this folder (e.g., ```code .```)
Expand Down
4 changes: 4 additions & 0 deletions src/cirrusCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export function executeCurrentScript(){
vscode.window.showErrorMessage("The active editor is not for a valid CRMScript")
return
}
if(!meta.ejscriptId){
vscode.window.showErrorMessage("Please download the latest scripts before execution")
return
}
api.executeScript(meta, (res)=>{
if(!outputchannel)
outputchannel = vscode.window.createOutputChannel("CRMScript")
Expand Down
1 change: 1 addition & 0 deletions src/cirrusProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class CrmScriptProject{
if(newhash != meta.baseFileHash)
//uploadScriptSource(meta, this.toRemoteText(content));
uploadScriptSource(meta, content, (res)=>{
console.log(res)
meta.uniqueIdentifier = res.UniqueIdentifier
meta.baseFileHash = md5(res.Source)
this.saveMeta()
Expand Down

0 comments on commit 313772e

Please sign in to comment.