forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix indentation on single-liners and f-strings in type formatting #1312
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a764bc9
Undo changes
9d1b2cc
Test fixes
a91291a
Increase timeout
bf266af
Remove double event listening
7bc6bd6
Remove test
8ce8b48
Revert "Remove test"
e3a549e
Revert "Remove double event listening"
92e8c1e
#1096 The if statement is automatically formatted incorrectly
b540a1d
Merge fix
7b0573e
Add more tests
facb106
More tests
f113881
Typo
3e76718
Test
6e85dc6
Also better handle multiline arguments
99e037c
Add a couple missing periods
brettcannon 3caeab7
Undo changes
eeb1f11
Test fixes
f5f78c7
Increase timeout
88744da
Remove double event listening
65dde44
Remove test
c513f71
Revert "Remove test"
ccb3886
Revert "Remove double event listening"
106f4db
Merge fix
9e5cb43
Merge branch 'master' of https://github.com/MikhailArkhipov/vscode-py…
e1da6a6
#1257 On type formatting errors for args and kwargs
e78f0fb
Handle f-strings
725cf71
Stop importing from test code
5cd6d45
#1308 Single line statements leading to an indentation on the next line
27613db
#726 editing python after inline if statement invalid indent
8061a20
Undo change
17dc292
Move constant
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created an issue (#1314) to ensure we try (some how) create tests to test this indentation. We've had to make changes to this area a number of times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, yet to figure out how to simulate typing in VSC.