Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a new line after execute the last line (#6) #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xclrr
Copy link

@xclrr xclrr commented Mar 22, 2023

The code I provided in (#6) is a fix after installing the extension, users can modify run-code.js in .vscode to solve the problem.

I considered four cases

  1. The last code block is a single line
  2. The last code block is multi-line
  3. The last code block is a single line and there are several blank lines below it
  4. The last code block is multi-line and there are several blank lines below
    Case 1 2: Insert a blank row at the last row and move the pointer there
    Case 3 4: Move the pointer to the first blank line under the code block

I modified the run-code.ts in the source code and compiled it into a vsix package for testing. No problems have been found in my test. Please compile and test it. I also provide a vsix package that I compiled.
unzip_this.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant