Skip to content

Commit

Permalink
move green curson to the end of the current command instead of the be…
Browse files Browse the repository at this point in the history
…gin of the line to display logs related to missing tokens at the end of the file
  • Loading branch information
Alidra committed Apr 24, 2024
1 parent 8265f12 commit 0af043f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editors/vscode/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ function checkProofUntilCursor(context: ExtensionContext) {

//To simplify the code, proof states are always at the beggining of the highlighted line
//So must be the cursor position since it is the new proof state
if (cursorPosition.character != 0)
cursorPosition = new Position(cursorPosition.line, 0);
// if (cursorPosition.character != 0)
// cursorPosition = new Position(cursorPosition.line, 0);

cursorPosition = stepCommand(openEditor.document, cursorPosition, true);

context.workspaceState.update('proofState', cursorPosition); //proof state is set to the cursor position

Expand Down

0 comments on commit 0af043f

Please sign in to comment.