-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bad auto indent of line to previous code block when pasting at the beginning of the line #6927
Comments
I made the expirience of even modified indentation level of code blocks following the copied in block. |
There are also severl other issues on indentation:
I had to switch back to the old version of the Python extension. I spend more time to fix wrong intendation (which causes bugs, I am sure you are aware of this!) than on coding the last days. |
Hi @WhistleWhileYouWork and @ascheucher , thank you for reporting this issue. As you mentioned some indentation bugs are already reported in #6886 , so for now we will roll back these changes, and will let you know once it's out there so you can use the latest update. |
I was able to verify that the example from @WhistleWhileYouWork works now (on both Linux and Windows). |
If a line is below a code block (
if
,for
,try
def
etc) but not part of the code block and you paste something where the selection start is at the beginning of the line, the line will auto indent to be a part of the code block. This does not occur if the code block ends withreturn
,break
,continue
etc.Environment data
Version: 1.37.0 (user setup)
Commit: 036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8
Date: 2019-08-08T02:33:50.993Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.17763
Python Extension: 2019.8.29288
Python Language Server: 0.3.46
Expected behaviour
Actual behaviour
For pasting at beginning of line (see 3. below)
For pasting over
newline
(see 4. below)Steps to reproduce:
newvar
|newline = 'not part of if'
(
|
symbolizes where the cursor is before paste)newline
and paste over it with copied text.The text was updated successfully, but these errors were encountered: