Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Almenon committed Nov 17, 2024
1 parent cd4d67e commit 6bb1095
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/toAREPLLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export class ToAREPLLogic{
return
}
});
const endSection = codeLines.slice(endLineNum).join(eol)
codeLines = codeLines.slice(startLineNum, endLineNum)

const unsafeKeywords = settingsCached.get<string[]>('unsafeKeywords')
Expand All @@ -59,14 +58,12 @@ export class ToAREPLLogic{
default_filter_types: settingsCached.get<string[]>('defaultFilterTypes')
}

// user should be able to rerun code without changing anything
// only scenario where we dont re-run is if just end section is changed
if(endSection != this.lastEndSection && data.evalCode == this.lastCodeSection){
if(data.evalCode == this.lastCodeSection){
// nothing changed, no point in rerunning
return false
}

this.lastCodeSection = data.evalCode
this.lastEndSection = endSection

this.PythonExecutor.execCode(data)

Expand Down

0 comments on commit 6bb1095

Please sign in to comment.